Commit Graph

1431 Commits (e41a8ea3aa75dba5bb5d7ee20facbf7d3fe0d36d)

Author SHA1 Message Date
Paolo Ricciuti 548ad7b7eb
fix: wrap `abort` in `without_reactive_context` (#16570)
3 months ago
Nathan Shively-Sanders 97f263c3d4
chore:Update for TS7 (#16485)
3 months ago
ComputerGuy 193f23fa05
feat: async fragments (#16542)
3 months ago
ComputerGuy b181c45484
chore: emit `await_reactivity_loss` in `for await` loops (#16521)
3 months ago
7nik bbd0b1ed87
fix: remount at any hydration error (#16248)
3 months ago
ComputerGuy d8c3f3d87e
fix: emit `snippet_invalid_export` instead of `undefined_export` for exported snippets (#16539)
3 months ago
7nik 540f1b19ec
fix: reset attribute cache after setting corresponding property (#16543)
4 months ago
ComputerGuy f5950f866c
fix: correctly differentiate static fields before emitting `duplicate_class_field` (#16526)
4 months ago
ComputerGuy 48f2fa22c0
fix: allow await expressions inside `{#await ...}` argument (#16514)
4 months ago
Paolo Ricciuti 99452053af
fix: `append_styles` in an effect to make them available on mount (#16509)
4 months ago
7nik c7851789d7
fix: always mark props as stateful (#16504)
4 months ago
ComputerGuy b0f9ea3ae6
fix: throw on duplicate class field declarations (#16502)
4 months ago
Rich Harris dc043fb2d3
fix: don't update a focused input with values from its own past (#16491)
4 months ago
Simon H 7eb11e0e24
fix: don't destroy effect roots created inside of deriveds (#16492)
4 months ago
Rich Harris 53417ea8f7
fix: preserve dirty status of deferred effects (#16487)
4 months ago
Rich Harris 8e2f4b51c5
fix: unset batch before flushing queued effects (#16482)
4 months ago
Rich Harris 1deb31082a
fix: abort and reschedule `$effect.pre` when necessary (#16335)
4 months ago
Simon H aabd333d89
fix: ensure subscriptions are picked up correctly by deriveds (#16466)
4 months ago
Rich Harris d3a01bd5a7
fix: always mark reactions of deriveds (#16457)
4 months ago
Rich Harris 5033c8e965
fix: tag stores for `$inspect.trace()` (#16452)
4 months ago
ComputerGuy e1e7a75d71
fix: allow async destructured deriveds (#16444)
4 months ago
ComputerGuy ad0b58ee96
fix: move ownership validation into async component body (#16449)
4 months ago
ComputerGuy 63cbe2108a
fix: disallow `export { foo as default }` in `<script module>` (#16447)
4 months ago
Simon H 27c90dfa83
fix: don't reexecute derived with no dependencies on teardown (#16438)
4 months ago
Elliott Johnson f5db130e2d
chore: Switch `payload.out` to an array (#16428)
4 months ago
Paolo Ricciuti c2da1ebb85
fix: keep effect in the graph if it has an abort controller (#16430)
4 months ago
Paolo Ricciuti bdf6adb411
fix: delegate functions with shadowed variables if declared locally (#16417)
4 months ago
Ray Thurn Void 9e1e7139fb
fix: robustify reset calls in error boundaries (#16171)
4 months ago
Rich Harris a67b5862f1
fix: more informative error when effects run in an infinite loop (#16405)
4 months ago
Rich Harris 09c9a3c165
fix: silence `$inspect` errors when the effect is about to be destroyed (#16391)
4 months ago
Simon H ee1ef6083a
fix: ensure compiler state is reset before compilation (#16396)
4 months ago
7nik 6cf3a19342
fix: better handle $inspect on array mutations (#16389)
4 months ago
ComputerGuy 8e73fd4b03
fix: don't log `await_reactivity_loss` warning when signal is read in `untrack` (#16385)
4 months ago
Rich Harris e01bd97bef
fix: update `$effect.pending()` immediately after a batch is removed (#16382)
4 months ago
Rich Harris 9134caca24
fix: only skip updating bound `<input>` if the input was the source of the change (#16373)
4 months ago
Rich Harris 96ff125fcf
chore: fix error boundary test (#16368)
4 months ago
Rich Harris be0818552d
chore: squelch hydration warning in test suite (#16336)
4 months ago
Ahmad S. 63b5ebf36e
fix: silence a11y warning for inert elements (#16339)
4 months ago
Rich Harris 0672e48223
feat: allow `await` in components (#15844)
4 months ago
Rich Harris a23599a196
fix: don't show adjusted error messages in boundaries (#16360)
4 months ago
Ahmad S. 96c1a10042
fix: silence autofocus a11y warning inside `<dialog>` (#16341)
4 months ago
Paolo Ricciuti c9098bcaa0
fix: use `state` instead of `source` in reactive classes (#16239)
4 months ago
Rich Harris 140462374a
fix: re-evaluate derived props during teardown (#16278)
4 months ago
Rich Harris cf2ff5e8dc
fix: abort and reschedule effect processing after state change in user effect (#16280)
4 months ago
Paolo Ricciuti 834cd91b36
fix: account for mounting when `select_option` in `attribute_effect` (#16309)
5 months ago
7nik c3348aea06
fix: do not proxify the value assigned to a derived (#16302)
5 months ago
Simon H 32882a956b
feat: add parent hierarchy to `__svelte_meta` objects at dev time (#16255)
5 months ago
Simon H 2f68131e9a
fix: revert props legacy mode regression (#16279)
5 months ago
Rich Harris b673145659
feat: add `getAbortSignal()` (#16266)
5 months ago
Rich Harris e896c55b6c
chore: bump esrap (#16240)
5 months ago
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