---
title: "svelte 5.60.0 Breaking Changes on npm | Since.dev"
description: "What each svelte release removed, renamed or changed: 23 breaking changes in 10 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/svelte
last_updated: 2026-12-04
---

# 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

Latest version `5.60.2`, released December 4, 2026. [Source repository](https://github.com/sveltejs/svelte)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [5.55.6](#v-5-55-6) to [5.60.0](#v-5-60-0): 18 breaking changes in 9 versions.

## svelte 5.60.0 breaking changes

svelte 5.60.0, released December 2, 2026: 2 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](https://github.com/sveltejs/svelte/releases/tag/svelte%405.60.0)
- **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](https://www.npmjs.com/package/svelte/v/5.60.0)

## svelte 5.59.1 breaking changes

svelte 5.59.1, released November 20, 2026: 1 breaking change.

- **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](https://www.npmjs.com/package/svelte/v/5.59.1)

## svelte 5.59.0 breaking changes

svelte 5.59.0, released November 20, 2026: 3 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](https://www.npmjs.com/package/svelte/v/5.59.0)
- **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](https://www.npmjs.com/package/svelte/v/5.59.0)
- **Signature changed** `'svelte/compiler'.ModuleCompileOptions.experimental`  

Was experimental?: {async?: boolean;}; now experimental?: {async?: boolean; customRenderer?: true | string | ((options: {filename: string}) => string | null);}. [npmjs.com](https://www.npmjs.com/package/svelte/v/5.59.0)

## svelte 5.58.1 breaking changes

svelte 5.58.1, released November 20, 2026: 1 breaking change.

- **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](https://github.com/sveltejs/svelte/releases/tag/svelte%405.58.1)

## svelte 5.57.2 breaking changes

svelte 5.57.2, released October 6, 2026: 3 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](https://github.com/sveltejs/svelte/releases/tag/svelte%405.57.2)
- **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](https://github.com/sveltejs/svelte/releases/tag/svelte%405.57.2)
- **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](https://github.com/sveltejs/svelte/releases/tag/svelte%405.57.2)

## svelte 5.57.0 breaking changes

svelte 5.57.0, released August 28, 2026: 5 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](https://github.com/sveltejs/svelte/releases/tag/svelte%405.57.0)
- **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](https://github.com/sveltejs/svelte/releases/tag/svelte%405.57.0)
- **Behavior changed**  

Line feed character references in attribute values are now kept rather than dropped, so attribute values can differ from before. [github.com](https://github.com/sveltejs/svelte/releases/tag/svelte%405.57.0)
- **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](https://github.com/sveltejs/svelte/releases/tag/svelte%405.57.0)
- **Signature changed** `'svelte'.createContext`  

Was function createContext\<T>(): \[() => T, (context: T) => T\]; now function createContext\<T>(): \[() => T, (context: T) => T, () => boolean\]. [npmjs.com](https://www.npmjs.com/package/svelte/v/5.57.0)

## Older versions

4 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### svelte 5.56.1 breaking changes

svelte 5.56.1, released June 1, 2026: 1 breaking change.

- **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](https://github.com/sveltejs/svelte/releases/tag/svelte%405.56.1)

### svelte 5.56.0 breaking changes

svelte 5.56.0, released May 29, 2026: 1 breaking change.

- **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](https://www.npmjs.com/package/svelte/v/5.56.0)

### svelte 5.55.7 breaking changes

svelte 5.55.7, released May 14, 2026: 1 breaking change.

- **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](https://github.com/sveltejs/svelte/releases/tag/svelte%405.55.7)

### svelte 5.55.6 breaking changes

svelte 5.55.6, released May 14, 2026: 5 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](https://github.com/sveltejs/svelte/releases/tag/svelte%405.55.6)
- **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](https://www.npmjs.com/package/svelte/v/5.55.6)

And 3 more in this version.

## Related packages

- [svelte-eslint-parser](https://since.dev/packages/npm/svelte-eslint-parser.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
