Skip to content

fix: correctly transform declaration tags during SSR - #18492

Merged
paoloricciuti merged 1 commit into
mainfrom
declaration-tags-visit-state
Jul 2, 2026
Merged

paoloricciuti merged 1 commit into
mainfrom
declaration-tags-visit-state

Conversation

@paoloricciuti

Copy link
Copy Markdown
Member

Closes #18490

@changeset-bot

changeset-bot Bot commented Jul 1, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5ee3555

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
svelte Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@svelte-docs-bot

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Playground

pnpm add https://pkg.pr.new/svelte@18492

@paoloricciuti
paoloricciuti merged commit b9e0371 into main Jul 2, 2026
19 of 20 checks passed
@paoloricciuti
paoloricciuti deleted the declaration-tags-visit-state branch July 2, 2026 06:30
@github-actions github-actions Bot mentioned this pull request Jul 2, 2026
dummdidumm pushed a commit that referenced this pull request Jul 14, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## svelte@5.56.5

### Patch Changes

- chore: drop dead code that make TSGO fail
([#18496](#18496))

- fix: don't (re)connect deriveds when read inside branch/root effects
([#18527](#18527))

- fix: skip unnecessary derived effect in earlier batch
([#18525](#18525))

- fix: avoid declaration tag warning in event handlers
([#18500](#18500))

- fix: abort deriveds own AbortSignal when it disconnects
([#18400](#18400))

- fix: ensure `$state.eager()` is correctly transormed for SSR output
([#18530](#18530))

- fix: correctly transform declaration tags during SSR
([#18492](#18492))

- fix: transform computed keys in keyed `{#each}` destructuring patterns
([#18521](#18521))

- fix: chain preprocessor sourcemaps with an empty `sources[0]` instead
of dropping them
([#18518](#18518))

- fix: clear previous_task reference after abort in Tween to prevent
memory leak on interrupted tweens
([#18541](#18541))

- fix: don't treat declaration tags as parts inside each blocks
([#18507](#18507))

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
renovate Bot added a commit to cigaleapp/cigale that referenced this pull request Jul 27, 2026
##### [v5.56.6](https://github.com/sveltejs/svelte/releases/tag/svelte%405.56.6)

##### Patch Changes

- perf: skip unnecessary blocker analysis when compiling components without top-level await ([#18548](sveltejs/svelte#18548))

- fix: rerun derived that had an abort controller on reconnection ([#18551](sveltejs/svelte#18551))
##### [v5.56.5](https://github.com/sveltejs/svelte/blob/HEAD/packages/svelte/CHANGELOG.md#5565)

##### Patch Changes

- chore: drop dead code that make TSGO fail ([#18496](sveltejs/svelte#18496))

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

- fix: skip unnecessary derived effect in earlier batch ([#18525](sveltejs/svelte#18525))

- fix: avoid declaration tag warning in event handlers ([#18500](sveltejs/svelte#18500))

- fix: abort deriveds own AbortSignal when it disconnects ([#18400](sveltejs/svelte#18400))

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

- fix: correctly transform declaration tags during SSR ([#18492](sveltejs/svelte#18492))

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

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

- fix: clear previous\_task reference after abort in Tween to prevent memory leak on interrupted tweens ([#18541](sveltejs/svelte#18541))

- fix: don't treat declaration tags as parts inside each blocks ([#18507](sveltejs/svelte#18507))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SSR compilation of {let ...= $derived(...)} can incorrectly use getter instead of actual value

2 participants