Packages

svelte

5.58.0 · 18 Nov 2026MIT10.3M / weekRepositoryHomepagenpmAtom feed

Upgrading svelte From 5.23.0 to 5.59.1

238 releases in betweenevery note read

Other targets from 5.23.0Clears its 6 advisories5.55.7Latest5.58.0
  1. 5.23.0yours
  2. 32 releases
  3. 5.28.7breaking
  4. 34 releases
  5. 5.34.5breaking
  6. 147 releases
  7. 5.55.7security
  8. 19 releases
  9. 5.58.1breaking
  10. 1 release
  11. 5.59.1target

Before you upgrade

Tick each one off as you go
  • Breaking5.58.1
  • Breaking5.34.5
  • Breaking5.28.7

Security

Release by release

  1. 5.59.1

    20 Nov 20261 fix
    • Fixed

      Keep hydrate and mount type parameters in sync so a union of them is callable

  2. 5.59.0

    20 Nov 20261 new
    • New

      Custom renderer api

  3. 5.58.1

    Migration needed20 Nov 202612 fixes
    • Breaking

      In experimental async mode, getAbortSignal() must be called before an await

    • 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

  4. 5.58.0

    18 Nov 20265 new · 10 fixes
    • New

      Include snippetName in render entries of the dev __svelte_meta stack

    • New

      Include the component instance 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

  5. 5.57.3

    26 Oct 20265 fixes
    • Fixed

      Use the first valid fallback role in role for 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

      devalue link in hydratable_serialization_failed error

  6. 5.57.2

    6 Oct 202623 fixes
    • 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

  7. 5.57.1

    18 Sep 20262 new · 12 fixes
    • 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

  8. 5.57.0

    28 Aug 202612 new · 33 fixes
    • New

      Export RenderOutput, SyncRenderOutput, Csp and Sha256Source from svelte/server

    • New

      Add has function to createContext

    • New

      Support defaultValue on <select>

    • New

      Add getOrInsert/getOrInsertComputed to SvelteMap

1 other line we could not sort, mostly version bumps
  • Revert "feat: enable TS autocomplete for Svelte HTML element definitions"

    5.33.14

56 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.