Repository navigation
fix(deps): update dependency svelte to v5 - #1186
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/svelte-5.x
branch
5 times, most recently
from
February 18, 2025 22:14
ecee16f to
ed5eca7
Compare
renovate
Bot
force-pushed
the
renovate/svelte-5.x
branch
3 times, most recently
from
February 27, 2025 16:26
658c002 to
c214732
Compare
renovate
Bot
force-pushed
the
renovate/svelte-5.x
branch
7 times, most recently
from
March 7, 2025 18:45
a94f08b to
2f8af19
Compare
renovate
Bot
force-pushed
the
renovate/svelte-5.x
branch
2 times, most recently
from
March 17, 2025 02:03
6884a3c to
6633bc0
Compare
renovate
Bot
force-pushed
the
renovate/svelte-5.x
branch
5 times, most recently
from
March 23, 2025 19:10
c072319 to
4d51293
Compare
renovate
Bot
force-pushed
the
renovate/svelte-5.x
branch
5 times, most recently
from
April 7, 2025 16:28
1ee2df5 to
3104a62
Compare
renovate
Bot
force-pushed
the
renovate/svelte-5.x
branch
3 times, most recently
from
April 10, 2025 22:50
a162ed0 to
ae562f0
Compare
renovate
Bot
force-pushed
the
renovate/svelte-5.x
branch
5 times, most recently
from
May 20, 2025 22:55
bd3e17a to
30540ab
Compare
renovate
Bot
force-pushed
the
renovate/svelte-5.x
branch
8 times, most recently
from
May 29, 2025 14:13
5ee88f2 to
153ba0c
Compare
renovate
Bot
force-pushed
the
renovate/svelte-5.x
branch
6 times, most recently
from
June 2, 2025 22:22
919e21b to
34906bb
Compare
renovate
Bot
force-pushed
the
renovate/svelte-5.x
branch
6 times, most recently
from
June 12, 2025 03:41
a49c9d8 to
0198e38
Compare
renovate
Bot
force-pushed
the
renovate/svelte-5.x
branch
3 times, most recently
from
June 17, 2025 18:48
3a5febb to
bbb5de4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
4.2.19→5.60.0Release Notes
sveltejs/svelte (svelte)
v5.60.0Compare Source
Minor Changes
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)
v5.59.2Compare Source
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)
v5.59.1Compare Source
Patch Changes
hydrateandmounttype parameters in sync so a union of them is callable (#19357)v5.59.0Compare Source
Minor Changes
v5.58.1Compare Source
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)
v5.58.0Compare Source
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)
v5.57.3Compare Source
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)v5.57.2Compare Source
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)
v5.57.1Compare Source
Patch Changes
fix: cancel deferred event listeners during cleanup (#18749)
fix: preserve global CSS in components without scopable elements (#18793)
fix: reduce SSR render result garbage collection (#18798)
fix: resolve the fallback of an each block in the enclosing scope (#18803)
perf: speed up parser interactions with Acorn or avoid them where possible (#18740)
fix: prevent effect tree of batches from interfering with each other (#18508)
fix: serialize input default values during server rendering (#18733)
fix: remove
WAS_MARKEDflag in favor ofSet(#18127)fix: throw
set_context_after_initwhensetContextis called after anawaitduring SSR (#18739)fix: make Object.hasOwn reactive for state proxy ownership changes (#18838)
fix: keep
$state.eagerwhen used as a variable initializer (#18809)perf: avoid regex matching in parser where possible (#18736)
fix: in non-async mode, only push variable to current_sources when active_reaction is updating (#18550)
fix: recognise
aria-braillelabelandaria-brailleroledescriptionas known ARIA attributes (#18765)v5.57.0Compare Source
Minor Changes
feat: export
RenderOutput,SyncRenderOutput,CspandSha256Sourcefromsvelte/server(#18648)feat: add
hasfunction tocreateContext(#18472)feat: support
defaultValueon<select>(#18591)feat: add getOrInsert/getOrInsertComputed to SvelteMap (#18728)
Patch Changes
fix: block template store subscriptions on the promise that assigns the store (#18582)
fix: route $derived teardown errors through invoke_error_boundary (#18486)
fix: track SvelteDate snapshots in reactions (#18700)
fix: remove
<svelte:head>anchors on unmount (#18697)fix: warn on undeclared shorthand event handlers on
<svelte:window>,<svelte:document>and<svelte:body>(#18480)perf: reuse the cached value in the
<option>/<select>value guard (#18713)fix: prevent malformed AST output for
<select>with staticvalueattribute (#18449)fix: apply ownership mutation ignores to binding assignments (#18718)
fix: prevent onoutroend from firing twice when compilerOptions.hmr is true (#18655)
fix: preserve whitespace after inline elements when printing (#18685)
perf: fold SSR block-open markers into the branch's first push (#18712)
fix: run
onDestroycallbacks when a server render throws (#18585)fix: report
derived_invalid_exportforexport let x = $derived(...)in runes mode (#18692)fix: never apply class hash to elements inside
<svelte:head>(#18160)fix: keep
defaultCheckedon hydrated radio inputs with spread attributes (#18701)fix: accept
onfocusin/onfocusoutina11y_mouse_events_have_key_events(#18689)perf: O(n²)→O(n) Map lookups for legacy
$:reactive statement ordering (#18602)fix: distinct memoizer on style/class directives (#18466)
fix: measure nested transitions before applying their starting styles (#18647)
fix: don't turn component instances stored in
$stateinto state proxies (#18646)perf: emit
$.only_childfor elements with a single child (#18717)fix: omit
bind:focusedfrom SSR output (it has no HTML attribute) (#18724)fix: more robust rendering of Svelte custom element slots (#18710)
perf: optimize simple object destructuring in
@consttags (#18390)fix: properly apply static textarea value attribute during CSR (#18727)
fix: end a restored reaction context at the end of its synchronous segment (#18694)
fix: keep the dependencies of a reaction that throws, so deriveds it read are neither leaked nor stuck in their error (#18703)
fix: don't resurrect outroing elements when an ancestor block is paused and resumed (#18431)
perf: use
$.comment()for single-comment templates (#18714)chore: move
@types/trusted-typesto devDependencies (#18730)perf: store setters cache as
Setinstead ofArray(#18251)fix: transform derived assignments and select function bindings correctly during server-side rendering (#18669)
fix: keep boolean attributes with an empty string value when rendering attribute objects on the server (#18721)
fix: sync
SvelteURLport signal when the protocol setter clears the port (#18705)fix: block declaration tags and
{@const}on async values read inside closures (#18533)fix: avoid css tree-shaking for exported Snippet (#18540)
perf: treat
<img loading>as a static element again (#18711)fix: prevent
selectedcontentmutation from changing the selected option (#18495)fix: avoid
NaNkeyframe values inslidetransition for elements without a layout box (#18430)fix: preserve line feed character references in attribute values (#18691)
fix: decode uppercase-
Xhex numeric character references (&#X...;) (#18708)chore: clarify when
$effect.preruns relative to DOM updates (#18534)fix: scope SSR boundary failed snippets to their boundary (#18593)
v5.56.10Compare Source
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)
v5.56.9Compare Source
Patch Changes
fix: skip controlled each fast path while another batch is pending (#18625)
fix: better whitespace handling inside printer (#18638)
fix: don't duplicate comments in attributes (#18636)
fix: preserve CSS comments in the AST printer (#18637)
v5.56.8Compare Source
Patch Changes
fix: call
onerrorand provide a workingresetwhen hydrating a failed boundary (#18556)fix: preserve select selection when spread attributes omit value (#18561)
v5.56.7Compare Source
Patch Changes
indentoption forprint(#18474)v5.56.6Compare Source
Patch Changes
perf: skip unnecessary blocker analysis when compiling components without top-level await (#18548)
fix: rerun derived that had an abort controller on reconnection (#18551)
v5.56.5Compare Source
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)
v5.56.4Compare Source
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)v5.56.3Compare Source
Patch Changes
fix: ignore errors that occur in destroyed effects (#18384)
fix: type BigInts in
$state.snapshot(...)return values (#18388)v5.56.2Compare Source
Patch Changes
fix: properly track effect end node for async sibling component (#18371)
fix: prevent false-positive reactivity loss warning (#18373)
chore: bump esrap dependency (#18372)
fix: ignore declaration tags for animation directive (#18366)
fix: reject pending async deriveds on discard (#18308)
v5.56.1Compare Source
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)
v5.56.0Compare Source
Minor Changes
Patch Changes
perf: use
createElementinstead ofcreateElementNSfor HTML elements (#18262)perf: store
current_sourcesas aSetfor O(1) membership checks (#18278)perf: deduplicate identical hoisted templates within a component (#18320)
perf: hoist
rest_propsexclude list as a module-scopeSet(#18252)v5.55.10Compare Source
Patch Changes
fix: unlink errored and otherwise finished batch (#18264)
perf: walk composedPath() directly in delegated event propagation (#18268)
fix: transfer effects when merging batches (#18254)
fix: allow
$derived(await ...)in disconnected effect roots (#18273)fix: remove temporary raw-text hydration markers (#18269)
fix: propagate async
@constblockers through closure references so template expressions like{(() => host)()}correctly wait for the awaited value (#18309)fix: properly unlink batches (#18298)
fix: settle discarded batch (#18290)
fix: declare
let:directives before{@const}declarations on slotted elements (#18271)fix: resume outro-ed branches if they were kept around (#18291)
fix: avoid waterfall-warning when async resolves to same value (#18297)
fix: correctly coordinate component-level effects inside async blocks (#18260)
fix: make unnecessary commit work less likely (#18263)
chore: add tag name to
a11y_click_events_have_key_eventswarning (#18272)fix: catch rejected promises while merging/committing (#18266)
v5.55.9Compare Source
Patch Changes
fix: don't unset batch when calling
{#await ...}promise (#18243)fix: promise-ify
{#await await ...}expressions on the server and correctly hydrate them on the client (#18243)fix: deduplicate dependencies that are added outside the init/update cycle (#18243)
fix: avoid false-positive batch invariant error (#18246)
fix: inline primitive constants in attribute values during SSR (#18232)
v5.55.8Compare Source
Patch Changes
fix(print): handle
svelte:bodyand fix keyframe percentage double-printing (#18234)fix: execute uninitialized derived even if it's destroyed (#18228)
fix: use named symbols everywhere (#18238)
fix: don't run teardown effects when deriveds are unfreezed (#18227)
fix: unset context synchronously in
run(#18236)v5.55.7Compare Source
Patch Changes
fix: prevent XSS on
hydratablefrom user contents (a16ebc67bbcf8f708360195687e1b2719463e1a4)chore: bump devalue (#18219)
fix: disallow empty attribute names during SSR (
547853e2406a2147ad7fb5ffeba95b01bd9642da)fix: harden regex (
d2375e2ebcab5c88feb5652f1a9d621b8f06b259)fix: move Svelte runtime properties to symbols (
e1cbbd96441e82c9eb8a23a2903c0d06d3cda991)v5.55.6Compare Source
Patch Changes
fix: leave stale promises to wait for a later resolution, instead of rejecting (#18180)
fix: keep dependencies of
$state.eager/pending(#18218)fix: reapply context after transforming error during SSR (#18099)
fix: don't rebase just-created batches (#18117)
chore: allow
nullforpendingin typings (#18201)fix: flush eager effects in production (#18107)
fix: rethrow error of failed iterable after calling
return()(#18169)fix: account for proxified inst
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.