sveltejs avatar

Svelte Release Notes & Changelog

sveltejs/svelte

The latest Svelte release is svelte@5.57.3, published on .

web development for the rest of us

88,559 starsJavaScriptsvelte@5.57.3
templateuicompiler

Svelte release notes

Patch Changes

  • fix: use the first valid fallback role in role for a11y checks (#19045)
  • chore: remove obsolete code (#19051)
  • fix: keep creating state sources for property checks during component init (#18949)
  • fix: skip redundant attribute writes during hydration (#18869)
  • fix: track missing state property checks in unowned deriveds (#18944)
  • fix: devalue link in hydratable_serialization_failed error (#18999)

Patch Changes

  • fix: don't create async deriveds for a component destroyed while waiting for its top-level await (#18931)
  • fix: prevent untracked derived reads from retaining disconnected dependencies (#18829)
  • fix: error if {:else} is followed by another {:else} or {:else if ...} (#18900)
  • fix: avoid tracking SvelteURLSearchParams during URL updates (#18791)
  • fix: restore hydration state when custom element attribute updates throw (#18467)
  • fix: attach event handlers that are assigned after a top-level await in production (#18933)

Patch Changes

  • fix: cancel deferred event listeners during cleanup (#18749)
  • fix: preserve global CSS in components without scopable elements (#18793)
  • fix: reduce SSR render result garbage collection (#18798)
  • fix: resolve the fallback of an each block in the enclosing scope (#18803)
  • perf: speed up parser interactions with Acorn or avoid them where possible (#18740)
  • fix: prevent effect tree of batches from interfering with each other (#18508)
  • fix: serialize input default values during server rendering (#18733)
  • fix: remove WAS_MARKED flag in favor of Set (#18127)

Minor Changes

  • feat: export RenderOutput, SyncRenderOutput, Csp and Sha256Source from svelte/server (#18648)
  • feat: add has function to createContext (#18472)
  • feat: support defaultValue on <select> (#18591)
  • feat: add getOrInsert/getOrInsertComputed to SvelteMap (#18728)

Patch Changes

  • fix: block template store subscriptions on the promise that assigns the store (#18582)
  • fix: route $derived teardown errors through invoke_error_boundary (#18486)
  • fix: track SvelteDate snapshots in reactions (#18700)
  • fix: remove <svelte:head> anchors on unmount (#18697)

Patch Changes

  • fix: preserve CSS escape sequences when printing selectors (#18667)
  • fix: parse :nth-child(2n of.foo) where of is not followed by whitespace (#18611)
  • fix: transform expressions inside labeled statements during server compilation (#18617)
  • docs: clarify that context lookup includes the current component and all ancestors (#18581)
  • fix: apply CSS custom properties with falsy values on components (#18634)
  • fix: correctly print {#await ... catch x} et al (#18645)
  • fix: ignore comments of Program node during migration script (#18656)
  • fix: reliably resolve append_style to its correct root (#18614)

Patch Changes

  • chore: drop dead code that make TSGO fail (#18496)
  • fix: don't (re)connect deriveds when read inside branch/root effects (#18527)
  • fix: skip unnecessary derived effect in earlier batch (#18525)
  • fix: avoid declaration tag warning in event handlers (#18500)
  • fix: abort deriveds own AbortSignal when it disconnects (#18400)
  • fix: ensure $state.eager() is correctly transormed for SSR output (#18530)
  • fix: correctly transform declaration tags during SSR (#18492)
  • fix: transform computed keys in keyed {#each} destructuring patterns (#18521)

Looking for an older version? The full Svelte changelog is on the official sveltejs/svelte releases page.

How to get notified of new Svelte releases

Stay updated when Svelte ships a new version. With GitWatchman, you can monitor sveltejs/svelte and receive the full release notes by email, Slack, Discord or Telegram whenever a new version is published.

  1. Sign in with your GitHub or Google account at gitwatchman.com
  2. Add sveltejs/svelte to your monitored repositories
  3. Get an alert with the release notes for every new version

You can also subscribe to the RSS feed for Svelte releases (see our GitHub release RSS guide), follow Svelte pre-releases and betas, or compare the best GitHub release trackers.

Related projects to track

Get notified of new Svelte releases

One alert per release with the full notes, by email, Slack, Discord or Telegram. Free for up to 5 repositories.

Track Svelte for free