Commit Graph

626 Commits (2087b3eafecaa88a51bb84fd7d29a75ad70d01f1)

Author SHA1 Message Date
Rich Harris 255eec7fff each test
10 months ago
Rich Harris ed348c6cab if blocks
10 months ago
Edoardo Cavazza d17f5c748d
fix: add check for is attribute (#15086)
10 months ago
Rich Harris c34e44f781 async props
10 months ago
Theodore Brown c2e805f05c
fix: consistently set value to blank string when value attribute is undefined (#15057)
10 months ago
Rich Harris 6ea6e2d724 merge main
10 months ago
Rich Harris 093a3bfd2c test
10 months ago
Trevor N. Suarez eee808fb79
fix: correctly handle `novalidate` attribute casing (#15083)
10 months ago
Paolo Ricciuti 7da86ef80c
fix: don't throw for `undefined` non delegated event handlers (#15087)
10 months ago
Rich Harris 9348259879 WIP
10 months ago
Rich Harris 085cdbadd6 fix
10 months ago
Rich Harris c73de77412 fix
10 months ago
Dominic Gannaway 09510c8c5c
fix: address regression with untrack (#15079)
10 months ago
Rich Harris bc873145e5 merge
10 months ago
Rich Harris 700029bd4d
fix: more efficient template effect grouping (#15050)
10 months ago
Rich Harris 1a72d285f6 tests
10 months ago
Rich Harris 53b639de83 fix
10 months ago
Rich Harris fa8d4596d2 adjust test (yes, this is _technically_ breaking)
10 months ago
Rich Harris c81e94a4a3 add test
10 months ago
Dominic Gannaway 5419610833
fix: ensure resume effects are scheduled in topological order (#15012)
10 months ago
Paolo Ricciuti 360ee70dcb
fix: remove listener on `bind_current_time` teardown (#15013)
10 months ago
Paolo Ricciuti a129592e5b
feat: allow const tag inside `svelte:boundary` (#14993)
10 months ago
Paolo Ricciuti 8a1acac084
fix: never consider inert boundary effects (#14999)
10 months ago
Dominic Gannaway 36ef59df1f
chore: improve test cases (#14984)
10 months ago
Paolo Ricciuti 9b6e65fbeb
fix: correctly transform `pre` with no content (#14973)
10 months ago
Paolo Ricciuti 41fb51349e
fix: store access on component destroy (#14968)
10 months ago
Dominic Gannaway dbe5818560
fix: wrap each block expression in derived to encapsulte effects (#14967)
10 months ago
Dominic Gannaway bdc02008e4
fix: reset dependency read versions after reaction execution (#14964)
10 months ago
Rich Harris c0842d1459
fix: properly add owners to function bindings (#14962)
10 months ago
Simon H 9aae463ae1
fix: silence false-positive statel value warning (#14958)
11 months ago
Rich Harris ce4f9722da
fix: remove bindable prop validation (#14946)
11 months ago
Paolo Ricciuti 72a6c7263c
fix: don't throw `bind_invalid_export` if there's also a bindable prop with the same name (#14813)
11 months ago
Dominic Gannaway cd1adbc4e6
fix: ensure logic blocks keep consistent namespacing (#14817)
11 months ago
Simon H 2e2b440954
fix: apply `clsx` logic to custom element `class` attributes (#14907)
11 months ago
Dominic Gannaway 82db92f870
fix: ensure disconnected deriveds correctly connect again (#14899)
11 months ago
Paolo Ricciuti a91308d9db
fix: correctly highlight sources reassigned inside `trace` (#14811)
11 months ago
Simon H 015210a1a8
feat: allow objects/arrays for class attribute (#14714)
11 months ago
Dominic Gannaway 8705d44c64
fix: ensure svg namespace for `<a>` elements is correct (#14756)
11 months ago
Simon H 88a15cd706
chore: TS fixes cleanup (#14750)
11 months ago
Rich Harris c033dae049
fix: bump esrap, prevent malformed AST (#14742)
11 months ago
Rich Harris 36a437c2f9
fix: compare array contents for equality mismatch detections, not the arrays themselves (#14738)
11 months ago
Paolo Ricciuti 36d73cad55
fix: correctly highlight first rerun of `$inspect.trace` (#14734)
11 months ago
Dominic Gannaway 5483495c8d
feat: add $inspect.trace rune (#14290)
11 months ago
Paolo Ricciuti 887ce6ab4b
fix: don't add parenthesis to media query if already present (#14699)
11 months ago
Dominic Gannaway 2e0dcd7872
fix: ensure if block paths retain correct template namespacing (#14685)
11 months ago
Paolo Ricciuti 5e8d6edcf8
fix: make `defaultValue` work with spread (#14640)
11 months ago
Dominic Gannaway 8ba1b9ddd0
fix: avoid mutation validation for invalidate_inner_signals (#14688)
11 months ago
Dominic Gannaway fb879dd702
fix: ensure $state.snapshot clones holey arrays correctly (#14657)
11 months ago
Simon H 88184cd769
fix: don't emit assignment warnings for bindings (#14651)
11 months ago
Dominic Gannaway 66e30d3288
fix: ensure snippet hoisting works in the correct scope (#14642)
11 months ago
Paolo Ricciuti 11764632b9
fix: deconflict `get_name` for literal class properties (#14607)
12 months ago
Paolo Ricciuti c66bf178aa
fix: mark subtree dynamic for bind with sequence expressions (#14626)
12 months ago
Dominic Gannaway 5771b455c0
feat: add support for bind getter/setters (#14307)
12 months ago
Simon H ca67aa1b34
fix: ensure bindings always take precedence over spreads (#14575)
12 months ago
Simon H 73b3cf72d0
fix: treat `undefined` and `null` the same for the initial input value (#14562)
12 months ago
Simon H a151ae1804
fix: handle static form values in combination with default values (#14555)
12 months ago
Simon H a57e747cbb
feat: default values for form elements (#14289)
12 months ago
Simon H 86ae349bcc
fix: better error messages for invalid HTML trees (#14445)
12 months ago
adiGuba d511104ee0
chore: make test more robust (#14550)
12 months ago
Paolo Ricciuti 1f973b1770
fix: remove spreaded event handlers when they become nullish (#14546)
12 months ago
Rich Harris fe0bd299a5
fix: proxify values when assigning using `||=`, `&&=` and `??=` operators (#14273)
12 months ago
Dominic Gannaway b5588523fc
fix: capture infinite_loop_guard in error boundary (#14534)
12 months ago
Paolo Ricciuti 39275684e5
fix: don't throw with nullish actions (#13559)
12 months ago
Rich Harris aac929d503
fix: leave update expressions untransformed unless a transformer is provided (#14507)
12 months ago
Dominic Gannaway 94694a5e63
chore: add test for binding event reactive context (#14522)
12 months ago
Dominic Gannaway 4d2f2fb8e6
feat: allow snippets to be exported from module scripts (#14315)
12 months ago
Simon H b72fd2b3cd
fix: ignore TypeScript generics on variables (#14509)
12 months ago
Simon H a283083751
feat: each without as (#14396)
12 months ago
Rich Harris ef640c3b46
fix: render attributes during SSR regardless of case (#14492)
12 months ago
Rich Harris fe15ad4ae8
fix: treat spread elements the same as call expressions (#14488)
12 months ago
Dominic Gannaway ed7ebcde1e
feat: add error boundaries (#14211)
12 months ago
Simon H d6fc176fcb
fix: strip exported TypeScript function overloads (#14458)
12 months ago
Simon H 3fa08d565c
fix: show `:then` block for `null` value (#14440)
12 months ago
Simon H 9e9fb2463c
fix: relax parent validation (#14442)
12 months ago
Dominic Gannaway dd9abea2a1
fix: ensure spread attribute events are attached synchronously (#14387)
1 year ago
Paolo Ricciuti 520055cf5c
fix: always use set for private identifiers (#14378)
1 year ago
Dominic Gannaway 811c8d32eb
fix: correctly handle srcObject attribute on video elements (#14369)
1 year ago
Paolo Ricciuti 32a1453805
fix: include method definitions in class private fields (#14365)
1 year ago
Dominic Gannaway 747d40833b
fix: ensure is_pure takes into account runes (#14333)
1 year ago
Dominic Gannaway 741106879b
fix: ensure internal cloning can work circular values (#14347)
1 year ago
Santiago Cézar 012166ec3c
fix: convert input value to number on hydration (#14349)
1 year ago
Simon H e379319626
fix: ensure props passed to components via mount are updateable (#14210)
1 year ago
Rich Harris ac9b7de058
fix: use strict equality for key block comparisons in runes mode (#14285)
1 year ago
Paolo Ricciuti ae9f53a3bd
fix: account for mutations in script module in ownership check (#14253)
1 year ago
Paolo Ricciuti 7bc94b9984
fix: do not treat reassigned synthetic binds as state in runes mode (#14236)
1 year ago
Paolo Ricciuti d207666ec3
fix: consider img with loading attribute not static (#14237)
1 year ago
Paolo Ricciuti 44a833fafe
fix: restore active reaction if then block throws (#14191)
1 year ago
Simon H 9b2a8f15fb
fix: ignore `as` type expressions on property definitions (#14181)
1 year ago
Caique Torres 5077061695
fix: issue with implicit public modifier causing undefined properties (#14153)
1 year ago
Simon H 551284ca22
fix: correctly infer `<a>` tag namespace (#14134)
1 year ago
Dominic Gannaway 9883e7078c
fix: ensure SvelteMap and SvelteSet work with generators in dev (#14103)
1 year ago
Dominic Gannaway 58b1540ddc
fix: ensure transitions are applied to nested elements (#14080)
1 year ago
Dominic Gannaway 2bdc3d401f
fix: ensure compiler statements are correctly included (#14074)
1 year ago
Dominic Gannaway 3999fed4ca
fix: ensure each block inert items are disposed of if the each block is also inert (#13930)
1 year ago
Dominic Gannaway bce1c4898c
fix: ensure child effects are destroyed before their deriveds (#14043)
1 year ago
Dominic Gannaway 253d01ec29
fix: ensure element effects are executed in the correct order (#14038)
1 year ago
Dominic Gannaway 435a9c1cd0
fix: ensure toStore subscription correctly syncs latest value (#14015)
1 year ago
Dominic Gannaway 3876b302f3
fix: ensure effect_tracking correctly handles tracking reactions (#14005)
1 year ago
Paolo Ricciuti 67cf3871b4
fix: more exhaustive check during `SvelteMap.set` in deriveds (#13951)
1 year ago
Dominic Gannaway 83a5eaac8e
fix: skip comment nodes in snippet validation logic (#13936)
1 year ago
Dominic Gannaway 1e6cf1bb40
fix: ensure bind:group works as intended with proxied state objects (#13939)
1 year ago
Dominic Gannaway 7bbaedd6c7
fix: rethrow errors from await block if no catch block exists (#13819)
1 year ago
Dominic Gannaway 441124c5c7
fix: ensure SVG element attributes have case preserved (#13935)
1 year ago
Paolo Ricciuti 3147287813
fix: prevent var name clashing for delegated events without params (#13896)
1 year ago
Dominic Gannaway 42ccdc1023
fix: ensure snippets after empty text correctly hydrate (#13870)
1 year ago
Dominic Gannaway 771b1e8905
fix: enable bound store props in runes mode components (#13887)
1 year ago
Dominic Gannaway 5a54ad9cc7
fix: ensure SvelteMap reactivity persists through deriveds (#13877)
1 year ago
Dominic Gannaway 4fbd2a6f10
fix: ensure props internally untracks current_value on sets (#13859)
1 year ago
Dominic Gannaway 60dcffb856
fix: internally wrap store subscribe in untrack (#13858)
1 year ago
Dominic Gannaway d621f59642
feat: allow usage of getContext() within $derived runes (#13830)
1 year ago
Paolo Ricciuti b6a67e85b4
fix: prevent spread attribute from overriding class directive (#13763)
1 year ago
Dominic Gannaway de609ec34c
fix: ensure $effect.tracking returns false inside transition functions (#13775)
1 year ago
Paolo Ricciuti 8ff2af52d3
fix: show filename information in `legacy_recursive_reactive_block` (#13764)
1 year ago
adiGuba ad578a5da5
fix: @debug does not work with proxied-state (#13690)
1 year ago
Dominic Gannaway be02b7e54c
event_context (#13737)
1 year ago
Simon H 8251bae8db
fix: better children snippet / default slot interop (#13734)
1 year ago
Dominic Gannaway 2ca9a81679
fix: ensure user effects are correctly executed on initialisation (#13697)
1 year ago
Dominic Gannaway ae10f4d37c
breaking: state mutations inside the template are no longer allowed (#13660)
1 year ago
Paolo Ricciuti 0598f2bbe1
fix: reset `reset_element` in `render` to prevent runtime error (#13669)
1 year ago
Dominic Gannaway e21e624fff
chore: avoid reporting inspections when an exception occurs (#13601)
1 year ago
adiGuba bb245445fc
fix : $.component() break transition (#13646)
1 year ago
Paolo Ricciuti 372884cf99
fix: use `internal_set` in `await` block (#13642)
1 year ago
Dominic Gannaway 2070c8a166
breaking: disallow state mutations in logic block expression (#13625)
1 year ago
Dominic Gannaway 75fecf82a6
fix: ensure each block consistency to internal mutations to the collection (#13614)
1 year ago
Dominic Gannaway 68a2263415
fix: ensure local prop value is read during teardown (#13611)
1 year ago
Dominic Gannaway a2ece29b6e
fix: ensure proxied arrays correctly update their length upon deletions (#13549)
1 year ago
Dominic Gannaway 4dcac41c10
fix: cleanup non-branch effects created inside block effects (#13600)
1 year ago
Dominic Gannaway 7e6d93d1c3
fix: ensure effects destroy owned deriveds upon teardown (#13563)
1 year ago
adiGuba 531ff6243c
fix: do no rerun the each block when array change from empty to empty (#13553)
1 year ago
Dominic Gannaway 7ac0d8e7cd
fix: ensure set_text applies coercion to objects before diff (#13542)
1 year ago
Paolo Ricciuti 8148e63ced
fix: apply class/style directives after attributes (#13535)
1 year ago
Paolo Ricciuti 3d30067370
fix: mark custom element with virtual class attribute as dynamic (#13435)
1 year ago
Dominic Gannaway 765ca030d6
fix: further improve reconciliation of inert each block rows (#13527)
1 year ago
Dominic Gannaway 3ce0384e9e
fix: strip internal properties from rest props during SSR (#13492)
1 year ago
Simon H e8508526e7
feat: enable snippets to fill slots (#13427)
1 year ago
Paolo Ricciuti c716329806
feat: fix accessors and support migration of accessors (#13456)
1 year ago
Dominic Gannaway 2531658046
fix: ensure use directives execute in the correct sequence (#13384)
1 year ago
Paolo Ricciuti b73052f590
fix: make ownership widening more robust to userland proxies (#13377)
1 year ago
Dominic Gannaway d309023cb2
fix: improve reconciliation of inert each block rows (#13379)
1 year ago
Dominic Gannaway 0b3fd4e42d
fix: properly remove root anchor node on unmount (#13381)
1 year ago
Rich Harris b3f3915180
fix: set strings as attributes, non-strings as properties if property exists (#13327)
1 year ago
Dominic Gannaway db6545d173
fix: keep bound inputs in sync in runes mode (#13328)
1 year ago
Rich Harris 5d56c592ff
fix: delete transformers shadowed by unreassigned state (#13316)
1 year ago
Rich Harris 1d1e4aeeb1
fix: attach effects-inside-deriveds to the parent of the derived (#13309)
1 year ago
Dominic Gannaway 09527fd190
fix: avoid disconnecting deriveds that are still active (#13292)
1 year ago
Dominic Gannaway b624380c45
fix: ensure correct parent effect is associated with render effects (#13274)
1 year ago
Paolo Ricciuti 3864229418
fix: separate `template_effect` for dynamic class/style directive with dynamic attributes (#13171)
1 year ago
Dominic Gannaway 36a73fa794
fix: avoid flushing sync with $inspect (#13239)
1 year ago
Simon H 9864138022
fix: escape more template-literal-related characters (#13262)
1 year ago
Rich Harris 355730cc2c
chore: add missing test for #13158 (#13255)
1 year ago