svelte
5.58.0 · 18 Nov 2026MIT10.3M / weekRepositoryHomepagenpmAtom feed
Upgrading svelte From 5.43.2 to 5.59.1
98 releases in betweenevery note read
Before you upgrade
Tick each one off as you go- Breaking5.58.1
Security
Fixes 7 advisories affecting 5.43.2
- 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 affected by XSS in SSR `<option>` elementmoderate · GHSA-h7h7-mm68-gmrc
- 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
- Fixed
Keep
hydrateandmounttype parameters in sync so a union of them is callable
- Fixed
- New
Custom renderer api
- New
- Breaking
In experimental async mode,
getAbortSignal()must be called before anawait - Fixed
Don't throw when committing a fork whose changes were all superseded by other updates
- Fixed
Apply the branch changes of blocks that re-run while effects are flushed when the batch with the effects' writes commits
- Fixed
Keep values computed in a batch's view of the world local to that batch, and don't needlessly re-run deriveds while several batches are pending
- Breaking
- 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
30 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.