svelte@5.56.4
sveltejs/sveltesvelte@5.56.4Jun 23, 2026by github-actions[bot]
AI Summary
A patch release fixing AST positioning, reactivity context restoration, and TypeScript parameter stripping issues.
Key Highlights
- Fixed wrapping parentheses in `{@const}` declarator positions
- Fixed reactivity context restoration logic
- Fixed stripping of optional parameters in TS scripts
Full Release Notes
### Patch Changes
- fix: include wrapping parentheses in `{@const}` declarator `end` position ([#18436](https://github.com/sveltejs/svelte/pull/18436))
- fix: always unset reactivity context after restoring it ([#18453](https://github.com/sveltejs/svelte/pull/18453))
- fix: don't notify `searchParams` subscribers when the URL changes without affecting the search string ([#18425](https://github.com/sveltejs/svelte/pull/18425))
- fix: strip `?` from optional parameters in `<script lang="ts">` so generated JavaScript is valid ([#18448](https://github.com/sveltejs/svelte/pull/18448))