svelte breaking changes
svelte 5.60.0 (December 2, 2026) is its newest release with breaking changes, 2 of them. The first: Behavior changed cssHash. Every breaking API change we have recorded in svelte on npm: 23 breaking changes in 10 versions. Below, its 10 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 5.60.2, released December 4, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
svelte 5.60.0 breaking changes
- Behavior changed
cssHash
Code whose cssHash option returns an invalid CSS class name will now throw instead of compiling. Make sure cssHash returns a valid CSS class name. github.com - Signature changed
'svelte'.MountOptions
Was type MountOptions<Props extends Record<string, any> = Record<string, any>, Renderer = undefined> = (Renderer extends MountRenderer ? {renderer: Renderer; target: MountRendererTarget<Renderer>; anchor?: MountRendererAnchor<Renderer>;}... npmjs.com
svelte 5.59.1 breaking changes
- Signature changed
'svelte'.hydrate
Was function hydrate<Props extends Record<string, any>, Exports extends Record<string, any>>(component: ComponentType<SvelteComponent<Props>> | Component<Props, Exports, any>, options: {} extends Props ? {target: Document | Element |... npmjs.com
svelte 5.59.0 breaking changes
- Signature changed
'svelte'.mount
Was function mount<Props extends Record<string, any>, Exports extends Record<string, any>>(component: ComponentType<SvelteComponent<Props>> | Component<Props, Exports, any>, options: MountOptions<Props>): Exports; now function mount<Props... npmjs.com - Signature changed
'svelte'.MountOptions
Was type MountOptions<Props extends Record<string, any> = Record<string, any>> = {target: Document | Element | ShadowRoot; anchor?: Node; events?: Record<string, (e: any) => any>; context?: Map<any, any>; intro?: boolean; transformError?... npmjs.com - Signature changed
'svelte/compiler'.ModuleCompileOptions.experimental
Was experimental?: {async?: boolean;}; now experimental?: {async?: boolean; customRenderer?: true | string | ((options: {filename: string}) => string | null);}. npmjs.com
svelte 5.58.1 breaking changes
- Behavior changed
getAbortSignal
In experimental async mode, getAbortSignal() must now be called before an await. Code that calls it after an await must be moved earlier. github.com
svelte 5.57.2 breaking changes
- Behavior changed
Using let: directives on a component that also has a children snippet is now a compile-time error. Move the bindings into the snippet or remove the let: directives. github.com - Behavior changed
An {:else} directly followed by another {:else} or {:else if ...} is now a compile-time error. Remove the extra branch from such templates. github.com - Behavior changed
A declaration inside a snippet that redeclares one of the snippet's parameters now fails at compile time. Rename the conflicting declaration. github.com
svelte 5.57.0 breaking changes
- Behavior changed
Elements inside <svelte:head> no longer receive the component's class hash, so styles targeting them by class may stop matching. github.com - Behavior changed
Boolean attributes with an empty string value are now rendered on the server instead of being dropped, which changes the server HTML output. github.com - Behavior changed
Line feed character references in attribute values are now kept rather than dropped, so attribute values can differ from before. github.com - Behavior changed
Component instances kept in $state are now stored as-is rather than wrapped in a state proxy, so code relying on the proxy wrapper will behave differently. github.com - Signature changed
'svelte'.createContext
Was function createContext<T>(): [() => T, (context: T) => T]; now function createContext<T>(): [() => T, (context: T) => T, () => boolean]. npmjs.com
Older versions
4 older versions, each with its first changes. Sign up to see every change
Show 4 older versions
svelte 5.56.1 breaking changes
- Behavior changed
Templates that define the same snippet or declaration tag twice now produce a compile-time error instead of compiling. Rename or remove the duplicate definitions. github.com
svelte 5.56.0 breaking changes
- Signature changed
'svelte/compiler'.AST.Tag
Was type Tag = | AST.AttachTag | AST.ConstTag | AST.DebugTag | AST.ExpressionTag | AST.HtmlTag | AST.RenderTag; now type Tag = | AST.AttachTag | AST.ConstTag | AST.DeclarationTag | AST.DebugTag | AST.ExpressionTag | AST.HtmlTag |... npmjs.com
svelte 5.55.7 breaking changes
- Behavior changed
Server-side rendering now disallows empty attribute names, so markup that previously rendered may now throw. Check templates for empty attribute names. github.com
svelte 5.55.6 breaking changes
- Behavior changed
Fixes stale promises, batch flushing, SSR context and related async behavior; the changelog describes these as bug fixes with no API removals. github.com - Signature changed
elements:SvelteHTMLElements.svelte:boundary
Was 'svelte:boundary': {onerror?: (error: unknown, reset: () => void) => void; failed?: import('svelte').Snippet<[error: unknown, reset: () => void]>; pending?: import('svelte').Snippet;}; now 'svelte:boundary': {onerror?: ((error... npmjs.com
And 3 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.