svelte
5.57.2 · 6 Oct 2026MIT4.2M / weekRepositoryHomepagenpmAtom feed
768 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
5.57.2
6 Oct 2026don't create async deriveds for a component destroyed while waiting for its top-level
awaitprevent untracked derived reads from retaining disconnected dependencies
error if
{:else}is followed by another{:else}or{:else if ...}
Patch Changes
don't create async deriveds for a component destroyed while waiting for its top-level
awaitprevent untracked derived reads from retaining disconnected dependencies
error if
{:else}is followed by another{:else}or{:else if ...}avoid tracking SvelteURLSearchParams during URL updates
restore hydration state when custom element attribute updates throw
attach event handlers that are assigned after a top-level
awaitin productionflush anything pending before invoking flushSync callback function
preserve location information for
awaitwrapperskeep a reactive assignment with no dependencies when
migratecannot turn it into a declarationdon't hang
migrateon a declaration that shares a line with its script tagprevent duplicate subscriptions when reconnecting deriveds
recover when an unexpected node replaces a nested boundary comment during hydration
print
{#await}blocks that only have a pending branchdon't warn about a redundant
linkrole on<area>elements without anhrefdon't throw
state_unsafe_mutationwhen the focused element is removed whilebind:activeElementis useddon't overwrite an unchanged spread
value, preserving incomplete number inputread batch-local array on each-block commit
error at compile time when a declaration in a snippet redeclares one of its parameters
error when using
let:directives on a component with achildrensnippetignore stale boundary reset callbacks
handle deferred transitions aborted before initialization
prevent hydration mismatch recovery from being intercepted by error boundaries
preserve dynamic element connections during hydration
5.57.1
18 Sep 2026cancel deferred event listeners during cleanup
preserve global CSS in components without scopable elements
reduce SSR render result garbage collection
Patch Changes
cancel deferred event listeners during cleanup
preserve global CSS in components without scopable elements
reduce SSR render result garbage collection
resolve the fallback of an each block in the enclosing scope
speed up parser interactions with Acorn or avoid them where possible
prevent effect tree of batches from interfering with each other
serialize input default values during server rendering
remove
WAS_MARKEDflag in favor ofSetthrow
set_context_after_initwhensetContextis called after anawaitduring SSRmake Object.hasOwn reactive for state proxy ownership changes
keep
$state.eagerwhen used as a variable initializeravoid regex matching in parser where possible
in non-async mode, only push variable to current_sources when active_reaction is updating
recognise
aria-braillelabelandaria-brailleroledescriptionas known ARIA attributes
5.57.0
28 Aug 2026export
RenderOutput,SyncRenderOutput,CspandSha256Sourcefromsvelte/serveradd
hasfunction tocreateContextsupport
defaultValueon<select>
Minor Changes
export
RenderOutput,SyncRenderOutput,CspandSha256Sourcefromsvelte/serveradd
hasfunction tocreateContextsupport
defaultValueon<select>add getOrInsert/getOrInsertComputed to SvelteMap
Patch Changes
block template store subscriptions on the promise that assigns the store
route $derived teardown errors through invoke_error_boundary
track SvelteDate snapshots in reactions
remove
<svelte:head>anchors on unmountwarn on undeclared shorthand event handlers on
<svelte:window>,<svelte:document>and<svelte:body>reuse the cached value in the
<option>/<select>value guardprevent malformed AST output for
<select>with staticvalueattributeapply ownership mutation ignores to binding assignments
prevent onoutroend from firing twice when compilerOptions.hmr is true
preserve whitespace after inline elements when printing
fold SSR block-open markers into the branch's first push
run
onDestroycallbacks when a server render throwsreport
derived_invalid_exportforexport let x = $derived(...)in runes modenever apply class hash to elements inside
<svelte:head>keep
defaultCheckedon hydrated radio inputs with spread attributesaccept
onfocusin/onfocusoutina11y_mouse_events_have_key_eventsO(n²)→O(n) Map lookups for legacy
$:reactive statement orderingdistinct memoizer on style/class directives
measure nested transitions before applying their starting styles
don't turn component instances stored in
$stateinto state proxiesemit
$.only_childfor elements with a single childomit
bind:focusedfrom SSR output (it has no HTML attribute)more robust rendering of Svelte custom element slots
optimize simple object destructuring in
@consttagsproperly apply static textarea value attribute during CSR
end a restored reaction context at the end of its synchronous segment
keep the dependencies of a reaction that throws, so deriveds it read are neither leaked nor stuck in their error
don't resurrect outroing elements when an ancestor block is paused and resumed
use
$.comment()for single-comment templatesstore setters cache as
Setinstead ofArraytransform derived assignments and select function bindings correctly during server-side rendering
keep boolean attributes with an empty string value when rendering attribute objects on the server
sync
SvelteURLport signal when the protocol setter clears the portblock declaration tags and
{@const}on async values read inside closuresavoid css tree-shaking for exported Snippet
treat
<img loading>as a static element againprevent
selectedcontentmutation from changing the selected optionavoid
NaNkeyframe values inslidetransition for elements without a layout boxpreserve line feed character references in attribute values
decode uppercase-
Xhex numeric character references (&#X...;)scope SSR boundary failed snippets to their boundary
5.56.10
20 Aug 2026preserve CSS escape sequences when printing selectors
parse
:nth-child(2n of.foo)whereofis not followed by whitespacetransform expressions inside labeled statements during server compilation
Patch Changes
preserve CSS escape sequences when printing selectors
parse
:nth-child(2n of.foo)whereofis not followed by whitespacetransform expressions inside labeled statements during server compilation
apply CSS custom properties with falsy values on components
correctly print
{#await ... catch x}et alignore comments of Program node during migration script
reliably resolve append_style to its correct root
clean up removed capture event handlers from spread attributes
don't corrupt renderer type during SSR's legacy
bind:retry looptreat concise arrow function bodies as implicit returns when calculating blockers
give effect teardowns the value from before the first write in a flush
avoid double-calling a derived reference when destructuring
$derivedof another$derivedduring server-side renderingpreserve namespaces in CSS type selectors
increment private state fields through a non-
thisreceiverrelease
last_propagated_eventafter event propagation settles so it no longer retains the last event's target subtreeallow custom elements to receive async values as props
strip comments from inline
stylevalues in linear timeprevent declaration comments from breaking server derived references
make async blocker analysis scale linearly with the number of top-level references
preserve short-circuiting for logical assignments to private state fields
5.56.9
12 Aug 2026skip controlled each fast path while another batch is pending
better whitespace handling inside printer
don't duplicate comments in attributes
Patch Changes
skip controlled each fast path while another batch is pending
better whitespace handling inside printer
don't duplicate comments in attributes
preserve CSS comments in the AST printer
5.56.8
24 Jul 2026call
onerrorand provide a workingresetwhen hydrating a failed boundarypreserve select selection when spread attributes omit value
5.50.2 – 5.56.744 releases with no change for you1 maintenance, 43 without a noteShow each
- 5.56.720 Jul 2026docs, tests or tooling
- 5.56.616 Jul 2026no note
- 5.56.514 Jul 2026no note
- 5.56.423 Jun 2026no note
- 5.56.37 Jun 2026no note
- 5.56.24 Jun 2026no note
- 5.56.11 Jun 2026no note
- 5.56.029 May 2026no note
- 5.55.1027 May 2026no note
- 5.55.920 May 2026no note
- 5.55.818 May 2026no note
- 5.55.714 May 2026no note
- 5.55.614 May 2026no note
- 5.55.523 Apr 2026no note
- 5.55.414 Apr 2026no note
- 5.55.310 Apr 2026no note
- 5.55.27 Apr 2026no note
- 5.55.129 Mar 2026no note
- 5.55.023 Mar 2026no note
- 5.54.121 Mar 2026no note
- 5.54.017 Mar 2026no note
- 5.53.1317 Mar 2026no note
- 5.53.1214 Mar 2026no note
- 5.53.1112 Mar 2026no note
- 5.53.1010 Mar 2026no note
- 5.53.910 Mar 2026no note
- 5.53.89 Mar 2026no note
- 5.53.73 Mar 2026no note
- 5.53.627 Feb 2026no note
- 5.53.525 Feb 2026no note
- 5.53.425 Feb 2026no note
- 5.53.323 Feb 2026no note
- 5.53.221 Feb 2026no note
- 5.53.121 Feb 2026no note
- 5.53.018 Feb 2026no note
- 5.52.018 Feb 2026no note
- 5.51.518 Feb 2026no note
- 5.51.418 Feb 2026no note
- 5.51.317 Feb 2026no note
- 5.51.215 Feb 2026no note
- 5.51.114 Feb 2026no note
- 5.51.013 Feb 2026no note
- 5.50.312 Feb 2026no note
- 5.50.211 Feb 2026no note