Commit Graph

3347 Commits (oxfmt2)

Author SHA1 Message Date
Simon H 669f6b45a3
fix: prevent hydration error on async `{@html ...}` (#17999)
5 months ago
Simon H 5e8662fb23
chore: lots of async tests (#17997)
5 months ago
github-actions[bot] 6e52f40d41
Version Packages (#17984)
5 months ago
Simon H 1773cb5b59
fix: ensure HMR wrapper forwards correct start/end nodes to active effect (#17985)
5 months ago
moaaz a94924b677
fix: export TweenOptions, SpringOptions, SpringUpdateOptions and Updater from svelte/motion (#17967)
5 months ago
github-actions[bot] db69b7e345
Version Packages (#17965)
5 months ago
Abishek Raj R R 7123bf3a13
fix: remove trailing semicolon from {@const} tag printer (#17962)
5 months ago
Nitin Sahu 8e4de9b145
fix: null out effect.b in destroy_effect to prevent memory leak (#17980)
5 months ago
Simon H 6b33dd2a1e
fix: group sync statements (#17977)
5 months ago
Paolo Ricciuti 425fba33fe
fix: hydration comments during hmr (#17975)
5 months ago
Simon H 803c565feb
fix: properly invoke `iterator.return()` during reactivity loss check (#17966)
5 months ago
Rich Harris 0adc22c9ae
fix: defer batch resolution until earlier intersecting batches have committed (#17162)
5 months ago
github-actions[bot] 7ec156a7b0
Version Packages (#17953)
5 months ago
Rich Harris c89f6abae8
feat: allow `css`, `runes`, `customElement` compiler options to be functions (#17951)
5 months ago
Rich Harris 5faf102782
fix: reinstate reactivity loss tracking (#17801)
5 months ago
github-actions[bot] 6a303c3638
Version Packages (#17936)
5 months ago
Simon H f081a6c3b1
fix: resume inert effects when they come from offscreen (#17942)
5 months ago
Rich Harris 1cd06451af
fix: remove nodes in boundary when work is pending and HMR is active (#17932)
5 months ago
Simon H 32a48ed174
fix: don't eagerly access not-yet-initialized functions in template (#17938)
5 months ago
Simon H b472171de6
fix: ensure `$inspect` after top level await doesn't break builds (#17943)
5 months ago
Simon H d4bd6ad8f3
fix: ensure "is standalone child" is correctly reset (#17944)
5 months ago
Rich Harris 98e8b635fa
fix: discard batches made obsolete by commit (#17934)
5 months ago
github-actions[bot] 8b86bdd82d
Version Packages (#17919)
5 months ago
Simon H dcf4865b22
chore: add "untracked allows writes" test (#17930)
5 months ago
Simon H 1ebed68322
fix: avoid traversing clean roots (#17928)
5 months ago
Conduitry 965f2a0ac8
fix: handle async RHS in assignment_value_stale (#17925)
5 months ago
Rich Harris a513da0445
chore: add invariant utility (#17929)
5 months ago
Apoorv Darshan 3dbd95075c
fix: keep select.__value current when effect is deferred (#17745)
5 months ago
Rich Harris ad94009e34
chore: add autofix workflow (#17922)
5 months ago
Simon H 44c4f213e9
fix: ensure deriveds values are correct across batches (#17917)
5 months ago
dependabot[bot] 63686ae22c
chore(deps): bump devalue from 5.6.3 to 5.6.4 (#17916)
5 months ago
github-actions[bot] bd433c5ceb
Version Packages (#17901)
5 months ago
Rich Harris 7c9ff8fc69
fix: resolve boundary in correct batch when hydrating (#17914)
5 months ago
Rich Harris 667896a753
fix: recover from errors that leave a corrupted effect tree (#17888)
5 months ago
Paolo Ricciuti e4e089310d
fix: remove `untrack` circular dependency (#17910)
5 months ago
Conduitry 58f161dee2
fix: properly lazily evaluate RHS when checking for assignment_value_stale (#17906)
5 months ago
Rich Harris 0e8f49b25f
chore: rebase batches after process, not during (#17900)
5 months ago
github-actions[bot] 72cd247c33
Version Packages (#17896)
5 months ago
Simon H 342d8568f1
fix: re-process batch if new root effects were scheduled (#17895)
5 months ago
github-actions[bot] d54361b97f
Version Packages (#17886)
5 months ago
Simon H be36c934c4
fix: better `bind:this` cleanup timing (#17885)
5 months ago
github-actions[bot] d2b347042c
Version Packages (#17854)
5 months ago
Simon H 1892988074
fix: don't access inert block effects (#17882)
5 months ago
Simon H 1304208970
fix: set deferreds on initial suspense, too (#17884)
5 months ago
Rich Harris 6fb7b4d265
chore: refactor scheduling (#17805)
5 months ago
Simon H 2deebdea8f
fix: handle asnyc updates within pending boundary (#17873)
5 months ago
dev-miro26 0206a2019e
fix: clean up externally-added DOM nodes in {@html} on re-render (#17853)
5 months ago
Rich Harris 3df2645451
chore: deactivate batch after async derived resolves (#17865)
5 months ago
Rich Harris 2a1f5ada13
perf: avoid re-traversing the effect tree after `$:` assignments (#17848)
5 months ago
Rich Harris 7dc864d941
Revert "fix: skip derived re-evaluation inside inert effect blocks" (#17869)
5 months ago
Rich Harris aed36051fd
chore: robustify `flatten` (#17864)
5 months ago
Rich Harris 9066b75c01
chore: tidy up (#17863)
5 months ago
Rich Harris e3f06f9fc7
fix: skip derived re-evaluation inside inert effect blocks (#17852)
5 months ago
github-actions[bot] 25a1c5368b
Version Packages (#17842)
6 months ago
Philip Breuer b7bc1309aa
fix: preserve original boundary errors when keyed each rows are removed during async updates (#17843)
6 months ago
Mathias Picker 0965028d3b
perf: optimize CSS selector pruning (#17846)
6 months ago
Mathias Picker 32111f9e84
perf: avoid O(n²) name scanning in scope generate/unique (#17844)
6 months ago
Rich Harris 2f12b60701
chore: avoid reschedule during branch commit (#17837)
6 months ago
Rich Harris 00dc13db14
chore: highlight effect in tree (#17835)
6 months ago
Rich Harris 86ec210866
fix: correctly add `__svelte_meta` after else-if chains (#17830)
6 months ago
Rich Harris 7717ba01b4
fix: preserve each items that are needed by pending batches (#17819)
6 months ago
Mathias Picker 791d5e332c
perf: cache element interactivity and source line splitting (#17839)
6 months ago
Rich Harris 4aa3777271
chore: better log_effect_tree (#17833)
6 months ago
Rich Harris 15e1e73f9c
chore: add `batch.id` property (#17831)
6 months ago
github-actions[bot] d4c78292ed
Version Packages (#17812)
6 months ago
Mathias Picker 361b32c7cd
fix: SvelteURL search setter uses unnormalized value (#17828)
6 months ago
Mathias Picker 1043f79d1e
perf: optimize compiler analysis phase (#17823)
6 months ago
Paolo Ricciuti b6faa2a905
fix: always case insensitive event handlers during ssr (#17822)
6 months ago
Paolo Ricciuti e3d277b000
fix: visit synthetic value node during ssr (#17824)
6 months ago
Mathias Picker 18db0cab86
fix: SvelteMap incorrectly handles keys with `undefined` values (#17826)
6 months ago
Rich Harris 3fc4bc6774
chore: remove unused is_flushing variable (#17820)
6 months ago
Rich Harris 16a13517ef
fix: skip redundant batch.apply (#17816)
6 months ago
Rich Harris 04ba134d33
docs: flesh out `attribute_invalid_sequence_expression` message (#17789)
6 months ago
dependabot[bot] fc67c9cfe9
chore(deps-dev): bump rollup from 4.52.5 to 4.59.0 (#17810)
6 months ago
Mathias Picker efb651cd33
perf: optimize parser hot paths for ~18% faster compilation (#17811)
6 months ago
Rich Harris dd5b587bd3
chore: simplify batch.flush (#17814)
6 months ago
Rich Harris 5e28508377
chore: simplify create effect (#17813)
6 months ago
Rich Harris 5bd4699539
chore: more efficient effect scheduling (#17808)
6 months ago
Rich Harris b76cd5cafc
chore: null out current_batch before committing branches (#17809)
6 months ago
Elliott Johnson fa4f1c45f4
chore: run `prettier` (#17803)
6 months ago
github-actions[bot] ed14b499d6
Version Packages (#17802)
6 months ago
Paolo Ricciuti 0df5abcae2
Merge commit from fork
6 months ago
Elliott Johnson 0298e97937
Merge commit from fork
6 months ago
github-actions[bot] 96fd3ce763
Version Packages (#17786)
6 months ago
Simon H 1b3e660519
fix: prevent flushed effects from running again (#17787)
6 months ago
Simon H 673a1ab964
fix: set server context after async transformError (#17799)
6 months ago
Maurício Kishi 3a289797bd
fix: handle default parameters scope leaks (#17788)
6 months ago
Simon H fcdc0289db
fix: hydrate if blocks correctly (#17784)
6 months ago
github-actions[bot] 97f3ac5571
Version Packages (#17775)
6 months ago
Simon H 7deedc5bb4
fix: render `:catch` of `#await` block with correct key (#17769)
6 months ago
Paolo Ricciuti f67d03df5b
fix: make string coercion consistent to `toString` (#17774)
6 months ago
Conduitry 4e29eee4b0
chore: pin aria-query@5.3.1 (#17772)
6 months ago
github-actions[bot] 69e6c4cdbb
Version Packages (#17768)
6 months ago
Conduitry d75d1f7dbb
fix: further obfuscate `node:crypto` import from overzealous static analysis (#17763)
6 months ago
Paolo Ricciuti 6aa7b9c64a
fix: update expressions on server deriveds (#17767)
6 months ago
github-actions[bot] d258f85235
Version Packages (#17755)
6 months ago
Simon H 0c7f815143
fix: handle shadowed function names correctly (#17753)
6 months ago
Simon H 7106da4dd2
chore: fix changelog (#17754)
6 months ago
github-actions[bot] c2fc95a467
Version Packages (#17747)
6 months ago
Rich Harris 92e2fc1209
feat: allow comments in tags (#17671)
6 months ago
Simon H 2661513cd3
feat: allow error boundaries to work on the server (#17672)
6 months ago
Simon H 582e4443dc
fix: ensure head effects are kept in the effect tree (#17746)
6 months ago
Rich Harris f8bf9bb461
chore: deactivate current_batch by default in unset_context (#17738)
6 months ago
Rich Harris 696d97ff3e
fix: use TrustedHTML to test for customizable <select> support, where necessary (#17743)
6 months ago
github-actions[bot] cbf4e246fc
Version Packages (#17742)
6 months ago
Rich Harris 09c4cb5084
fix: re-run non-render-bound deriveds on the server (#17674)
6 months ago
Rich Harris be24b0dca7
feat: support TrustedHTML in {@html} expressions (#17701)
6 months ago
Simon H 9f48e7620f
fix: repair dynamic component truthy/falsy hydration mismatches (#17737)
6 months ago
github-actions[bot] 8ea33bf7fe
Version Packages (#17740)
6 months ago
Elliott Johnson f855a0b770
fix: misc option escaping and backwards compatibility (#17741)
6 months ago
Elliott Johnson 781052eeab
chore: upgrade `devalue` (#17739)
6 months ago
Paolo Ricciuti f7c80da18c
Merge commit from fork
6 months ago
Elliott Johnson a0c7f28915
Merge commit from fork
6 months ago
Elliott Johnson 73098bb26c
Merge commit from fork
6 months ago
Elliott Johnson f89c7ddd7e
Merge commit from fork
6 months ago
github-actions[bot] b8f2b86105
Version Packages (#17733)
6 months ago
Rich Harris c83aa06d69
chore: proactively defer effects in pending boundary (#17734)
6 months ago
Rich Harris 2287ad005a
fix: detect and error on non-idempotent each block keys in dev mode (#17732)
6 months ago
Rich Harris 3f6521df0e
chore: unify async logic (#17731)
6 months ago
Rich Harris bd4ba56932
chore: make batch.is_deferred a private method (#17729)
6 months ago
github-actions[bot] 04c0368aa8
Version Packages (#17725)
6 months ago
Rich Harris e47c747338
fix: prevent event delegation logic conflicting between svelte instances (#17728)
6 months ago
Varun Chawla 60a425193c
fix: treat CSS attribute selectors as case-insensitive for HTML enumerated attributes (#17712)
6 months ago
Rich Harris 6557a0a591
fix: run effects in pending snippets (#17719)
6 months ago
7nik ff70ab1b76
fix: locate Rollup annontaion friendly to JS downgraders (#17724)
6 months ago
github-actions[bot] 82265f1496
Version Packages (#17711)
6 months ago
Copilot dd9fc0d1ad
Warn on non-destructured `$props()` reads in runes mode (#17708)
6 months ago
Paolo Ricciuti 01f1937a98
fix: take async into consideration for dev delegated handlers (#17710)
6 months ago
github-actions[bot] 7299ffc39f
Version Packages (#17704)
6 months ago
7nik 743d52a893
fix: don't crash on undefined `document.contentType` (#17707)
6 months ago
Rich Harris 220b526d3a
fix: use symbols for encapsulated event delegation (#17703)
6 months ago
github-actions[bot] 7b6755eaf6
Version Packages (#17693)
6 months ago
jyc.dev 86d5522096
fix: follow-up formatting in `print()` for block-level elements (#17699)
6 months ago
Abdelrahman 0565dca1f7
fix: implement ref counting for mount with same target (#17695)
6 months ago
Jay Harris 6c15e711e2
[fix]: Add support for TrustedTypes in Svelte (#16271)
6 months ago
Elliott Johnson 75e1992141
fix: sanitize template-literal-special-characters in SSR attribute values (#17692)
6 months ago
github-actions[bot] c1c664df93
Version Packages (#17681)
6 months ago
Razin Shafayet 45a796b327
fix: propagate `$effect` errors to `<svelte:boundary>` (#17684)
6 months ago
7nik b657029687
fix: take into account `nodeName` case sensitivity on XHTML pages (#17689)
6 months ago
Rich Harris 4eee2f7c92
fix: freeze effects-inside-deriveds when disconnecting, unfreeze on reconnect (#17682)
6 months ago
Rich Harris 9400689e1c
chore: use create_element everywhere (#17683)
6 months ago
Rich Harris bcd170ceb0
fix: always lowercase HTML elements, for XHTML compliance (#17664)
6 months ago
github-actions[bot] 015e744962
Version Packages (#17668)
6 months ago
Artyom Alekseevich 684cdba253
fix: resolve effect_update_depth_exceeded with select bind:value in legacy mode (#17645)
6 months ago
Manuel 3c6bb6faba
chore: provide proper public type for `parseCss` result (#17654)
6 months ago
Simon H b0ca0b84de
fix: robustify blocker calculation (#17676)
6 months ago
Rich Harris e3d7f3986f
chore: update ESLint to v10 (#17670)
6 months ago
Mohit Kourav 15fe6b85c0
feat: add warning when media.play() fails in bind:paused (#17656)
6 months ago
Simon H bd5480b9d0
fix: reduce if block nesting (#17662)
6 months ago
github-actions[bot] 35c845e35d
Version Packages (#17653)
6 months ago
Mohit Kourav 67c4a38117
docs: add explanatory comments to empty catch blocks (#17651)
6 months ago
Simon H 0a404c9863
fix: prevent async render tag hydration mismatches (#17652)
6 months ago
Rich Harris d047bc6e2a
fix: render boolean attribute values as empty strings for XHTML compliance (#17648)
6 months ago
7nik 9749ee869c
chore: add xhtml tests (#17597)
6 months ago
github-actions[bot] bb00d5b6e7
Version Packages (#17615)
6 months ago
Andrew Aquino 863c9d6875
chore: wrap JSDoc URLs in @see and @link tags (#17617)
6 months ago
Rich Harris 57cb393796
fix: allow NaN in key blocks (#17642)
6 months ago
Rich Harris bd7b8aa108
chore: fix broken css test (#17644)
6 months ago
Artyom Alekseevich f71a6813b7
fix: treat menu element like ul/ol for a11y role checks (#17638)
6 months ago
Artyom Alekseevich 4453e4895d
fix: fix spelling errors in media-query and test file (#17628)
6 months ago
Artyom Alekseevich 0c715afdab
fix: correct spelling errors in test files (#17630)
6 months ago
Artyom Alekseevich 989492f057
fix: use "set up" (verb) instead of "setup" (noun) in comments (#17632)
6 months ago
Rich Harris 6e5f2b157a
fix: exit resolved async blocks on correct node when hydrating (#17640)
6 months ago
Rich Harris bc44975869
fix: properly hydrate already-resolved async blocks (alternative) (#17641)
6 months ago
Rich Harris f5304ec8c9
chore: simplify SSR code (#17639)
6 months ago
Artyom Alekseevich a75866f34d
fix: detect store in each block expression regardless of AST shape (#17636)
6 months ago
Rich Harris fcbd3e325a
feat: allow use of createContext when instantiating components programmatically (#17575)
6 months ago
Rich Harris f05f946fea
fix: add vite-ignore comment inside dynamic crypto import (#17623)
6 months ago
7nik d7a8e3d130
fix: emit `each_key_duplicate` error in production (#16724)
6 months ago
Rich Harris 4f41e816ba
fix: ensure infinite effect loops are cleared after flushing (#17601)
6 months ago
github-actions[bot] eb63a6bbba
Version Packages (#17614)
6 months ago
Tee Ming 05229d9682
chore: remove SvelteKit data attributes from elements.d.ts (#17613)
6 months ago
Tee Ming baba15ab98
fix: avoid 'node:crypto' cloudflare warnings (#17612)
6 months ago
Simon H bc4dc1d10d
fix: avoid erroneous async derived expressions for blocks (#17604)
6 months ago
github-actions[bot] 92e6721c03
Version Packages (#17585)
7 months ago
FORMI 8933653fbe
fix: merge consecutive text nodes during hydration for large text content (#17587)
7 months ago
Rich Harris ebe583f2bb
fix: only create async functions in SSR output when necessary (#17593)
7 months ago
Antonio Bennett 5656dd569a
fix: handle renderer.run rejections (#17591)
7 months ago
7nik 704d0cd765
chore: allow testing in production env 2 (#17590)
7 months ago
Rich Harris 26b09ec420
chore: bump playwright (#17565)
7 months ago
7nik ffd65e90fe
chore: allow testing in production env (#16840)
7 months ago
Manuel 82fde88780
fix: `print()` multiline behaviour (#17319)
7 months ago
github-actions[bot] 9d1dd2e199
Version Packages (#17564)
7 months ago
Paolo Ricciuti 2d62ffee9c
fix: throw for unset `createContext` get on the server (#17580)
7 months ago
Rich Harris 1c131f11ca
fix: reset effects inside skipped branches (#17581)
7 months ago
Rich Harris 3608b3c869
fix: preserve old dependencies when updating reaction inside fork (#17579)
7 months ago
Rich Harris ece2e83eb9
fix: increment signal versions when discarding forks (#17577)
7 months ago
Rich Harris 37cd40d2e5
fix: more conservative assignment_value_stale warnings (#17574)
7 months ago
Razin Shafayet 3256a75b54
fix: ignore popover elements in a11y_consider_explicit_label check (#17367)
7 months ago
PandaMan 16fec7207a
fix: make onintrostart respect delay parameter (#17567)
7 months ago
Rich Harris 06e6ef83b8
failing test (#12791)
7 months ago
Dominik G. 975a5ec60a
fix invalid negative values in sourcemap column indexes (#17167)
7 months ago
Bladesheng 0cbf718aef
feat: allow passing `ShadowRootInit` to custom element `shadow` options (#17088)
7 months ago
github-actions[bot] 3d285f0ee4
Version Packages (#17560)
7 months ago
Rich Harris 30cea1f9a0
fix: run boundary `onerror` callbacks in a microtask, in case they result in the boundary's destruction (#17561)
7 months ago
Rich Harris 8c8a22add4
fix: prevent unintended exports from namespaces (#17562)
7 months ago
David 02b5d94b3a
fix: each block breaking with effects interspersed among items (#17550)
7 months ago
github-actions[bot] e9d580ed40
Version Packages (#17555)
7 months ago
Tee Ming 83eb9dac64
fix: avoid duplicating escaped characters when parsing styles (#17554)
7 months ago
github-actions[bot] 9662010a13
Version Packages (#17537)
7 months ago