svelte@5.56.5

sveltejs/sveltesvelte@5.56.5Jul 14, 2026by github-actions[bot]

AI Summary

This patch release corrects derived effect behavior, fixes memory leaks in animations, and resolves declaration tag warnings.

Key Highlights

  • Fixed derived effects not reconnecting when read inside branch/root effects
  • Fixed memory leak in Tween animations when interrupted
  • Fixed declaration tag warnings in event handlers

Full Release Notes

### Patch Changes

-   chore: drop dead code that make TSGO fail ([#18496](https://github.com/sveltejs/svelte/pull/18496))

-   fix: don't (re)connect deriveds when read inside branch/root effects ([#18527](https://github.com/sveltejs/svelte/pull/18527))

-   fix: skip unnecessary derived effect in earlier batch ([#18525](https://github.com/sveltejs/svelte/pull/18525))

-   fix: avoid declaration tag warning in event handlers ([#18500](https://github.com/sveltejs/svelte/pull/18500))

-   fix: abort deriveds own AbortSignal when it disconnects ([#18400](https://github.com/sveltejs/svelte/pull/18400))

-   fix: ensure `$state.eager()` is correctly transormed for SSR output ([#18530](https://github.com/sveltejs/svelte/pull/18530))

-   fix: correctly transform declaration tags during SSR ([#18492](https://github.com/sveltejs/svelte/pull/18492))

-   fix: transform computed keys in keyed `{#each}` destructuring patterns ([#18521](https://github.com/sveltejs/svelte/pull/18521))

-   fix: chain preprocessor sourcemaps with an empty `sources[0]` instead of dropping them ([#18518](https://github.com/sveltejs/svelte/pull/18518))

-   fix: clear previous_task reference after abort in Tween to prevent memory leak on interrupted tweens ([#18541](https://github.com/sveltejs/svelte/pull/18541))

-   fix: don't treat declaration tags as parts inside each blocks ([#18507](https://github.com/sveltejs/svelte/pull/18507))