svelte
5.58.0 · 18 Nov 2026MIT10.4M / weekRepositoryHomepagenpmAtom feed
Upgrading svelte From 5.55.8 to 5.58.0
18 releases in betweenevery note read
Reading releases, release notes and advisories…
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
11 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.