svelte
5.58.0 · 18 Nov 2026MIT10.4M / weekRepositoryHomepagenpmAtom feed
Upgrading svelte From 3.59.2 to 5.58.0
375 releases in betweenevery note read
Reading releases, release notes and advisories…
Start here
Before you upgrade
Tick each one off as you go- Breaking5.34.5
- Breaking5.28.7
- Breaking5.14.4
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
Security
Fixes 7 advisories affecting 3.59.2
- Svelte has a potential mXSS vulnerability due to improper HTML escapingmoderate · GHSA-8266-84wp-wv5c
- Svelte SSR attribute spreading includes inherited properties from prototype chainmoderate · GHSA-crpf-4hrx-3jrp
- Svelte affected by cross-site scripting via spread attributes in Svelte SSRmoderate · GHSA-f7gr-6p89-r883
- Svelte SSR does not validate dynamic element tag names in `<svelte:element>`moderate · GHSA-m56q-vw4c-c2cp
- Svelte vulnerable to XSS during SSR with contenteditable `bind:innerText` and `bind:textContent`moderate · GHSA-phwv-c562-gvmh
- Svelte SSR vulnerable to cross-site scripting via spread attributesmoderate · GHSA-pr6f-5x2q-rwfp
- Svelte Vulnerable to XSS via DOM Clobbering of Internal Framework Statemoderate · GHSA-rcqx-6q8c-2c42
- 5.55.7
Prevent XSS on
hydratablefrom user contents
Release by release
- New
Include
snippetNameinrenderentries of the dev__svelte_metastack - New
Include the
componentinstance an element was rendered in for Svelte devtools to track - New
Let the garbage collector free each component's AST after it is compiled
- New
Don't compare the whole template on every expression when a source is parsed again
- New
- Fixed
Use the first valid fallback role in
rolefor a11y checks - Fixed
Keep creating state sources for property checks during component init
- Fixed
Skip redundant attribute writes during hydration
- Fixed
Track missing state property checks in unowned deriveds
- Fixed
devaluelink inhydratable_serialization_failederror
- Fixed
- Fixed
Don't create async deriveds for a component destroyed while waiting for its top-level
await - Fixed
Prevent untracked derived reads from retaining disconnected dependencies
- Fixed
Error if
{:else}is followed by another{:else}or{:else if ...} - Fixed
Avoid tracking SvelteURLSearchParams during URL updates
- Fixed
- New
Speed up parser interactions with Acorn or avoid them where possible
- New
Avoid regex matching in parser where possible
- Fixed
Cancel deferred event listeners during cleanup
- Fixed
Preserve global CSS in components without scopable elements
- New
- New
Export
RenderOutput,SyncRenderOutput,CspandSha256Sourcefromsvelte/server - New
Add
hasfunction tocreateContext - New
Support
defaultValueon<select> - New
Add getOrInsert/getOrInsertComputed to SvelteMap
- New
- New
Make async blocker analysis scale linearly with the number of top-level references
- Fixed
Preserve CSS escape sequences when printing selectors
- Fixed
Parse
:nth-child(2n of.foo)whereofis not followed by whitespace - Fixed
Transform expressions inside labeled statements during server compilation
- New
- Fixed
Skip controlled each fast path while another batch is pending
- Fixed
Better whitespace handling inside printer
- Fixed
Don't duplicate comments in attributes
- Fixed
Preserve CSS comments in the AST printer
- Fixed
- Fixed
Call
onerrorand provide a workingresetwhen hydrating a failed boundary - Fixed
Preserve select selection when spread attributes omit value
- Fixed
6 other lines we could not sort, mostly version bumps
- 5.33.14
Revert "feat: enable TS autocomplete for Svelte HTML element definitions"
- 5.0.0
Even better performance,
- 5.0.0
A more granular reactivity system with runes,
- 5.0.0
More expressive template syntax with snippets and event attributes,
- 5.0.0
Native TypeScript support,
- 5.0.0
And backwards compatibility with the previous syntax!
72 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.