svelte
5.58.0 · 18 Nov 2026MIT10.4M / weekRepositoryHomepagenpmAtom feed
Upgrading svelte From 4.2.16 to 5.55.7
330 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
- Breaking5.0.0-next.264
- Breaking5.0.0-next.266
- Breaking5.0.0-next.266
- Breaking5.0.0-next.268
- Breaking5.0.0-next.268
- Breaking5.0.0-next.272
- Deprecated5.0.0-next.256
Security
Fixes 7 advisories affecting 4.2.16
- 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
- Security
Prevent XSS on
hydratablefrom user contents - Fixed
Disallow empty attribute names during SSR
- Fixed
Harden regex
- Fixed
Move Svelte runtime properties to symbols
- Security
- Fixed
Leave stale promises to wait for a later resolution, instead of rejecting
- Fixed
Keep dependencies of
$state.eager/pending - Fixed
Reapply context after transforming error during SSR
- Fixed
Don't rebase just-created batches
- Fixed
- Fixed
Don't mark deriveds while an effect is updating
- Fixed
Do not dispatch introstart event with animation of animate directive
- Fixed
- Fixed
Never mark a child effect root as inert
- Fixed
Reset context after waiting on blockers of
@constexpressions - Fixed
Keep flushing new eager effects
- Fixed
- Fixed
Ensure proper HMR updates for dynamic components
- Fixed
Correctly calculate
@constblockers - Fixed
Freeze deriveds once their containing effects are destroyed
- Fixed
Defer error boundary rendering in forks
- Fixed
Avoid false positives for reactivity loss warning
- Fixed
- Fixed
Invalidate
@consttags based on visible references in legacy mode - Fixed
Handle parens in template expressions more robustly
- Fixed
Disallow
--inidPrefix - Fixed
Correct types for
ontoggleon<details>elements
- Fixed
- Fixed
Correctly handle bindings on the server
- Fixed
Prevent hydration error on async
{@html ...} - Fixed
Cleanup
superTypeParametersinClassDeclarations/ClassExpression - Fixed
Improve duplicate module import error message
- Fixed
Reschedule new effects in prior batches
- Fixed
- New
Export TweenOptions, SpringOptions, SpringUpdateOptions and Updater from svelte/motion
- Fixed
Ensure HMR wrapper forwards correct start/end nodes to active effect
- New
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!
59 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.