Packages

svelte

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

Your version

5.56.10

20 Aug 2026Where it was published

5.59.1 is the newest release of 5.x.

In short

1 faster19 fixed2 internal

Release note

Patch Changes

  • Preserve CSS escape sequences when printing selectors

  • Parse :nth-child(2n of.foo) where of is not followed by whitespace

  • Transform expressions inside labeled statements during server compilation

  • Apply CSS custom properties with falsy values on components

  • Correctly print {#await ... catch x} et al

  • Ignore 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 loop

  • Treat 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 $derived of another $derived during server-side rendering

  • Preserve namespaces in CSS type selectors

  • Increment private state fields through a non-this receiver

  • Release last_propagated_event after event propagation settles so it no longer retains the last event's target subtree

  • Allow custom elements to receive async values as props

  • Strip comments from inline style values in linear time

  • Prevent 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

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.