Skip to main content

Svelte 5.59.1

Release Date: November 20, 2026

Svelte 5.59.1 landed on November 20, 2026, and it closes a busy day in the repo. Three releases shipped within eight hours: 5.58.1, then 5.59.0 with the custom renderer API, then 5.59.1 with a type fix that makes the new API usable from TypeScript.

🖼️ Renderer Reveal

The headline is experimental.customRenderer, a compiler option that swaps Svelte's DOM backend for a package you provide. The option accepts either a module specifier or a function that receives the filename and returns a specifier.

When it is set, the compiler changes its output. Components import your renderer, use from_tree instead of from_html, and wrap each component body in push_renderer and pop_renderer calls. DOM-specific optimizations are skipped: no delegated events, no inlined nodeValue writes, no customizable select handling.

On the runtime side, svelte/renderer exports createRenderer. You implement a set of DOM-like operations, including createElement, createTextNode, createComment, setAttribute, insert, remove, getParent, and the event listener pair. The returned object mounts components through renderer.render(Component, { target, props, context }).

🔧 Type Tuning

  • Union callables: 5.59.1 keeps the hydrate and mount type parameters in sync, so a union of the two is callable. This is the patch that makes typed wrappers around both entry points compile.
  • No functional changes: nothing in the runtime behavior moves in this build.

🐛 Batch Bashes

The earlier 5.58.1 patch cleaned up three correctness issues in the reactivity core. Committing a fork whose changes were all superseded no longer throws, branch changes from blocks that re-run during effect flushing are now applied when the batch commits, and values computed inside a batch's view of the world stay local to that batch instead of re-running deriveds while several batches are pending.

Two smaller fixes rode along: sibling listeners added with on() are no longer skipped when an earlier listener calls stopPropagation(), and bind:files now updates when the form is reset.

⚠️ Caveats

The custom renderer API is experimental and undocumented. The pull request leaves documentation, broader tests, and DOM access linting as open items, and the Svelte team expects to be the primary consumer at first. Applications should not build production features on it yet.

Projects on 5.58.0 should still take the upgrade for the batch and listener fixes. Run npm install [email protected] or the equivalent for your package manager, then re-run the test suite with attention to any code that resets file inputs or stops event propagation.

Other Versions

We use cookies for ads and analytics.