svelte
5.58.0 · 18 Nov 2026MIT10.4M / weekRepositoryHomepagenpmAtom feed
Upgrading svelte From 5.53.6 to 5.59.1
39 releases in betweenevery note read
Reading releases, release notes and advisories…
Before you upgrade
Tick each one off as you go- Breaking5.58.1
Security
Fixes 4 advisories affecting 5.53.6
- Svelte: ReDoS in `<svelte:element>` Tag Validationmoderate · GHSA-9rmh-mm8f-r9h6
- Svelte: SSR XSS via Insecure Promise Serialization in hydratablemoderate · GHSA-f3cj-j4f6-wq85
- 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
18 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.