Commit Graph

1431 Commits (e41a8ea3aa75dba5bb5d7ee20facbf7d3fe0d36d)

Author SHA1 Message Date
Paolo Ricciuti ade66c6fea
fix: use `get` in constructor for deriveds (#15300)
8 months ago
Rich Harris d2e79326c7
fix: don't depend on deriveds created inside the current reaction (#15564)
8 months ago
Robert Gieseke 1a5fb8fd51
fix: Keep inlined JSDoc comments in property conversion of svelte-migrate (#15567)
8 months ago
Rich Harris 6915c12b58
feat: allow state created in deriveds/effects to be written/read locally without self-invalidation (#15553)
8 months ago
Rich Harris c436b6cdbe
fix: simplify set calls for proxyable values (#15548)
8 months ago
Paolo Ricciuti 5b9f0df8ee
fix: don't hoist listeners that access non hoistable snippets (#15534)
8 months ago
adiGuba 32ee6c1bc2
rune_invalid_arguments_length (#15516)
8 months ago
7nik 8e9a21e374
fix: correctly match `:has()`'s selector during css pruning (#15277)
8 months ago
Éric NICOLAS f227cfcea8
fix: Allow global-like pseudo-selectors refinement (#15313)
8 months ago
Dominic Gannaway 5d3aa2bda4
fix: ensure transient writes to tracked parent effects works as expected (#15506)
8 months ago
Dominic Gannaway 110d42062f
fix: on teardown, use the last known value for the signal before the set (#15469)
8 months ago
adiGuba c5912aad71
fix: null and warnings for local handlers (#15460)
9 months ago
adiGuba 30562b8780
chore: rewrite set_style() to handle directives (#15418)
9 months ago
adiGuba 2f685c1dba
fix: spreading style is not consistent with attribute (#15323)
9 months ago
Rich Harris 76f5ecfdab
fix: never deduplicate expressions in templates (#15451)
9 months ago
Rich Harris 3fc2007836
fix: run effect roots in tree order (#15446)
9 months ago
Paolo Ricciuti 181fb2ad49
fix: correctly set `is_updating` before flushing root effects (#15442)
9 months ago
Simon H ef7fd96ccf
fix: switch to our fork acorn typescript plugin (#15393)
9 months ago
Tom Adler e3dc396e01
fix: make dialog element and role interactive (#15429)
9 months ago
Rich Harris b82692af2f
feat: add `idPrefix` to `render` (#15428)
9 months ago
Paolo Ricciuti 474c588067
fix: disallow `bind:group` to snippet parameters (#15401)
9 months ago
adiGuba fe343e9c50
fix: catch error on @const tag in svelte:boundary in DEV mode (#15369)
9 months ago
adiGuba 8fb2fb70e1
fix : bug "$0 is not defined" with svelte:element and a single class with a function call (#15396)
9 months ago
adiGuba cf56973bf0
fix: class:directive not working with $$restProps (#15389)
9 months ago
Ben McCann da98c894b8
chore: switch to `tinyglobby` (#15388)
9 months ago
Paolo Ricciuti 3d59e84a65
fix: allow double hyphen css selector names (#15384)
9 months ago
Paolo Ricciuti c2ec0d9ac2
fix: allow for duplicate `var` declarations (#15382)
9 months ago
Rich Harris 51337f22bd
chore: simplify flushing (#15348)
9 months ago
Rich Harris 53d1b17ce9
remove some unused exports (#15365)
9 months ago
adiGuba d4360af751
chore: rewrite set_class() to handle directives (#15352)
9 months ago
Alexis 5a946e7905
fix: Allow @const inside #key (#15377)
9 months ago
Paolo Ricciuti d8e78f7f57
fix: `muted` reactive without `bind` and select/autofocus attributes … (#15326)
9 months ago
Ranjan Purbey 575900de88
fix: Add more checks to determine if element is non-static (#15259)
9 months ago
tomoam 073f4d8911
fix: prevent writable store value from becoming a proxy when reassigning using $-prefix (#15283)
9 months ago
Paolo Ricciuti dde8603872
fix: do not warn for `binding_property_non_reactive` if binding is a store in an each (#15318)
9 months ago
Ben McCann 87d7cc7d89
chore: add missing await in tests (#15301)
9 months ago
Paolo Ricciuti 8b977253f3
chore: fix `$props.id` tests (#15294)
9 months ago
Paolo Ricciuti b6bf735a23
fix: correctly ssr component in `svelte:head` with `$props.id()` or `css='injected'` (#15291)
9 months ago
Caique Torres 21dadfc997
fix: ignore typescript abstract methods during code transformation (#15267)
9 months ago
Paolo Ricciuti 5e52825d60
fix: take private and public into account for `constant_assignment` of derived state (#15276)
9 months ago
Paolo Ricciuti 18481386f3
fix: use `importNode` to clone templates for Firefox (#15272)
9 months ago
Simon H a3e49b6110
fix: recurse into `$derived` for ownership validation (#15166)
9 months ago
adiGuba afae274587
fix: value/checked not correctly set using spread (#15239)
9 months ago
adiGuba 85f83ec435
feat: $props.id(), a SSR-safe ID generation (#15185)
9 months ago
Dominic Gannaway b602c59a22
fix: when re-connecting unowned deriveds, remove their unowned flag (#15255)
9 months ago
Paolo Ricciuti 02788f8e62
fix: allow mutation of private derived state (#15228)
9 months ago
Simon H 4883fd2c83
fix: hydrate `href` that is part of spread attributes (#15226)
10 months ago
Dominic Gannaway f2c83e5db7
fix: ensure unowned derived dependencies are not duplicated when reac… (#15232)
10 months ago
Simon H 6f392d679b
fix: properly set `value` property of custom elements (#15206)
10 months ago
Dominic Gannaway d39d8c0675
fix: ensure tracking returns true, even if in unowned (#15214)
10 months ago
7nik 5b30fbfb0b
fix: encounter svelte:element in blocks as sibling during pruning css (#15165)
10 months ago
Dominic Gannaway 7bef5963bd
fix: ensure reactions are correctly attached for unowned deriveds (#15158)
10 months ago
Simon H 83f00ebbd6
fix: don't error on slot prop inside block inside other component (#15148)
10 months ago
Simon H b8607f8765
fix: silence a11y attribute warnings when spread attributes present (#15150)
10 months ago
7nik 522557559f
fix: do not prune selectors like `:global(.foo):has(.scoped)` (#15140)
10 months ago
Rich Harris 8e83127e1a
chore: move more code (#15133)
10 months ago
Dominic Gannaway 13a6d555c0
fix: improve derived connection to ownership graph (#15137)
10 months ago
7nik 9410ad0318
fix: correctly look for sibling elements inside blocks and components (#15106)
10 months ago
Rich Harris 5e9b29c351
chore: move context code into new module (#15132)
10 months ago
Dominic Gannaway fc4dd2dec4
fix: lazily connect derievds (in deriveds) to their parent (#15129)
10 months ago
Elliott Johnson 3f8ce21f47
fix: Add `bind:focused` to `HTMLAttributes` (#15122)
10 months ago
Rich Harris 0e0f01ee1c
fix: disallow $state/$derived in const tags (#15115)
10 months ago
Trevor N. Suarez d47f4f5908
fix: expand boolean attribute support (#15095)
10 months ago
Edoardo Cavazza d17f5c748d
fix: add check for is attribute (#15086)
10 months ago
Theodore Brown c2e805f05c
fix: consistently set value to blank string when value attribute is undefined (#15057)
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
Dominic Gannaway 09510c8c5c
fix: address regression with untrack (#15079)
10 months ago
Dominic Gannaway 2ad519542d
fix: ensure untrack correctly retains the active reaction (#15065)
10 months ago
ComputerGuy 5f6525f416
fix: omit unnecessary nullish coallescing in template expressions (#15056)
10 months ago
Rich Harris 700029bd4d
fix: more efficient template effect grouping (#15050)
10 months ago
Rich Harris 509ba568f3
fix: create fewer deriveds for concatenated strings (#15041)
10 months ago
Paolo Ricciuti 973b51d168
fix: correctly parse leading comments in function binding (#15020)
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 dfa97a5e64
feat: allow every children in `template` tags (#15007)
10 months ago
Dominic Gannaway dae4c5f5e1
fix: ensure signal write invalidation within effects is consistent (#14989)
10 months ago
Paolo Ricciuti 99fdc3f0ab
docs: update error message for `const_tag_invalid_placement` (#15003)
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
Rich Harris 76ce303b0a
chore: bump esrap (#14969)
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)
10 months ago
Simon H a2565efa37
docs: tweak "invalid assignment" compiler error message (#14955)
10 months ago
Rich Harris ce4f9722da
fix: remove bindable prop validation (#14946)
10 months ago
Rich Harris d245bab63a
feat: allow non-numeric values to be tweened by snapping immediately to new value (#14941)
10 months ago
Rich Harris adee13d98c
fix: account for min-width/height in `slide` transition (#14942)
10 months ago
Dominic Gannaway 9c20eb4815
chore: improve signal performance by reducing duplicate deps (#14945)
10 months ago
Caique Torres 48e3db21c1
fix: default values in object destructuring (#14554)
11 months ago
Simon H 8241096b06
fix: treat `inert` as a boolean attribute (#14935)
11 months ago
Matthijs c8865bb4a7
fix: make Tween with duration 0 set current to target immediately (#14937)
11 months ago
Rich Harris 77378688b9
fix: remove leading newline from `<pre>` contents (#14922)
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
Paolo Ricciuti c4e9faad52
fix: correctly parse `each` with loose parser (#14887)
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
Dominic Gannaway 8148734812
fix: ensure unowned deriveds correctly get re-linked to the graph (#14855)
11 months ago
Rich Harris 97f3aa9151
docs: fix links in some errors/warnings (#14825)
11 months ago
Simon H 015210a1a8
feat: allow objects/arrays for class attribute (#14714)
11 months ago
Andrey Sitnik 38a3ae321f
fix: Allow to disable animation prefix (#14822)
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
Taku Fukada c79b909458
fix: remove 'implements' from class declaration (#14749)
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
Simon H 3146e93bbb
chore: loose parser improvements (#14733)
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
Simon H f0af633263
feat: loose parser mode (#14691)
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
Yang Pan 88c2d6ea36
fix: Allow unquoted slash in attributes (#14615)
11 months ago
Paolo Ricciuti 5e8d6edcf8
fix: make `defaultValue` work with spread (#14640)
11 months ago
Rich Harris ef8bd6adeb
fix: better handle hydration of script/style elements (alternative) (#14683)
11 months ago
Dominic Gannaway 8ba1b9ddd0
fix: avoid mutation validation for invalidate_inner_signals (#14688)
11 months ago
Paolo Ricciuti edfc0a9c6a
fix: correctly handle ssr for `reactivity/window` (#14681)
11 months ago
Simon H 68d266e0f8
fix: remove overzealous `reactive_declaration_non_reactive_property` warning (#14663)
11 months ago
Paolo Ricciuti ea6fd95332
fix: account for global block in `is_empty` (#14677)
11 months ago
Simon H a2539cfe1f
fix: correctly set custom element props (#14508)
11 months ago
Dominic Gannaway fb879dd702
fix: ensure $state.snapshot clones holey arrays correctly (#14657)
11 months ago
Paolo Ricciuti ab1f7f437e
fix: transform everything that is not a selector inside `:global` (#14577)
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
Simon H cfc1fb7de8
chore: provide links to documentation for errors/warnings (#14629)
11 months ago
Paolo Ricciuti 11764632b9
fix: deconflict `get_name` for literal class properties (#14607)
11 months ago
Paolo Ricciuti 38171f60ea
fix: allow exports with source from script module even if no bind is present (#14620)
11 months ago
Paolo Ricciuti c66bf178aa
fix: mark subtree dynamic for bind with sequence expressions (#14626)
11 months ago
Dominic Gannaway 5771b455c0
feat: add support for bind getter/setters (#14307)
12 months ago
Rich Harris 1a0b822f48
fix: always run `if` block code the first time (#14597)
12 months ago
Simon H ca67aa1b34
fix: ensure bindings always take precedence over spreads (#14575)
12 months ago
Simon H 0a9890bb1e
feat: provide `MediaQuery` / `prefersReducedMotion` (#14422)
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 a5de086f95
feat: turn `reactive_declaration_non_reactive_property` into a runtime warning (#14192)
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 1f25bd4f47
fix: correctly prune CSS for elements inside snippets (#14494)
12 months ago
ComputerGuy 945b625e95
fix: Prevent `$state` `bigint`s incrementing and decrementing from throwing (#14485)
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
Ben McCann 4c88431228
fix: upgrade to esm-env 1.2.1 to fix issues with non-Vite setups (#14470)
12 months ago
Rich Harris a60e837e44
fix: prevent infinite loops when pruning CSS (#14474)
12 months ago
Simon H d62e7bdbe1
fix: ignore text and expressions outside the template when validating HTML (#14468)
12 months ago
Rich Harris c4ac0e01e7
fix: better account for render tags when pruning CSS (#14456)
12 months ago
Simon H d6fc176fcb
fix: strip exported TypeScript function overloads (#14458)
12 months ago
Paolo Ricciuti 19d80ad63c
fix: css pruning producing invalid css (#14448)
12 months ago
Dominic Gannaway 45417a36ce
fix: addresses memory leak when creating deriveds inside untrack (#14443)
12 months ago
Rich Harris a6ad5af0bb
fix: disregard TypeScript nodes when pruning CSS (#14446)
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 63484aff9b
fix: ensure last empty text node correctly hydrates (#14425)
12 months ago
Rich Harris 37e6c7f26b
fix: correctly prune key/each blocks (#14403)
1 year 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 9d12fd1a01
chore: remove template expression inlining (#14374)
1 year ago
Dominic Gannaway 811c8d32eb
fix: correctly handle srcObject attribute on video elements (#14369)
1 year ago
Simon H 4dfa0e31fe
fix: tighten up `export default` validation (#14368)
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
Dominic Gannaway 6e8267f462
fix: correctly update dynamic member expressions (#14359)
1 year ago
Santiago Cézar 012166ec3c
fix: convert input value to number on hydration (#14349)
1 year ago
Dominic Gannaway 1c454c236e
fix: ensure dynamic call expressions correctly generate output (#14345)
1 year ago
Dominic Gannaway 3a69b4c415
fix: ensure inline object literals are correctly serialised (#14325)
1 year ago
Paolo Ricciuti 1f0700f5c5
fix: mark subtree dynamic for img with loading attribute (#14317)
1 year ago
Simon H efc65d4e0c
fix: mark pseudo classes nested inside `:not` as used (#14303)
1 year ago
Simon H e379319626
fix: ensure props passed to components via mount are updateable (#14210)
1 year ago
Dominic Gannaway 7fd3774015
fix: disallow invalid attributes for `<svelte:window>` and `<svelte:document>` (#14228)
1 year ago
Paolo Ricciuti 8a8e6f70e8
fix: avoid marking subtree as dynamic for inlined attributes (#14269)
1 year ago
Simon H 45fa678242
fix: account for `:has(...)` as part of `:root` (#14229)
1 year ago
Rich Harris ac9b7de058
fix: use strict equality for key block comparisons in runes mode (#14285)
1 year ago
Torsten Dittmann 033061842d
fix: named slots with reserved keywords during migration (#14278)
1 year ago
Simon H 36ece1c381
fix: don't wrap pseudo classes inside `:global(...)` with another `:global(...)` (#14267)
1 year ago
Paolo Ricciuti 0fa43e216d
fix: consider static attributes that are inlined in the template (#14249)
1 year ago
Paolo Ricciuti 653f4accbd
fix: migration script messing with attributes (#14260)
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 f0c2d4c698
fix: account for shadowing children slot during migration (#14224)
1 year ago
Simon H 31e6bbb646
fix: add `lang="ts"` attribute during migration if needed (#14222)
1 year ago
Paolo Ricciuti 438de04fb2
fix: add migration task when there's a variable named that would conflict with a rune (#14216)
1 year ago
Simon H 870745fc53
fix: handle sibling combinators within `:has` (#14213)
1 year ago
Paolo Ricciuti 53af138d58
fix: read index as a source in legacy keyed each block (#14208)
1 year ago
Paolo Ricciuti ea0d80e195
fix: consider variables with synthetic store sub as state (#14195)
1 year ago
Simon H 1eed645919
fix: ensure explicit nesting selector is always applied (#14193)
1 year ago
Paolo Ricciuti 44a833fafe
fix: restore active reaction if then block throws (#14191)
1 year ago
Dominic Gannaway f1aeaf19e5
feat: adds legacy mode flag (#14180)
1 year ago
Simon H 9b2a8f15fb
fix: ignore `as` type expressions on property definitions (#14181)
1 year ago
Simon H aa23415179
fix: remove scoping for most `:not` selectors (#14177)
1 year ago
Caique Torres 5077061695
fix: issue with implicit public modifier causing undefined properties (#14153)
1 year ago
Gonzalo Ruiz e6dd871819
fix: ensure migrate keeps inline/trailing comments in $props type definition and produces non-broken code (#14143)
1 year ago
Simon H 7dbe812fc9
fix: ensure non-matching elements are scoped for `:not(...)` selector (#13999)
1 year ago
Simon H 551284ca22
fix: correctly infer `<a>` tag namespace (#14134)
1 year ago
Paolo Ricciuti 8de5605b6a
fix: prevent migrated snippet from shadow snippet prop (#14127)
1 year ago
Paolo Ricciuti 74a2c6b580
fix: migrate multiple declarations with only some exported correctly (#14126)
1 year ago
Simon H 4ec9986cba
fix: check options namespace for top level `svelte:element`s (#14101)
1 year ago
Dominic Gannaway 9883e7078c
fix: ensure SvelteMap and SvelteSet work with generators in dev (#14103)
1 year ago
Conduitry 535ea44b9d
chore: replace non-breaking spaces (#14098)
1 year ago
Simon H 7d11fa8da2
fix: recognize all custom element prop definitions (#14084)
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
Rich Harris 37049b4171
Revert "feat: migrate `Component` to `ComponentExports<typeof Component>` in …" (#14070)
1 year ago
Rich Harris 2784fb19f3
Revert "feat: add `ComponentExports` utility type (#13441)" (#14069)
1 year ago
Paolo Ricciuti 4715dfaad2
feat: migrate `Component` to `ComponentExports<typeof Component>` in TS (#13656)
1 year ago
FoHoOV d93ad3ba1e
feat: add `ComponentExports` utility type (#13441)
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
Paolo Ricciuti e47ee22628
fix: wrap `:id`, `:where``:not` and `:has` with `:global` during migration (#13850)
1 year ago
Dominic Gannaway 4a5a0b15d9
fix: ensure onMount correctly fires when new expressions are used (#14049)
1 year ago
Dominic Gannaway cdec39afac
fix: ensure custom element attribute/prop changes are in their own context (#14016)
1 year ago
Dominic Gannaway bce1c4898c
fix: ensure child effects are destroyed before their deriveds (#14043)
1 year ago
Rich Harris 4157db94c4
fix: correct typo in compiler error messages (#14044)
1 year ago
Ahmad S. 224fcde821
fix: preserve the separator between selectors when an unused selector is in between (#13954)
1 year ago
Dominic Gannaway 253d01ec29
fix: ensure element effects are executed in the correct order (#14038)
1 year ago
Simon H 8a2c97a7b8
fix: extend derived/state validation error to indirect exports (#14039)
1 year ago
Simon H 1434f48f7c
fix: make compiler error extend from `Error` (#14036)
1 year ago
Simon H f52a30347f
fix: ensure comma is also pruned if necessary (#14032)
1 year ago
Dominic Gannaway 435a9c1cd0
fix: ensure toStore subscription correctly syncs latest value (#14015)
1 year ago
Simon H 0106204982
fix: minify inject CSS in prod mode (#14006)
1 year ago
Simon H 2e9dab6a21
fix: more robust re-subscribe detection for `fromStore` (#13995)
1 year ago
Simon H cbc2ca36ce
fix: allow to pass in TS preference to migration (#13929)
1 year ago
Paolo Ricciuti b6fccdb4f7
fix: properly migrate imports types prefixed with $ (#14007)
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
Paolo Ricciuti 12fcc7a35a
fix: trim whitespace while migrating blocks (#13941)
1 year ago
Paolo Ricciuti 7be3afb3a6
fix: add empty stack to `CompileDiagnostic` to show error on build (#13942)
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 b63fde3b75
fix: prevent migration script from adding `props.` to the `export let` identifier (#13899)
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 4cf2d4a904
fix: ensure each block references to imports are handled correctly (#13892)
1 year ago
Dominic Gannaway 5a54ad9cc7
fix: ensure SvelteMap reactivity persists through deriveds (#13877)
1 year ago
Simon H b979c291e2
fix: properly traverse children when checking matches for `:has` (#13866)
1 year ago
Paolo Ricciuti 04c38b089f
fix: allow binding to const with spread in legacy mode (#13849)
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
Simon H 5669b31fe6
fix: ensure `:has` selectors followed by other selectors match (#13824)
1 year ago
Dominic Gannaway 17cb462ca4
fix: ensure muted DOM property works correctly in FF (#13751)
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
Paolo Ricciuti 41d61c7a37
fix: properly migrate ts with inferred type comments (#13761)
1 year ago
Paolo Ricciuti 9832c639e5
fix: migrate default slots to children snippet (#13760)
1 year ago
Paolo Ricciuti d1cac703c0
fix: don't print errors on migration errors (#13754)
1 year ago
Simon H a6e416da8c
fix: mark `:has` selectors with multiple preceding selectors as used (#13750)
1 year ago
adiGuba ad578a5da5
fix: @debug does not work with proxied-state (#13690)
1 year ago
Simon H 28c8d2b95d
fix: do not comment out unused selectors that are inside an unused selector (#13746)
1 year ago
Simon H a08f063b37
fix: more accurately detect `$derived` migration use cases (#13740)
1 year ago
Simon H 8a06d051e8
fix: do not add jsdoc if no types found (#13738)
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
Paolo Ricciuti e43176906f
fix: don't blank css on migration error (#13703)
1 year ago
Paolo Ricciuti 6ad017ffc5
fix: use typedef for JSDoc props and maintain comments (#13698)
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 18c5a5ba2d
fix: bail out if slot name changes and $$slots assigned to variable (#13678)
1 year ago
Paolo Ricciuti ab9eeb46fe
fix: migrated snippet shadowing prop and let directive removal (#13679)
1 year ago
Dominic Gannaway 61391c8704
fix: ensure migrate correctly handles named slots (#13676)
1 year ago
Dominic Gannaway c9d85c2d52
fix: migrate reactive statements with inner blocks (#13675)
1 year ago
Dominic Gannaway f398929fdd
fix: correct migration of uninitialised state (#13673)
1 year ago
Paolo Ricciuti 0598f2bbe1
fix: reset `reset_element` in `render` to prevent runtime error (#13669)
1 year ago
Paolo Ricciuti 9f930f4e9b
feat: tell users of `@migration-task` (#13668)
1 year ago
Paolo Ricciuti 969e6aa750
feat: add `migration-task` for impossible to migrate slots (#13658)
1 year ago
Paolo Ricciuti 0dcd4f6c6e
feat: add `migration-task` comment after errors (#13659)
1 year ago
Paolo Ricciuti b352f08e9d
fix: migrating rest props type includes props types (#13632)
1 year ago
Dominic Gannaway 193cc37f7a
fix: correctly applies autofocus to static elements (#13648)
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
Paolo Ricciuti 440017d442
fix: better migration for leading and trailing comments (#13630)
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 ed790ee166
fix: ensure await block scope transforms are isolated (#13622)
1 year ago
Dominic Gannaway 6a38bbe8a3
chore: improve derived ownership model (#13623)
1 year ago
Paolo Ricciuti 48f0bfc73f
fix: ensure inserted code is preserved during migration (#13617)
1 year ago
Dominic Gannaway 68a2263415
fix: ensure local prop value is read during teardown (#13611)
1 year ago
Simon H 829be3d611
fix: take snippets into account when scoping CSS (#13589)
1 year ago
Simon H 6f03561ae4
breaking: scope :not(...) selectors (#13568)
1 year ago