Packages

svelte

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

Your version

5.56.1

1 Jun 2026Where it was published

5.59.1 is the newest release of 5.x.

In short

10 fixed

Release note

Patch Changes

  • Error at compile time on duplicate snippet/declaration tag definitions

  • Parse declaration tag contents more robustly

  • Correctly transform references to earlier declarators in a declaration tag (e.g. {let a = $state(0), b = $derived(a * 2)})

  • Avoid spurious state_referenced_locally warnings for $derived declarations in declaration tags

  • Tolerate whitespace before let/const in declaration tags

  • Prevent infinite loop when a tag's expression ends with a trailing / at the end of the input

  • More robust parsing of declaration tags with regards to type

  • Preserve newlines in spread input values when the type attribute is applied after value

  • Update SvelteURLSearchParams when setting duplicate keys to the same joined value

  • Check references for blockers on server, too

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.