svelte@5.55.2

sveltejs/sveltesvelte@5.55.2Apr 7, 2026by github-actions[bot]

AI Summary

A patch release addressing various bug fixes related to legacy mode, template expressions, and reactivity behavior.

Key Highlights

  • Fix invalidation of `@const` tags based on visible references in legacy mode
  • Handle parentheses in template expressions more robustly
  • Disallow `--` in `idPrefix` configuration
  • Correct types for `ontoggle` on `<details>` elements

Full Release Notes

### Patch Changes

-   fix: invalidate `@const` tags based on visible references in legacy mode ([#18041](https://github.com/sveltejs/svelte/pull/18041))

-   fix: handle parens in template expressions more robustly ([#18075](https://github.com/sveltejs/svelte/pull/18075))

-   fix: disallow `--` in `idPrefix` ([#18038](https://github.com/sveltejs/svelte/pull/18038))

-   fix: correct types for `ontoggle` on `<details>` elements ([#18063](https://github.com/sveltejs/svelte/pull/18063))

-   fix: don't override `$destroy/set/on` instance methods in dev mode ([#18034](https://github.com/sveltejs/svelte/pull/18034))

-   fix: unskip branches of earlier batches after commit ([#18048](https://github.com/sveltejs/svelte/pull/18048))

-   fix: never set derived.v inside fork ([#18037](https://github.com/sveltejs/svelte/pull/18037))

-   fix: skip rebase logic in non-async mode ([#18040](https://github.com/sveltejs/svelte/pull/18040))

-   fix: don't reset status of uninitialized deriveds ([#18054](https://github.com/sveltejs/svelte/pull/18054))