@sveltejs/kit breaking changes
Updated December 4, 2026
On this page
Latest version 3.5.0, released December 4, 2026. Source repository
Its 3.0.0-next.14 release requires Node.js 22.17 or later. Node.js end of life dates.
- From 2.70.4 to 3.4.1: 219 breaking changes in 22 versions.
- From 2.59.0 to 3.4.1: 244 breaking changes in 35 versions.
@sveltejs/kit 3.4.1 breaking changes
- Behavior changed
Arrays submitted to remote forms are now limited to 1,000 missing indexes, so very sparse arrays that were accepted before may now be rejected. github.com - Behavior changed
Requests with more browser-generated content types now go through origin checks, so cross-origin requests that previously passed may be rejected. Check that your clients send same-origin requests. github.com - Signature changed
'$app/server'.form
Was function form<Schema extends StandardSchemaV1<RemoteFormInput, Record<string, any>>, Output>(validate: true extends HasNonOptionalBoolean<StandardSchemaV1.InferInput<Schema>> ? "Error: All booleans in form schemas must be optional... npmjs.com - Signature changed
'$app/server'.RemoteFormInput.__index
Was [key: string]: MaybeArray<string | number | boolean | File | RemoteFormInput> | undefined; now [key: string]: MaybeArray<string | number | boolean | File | RemoteFormInput | undefined>. npmjs.com
@sveltejs/kit 3.4.0 breaking changes
- Behavior changed
Requests to remote functions that use the wrong HTTP method are now rejected instead of being accepted. Callers that relied on the wrong method must switch to the correct one. github.com
@sveltejs/kit 3.3.1 breaking changes
- Behavior changed
Results of remote functions awaited in server load functions are no longer serialized into the page. Code that reads that data from the page payload must fetch it another way. github.com - Behavior changed
Route analysis and prerendering now read environment variables after all adapter Vite config hooks have run. Check builds that depend on env values set by adapter config hooks. github.com - Configuration changed
build.cssMinify
SvelteKit now keeps a build.cssMinify value set by the user instead of overriding it. Builds that set this option will see different CSS minification output. github.com
@sveltejs/kit 3.2.1 breaking changes
- Behavior changed
App.PageData
The return value of async load functions is now type-checked against App.PageData, so code that previously type-checked may now fail type checks. github.com
@sveltejs/kit 3.2.0 breaking changes
- Behavior changed
resolve
Passing URL inputs to resolve is now rejected. Code that passes URLs to resolve must pass paths instead. github.com - Signature changed
'@sveltejs/kit/hooks'.CaughtError
Was type CaughtError<Issue extends StandardSchemaV1.Issue = StandardSchemaV1.Issue> = | {[Kind in keyof CaughtErrorMap]: {kind: Kind; error: CaughtErrorMap[Kind]; issues?: undefined;};}[keyof CaughtErrorMap] | ValidationCaughtError<Issue>... npmjs.com - Signature changed
'$app/navigation'.NavigationEnter.from
Was from: NavigationTarget | null; now from: null. npmjs.com
@sveltejs/kit 3.1.1 breaking changes
- Behavior changed
Server-only modules imported from src/params.js into browser code are now rejected. Move any such imports out of params.js or into server-only code. github.com - Default changed
The TypeScript config callback is no longer injected by default. Projects that relied on that default may need to add it themselves. github.com
Older versions
30 older versions, each with its first changes. Sign up to see every change
Show 30 older versions
@sveltejs/kit 3.0.0 breaking changes
- Removed
'@sveltejs/kit'.ActionResult
'@sveltejs/kit'.ActionResult was removed in @sveltejs/kit 3.0.0 npmjs.com - Removed
'@sveltejs/kit'.Config
'@sveltejs/kit'.Config was removed in @sveltejs/kit 3.0.0 npmjs.com
And 125 more in this version.
@sveltejs/kit 3.0.0-next.32 breaking changes
- Behavior changed
builder.log.warn
Warning messages from builder.log.warn now go to stderr instead of stdout. Adjust any tooling that reads stdout. github.com
@sveltejs/kit 3.0.0-next.28 breaking changes
- Behavior changed
Fallback handlers on prerendered endpoints are now rejected. Remove them from prerendered endpoints. github.com - Behavior changed
Query parameters whose names start with x-sveltekit- are now rejected. Code that sends or reads such parameters must change. github.com
And 1 more in this version.
@sveltejs/kit 3.0.0-next.27 breaking changes
- Removed
'@sveltejs/kit'.SSRManifest
SSRManifest is no longer part of the public types. npmjs.com - Renamed
builder.generateManifest
builder.generateManifest is replaced by builder.generateServerInstance and builder.manifest. github.com
And 2 more in this version.
@sveltejs/kit 3.0.0-next.21 breaking changes
- Removed
Cookies
Cookies moved to $app/server. Import it from there instead. github.com - Removed
RequestEvent
RequestEvent moved to $app/server. Import it from there instead. github.com
And 1 more in this version.
@sveltejs/kit 3.0.0-next.14 breaking changes
- Removed
run
The run() method on live queries is gone. github.com - Behavior changed
Node 22.17 is now the minimum runtime version. github.com
And 3 more in this version.
@sveltejs/kit 3.0.0-next.13 breaking changes
- Removed
data-sveltekit-keepfocus
Use data-sveltekit-reset instead. github.com - Removed
data-sveltekit-noscroll
Use data-sveltekit-reset instead. github.com
And 2 more in this version.
@sveltejs/kit 3.0.0-next.12 breaking changes
- Removed
$service-worker
Import from $app/service-worker instead. github.com - Renamed
Asset
Use the AssetPath type instead of Asset. github.com
And 8 more in this version.
@sveltejs/kit 3.0.0-next.11 breaking changes
- Behavior changed
Special route filenames now follow one pattern, which may change which files are recognized. github.com - Behavior changed
config
A config export in a universal route file now wins over one in the server file. github.com
@sveltejs/kit 3.0.0-next.10 breaking changes
- Removed
'@sveltejs/kit/hooks'.defineEnvVars
Import defineEnvVars from @sveltejs/kit/env instead. npmjs.com
@sveltejs/kit 3.0.0-next.9 breaking changes
- Removed
files.lib
The files.lib config is gone; the lib directory is now handled by the #lib alias. github.com - Renamed
$lib
Import from #lib instead of $lib. github.com
And 4 more in this version.
@sveltejs/kit 3.0.0-next.8 breaking changes
- Removed
experimental.handleRenderingErrors
The experimental flag is gone. Remove it from your config. github.com - Signature changed
'@sveltejs/kit/node'.getRequest
getRequest is now synchronous, so callers must stop awaiting it. npmjs.com
And 2 more in this version.
@sveltejs/kit 3.0.0-next.7 breaking changes
- Removed
Removes param files in folders in @sveltejs/kit 3.0.0-next.7 github.com - Removed
$app.stores
Removes $app/stores in @sveltejs/kit 3.0.0-next.7 github.com
And 3 more in this version.
@sveltejs/kit 3.0.0-next.6 breaking changes
- Removed
kit.prerender.origin
Moves origin config to kit.paths.origin in @sveltejs/kit 3.0.0-next.6 github.com - Removed
ORIGIN
Removes the adapter-node ORIGIN environment variable in @sveltejs/kit 3.0.0-next.6 github.com
And 7 more in this version.
@sveltejs/kit 3.0.0-next.5 breaking changes
- Removed
'$app/paths'.assets
Removes assets from $app/paths in @sveltejs/kit 3.0.0-next.5 npmjs.com - Removed
'$app/paths'.base
Removes base from $app/paths in @sveltejs/kit 3.0.0-next.5 npmjs.com
And 5 more in this version.
@sveltejs/kit 3.0.0-next.0 breaking changes
- Removed
Requires Node.js 22 or newer in @sveltejs/kit 3.0.0-next.0 github.com - Removed
@sveltejs.kit.node.polyfills
Removes the node polyfills entry point in @sveltejs/kit 3.0.0-next.0 github.com
And 12 more in this version.
@sveltejs/kit 2.70.4 breaking changes
- Behavior changed
Server-side self-fetch fallbacks now stop at redirect responses instead of following them. Code that relied on following redirects in these fallbacks must handle the redirect itself. github.com
@sveltejs/kit 2.70.3 breaking changes
- Signature changed
'@sveltejs/kit/env'.defineEnvVars
Was function defineEnvVars<T extends Record<string, EnvVarConfig<any>>>(variables: T): T; now function defineEnvVars<T extends Record<string, import("@sveltejs/kit").EnvVarConfig<any>>>(variables: T): T. npmjs.com
@sveltejs/kit 2.70.0 breaking changes
- Behavior changed
Builds with a NODE_ENV value other than production now have CSRF protection enabled. Requests that previously passed without CSRF checks may now be rejected. github.com
@sveltejs/kit 2.69.0 breaking changes
- Signature changed
'@sveltejs/kit'.RemoteForm
Was type RemoteForm<Input extends RemoteFormInput | void, Output> = {[attachment: symbol]: (node: HTMLFormElement) => void; method: 'POST'; action: string; get element(): HTMLFormElement | null; submit(): Promise<boolean> & {updates... npmjs.com
@sveltejs/kit 2.68.0 breaking changes
- Behavior changed
Submit fields in remote forms now have their value set on submission, so code that reads form data may see a different value. Check any logic that depends on submit field values. github.com - Signature changed
'@sveltejs/kit'.RemoteForm
Was type RemoteForm<Input extends RemoteFormInput | void, Output> = {[attachment: symbol]: (node: HTMLFormElement) => void; method: 'POST'; action: string; get element(): HTMLFormElement | null; submit(): Promise<boolean> & {updates... npmjs.com
And 1 more in this version.
@sveltejs/kit 2.67.0 breaking changes
- Signature changed
'@sveltejs/kit'.KitConfig.prerender
Was prerender?: {concurrency?: number; crawl?: boolean; entries?: Array<'*' | `/${string}`>; /** * How to respond to HTTP errors encountered while prerendering the app. * * - `'fail'` - fail the build * - `'ignore'` - silently ignore the... npmjs.com - Signature changed
'@sveltejs/kit'.RemoteFormInput.__index
Was [key: string]: MaybeArray<string | number | boolean | File | RemoteFormInput>; now [key: string]: MaybeArray<string | number | boolean | File | RemoteFormInput> | undefined. npmjs.com
@sveltejs/kit 2.66.0 breaking changes
- Configuration changed
The generated tsconfig no longer sets types to node, so Node.js globals are no longer typed automatically. Add @types/node or list it in your tsconfig if your code relies on those types. github.com - Signature changed
'@sveltejs/kit/vite'.sveltekit
Was function sveltekit(config?: KitConfig & Omit<SvelteConfig, "onwarn">): Promise<Plugin[]>; now function sveltekit(config?: KitConfig & Omit<Options, "onwarn"> & Pick<SvelteConfig, "vitePlugin">): Promise<Plugin[]>. npmjs.com
And 1 more in this version.
@sveltejs/kit 2.65.2 breaking changes
- Signature changed
'@sveltejs/kit'.error
Was function error_1(status: number, body: App.Error): never function error_1(status: number, body?: {message: string;} extends App.Error ? App.Error | string | undefined : never): never; now function error(status: number, body... npmjs.com - Signature changed
'$app/paths'.match
Was function match(url: Pathname_1 | URL | (string & {})): Promise<{id: RouteId; params: Record<string, string>;} | null>; now function match(url: Pathname | URL | (string & {})): Promise<{id: RouteId; params: Record<string, string>;} |... npmjs.com
@sveltejs/kit 2.65.0 breaking changes
- Signature changed
'@sveltejs/kit'.error
Was function error(status: number, body: App.Error): never function error(status: number, body?: {message: string;} extends App.Error ? App.Error | string | undefined : never): never; now function error_1(status: number, body: App.Error)... npmjs.com - Signature changed
'@sveltejs/kit'.SSRManifest._
Was _: {client: NonNullable<BuildData['client']>; nodes: SSRNodeLoader[]; remotes: Record<string, () => Promise<any>>; routes: SSRRoute[]; prerendered_routes: Set<string>; matchers: () => Promise<Record<string, ParamMatcher>>... npmjs.com
And 1 more in this version.
@sveltejs/kit 2.63.0 breaking changes
- Signature changed
'@sveltejs/kit'.KitConfig.experimental
Was experimental?: {tracing?: {server?: boolean;}; instrumentation?: {server?: boolean;}; remoteFunctions?: boolean; forkPreloads?: boolean; handleRenderingErrors?: boolean;}; now experimental?: {explicitEnvironmentVariables?: boolean... npmjs.com
@sveltejs/kit 2.62.0 breaking changes
- Signature changed
'@sveltejs/kit/vite'.sveltekit
Was function sveltekit(): Promise<Plugin[]>; now function sveltekit(config?: KitConfig & Omit<SvelteConfig, "onwarn">): Promise<Plugin[]>. npmjs.com
@sveltejs/kit 2.61.0 breaking changes
- Removed
run
The .run() method is gone from remote queries on both client and server. Use await query() directly instead, which now works everywhere. github.com - Signature changed
'@sveltejs/kit'.RemoteForm
Was type RemoteForm<Input extends RemoteFormInput | void, Output> = {[attachment: symbol]: (node: HTMLFormElement) => void; method: 'POST'; action: string; enhance(callback: (opts: {form: HTMLFormElement; data: Input; submit: () =>... npmjs.com
And 3 more in this version.
@sveltejs/kit 2.60.0 breaking changes
- Behavior changed
Form submissions that trigger a full-page reload now skip refreshing queries. Code that relied on those queries refreshing after such a submission must refetch them itself. github.com
@sveltejs/kit 2.59.0 breaking changes
- Removed
'@sveltejs/kit'.RequestedResult.refreshAll
'@sveltejs/kit'.RequestedResult.refreshAll was removed in @sveltejs/kit 2.59.0 npmjs.com - Behavior changed
refresh
On the server, the promise returned by refresh now means the refresh was added to the map, not that the remote function finished running. Code that awaits refresh to wait for the function to complete may need updating. github.com
And 4 more in this version.
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.