Packages

svelte

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

Upgrading svelte From 5.25.8 to 5.58.0

222 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 5.25.8Newest 5.x5.59.1Clears its 6 advisories5.55.7
  1. 5.25.8yours
  2. 19 releases
  3. 5.28.7breaking
  4. 34 releases
  5. 5.34.5breaking
  6. 147 releases
  7. 5.55.7security
  8. 18 releases
  9. 5.58.0target

Before you upgrade

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

Security

Release by release

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

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

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

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

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

  6. 5.56.10

    20 Aug 20261 new · 19 fixes
    • 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) where of is not followed by whitespace

    • Fixed

      Transform expressions inside labeled statements during server compilation

  7. 5.56.9

    12 Aug 20264 fixes
    • 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

  8. 5.56.8

    24 Jul 20262 fixes
    • Fixed

      Call onerror and provide a working reset when hydrating a failed boundary

    • Fixed

      Preserve select selection when spread attributes omit value

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

    5.33.14

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