chore(deps): update dependency svelte to v5 #131
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.
This PR contains the following updates:
^4.0.0->^5.0.0Release Notes
sveltejs/svelte (svelte)
v5.42.2Compare Source
Patch Changes
fix: better error message for global variable assignments (#17036)
chore: tweak memoizer logic (#17042)
v5.42.1Compare Source
Patch Changes
discard()aftercommit()(#17034)v5.42.0Compare Source
Minor Changes
forkAPI (#17004)Patch Changes
fix: always allow
setContextbefore first await in component (#17031)fix: less confusing names for inspect errors (#17026)
v5.41.4Compare Source
Patch Changes
fix: take into account static blocks when determining transition locality (#17018)
fix: coordinate mount of snippets with await expressions (#17021)
fix: better optimization of await expressions (#17025)
fix: flush pending changes after rendering
failedsnippet (#16995)v5.41.3Compare Source
Patch Changes
chore: exclude vite optimized deps from stack traces (#17008)
perf: skip repeatedly traversing the same derived (#17016)
v5.41.2Compare Source
Patch Changes
fix: keep batches alive until all async work is complete (#16971)
fix: don't preserve reactivity context across function boundaries (#17002)
fix: make
$inspectlogs come from the callsite (#17001)fix: ensure guards (eg. if, each, key) run before their contents (#16930)
v5.41.1Compare Source
Patch Changes
fix: place
let:declarations before{@​const}declarations (#16985)fix: improve
each_key_without_aserror (#16983)chore: centralise branch management (#16977)
v5.41.0Compare Source
Minor Changes
$state.eager(value)rune (#16849)Patch Changes
fix: preserve
<select>state while focused (#16958)chore: run boundary async effects in the context of the current batch (#16968)
fix: error if
eachblock haskeybut noasclause (#16966)v5.40.2Compare Source
Patch Changes
pendingbranch of SSR boundary (#16965)v5.40.1Compare Source
Patch Changes
v5.40.0Compare Source
Minor Changes
createContextutility for type-safe context (#16948)Patch Changes
chore: simplify
batch.apply()(#16945)fix: don't rerun async effects unnecessarily (#16944)
v5.39.13Compare Source
Patch Changes
fix: add missing type for
frattribute forradialGradienttags in svg (#16943)fix: unset context on stale promises (#16935)
v5.39.12Compare Source
Patch Changes
fix: better input cursor restoration for
bind:value(#16925)fix: track the user's getter of
bind:this(#16916)fix: generate correct SSR code for the case where
pendingis an attribute (#16919)fix: generate correct code for
eachblocks with async body (#16923)v5.39.11Compare Source
Patch Changes
v5.39.10Compare Source
Patch Changes
fix: hydrate each blocks inside element correctly (#16908)
fix: allow await in if block consequent and alternate (#16890)
fix: don't replace rest props with
$$propsfor excluded props (#16898)fix: correctly transform
$derivedprivate fields on server (#16894)fix: add
UNKNOWNevaluation value before breaking forbinding.initial===SnippetBlock(#16910)v5.39.9Compare Source
Patch Changes
v5.39.8Compare Source
Patch Changes
fix: check boundary
pendingattribute at runtime on server (#16855)fix: preserve tuple type in
$state.snapshot(#16864)fix: allow await in svelte:boundary without pending (#16857)
fix: update
bind:checkederror message to clarify usage with radio inputs (#16874)v5.39.7Compare Source
Patch Changes
chore: simplify batch logic (#16847)
fix: rebase pending batches when other batches are committed (#16866)
fix: wrap async
childrenin$$renderer.async(#16862)fix: silence label warning for buttons and anchor tags with title attributes (#16872)
fix: coerce nullish
<title>to empty string (#16863)v5.39.6Compare Source
Patch Changes
fix: depend on reads of deriveds created within reaction (async mode) (#16823)
fix: SSR regression of processing attributes of
<select>and<option>(#16821)fix: async
class:+ spread attributes were compiled into sync server-side code (#16834)fix: ensure tick resolves within a macrotask (#16825)
v5.39.5Compare Source
Patch Changes
fix: allow
{@​html await ...}and snippets with async content on the server (#16817)fix: use nginx SSI-compatible comments for
$props.id()(#16820)v5.39.4Compare Source
Patch Changes
awaitin<script>(#16806)v5.39.3Compare Source
Patch Changes
fix: remove outer hydration markers (#16800)
fix: async hydration (#16797)
v5.39.2Compare Source
Patch Changes
fix: preserve SSR context when block expressions contain
await(#16791)chore: bump some devDependencies (#16787)
v5.39.1Compare Source
Patch Changes
fix: add missing type for
frattribute forradialGradienttags in svg (#16943)fix: unset context on stale promises (#16935)
v5.39.0Compare Source
Minor Changes
Patch Changes
v5.38.10Compare Source
Patch Changes
v5.38.9Compare Source
Patch Changes
chore: generate CSS hash using the filename (#16740)
fix: correctly analyze
<object.property>components (#16711)fix: clean up scheduling system (#16741)
fix: transform input defaults from spread (#16481)
fix: don't destroy contents of
svelte:boundaryunless the boundary is an error boundary (#16746)v5.38.8Compare Source
Patch Changes
$effect.pendingcount to the correct boundary (#16732)v5.38.7Compare Source
Patch Changes
fix: replace
undefinedwithvoid(0)in CallExpressions (#16693)fix: ensure batch exists when resetting a failed boundary (#16698)
fix: place store setup inside async body (#16687)
v5.38.6Compare Source
Patch Changes
flushSyncwhile flushing effects (#16674)v5.38.5Compare Source
Patch Changes
v5.38.3Compare Source
Patch Changes
fix: ensure correct order of template effect values (#16655)
fix: allow async
{@​const}in more places (#16643)fix: properly catch top level await errors (#16619)
perf: prune effects without dependencies (#16625)
fix: only emit
for_await_track_reactivity_lossin async mode (#16644)v5.38.2Compare Source
Patch Changes
perf: run blocks eagerly during flush instead of aborting (#16631)
fix: don't clone non-proxies in
$inspect(#16617)fix: avoid recursion error when tagging circular references (#16622)
v5.38.1Compare Source
Patch Changes
v5.38.0Compare Source
Minor Changes
awaitinside@constdeclarations (#16542)Patch Changes
fix: remount at any hydration error (#16248)
chore: emit
await_reactivity_lossinfor awaitloops (#16521)fix: emit
snippet_invalid_exportinstead ofundefined_exportfor exported snippets (#16539)v5.37.3Compare Source
Patch Changes
v5.37.2Compare Source
Patch Changes
fix: double event processing in firefox due to event object being garbage collected (#16527)
fix: add bindable dimension attributes types to SVG and MathML elements (#16525)
fix: correctly differentiate static fields before emitting
duplicate_class_field(#16526)fix: prevent last_propagated_event from being DCE'd (#16538)
v5.37.1Compare Source
Patch Changes
chore: remove some todos (#16515)
fix: allow await expressions inside
{#await ...}argument (#16514)fix:
append_stylesin an effect to make them available on mount (#16509)chore: remove
parser.template_untrimmed(#16511)fix: always inject styles when compiling as a custom element (#16509)
v5.37.0Compare Source
Minor Changes
compileModule(#16362)Patch Changes
v5.36.17Compare Source
Patch Changes
fix: throw on duplicate class field declarations (#16502)
fix: add types for
partattribute to svg attributes (#16499)v5.36.16Compare Source
Patch Changes
fix: don't update a focused input with values from its own past (#16491)
fix: don't destroy effect roots created inside of deriveds (#16492)
v5.36.15Compare Source
Patch Changes
v5.36.14Compare Source
Patch Changes
fix: keep input in sync when binding updated via effect (#16482)
fix: rename form accept-charset attribute (#16478)
fix: prevent infinite async loop (#16482)
fix: exclude derived writes from effect abort and rescheduling (#16482)
v5.36.13Compare Source
Patch Changes
v5.36.12Compare Source
Patch Changes
capture_signalsto legacy module (#16456)v5.36.10Compare Source
Patch Changes
v5.36.9Compare Source
Patch Changes
fix: don't reexecute derived with no dependencies on teardown (#16438)
fix: disallow
export { foo as default }in<script module>(#16447)fix: move ownership validation into async component body (#16449)
fix: allow async destructured deriveds (#16444)
fix: move store setup/cleanup outside of async component body (#16443)
v5.36.8Compare Source
Patch Changes
fix: keep effect in the graph if it has an abort controller (#16430)
chore: Switch
payload.outto an array (#16428)v5.36.7Compare Source
Patch Changes
<svelte:...>elements to inherit fromSvelteHTMLElements(#16424)v5.36.6Compare Source
Patch Changes
fix: delegate functions with shadowed variables if declared locally (#16417)
fix: handle error in correct boundary after reset (#16171)
fix: make
<svelte:boundary>reset function a noop after the first call (#16171)v5.36.5Compare Source
Patch Changes
fix: silence
$inspecterrors when the effect is about to be destroyed (#16391)fix: more informative error when effects run in an infinite loop (#16405)
v5.36.4Compare Source
Patch Changes
fix: avoid microtask in flushSync (#16394)
fix: ensure compiler state is reset before compilation (#16396)
v5.36.3Compare Source
Patch Changes
fix: don't log
await_reactivity_losswarning when signal is read inuntrack(#16385)fix: better handle $inspect on array mutations (#16389)
fix: leave proxied array
lengthuntouched when deleting properties (#16389)fix: update
$effect.pending()immediately after a batch is removed (#16382)v5.36.2Compare Source
Patch Changes
fix: add
$effect.pending()to types (#16376)fix: add
pendingsnippet to<svelte:boundary>types (#16379)v5.36.1Compare Source
Patch Changes
fix: throw on duplicate class field declarations (#16502)
fix: add types for
partattribute to svg attributes (#16499)v5.36.0Compare Source
Minor Changes
awaitin components when using theexperimental.asynccompiler option (#15844)Patch Changes
fix: silence a11y warning for inert elements (#16339)
chore: clean up a11y analysis code (#16345)
v5.35.7Compare Source
Patch Changes
fix: silence autofocus a11y warning inside
<dialog>(#16341)fix: don't show adjusted error messages in boundaries (#16360)
chore: replace inline regex with variable (#16340)
v5.35.6Compare Source
Patch Changes
chore: simplify reaction/source ownership tracking (#16333)
chore: simplify internal component
pop()(#16331)v5.35.5Compare Source
Patch Changes
fix: associate sources in Spring/Tween/SvelteMap/SvelteSet with correct reaction (#16325)
fix: re-evaluate derived props during teardown (#16278)
v5.35.4Compare Source
Patch Changes
v5.35.3Compare Source
Patch Changes
fix: account for mounting when
select_optioninattribute_effect(#16309)fix: do not proxify the value assigned to a derived (#16302)
v5.35.2Compare Source
Patch Changes
v5.35.1Compare Source
Patch Changes
__svelte_metaobjects (#16255)v5.35.0Compare Source
Minor Changes
getAbortSignal()(#16266)Patch Changes
v5.34.9Compare Source
Patch Changes
v5.34.8Compare Source
Patch Changes
fix: untrack
$inspect.withand add check for unsafe mutation (#16209)fix: use fine grained for template if the component is not explicitly in legacy mode (#16232)
lift unsafe_state_mutation constraints for SvelteSet, SvelteMap, SvelteDate, SvelteURL and SvelteURLSearchParams created inside the derived (#16221)
v5.34.7Compare Source
Patch Changes
v5.34.6Compare Source
Patch Changes
v5.34.5Compare Source
Patch Changes
fix: keep spread non-delegated event handlers up to date (#16180)
fix: remove undefined attributes on hydration (#16178)
fix: ensure sources within nested effects still register correctly (#16193)
fix: avoid shadowing a variable in dynamic components (#16185)
v5.34.4Compare Source
Patch Changes
fix: don't set state withing
with_parentin proxy (#16176)fix: use compiler-driven reactivity in legacy mode template expressions (#16100)
v5.34.3Compare Source
Patch Changes
fix: don't eagerly execute deriveds on resume (#16150)
fix: prevent memory leaking signals in legacy mode (#16145)
fix: don't define
error.messageif it's not configurable (#16149)v5.34.2Compare Source
Patch Changes
fix: add missing typings for some dimension bindings (#16142)
fix: prune typescript class field declarations (#16154)
v5.34.1Compare Source
Patch Changes
v5.34.0Compare Source
Minor Changes
$inspect.trace(#16060)Patch Changes
fix: add
commandandcommandfortoHTMLButtonAttributes(#16117)fix: better
$inspect.trace()output (#16131)fix: properly hydrate dynamic css props components and remove element removal (#16118)
v5.33.19Compare Source
Patch Changes
is_flushingifflushSyncis called and there's no scheduled effect (#16119)v5.33.18Compare Source
Patch Changes
chore: bump
esrapdependency (#16106)fix: destructuring state in ssr (#16102)
v5.33.17Compare Source
Patch Changes
ecmaVersionto parse import attributes (#16098)v5.33.16Compare Source
Patch Changes
fix: visit expression when destructuring state declarations (#16081)
fix: move xmlns attribute from SVGAttributes to to DOMAttributes (#16080)
v5.33.15Compare Source
Patch Changes
v5.33.14Compare Source
Patch Changes
Revert "feat: enable TS autocomplete for Svelte HTML element definitions" (#16063)
fix: destructuring snippet arguments (#16068)
v5.33.13Compare Source
Patch Changes
EachBlockvisitor (#16058)v5.33.12Compare Source
Patch Changes
v5.33.11Compare Source
Patch Changes
v5.33.10Compare Source
Patch Changes
fill: 'forwards'on transition animations to prevent flicker (#16035)v5.33.9Compare Source
Patch Changes
v5.33.8Compare Source
Patch Changes
select_optionif'value'is innext(#16032)v5.33.7Compare Source
Patch Changes
bind:valueto select with stores (#16028)v5.33.6Compare Source
Patch Changes
fix: falsy attachments on components (#16021)
fix: correctly mark elements as selected during SSR (#16017)
v5.33.5Compare Source
Patch Changes
fix: handle derived destructured iterators (#16015)
fix: avoid rerunning attachments when unrelated spread attributes change (#15961)
v5.33.4Compare Source
Patch Changes
fix: narrow
defaultCheckedto boolean (#16009)fix: warn when using rest or identifier in custom elements without props option (#16003)
v5.33.3Compare Source
Patch Changes
fix: allow using typescript in
customElement.extendoption (#16001)fix: cleanup event handlers on media elements (#16005)
v5.33.2Compare Source
Patch Changes
fix: correctly parse escaped unicode characters in css selector (#15976)
fix: don't mark deriveds as clean if updating during teardown (#15997)
v5.33.1Compare Source
Patch Changes
is_flushingifflushSyncis called and there's no scheduled effect (#16119)v5.33.0Compare Source
Minor Changes
feat: XHTML compliance (#15538)
feat: add
fragments: 'html' | 'tree'option for wider CSP compliance (#15538)v5.32.2Compare Source
Patch Changes
chore: simplify
<pre>cleaning (#15980)fix: attach
__svelte_metacorrectly to elements following a CSS wrapper (#15982)fix: import untrack directly from client in
svelte/attachments(#15974)v5.32.1Compare Source
Patch Changes
<select multiple>value is given (#14816)v5.32.0Compare Source
Minor Changes
feat: warn on implicitly closed tags (#15932)
feat: attachments
fromActionutility (#15933)Patch Changes
v5.31.1Compare Source
Patch Changes
MediaQuery(#15937)v5.31.0Compare Source
Minor Changes
Patch Changes
AttachTaginTagunion type inside theASTnamespace from"svelte/compiler"(#15946)v5.30.2Compare Source
Patch Changes
fix: falsy attachments types (#15939)
fix: handle more hydration mismatches (#15851)
v5.30.1Compare Source
Patch Changes
typeParamstoSnippetBlockfor legacy parser (#15921)v5.30.0Compare Source
Minor Changes
v5.29.0Compare Source
Minor Changes
v5.28.7Compare Source
Patch Changes
fix: remove unncessary guards that require CSP privilege when removing event attributes (#15846)
fix: rewrite destructuring logic to handle iterators (#15813)
v5.28.6Compare Source
Patch Changes
fix: use
transform.readforownership_validator.mutationarray (#15848)fix: don't redeclare
$slots(#15849)v5.28.5Compare Source
Patch Changes
fix: proxify the value in assignment shorthands to the private field (#15862)
fix: more frequently update
bind:bufferedto actual value (#15874)v5.28.4Compare Source
Patch Changes
fix: treat nullish expression as empty string (#15901)
fix: prevent invalid BigInt calls from blowing up at compile time (#15900)
fix: warn on bidirectional control characters (#15893)
fix: emit right error for a shadowed invalid rune (#15892)
v5.28.3Compare Source
Patch Changes
chore: avoid microtasks when flushing sync (#15895)
fix: improve error message for migration errors when slot would be renamed (#15841)
fix: allow characters in the supplementary special-purpose plane (#15823)
v5.28.2Compare Source
Patch Changes
:globalwith multiple items as unused (#15817)v5.28.1Compare Source
Patch Changes
<svelte:boundary>properly removes error content in production mode ([#15793](https://redireConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, 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.