Repository navigation
Releases
svelte@5.60.2
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
childrentwice when a component has both achildrenprop 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
$inspectarray deferral is exception-safe and nesting-safe (#19553) -
fix: don't notify
SvelteMapkey 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
thiswhen 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
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
accessorstoo 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:groupvalue isnullorundefined(#19258) -
fix: preserve the current component and styles when an HMR module fails to load (#19002)
-
fix: warn about redundant
<img>alt text whenaria-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
ain:nth-child(an+b)and an uppercasen(#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
preserveMomentumwhen aSpringis already moving (#18955) -
fix: proxy
$stateinitialized 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:andout: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.snapshotfor recursive array types (#18110)
svelte@5.60.0
Minor Changes
- feat: allow
bind:thisin 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-operationsa noop on the server (#19449) -
fix: pass
checked,selected,value,defaultCheckedanddefaultValueto 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
rendererinmountoptions whenstrictNullChecksis 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_locallyinside template declaration tags (#19477) -
fix: throw when
cssHashreturns an invalid CSS class name (#19470) -
fix: track a thenable's
thengetter on everyawaitin 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
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: 0transitions (#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 likeuse:a?.b(#19404) -
fix: keep the comments around a parenthesized template expression in its
leadingCommentsandtrailingComments(#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
$stateproxies unchanged when a write is refused withstate_unsafe_mutation(#19405) -
fix: remove
{#each}items when outros of zero and non-zero duration run together (#19042) -
fix: prevent
hydratablepromise 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
Patch Changes
- fix: keep
hydrateandmounttype parameters in sync so a union of them is callable (#19357)
svelte@5.59.0
Minor Changes
- feat: custom renderer api (#18042)
svelte@5.58.1
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 callsstopPropagation()(#19317) -
fix: update
bind:fileswhen 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 anawait(#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
$inspectand$state.eagerwith the values of a fork before it is committed (#19030) -
fix: read a never-reassigned
$state.rawdeclaration 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
Minor Changes
-
feat: include
snippetNameinrenderentries of the dev__svelte_metastack (#19283) -
feat: include the
componentinstance 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
autocorrecton 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
Patch Changes
-
fix: use the first valid fallback role in
rolefor 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:
devaluelink inhydratable_serialization_failederror (#18999)
svelte@5.57.2
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
awaitin production (#18933) -
fix: flush anything pending before invoking flushSync callback function (#18878)
-
fix: preserve location information for
awaitwrappers (#18859) -
fix: keep a reactive assignment with no dependencies when
migratecannot turn it into a declaration (#18817) -
fix: don't hang
migrateon 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
linkrole on<area>elements without anhref(#18872) -
fix: don't throw
state_unsafe_mutationwhen the focused element is removed whilebind:activeElementis 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 achildrensnippet (#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)