Packages

svelte

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

Your version

5.57.2

6 Oct 2026Where it was published

5.59.1 is the newest release of 5.x.

In short

23 fixed

Release note

Patch Changes

  • Don't create async deriveds for a component destroyed while waiting for its top-level await

  • Prevent untracked derived reads from retaining disconnected dependencies

  • Error if {:else} is followed by another {:else} or {:else if ...}

  • Avoid tracking SvelteURLSearchParams during URL updates

  • Restore hydration state when custom element attribute updates throw

  • Attach event handlers that are assigned after a top-level await in production

  • Flush anything pending before invoking flushSync callback function

  • Preserve location information for await wrappers

  • Keep a reactive assignment with no dependencies when migrate cannot turn it into a declaration

  • Don't hang migrate on a declaration that shares a line with its script tag

  • Prevent duplicate subscriptions when reconnecting deriveds

  • Recover when an unexpected node replaces a nested boundary comment during hydration

  • Print {#await} blocks that only have a pending branch

  • Don't warn about a redundant link role on <area> elements without an href

  • Don't throw state_unsafe_mutation when the focused element is removed while bind:activeElement is used

  • Don't overwrite an unchanged spread value, preserving incomplete number input

  • Read batch-local array on each-block commit

  • Error at compile time when a declaration in a snippet redeclares one of its parameters

  • Error when using let: directives on a component with a children snippet

  • Ignore stale boundary reset callbacks

  • Handle deferred transitions aborted before initialization

  • Prevent hydration mismatch recovery from being intercepted by error boundaries

  • Preserve dynamic element connections during hydration

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.