Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/shaky-pillows-sell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

chore: remove deprecation warnings for `config.kit.files.*` options when validating the Svelte config file
22 changes: 11 additions & 11 deletions packages/kit/src/core/config/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,19 +137,19 @@ const options = object(
}),

files: object({
src: deprecate(string('src')),
assets: deprecate(string('static')),
src: string('src'),
assets: string('static'),
hooks: object({
client: deprecate(string(null)),
server: deprecate(string(null)),
universal: deprecate(string(null))
client: string(null),
server: string(null),
universal: string(null)
}),
lib: deprecate(string(null)),
params: deprecate(string(null)),
routes: deprecate(string(null)),
serviceWorker: deprecate(string(null)),
appTemplate: deprecate(string(null)),
errorTemplate: deprecate(string(null))
lib: string(null),
params: string(null),
routes: string(null),
serviceWorker: string(null),
appTemplate: string(null),
errorTemplate: string(null)
}),

inlineStyleThreshold: number(0),
Expand Down
40 changes: 20 additions & 20 deletions packages/kit/src/exports/public.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,76 +516,76 @@ export interface KitConfig {
};
/**
* Where to find various files within your project.
* @deprecated
* @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead
*/
files?: {
/**
* the location of your source code
* @deprecated
* The location of your source code.
* @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead
* @default "src"
* @since 2.28
*/
src?: string;
/**
* a place to put static files that should have stable URLs and undergo no processing, such as `favicon.ico` or `manifest.json`
* @deprecated
* A place to put static files that should have stable URLs and undergo no processing, such as `favicon.ico` or `manifest.json`.
* @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead
* @default "static"
*/
assets?: string;
hooks?: {
/**
* The location of your client [hooks](https://svelte.dev/docs/kit/hooks).
* @deprecated
* @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead
* @default "src/hooks.client"
*/
client?: string;
/**
* The location of your server [hooks](https://svelte.dev/docs/kit/hooks).
* @deprecated
* @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead
* @default "src/hooks.server"
*/
server?: string;
/**
* The location of your universal [hooks](https://svelte.dev/docs/kit/hooks).
* @deprecated
* @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead
* @default "src/hooks"
* @since 2.3.0
*/
universal?: string;
};
/**
* your app's internal library, accessible throughout the codebase as `$lib`
* @deprecated
* Your app's internal library, accessible throughout the codebase as `$lib`.
* @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead
* @default "src/lib"
*/
lib?: string;
/**
* a directory containing [parameter matchers](https://svelte.dev/docs/kit/advanced-routing#Matching)
* @deprecated
* A directory containing [parameter matchers](https://svelte.dev/docs/kit/advanced-routing#Matching).
* @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead
* @default "src/params"
*/
params?: string;
/**
* the files that define the structure of your app (see [Routing](https://svelte.dev/docs/kit/routing))
* @deprecated
* The files that define the structure of your app (see [Routing](https://svelte.dev/docs/kit/routing)).
* @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead
* @default "src/routes"
*/
routes?: string;
/**
* the location of your service worker's entry point (see [Service workers](https://svelte.dev/docs/kit/service-workers))
* @deprecated
* The location of your service worker's entry point (see [Service workers](https://svelte.dev/docs/kit/service-workers)).
* @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead
* @default "src/service-worker"
*/
serviceWorker?: string;
/**
* the location of the template for HTML responses
* @deprecated
* The location of the template for HTML responses.
* @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead
* @default "src/app.html"
*/
appTemplate?: string;
/**
* the location of the template for fallback error responses
* @deprecated
* The location of the template for fallback error responses.
* @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead
* @default "src/error.html"
*/
errorTemplate?: string;
Expand Down
40 changes: 20 additions & 20 deletions packages/kit/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -490,76 +490,76 @@ declare module '@sveltejs/kit' {
};
/**
* Where to find various files within your project.
* @deprecated
* @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead
*/
files?: {
/**
* the location of your source code
* @deprecated
* The location of your source code.
* @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead
* @default "src"
* @since 2.28
*/
src?: string;
/**
* a place to put static files that should have stable URLs and undergo no processing, such as `favicon.ico` or `manifest.json`
* @deprecated
* A place to put static files that should have stable URLs and undergo no processing, such as `favicon.ico` or `manifest.json`.
* @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead
* @default "static"
*/
assets?: string;
hooks?: {
/**
* The location of your client [hooks](https://svelte.dev/docs/kit/hooks).
* @deprecated
* @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead
* @default "src/hooks.client"
*/
client?: string;
/**
* The location of your server [hooks](https://svelte.dev/docs/kit/hooks).
* @deprecated
* @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead
* @default "src/hooks.server"
*/
server?: string;
/**
* The location of your universal [hooks](https://svelte.dev/docs/kit/hooks).
* @deprecated
* @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead
* @default "src/hooks"
* @since 2.3.0
*/
universal?: string;
};
/**
* your app's internal library, accessible throughout the codebase as `$lib`
* @deprecated
* Your app's internal library, accessible throughout the codebase as `$lib`.
* @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead
* @default "src/lib"
*/
lib?: string;
/**
* a directory containing [parameter matchers](https://svelte.dev/docs/kit/advanced-routing#Matching)
* @deprecated
* A directory containing [parameter matchers](https://svelte.dev/docs/kit/advanced-routing#Matching).
* @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead
* @default "src/params"
*/
params?: string;
/**
* the files that define the structure of your app (see [Routing](https://svelte.dev/docs/kit/routing))
* @deprecated
* The files that define the structure of your app (see [Routing](https://svelte.dev/docs/kit/routing)).
* @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead
* @default "src/routes"
*/
routes?: string;
/**
* the location of your service worker's entry point (see [Service workers](https://svelte.dev/docs/kit/service-workers))
* @deprecated
* The location of your service worker's entry point (see [Service workers](https://svelte.dev/docs/kit/service-workers)).
* @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead
* @default "src/service-worker"
*/
serviceWorker?: string;
/**
* the location of the template for HTML responses
* @deprecated
* The location of the template for HTML responses.
* @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead
* @default "src/app.html"
*/
appTemplate?: string;
/**
* the location of the template for fallback error responses
* @deprecated
* The location of the template for fallback error responses.
* @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead
* @default "src/error.html"
*/
errorTemplate?: string;
Expand Down
Loading