Skip to content

Releases

svelte@5.60.2

Choose a tag to compare

@github-actions github-actions released this 04 Dec 03:02
d7b1b85

Patch Changes

  • fix: preserve enclosing DOM boundaries when hydrating async components (#18960)

  • fix: release pending async initialization when its branch is destroyed (#19353)

  • fix: add a migration task instead of declaring children twice when a component has both a children prop and a default slot (#19563)

  • fix: validate snippets at runtime in development (#19540)

  • fix: keep numeric progress and meter values in sync when their bounds change (#19164)

  • fix: respect active batch and fork values in state proxy membership and length checks (#19546)

  • fix: ensure $inspect array deferral is exception-safe and nesting-safe (#19553)

  • fix: don't notify SvelteMap key trackers when an existing key's value is set (#19543)

  • fix: don't produce broken output when migrating let: on a component without default slot content (#19566)

  • chore: use importNode everywhere (#19561)

  • fix: exclude inherited properties from object rest destructuring (#19207)

  • fix: preserve rendering context when await blocks receive synchronous thenables (#19556)

  • fix: preserve negative zero during static expression evaluation (#19202)

  • fix: remove the closing quote of a quoted this when migrating <svelte:component> (#19562)

  • fix: avoid exponential self-invalidation walks through shared derived dependencies (#19033)

  • fix: hydrate async components with CSS custom properties correctly (#19356)

  • fix: preserve all code points in named character references (#19200)

  • fix: preserve reactive context when nested async helpers suspend in development (#19181)

  • fix: use valid HTML comments for server-rendered customizable select anchors (#18987)

  • fix: avoid creating each fallback effects without DOM nodes (#19321)

  • fix: avoid connecting deriveds when their reads are not tracked (#19228)

svelte@5.60.1

Choose a tag to compare

@github-actions github-actions released this 03 Dec 19:57
7c4c762

Patch Changes

  • fix: prevent responsive image retention in Chromium (#18835)

  • fix: compile a function call in the children of a bound contenteditable (#19297)

  • fix: recognize case-insensitive CSS url functions (#19195)

  • fix: allow array destructuring of primitive strings (#19209)

  • fix: read a declaration tag in a <svelte:head> that comes before it (#19420)

  • fix: create a <svelte:element> inside <math> in the MathML namespace, not the SVG one (#19295)

  • fix: remove the value of accessors too when migrating <svelte:options> (#19036)

  • fix: keep comments in <script module> from applying to the instance script (#18940)

  • fix: decode all valid Unicode numeric character references up to U+10FFFF (#18903)

  • fix: don't crash server rendering when a checkbox bind:group value is null or undefined (#19258)

  • fix: preserve the current component and styles when an HMR module fails to load (#19002)

  • fix: warn about redundant <img> alt text when aria-hidden="false" (#19161)

  • fix: elide template inspections in production and deprecate {@debug ...} (#19524)

  • fix: retain the latest target when a legacy spring is set immediately after a hard set (#19194)

  • fix: accept a negative a in :nth-child(an+b) and an uppercase n (#18772)

  • fix: reveal pending boundaries directly on commit without scheduling extra batches (#19490)

  • fix: avoid walking client-only special elements or emitting block markers for dev-only tags during SSR (#19538)

  • fix: respect preserveMomentum when a Spring is already moving (#18955)

  • fix: proxy $state initialized from props with primitive fallbacks (#19208)

  • fix: decode illegal numeric character references (NUL, surrogates, above U+10FFFF) as U+FFFD (#19550)

  • fix: put a blank line after <svelte:options> when printing (#19549)

  • fix: report invalid transition:, in: and out: modifiers at compile time (#19551)

  • fix: ignore <style> and <script> tags inside the other kind of block when preprocessing (#18912)

  • fix: prevent infinite type instantiation in $state.snapshot for recursive array types (#18110)

svelte@5.60.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 15:42
156b26c

Minor Changes

  • feat: allow bind:this in custom renderers (#19467)

Patch Changes

  • fix: remove more browser globals access in custom renderers accessible code (#19458)

  • fix: preserve function-valued spread attributes with custom renderers (#19433)

  • fix: make svelte/internal/init-operations a noop on the server (#19449)

  • fix: pass checked, selected, value, defaultChecked and defaultValue to custom renderers as-is (#19437)

  • chore: tree-shake unused async features (#19453)

  • fix: capture FLIP sizes before any sibling leaves flex flow (#18267)

  • fix: report a useful error when bundlers remove DOM initialization side effects (#19492)

  • perf: handle diamond-shaped graphs when checking deriveds for dirtyness (#19311)

  • fix: don't require a renderer in mount options when strictNullChecks is disabled (#19473)

  • fix: synchronize $effect.pending() with resolved content commits (#19497)

  • fix: keep hydrating after a boundary catches an error from a mismatched block (#19021)

  • fix: don't re-run deriveds read outside an effect exponentially while another batch is pending (#19368)

  • perf: tree-shake async-only code out of apps that don't use experimental.async (#19422)

  • fix: correctly print CSS attribute selector values that contain double quotes (#19505)

  • fix: release the delegated event's current target after propagation (#19504)

  • fix: warn on state_referenced_locally inside template declaration tags (#19477)

  • fix: throw when cssHash returns an invalid CSS class name (#19470)

  • fix: track a thenable's then getter on every await in an expression, not only the first (#19513)

  • fix: prune obsolete global derived dependencies while other batches hold records (#19461)

  • fix: skip NaN animation durations from zero-size FLIP measurements (#19512)

  • fix: keep hot-updating a child component after its parent is hot-updated (#19479)

  • fix: warn when dynamic SVG elements are created without the SVG namespace (#19510)

svelte@5.59.2

Choose a tag to compare

@github-actions github-actions released this 25 Nov 17:07
fbd5b0f

Patch Changes

  • fix: catch errors in deferred await block branches with error boundaries (#19028)

  • chore: bump devalue to 6.0.4 (#18857)

  • fix: don't keep a stale value for a derived that disconnects while another batch is pending (#19426)

  • fix: treat <!-- and --> in <style> as CSS tokens, not as a comment (#19370)

  • fix: exclude comments after the initializer from the {@const} declarator range (#19394)

  • fix: object props on a custom element are set as properties even after spreading onto an unregistered element with the same tag (#19441)

  • fix: avoid naming a component after a reserved $-prefixed binding when its filename starts with $ (#19414)

  • perf: process successive batches iteratively instead of recursively, avoiding slow stack capture in dev (#19391)

  • fix: correctly apply styles to elements with duration: 0 transitions (#19444)

  • fix: hint at missing lang="ts" when TypeScript syntax fails to parse (#19428)

  • fix: use comments instead of text for custom renderers (#19376)

  • fix: handle ?. in directive names like use:a?.b (#19404)

  • fix: keep the comments around a parenthesized template expression in its leadingComments and trailingComments (#19389)

  • fix: avoid quadratic work when flushing effects that write state (#19395)

  • fix: escape comment terminators in all commented-out CSS (#19380)

  • fix: handle attribute name casing consistently between server and client (9672188)

  • fix: respect length bound when destructuring array-like values (dba8d14)

  • fix: leave reactive classes and $state proxies unchanged when a write is refused with state_unsafe_mutation (#19405)

  • fix: remove {#each} items when outros of zero and non-zero duration run together (#19042)

  • fix: prevent hydratable promise placeholders from colliding with serialized strings (#19406)

  • fix: give class static blocks their own scope (#19335)

  • fix: make dev element metadata non-enumerable to avoid traversing component graphs during structural comparisons (#19316)

  • fix: escape double quotes in attribute values when printing (#19365)

  • fix: ignore commas in comments when removing unused CSS selectors (#19382)

svelte@5.59.1

Choose a tag to compare

@github-actions github-actions released this 20 Nov 19:03
b688e31

Patch Changes

  • fix: keep hydrate and mount type parameters in sync so a union of them is callable (#19357)

svelte@5.59.0

Choose a tag to compare

@github-actions github-actions released this 20 Nov 14:28
2440b80

Minor Changes

  • feat: custom renderer api (#18042)

svelte@5.58.1

Choose a tag to compare

@github-actions github-actions released this 20 Nov 11:16
aed7539

Patch Changes

  • fix: don't throw when committing a fork whose changes were all superseded by other updates (#19030)

  • fix: apply the branch changes of blocks that re-run while effects are flushed when the batch with the effects' writes commits (#19030)

  • fix: keep values computed in a batch's view of the world local to that batch, and don't needlessly re-run deriveds while several batches are pending (#19030)

  • fix: don't skip sibling listeners added with on() when an earlier one calls stopPropagation() (#19317)

  • fix: update bind:files when the form is reset (#19298)

  • fix: restore teardown context when destroying effects after outros (#19030)

  • fix: print raw input text unchanged, respect whitespace rules (#19292)

  • breaking: in experimental async mode, getAbortSignal() must be called before an await (#19030)

  • fix: remove related comments when effects are removed from server rune modules. (#19289)

  • fix: commit the state that hydration ran with, so that updates while hydration is pending don't undo it (#19347)

  • fix: don't run $inspect and $state.eager with the values of a fork before it is committed (#19030)

  • fix: read a never-reassigned $state.raw declaration tag directly when it shadows reassigned state (#19294)

  • fix: revert state changes in effect teardowns based on the currently committing batch (#19030)

svelte@5.58.0

Choose a tag to compare

@github-actions github-actions released this 18 Nov 06:54
aaff2b7

Minor Changes

  • feat: include snippetName in render entries of the dev __svelte_meta stack (#19283)

  • feat: include the component instance an element was rendered in for Svelte devtools to track (#19286)

Patch Changes

  • perf: let the garbage collector free each component's AST after it is compiled (#19241)

  • fix: render the same <title> on the server as on the client and ignore titles inside failed boundaries (#19176)

  • fix: allow autocorrect on all elements (#19105)

  • fix: parse snippet type parameters containing arrow function types (#19141)

  • fix: keep directive values that match the directive name in print (#19229)

  • fix: correctly assign dev element locations after components during hydration (#19287)

  • perf: don't compare the whole template on every expression when a source is parsed again (#19215)

  • docs: avoid binding to read-only current values in Spring and Tween examples (#19226)

  • fix: keep positions right after optional properties in template type annotations (#19217)

  • perf: speed up server rendering of pages with many or deeply nested components (#19177)

  • fix: remove all of the server-rendered content when hydrating a different branch that contains a failed boundary (#19166)

  • fix: preserve effect tree order across batch traversal passes (#19132)

  • fix: reset dev update counters for sources written during batch traversal (#19092)

  • chore: bump esrap (#19290)

  • fix: don't leak reactive context past nested awaits in production (#19134)

svelte@5.57.3

Choose a tag to compare

@github-actions github-actions released this 26 Oct 18:15
23bb146

Patch Changes

  • fix: use the first valid fallback role in role for a11y checks (#19045)

  • chore: remove obsolete code (#19051)

  • fix: keep creating state sources for property checks during component init (#18949)

  • fix: skip redundant attribute writes during hydration (#18869)

  • fix: track missing state property checks in unowned deriveds (#18944)

  • fix: devalue link in hydratable_serialization_failed error (#18999)

svelte@5.57.2

Choose a tag to compare

@github-actions github-actions released this 06 Oct 14:20
10fdca7

Patch Changes

  • fix: don't create async deriveds for a component destroyed while waiting for its top-level await (#18931)

  • fix: prevent untracked derived reads from retaining disconnected dependencies (#18829)

  • fix: error if {:else} is followed by another {:else} or {:else if ...} (#18900)

  • fix: avoid tracking SvelteURLSearchParams during URL updates (#18791)

  • fix: restore hydration state when custom element attribute updates throw (#18467)

  • fix: attach event handlers that are assigned after a top-level await in production (#18933)

  • fix: flush anything pending before invoking flushSync callback function (#18878)

  • fix: preserve location information for await wrappers (#18859)

  • fix: keep a reactive assignment with no dependencies when migrate cannot turn it into a declaration (#18817)

  • fix: don't hang migrate on a declaration that shares a line with its script tag (#18816)

  • fix: prevent duplicate subscriptions when reconnecting deriveds (#18899)

  • fix: recover when an unexpected node replaces a nested boundary comment during hydration (#18925)

  • fix: print {#await} blocks that only have a pending branch (#18908)

  • fix: don't warn about a redundant link role on <area> elements without an href (#18872)

  • fix: don't throw state_unsafe_mutation when the focused element is removed while bind:activeElement is used (#18921)

  • fix: don't overwrite an unchanged spread value, preserving incomplete number input (#18864)

  • fix: read batch-local array on each-block commit (#18879)

  • fix: error at compile time when a declaration in a snippet redeclares one of its parameters (#18842)

  • fix: error when using let: directives on a component with a children snippet (#18873)

  • fix: ignore stale boundary reset callbacks (#18886)

  • fix: handle deferred transitions aborted before initialization (#18776)

  • fix: prevent hydration mismatch recovery from being intercepted by error boundaries (#18841)

  • fix: preserve dynamic element connections during hydration (#18855)