Commit Graph

2780 Commits (7f8e60fd8a53e1eed28a60b5514bd07b49e97423)

Author SHA1 Message Date
Rich Harris 9a52007785
fix: prevent batches from getting intertwined (#16446)
3 months ago
github-actions[bot] cc05cbcf5c
Version Packages (#16445)
3 months ago
ComputerGuy e1e7a75d71
fix: allow async destructured deriveds (#16444)
3 months ago
ComputerGuy 307ec228ff
fix: move store setup/cleanup outside of async component body (#16443)
3 months ago
ComputerGuy ad0b58ee96
fix: move ownership validation into async component body (#16449)
3 months ago
ComputerGuy 63cbe2108a
fix: disallow `export { foo as default }` in `<script module>` (#16447)
3 months ago
Simon H 27c90dfa83
fix: don't reexecute derived with no dependencies on teardown (#16438)
3 months ago
github-actions[bot] 05f6436445
Version Packages (#16435)
3 months ago
Elliott Johnson f5db130e2d
chore: Switch `payload.out` to an array (#16428)
3 months ago
Paolo Ricciuti c2da1ebb85
fix: keep effect in the graph if it has an abort controller (#16430)
3 months ago
github-actions[bot] 93a8a495d2
Version Packages (#16426)
3 months ago
Rich Harris 98fb1b1f8b
fix: allow instrinsic `<svelte:...>` elements to inherit from `SvelteHTMLElements` (#16424)
3 months ago
github-actions[bot] 6c9717a91f
Version Packages (#16418)
3 months ago
Simon H 65e5249296
docs: remove mention of deprecated way to enhance typings (#16416)
3 months ago
Paolo Ricciuti bdf6adb411
fix: delegate functions with shadowed variables if declared locally (#16417)
3 months ago
ComputerGuy f343170927
docs: fix `$effect.root` jsdoc formatting (#16411)
3 months ago
Ray Thurn Void 9e1e7139fb
fix: robustify reset calls in error boundaries (#16171)
3 months ago
Rich Harris e5e6c0cd12
fix docs (#16409)
3 months ago
github-actions[bot] fcfbc9cca0
Version Packages (#16406)
3 months ago
Rich Harris a67b5862f1
fix: more informative error when effects run in an infinite loop (#16405)
3 months ago
Rich Harris 09c9a3c165
fix: silence `$inspect` errors when the effect is about to be destroyed (#16391)
3 months ago
Rich Harris c11c5ec0e3
docs: tweak createSubscriber explanation (#16398)
3 months ago
github-actions[bot] 58788db27b
Version Packages (#16397)
3 months ago
Simon H ee1ef6083a
fix: ensure compiler state is reset before compilation (#16396)
3 months ago
Rich Harris 4947283fa5
fix: avoid microtask in flushSync (#16394)
3 months ago
github-actions[bot] be44f8b23e
Version Packages (#16384)
3 months ago
7nik 6cf3a19342
fix: better handle $inspect on array mutations (#16389)
3 months ago
ComputerGuy 8e73fd4b03
fix: don't log `await_reactivity_loss` warning when signal is read in `untrack` (#16385)
3 months ago
Rich Harris e01bd97bef
fix: update `$effect.pending()` immediately after a batch is removed (#16382)
3 months ago
github-actions[bot] 3fa3dd78a1
Version Packages (#16377)
3 months ago
jjones315 eb23028d8f
fix: add pending snippet to <svelte:boundary> types (#16379)
3 months ago
Rich Harris 9f591223b1
docs: async stuff (#16376)
3 months ago
github-actions[bot] b23f1e0a43
Version Packages (#16374)
3 months ago
Rich Harris 9134caca24
fix: only skip updating bound `<input>` if the input was the source of the change (#16373)
3 months ago
Rich Harris 1e4547b005
chore: add `@since` tags for `settled` and `experimental.async` (#16371)
3 months ago
Rich Harris 2e49783afa
docs: fix code snippets (#16367)
3 months ago
Rich Harris 96ff125fcf
chore: fix error boundary test (#16368)
3 months ago
Rich Harris be0818552d
chore: squelch hydration warning in test suite (#16336)
3 months ago
github-actions[bot] 616d29f5cd
Version Packages (#16364)
3 months ago
Ahmad S. 63b5ebf36e
fix: silence a11y warning for inert elements (#16339)
3 months ago
Rich Harris 0672e48223
feat: allow `await` in components (#15844)
3 months ago
ComputerGuy 82f648157e
chore: clean up a11y analysis code (#16345)
3 months ago
github-actions[bot] 6d8f39f8d2
Version Packages (#16347)
3 months ago
Rich Harris f6a2599ee1
chore: remove memoize_expression (#16358)
3 months ago
Rich Harris df5801c5fe
chore: remove unused option validators (#16361)
3 months ago
Rich Harris 3f3cf9ff36
chore: rename check_dirtiness -> is_dirty (#16359)
3 months ago
Rich Harris a23599a196
fix: don't show adjusted error messages in boundaries (#16360)
3 months ago
Rich Harris 4ef53a75a9
chore: tidy up some stuff (#16357)
3 months ago
Rich Harris 61f75651d6
chore: re-export shared errors (#16356)
3 months ago
Ahmad S. 96c1a10042
fix: silence autofocus a11y warning inside `<dialog>` (#16341)
3 months ago
Ahmad S. e802d3b2cc
chore: replace inline regex with variable (#16340)
3 months ago
github-actions[bot] ca1eb55e97
Version Packages (#16334)
3 months ago
Rich Harris 6f0aec5271
chore: simplify source ownership (#16333)
3 months ago
Rich Harris 8da222f460
chore: simplify component pop (#16331)
3 months ago
Rich Harris 0cafe34c92
chore: DRY out increment logic (#16332)
3 months ago
Rich Harris c3361bfdb7
chore: remove component_context.d (#16330)
3 months ago
Rich Harris 86b06cb694
chore: dry out transition `get_options` (#16329)
3 months ago
Rich Harris 71ed9e4648
chore: simplify/optimize source_ownership occurrence (#16328)
3 months ago
github-actions[bot] fab2091743
Version Packages (#16314)
3 months ago
Paolo Ricciuti c9098bcaa0
fix: use `state` instead of `source` in reactive classes (#16239)
3 months ago
Rich Harris 140462374a
fix: re-evaluate derived props during teardown (#16278)
3 months ago
github-actions[bot] eb094ba059
Version Packages (#16313)
3 months ago
Rich Harris cf2ff5e8dc
fix: abort and reschedule effect processing after state change in user effect (#16280)
3 months ago
github-actions[bot] 63e48365fb
Version Packages (#16303)
3 months ago
Rich Harris 4a26edf545
chore: remove unused `mounting` variable from `select_option` call (#16312)
3 months ago
Paolo Ricciuti 834cd91b36
fix: account for mounting when `select_option` in `attribute_effect` (#16309)
3 months ago
7nik c3348aea06
fix: do not proxify the value assigned to a derived (#16302)
4 months ago
Rich Harris 432763a03e
chore: `reaction_sources` -> `source_ownership` (#16287)
4 months ago
github-actions[bot] 220e901a82
Version Packages (#16297)
4 months ago
Rich Harris eeb32a50d1
fix: bump esrap (#16295)
4 months ago
github-actions[bot] 5ebbedf205
Version Packages (#16281)
4 months ago
Rich Harris dde791311d
chore: minor tweaks (#16285)
4 months ago
Rich Harris 7914cb1835
chore: convert boundary implementation to a class (#16284)
4 months ago
Rich Harris 49cba86e9b
chore: rename EFFECT_HAS_DERIVED to EFFECT_PRESERVED (#16283)
4 months ago
Simon H 32882a956b
feat: add parent hierarchy to `__svelte_meta` objects at dev time (#16255)
4 months ago
github-actions[bot] 9dddb31b4a
Version Packages (#16276)
4 months ago
Simon H 2f68131e9a
fix: revert props legacy mode regression (#16279)
4 months ago
Rich Harris 11ec907fd5
chore: simplify props (#16270)
4 months ago
Rich Harris d427ffd8b9
chore: encapsulate expression memoization (#16269)
4 months ago
Rich Harris eb530c82c4
chore: move stuff from `analysis` into global compiler state (#16268)
4 months ago
Rich Harris b673145659
feat: add `getAbortSignal()` (#16266)
4 months ago
Rich Harris e896c55b6c
chore: bump esrap (#16240)
4 months ago
github-actions[bot] cf9f8c9c6b
Version Packages (#16257)
4 months ago
Simon H 7019894fd9
fix: ensure unowned deriveds can add themselves as reactions while connected (#16249)
4 months ago
Rich Harris 32481bece6
chore: simplify `<select>` initialization (#16251)
4 months ago
Rich Harris 213274a75e
chore: reduce some select.value indirection (#16250)
4 months ago
Rich Harris da2feafe67
chore: silence some pesky logs (#16241)
4 months ago
7nik 0b2b9c724f
chore: adjust linting (#16231)
4 months ago
github-actions[bot] 777e67b948
Version Packages (#16216)
4 months ago
Paolo Ricciuti 922bee9a6d
fix: use fine grained for template if the component is not explicitly in legacy mode (#16232)
4 months ago
Fedor Nezhivoi 2af7ba2156
fix: lift unsafe_state_mutation constraints for SvelteSet and SvelteMap created inside the derived (#16221)
4 months ago
Paolo Ricciuti c4b32c2bff
fix: untrack `$inspect.with` and add check for unsafe mutation (#16209)
4 months ago
7nik 4db4ee5330
chore: rid of nodeType magic numbers (#16208)
4 months ago
github-actions[bot] 669a2233ee
Version Packages (#16205)
4 months ago
7nik 659198a95c
fix: address css class matching regression (#16204)
4 months ago
github-actions[bot] d941cf5d3b
Version Packages (#16196)
4 months ago
7nik 2b20a2d16b
fix: match class and style directives against attribute selector (#16179)
4 months ago
github-actions[bot] 402434e6cd
Version Packages (#16195)
4 months ago
Ray Thurn Void de90fc8dce
Test array sort in effect to prevent regressions of this use-case (#16175)
4 months ago
floriskn 579d0e6636
fix: ensure undefined attributes are removed during hydration (#16178)
4 months ago
Simon H a5f500e7c0
fix: keep spread non-delegated event handlers up to date (#16180)
4 months ago
7nik 838f881550
fix: avoid shadowing a variable in dynamic components (#16185)
4 months ago
Simon H 061ab31d23
fix: ensure sources within nested effects still register correctly (#16193)
4 months ago
github-actions[bot] 0524d16215
Version Packages (#16181)
4 months ago
Rich Harris b224c3fb4b
fix: coarse reactivity, alternative approach (#16100)
4 months ago
Paolo Ricciuti 7e588857c2
fix: don't set state withing `with_parent` in proxy (#16176)
4 months ago
Rich Harris 931f211b25
chore: fix `$.attachment` prop (#16172)
4 months ago
Rich Harris c91e69b15b
chore: remove some unnecessary code (#16160)
4 months ago
github-actions[bot] 546608636a
Version Packages (#16157)
4 months ago
7nik 6636f748ae
fix: prevent memory leaking signals in legacy mode (#16145)
4 months ago
Matei Trandafir 92ea58bee6
fix: don't eagerly execute deriveds on resume (#16150)
4 months ago
Paolo Ricciuti 113a3daab2
fix: don't define `error.message` if it's not configurable (#16149)
4 months ago
github-actions[bot] da63318191
Version Packages (#16147)
4 months ago
ComputerGuy 36315fece4
fix: prune typescript class field declarations (#16154)
4 months ago
Lyu, Wei-Da 6a7df1cce8
fix: add missing typings for some dimension bindings (#16142)
4 months ago
github-actions[bot] f0497b15ee
Version Packages (#16133)
4 months ago
Rich Harris f5a020d56b
fix: correctly tag private class state fields (#16132)
4 months ago
Rich Harris e8a7c426d4 remove errant log
4 months ago
github-actions[bot] ee25c15a96
Version Packages (#16128)
4 months ago
Rich Harris 438349eb88
fix: better `$inspect.trace()` output (#16131)
4 months ago
L. 292af8d38a
feat: add `command` and `commandfor` to `HTMLButtonAttributes` (#16117)
4 months ago
Paolo Ricciuti 90807ca18d
fix: properly hydrate dynamic css props components and remove element removal (#16118)
4 months ago
ComputerGuy 91272d702b
feat: add source name logging to `$inspect.trace` (#16060)
4 months ago
github-actions[bot] 17629a60db
Version Packages (#16121)
4 months ago
Paolo Ricciuti fd08cb03de
fix: reset `is_flushing` if `flushSync` is called and there's no scheduled effect (#16119)
4 months ago
github-actions[bot] 26e3286899
Version Packages (#16107)
4 months ago
Rich Harris 5f62b9e441
chore: bump esrap (#16106)
4 months ago
Paolo Ricciuti 669a32a615
fix: destructuring state in ssr (#16102)
4 months ago
github-actions[bot] d5c6991b3b
Version Packages (#16101)
4 months ago
ComputerGuy 0741ee65d1
chore: update acorn parser `ecmaVersion` to parse import attributes (#16098)
4 months ago
github-actions[bot] 2bbaaa361b
Version Packages (#16097)
4 months ago
Christoph Sanz 8d8fdb8a56
fix: add `xmlns` attribute to HTMLAttributes type (#16080)
4 months ago
Paolo Ricciuti 8faa178cd7
fix: visit expression when destructuring state declarations (#16081)
4 months ago
github-actions[bot] 370b18f278
Version Packages (#16094)
4 months ago
Rich Harris 2d2772a4a1
fix: invoke parent boundary of deriveds that throw (#16091)
4 months ago
Rich Harris 2342c8719a
chore: better HTML normalization test helper (#16056)
5 months ago
github-actions[bot] 335779dcf5
Version Packages (#16064)
5 months ago
Paolo Ricciuti 1b5f6af276
fix: destructuring snippet arguments (#16068)
5 months ago
Rich Harris b851b54e9d
Revert "feat: enable TS autocomplete for Svelte HTML element definitions" (#16063)
5 months ago
github-actions[bot] 194f5b34fd
Version Packages (#16059)
5 months ago
ComputerGuy 6a3066519c
fix: avoid recursion error in `EachBlock` visitor (#16058)
5 months ago
github-actions[bot] 8175091423
Version Packages (#16054)
5 months ago
ComputerGuy b5fcd112c6
fix: correctly transform reassignments to class fields in SSR mode (#16051)
5 months ago
github-actions[bot] e5d0cd2eb4
Version Packages (#16045)
5 months ago
Rich Harris 54990f2329
fix: use local mutable sources for props in legacy mode in case they are indirectly invalidated (#16038)
5 months ago
github-actions[bot] 2f90dd8246
Version Packages (#16037)
5 months ago
Ray Thurn Void ff72dd27bc
fix: transitions might render animated elements without animation styles applied for the duration of some rendering frames when they start (#16035)
5 months ago
github-actions[bot] b5b814c7de
Version Packages (#16034)
5 months ago
Rich Harris 23d42fb8ac
fix: put expressions in effects unless known to be static (#15792)
5 months ago
github-actions[bot] 7a8cb378a1
Version Packages (#16033)
5 months ago
Paolo Ricciuti c9ce4f439f
fix: only `select_option` if `'value'` is in `next` (#16032)
5 months ago
github-actions[bot] 0d67ff4865
Version Packages (#16029)
5 months ago
Paolo Ricciuti 3ea2dbc6a1
fix: `bind:value` to select with stores (#16028)
5 months ago
github-actions[bot] 7433cb98e5
Version Packages (#16023)
5 months ago
Paolo Ricciuti 6351288c7b
fix: falsy attachments on components (#16021)
5 months ago
Paolo Ricciuti 40e0e33883
feat: ssr select value (#16017)
5 months ago
github-actions[bot] b2fa84702d
Version Packages (#16020)
5 months ago
Rich Harris b8d15135cf
fix: stable attachments (#15961)
5 months ago
Rich Harris 81a34aa134
fix: handle derived destructured iterators (#16015)
5 months ago
github-actions[bot] 2e27c5d8aa
Version Packages (#16010)
5 months ago
Paolo Ricciuti 37488fa65c
fix: warn when using rest or identifier in custom elements without props option (#16003)
5 months ago
Hyunbin Seo 4e3ff0944d
fix: narrow `defaultChecked` to boolean (#16009)
5 months ago
github-actions[bot] 6e2ba643c5
Version Packages (#16002)
5 months ago
7nik 94a2bca0e3
fix: cleanup event handlers on media elements (#16005)
5 months ago
Paolo Ricciuti fbb6444fd8
fix: allow using typescript in `customElement.extend` option (#16001)
5 months ago
github-actions[bot] add0c6a987
Version Packages (#15998)
5 months ago
Rich Harris a38ea026c7
fix: don't mark deriveds as clean if updating during teardown (#15997)
5 months ago
7nik 4875cd6e67
fix: correctly parse escaped unicode characters in css selector (#15976)
5 months ago
Rich Harris 4c21f66f27
chore: add `@since` tag to fragments option (#15990)
5 months ago
venus 6928aaca06
feat: enable TS autocomplete for Svelte HTML element definitions (#15972)
5 months ago
github-actions[bot] db7b25b678
Version Packages (#15989)
5 months ago
Simon H ac046df40a
fix: make deriveds on the server lazy again (#15964)
5 months ago
github-actions[bot] 9250c9cb36
Version Packages (#15987)
5 months ago
Paolo Ricciuti d1141a19b5
feat: functional template generation (#15538)
5 months ago
github-actions[bot] 5a840982a7
Version Packages (#15978)
5 months ago
Rich Harris 50de8c5317
fix: attach __svelte_meta correctly to elements following a CSS wrapper (#15982)
5 months ago
Rich Harris c03ea47e4e
chore: simplify `<pre>` cleaning (#15980)
5 months ago
Paolo Ricciuti 4e72b7d28b
fix: import `untrack` directly from client in `svelte/attachments` (#15974)
5 months ago
github-actions[bot] ef48d35a15
Version Packages (#15967)
5 months ago
Gautier Ben Aïm de8094910d
fix(14815): warn when an invalid <select multiple> value is given (#14816)
5 months ago
github-actions[bot] 21d5448ab7
Version Packages (#15959)
5 months ago
Rich Harris 93443f9316
fix: only re-run directly applied attachment if it changed (#15962)
5 months ago
7nik c66a43940a
feat: warn on implicitly closed tags (#15932)
5 months ago
Paolo Ricciuti 7183886a73
feat: attachments `fromAction` utility (#15933)
5 months ago
github-actions[bot] a96d01b918
Version Packages (#15956)
5 months ago
Paolo Ricciuti a2ddca1aa1
fix: avoid auto-parenthesis for special-keywords-only `MediaQuery` (#15937)
5 months ago
Paolo Ricciuti b7b393d50f
chore: watch for messages changes in dev generate script (#15950)
5 months ago
github-actions[bot] 21bf947ca8
Version Packages (#15947)
5 months ago
Elliott Johnson d103adff9c
feat: State declarations in class constructors (#15820)
5 months ago
Mateusz Kadlubowski b2ce3fa85e
(fix/ast types) fix: Add missing `AttachTag` in `Tag` union type inside the `AST` namespace from `"svelte/compiler"` (#15946)
5 months ago
github-actions[bot] c365634ace
Version Packages (#15931)
5 months ago
pengqiseven c7e4b8e765
chore: remove redundant word in comment (#15942)
5 months ago
Paolo Ricciuti 60b22ab933
fix: falsy attachments types (#15939)
5 months ago
Matteo Battista a5a0b49003
fix: update_branch with (anchor).data possible undefined on ios devices (#15851)
5 months ago
github-actions[bot] 271fd33634
Version Packages (#15922)
5 months ago
Paolo Ricciuti 0e22b54110
fix: add `typeParams` to `SnippetBlock` for legacy parser (#15921)
5 months ago
github-actions[bot] e2a13a3beb
Version Packages (#15916)
5 months ago
Paolo Ricciuti 66a21552f6
feat: allow generics on snippets (#15915)
5 months ago
github-actions[bot] 51b858dfd1
Version Packages (#15914)
5 months ago
Rich Harris b93a617aa8
feat: attachments (#15000)
5 months ago