Commit Graph

1431 Commits (e41a8ea3aa75dba5bb5d7ee20facbf7d3fe0d36d)

Author SHA1 Message Date
Simon H 7019894fd9
fix: ensure unowned deriveds can add themselves as reactions while connected (#16249)
5 months ago
Rich Harris da2feafe67
chore: silence some pesky logs (#16241)
5 months ago
Paolo Ricciuti 922bee9a6d
fix: use fine grained for template if the component is not explicitly in legacy mode (#16232)
5 months ago
Fedor Nezhivoi 2af7ba2156
fix: lift unsafe_state_mutation constraints for SvelteSet and SvelteMap created inside the derived (#16221)
5 months ago
Paolo Ricciuti c4b32c2bff
fix: untrack `$inspect.with` and add check for unsafe mutation (#16209)
5 months ago
7nik 4db4ee5330
chore: rid of nodeType magic numbers (#16208)
5 months ago
7nik 659198a95c
fix: address css class matching regression (#16204)
5 months ago
7nik 2b20a2d16b
fix: match class and style directives against attribute selector (#16179)
5 months ago
Ray Thurn Void de90fc8dce
Test array sort in effect to prevent regressions of this use-case (#16175)
5 months ago
floriskn 579d0e6636
fix: ensure undefined attributes are removed during hydration (#16178)
5 months ago
Simon H a5f500e7c0
fix: keep spread non-delegated event handlers up to date (#16180)
5 months ago
7nik 838f881550
fix: avoid shadowing a variable in dynamic components (#16185)
5 months ago
Simon H 061ab31d23
fix: ensure sources within nested effects still register correctly (#16193)
5 months ago
Rich Harris b224c3fb4b
fix: coarse reactivity, alternative approach (#16100)
5 months ago
Paolo Ricciuti 7e588857c2
fix: don't set state withing `with_parent` in proxy (#16176)
5 months ago
Matei Trandafir 92ea58bee6
fix: don't eagerly execute deriveds on resume (#16150)
5 months ago
Paolo Ricciuti 113a3daab2
fix: don't define `error.message` if it's not configurable (#16149)
5 months ago
ComputerGuy 36315fece4
fix: prune typescript class field declarations (#16154)
5 months ago
Rich Harris f5a020d56b
fix: correctly tag private class state fields (#16132)
5 months ago
Rich Harris e8a7c426d4 remove errant log
5 months ago
Rich Harris 438349eb88
fix: better `$inspect.trace()` output (#16131)
5 months ago
Paolo Ricciuti 90807ca18d
fix: properly hydrate dynamic css props components and remove element removal (#16118)
5 months ago
ComputerGuy 91272d702b
feat: add source name logging to `$inspect.trace` (#16060)
5 months ago
Paolo Ricciuti fd08cb03de
fix: reset `is_flushing` if `flushSync` is called and there's no scheduled effect (#16119)
5 months ago
Paolo Ricciuti 669a32a615
fix: destructuring state in ssr (#16102)
5 months ago
ComputerGuy 0741ee65d1
chore: update acorn parser `ecmaVersion` to parse import attributes (#16098)
5 months ago
Paolo Ricciuti 8faa178cd7
fix: visit expression when destructuring state declarations (#16081)
6 months ago
Rich Harris 2d2772a4a1
fix: invoke parent boundary of deriveds that throw (#16091)
6 months ago
Rich Harris 2342c8719a
chore: better HTML normalization test helper (#16056)
6 months ago
Paolo Ricciuti 1b5f6af276
fix: destructuring snippet arguments (#16068)
6 months ago
ComputerGuy b5fcd112c6
fix: correctly transform reassignments to class fields in SSR mode (#16051)
6 months ago
Rich Harris 54990f2329
fix: use local mutable sources for props in legacy mode in case they are indirectly invalidated (#16038)
6 months ago
Rich Harris 23d42fb8ac
fix: put expressions in effects unless known to be static (#15792)
6 months ago
Paolo Ricciuti c9ce4f439f
fix: only `select_option` if `'value'` is in `next` (#16032)
6 months ago
Paolo Ricciuti 3ea2dbc6a1
fix: `bind:value` to select with stores (#16028)
6 months ago
Paolo Ricciuti 6351288c7b
fix: falsy attachments on components (#16021)
6 months ago
Paolo Ricciuti 40e0e33883
feat: ssr select value (#16017)
6 months ago
Rich Harris b8d15135cf
fix: stable attachments (#15961)
6 months ago
Rich Harris 81a34aa134
fix: handle derived destructured iterators (#16015)
6 months ago
Paolo Ricciuti 37488fa65c
fix: warn when using rest or identifier in custom elements without props option (#16003)
6 months ago
7nik 94a2bca0e3
fix: cleanup event handlers on media elements (#16005)
6 months ago
Paolo Ricciuti fbb6444fd8
fix: allow using typescript in `customElement.extend` option (#16001)
6 months ago
Rich Harris a38ea026c7
fix: don't mark deriveds as clean if updating during teardown (#15997)
6 months ago
7nik 4875cd6e67
fix: correctly parse escaped unicode characters in css selector (#15976)
6 months ago
Simon H ac046df40a
fix: make deriveds on the server lazy again (#15964)
6 months ago
Paolo Ricciuti d1141a19b5
feat: functional template generation (#15538)
6 months ago
Rich Harris 50de8c5317
fix: attach __svelte_meta correctly to elements following a CSS wrapper (#15982)
6 months ago
Gautier Ben Aïm de8094910d
fix(14815): warn when an invalid <select multiple> value is given (#14816)
6 months ago
Rich Harris 93443f9316
fix: only re-run directly applied attachment if it changed (#15962)
6 months ago
7nik c66a43940a
feat: warn on implicitly closed tags (#15932)
6 months ago
Paolo Ricciuti 7183886a73
feat: attachments `fromAction` utility (#15933)
6 months ago
Paolo Ricciuti a2ddca1aa1
fix: avoid auto-parenthesis for special-keywords-only `MediaQuery` (#15937)
6 months ago
Elliott Johnson d103adff9c
feat: State declarations in class constructors (#15820)
6 months ago
Matteo Battista a5a0b49003
fix: update_branch with (anchor).data possible undefined on ios devices (#15851)
6 months ago
Paolo Ricciuti 0e22b54110
fix: add `typeParams` to `SnippetBlock` for legacy parser (#15921)
6 months ago
Paolo Ricciuti 66a21552f6
feat: allow generics on snippets (#15915)
6 months ago
Rich Harris b93a617aa8
feat: attachments (#15000)
6 months ago
ComputerGuy 7826ebaccc
fix: rewrite destructuring logic to handle iterators (#15813)
6 months ago
Paolo Ricciuti 944ef1dbce
fix: don't spread away `$$slots` from `$props` is it's used (#15849)
6 months ago
Paolo Ricciuti 2bc2ae0ddd
fix: use `transform.read` for `ownership_validator.mutation` array (#15848)
6 months ago
7nik 3bb1af9677
fix: proxify the value in assignment shorthands to the private field (#15862)
6 months ago
ComputerGuy aa041a9e65
fix: warn on bidirectional control characters, fix various issues with template expressions (#15893)
6 months ago
Rich Harris 895337cf47
fix: treat nullish expression as empty string (#15901)
6 months ago
Rich Harris eebb940b31
fix: prevent invalid BigInt calls from blowing up at compile time (#15900)
6 months ago
7nik df03af2e9d
fix: emit right error for a shadowed invalid rune (#15892)
6 months ago
Lars Francke c051a6eb1e
fix: improve error message for migration errors when slot would be renamed (#15841)
7 months ago
Simon H dfd742d532
fix: don't mark selector lists inside `:global` with multiple items as unused (#15817)
7 months ago
Rich Harris a1adf2be6b
chore: squelch test console output (#15807)
7 months ago
zeroberry b2d5787a09
fix: ensure `<svelte:boundary>` properly removes error content in production mode (#15793)
7 months ago
Paolo Ricciuti 3d80884029
fix: `update_version` after `delete` if `source` is `undefined` and `prop` in `target` (#15796)
7 months ago
7nik d8c6afde94
fix: emit error on wrong placement of the `:global` block selector (#15794)
7 months ago
ComputerGuy d0dcc0b795
fix: improve partial evaluation (#15781)
7 months ago
Paolo Ricciuti 7f473f618d
fix: allow accessing snippet in script tag (#15789)
7 months ago
Rich Harris 2db5bccde3
chore: default params for html blocks (#15778)
7 months ago
Elliott Johnson e079ac92b8
fix: Throw on unrendered snippets in `dev` (#15766)
7 months ago
Rich Harris 90563e903f
feat: add partial evaluation (#15494)
7 months ago
Simon H a051f96ed6
fix: relax `:global` selector list validation (#15762)
7 months ago
Simon H 26e574f27f
fix: ignore mutation validation for props that are not proxies in more cases (#15759)
7 months ago
Simon H bdf033e30f
fix: allow self-closing tags within math namespace (#15761)
7 months ago
Paolo Ricciuti fd0bc29973
fix: correctly validate head snippets on the server (#15755)
7 months ago
Paolo Ricciuti 69a427518d
fix: correctly validate `undefined` snippet params with default value (#15750)
7 months ago
Rich Harris 95a020acea
fix: update `state_referenced_locally` message (#15733)
7 months ago
Paolo Ricciuti 01171096ce
feat: add `css.hasGlobal` to `compile` output (#15450)
7 months ago
Paolo Ricciuti 0d233e58cf
fix: don't transform reassigned state in labeled statement in `$derived` (#15725)
7 months ago
Dominic Gannaway 9cafdd89d0
fix: improve internal_set versioning mechanic (#15724)
7 months ago
Rich Harris 6d195f0350
fix: handle hydration mismatches in await blocks (#15708)
7 months ago
Paolo Ricciuti 6c97a78049
fix: prevent ownership warnings if the fallback of a bindable is used (#15720)
7 months ago
Paolo Ricciuti 966ccfbe74
fix: set deriveds as `CLEAN` if they are assigned to (#15592)
7 months ago
7nik 708f541ad8
fix: better scope `:global()` with nesting selector `&` (#15671)
7 months ago
Simon H 98d14ece66
fix: rework binding ownership validation (#15678)
7 months ago
Dominic Gannaway 80557bbc1c
fix: ensure clearing of old values happens independent of root flushes (#15664)
8 months ago
Simon H 959f593487
fix: ignore generic type arguments while creating AST (#15659)
8 months ago
7nik e035e2838f
Fix: consider component and its snippets during css pruning (#15630)
8 months ago
Simon H 97542048df
fix: silence assignment warning on more function bindings (#15644)
8 months ago
Simon H b93d004d98
fix: ensure `undefined` class still applies scoping class, if necessary (#15643)
8 months ago
Simon H 6f8068637c
fix: support TS type assertions (#15642)
8 months ago
Paolo Ricciuti 3080c1334e
fix: prevent state runes from being called with spread (#15585)
8 months ago
Paolo Ricciuti 33d118f8a2
feat: migrate reassigned deriveds to `$derived` (#15581)
8 months ago
Rich Harris 5a8fa69dbf
feat: make deriveds writable (#15570)
8 months ago
Dominic Gannaway 1f37c02f91
fix: ensure toStore root effect is connected to correct parent effect (#15574)
8 months ago
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)
11 months ago
Rich Harris adee13d98c
fix: account for min-width/height in `slide` transition (#14942)
11 months ago
Dominic Gannaway 9c20eb4815
chore: improve signal performance by reducing duplicate deps (#14945)
11 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