Releases: sveltejs/svelte
Release list
svelte@5.56.10
Patch Changes
-
fix: preserve CSS escape sequences when printing selectors (#18667)
-
fix: parse
:nth-child(2n of.foo)whereofis not followed by whitespace (#18611) -
fix: transform expressions inside labeled statements during server compilation (#18617)
-
docs: clarify that context lookup includes the current component and all ancestors (#18581)
-
fix: apply CSS custom properties with falsy values on components (#18634)
-
fix: correctly print
{#await ... catch x}et al (#18645) -
fix: ignore comments of Program node during migration script (#18656)
-
fix: reliably resolve append_style to its correct root (#18614)
-
fix: clean up removed capture event handlers from spread attributes (#18618)
-
fix: don't corrupt renderer type during SSR's legacy
bind:retry loop (#18616) -
fix: treat concise arrow function bodies as implicit returns when calculating blockers (#18613)
-
fix: give effect teardowns the value from before the first write in a flush (#18620)
-
fix: avoid double-calling a derived reference when destructuring
$derivedof another$derivedduring server-side rendering (#18668) -
fix: preserve namespaces in CSS type selectors (#18678)
-
fix: increment private state fields through a non-
thisreceiver (#18622) -
chore: deduplicate client and server context helpers (#18580)
-
fix: release
last_propagated_eventafter event propagation settles so it no longer retains the last event's target subtree (#18569) -
fix: allow custom elements to receive async values as props (#18661)
-
fix: strip comments from inline
stylevalues in linear time (#18553) -
fix: prevent declaration comments from breaking server derived references (#18641)
-
perf: make async blocker analysis scale linearly with the number of top-level references (#18549)
-
fix: preserve short-circuiting for logical assignments to private state fields (#18594)
svelte@5.56.9
svelte@5.56.8
svelte@5.56.7
Patch Changes
- chore: provide
indentoption forprint(#18474)
svelte@5.56.6
svelte@5.56.5
Patch Changes
-
chore: drop dead code that make TSGO fail (#18496)
-
fix: don't (re)connect deriveds when read inside branch/root effects (#18527)
-
fix: skip unnecessary derived effect in earlier batch (#18525)
-
fix: avoid declaration tag warning in event handlers (#18500)
-
fix: abort deriveds own AbortSignal when it disconnects (#18400)
-
fix: ensure
$state.eager()is correctly transormed for SSR output (#18530) -
fix: correctly transform declaration tags during SSR (#18492)
-
fix: transform computed keys in keyed
{#each}destructuring patterns (#18521) -
fix: chain preprocessor sourcemaps with an empty
sources[0]instead of dropping them (#18518) -
fix: clear previous_task reference after abort in Tween to prevent memory leak on interrupted tweens (#18541)
-
fix: don't treat declaration tags as parts inside each blocks (#18507)
svelte@5.56.4
Patch Changes
-
fix: include wrapping parentheses in
{@const}declaratorendposition (#18436) -
fix: always unset reactivity context after restoring it (#18453)
-
fix: don't notify
searchParamssubscribers when the URL changes without affecting the search string (#18425) -
fix: strip
?from optional parameters in<script lang="ts">so generated JavaScript is valid (#18448)
svelte@5.56.3
svelte@5.56.2
Patch Changes
svelte@5.56.1
Patch Changes
-
fix: error at compile time on duplicate snippet/declaration tag definitions (#18351)
-
fix: parse declaration tag contents more robustly (#18353)
-
fix: correctly transform references to earlier declarators in a declaration tag (e.g.
{let a = $state(0), b = $derived(a * 2)}) (#18348) -
fix: avoid spurious
state_referenced_locallywarnings for$deriveddeclarations in declaration tags (#18348) -
fix: tolerate whitespace before
let/constin declaration tags (#18348) -
fix: prevent infinite loop when a tag's expression ends with a trailing
/at the end of the input (#18350) -
fix: more robust parsing of declaration tags with regards to
type(#18330) -
fix: preserve newlines in spread input values when the
typeattribute is applied aftervalue(#18345) -
fix: update
SvelteURLSearchParamswhen setting duplicate keys to the same joined value (#18336) -
fix: check references for blockers on server, too (#18352)