Commit Graph

3015 Commits (svelte@5.49.0)

Author SHA1 Message Date
Simon H 16117d9b69
perf: skip repeatedly traversing the same derived (#17016)
10 months ago
Rich Harris 851da4b629
chore: exclude vite optimized deps from stack traces (#17008)
10 months ago
github-actions[bot] 3009a0208f
Version Packages (#16992)
10 months ago
Rich Harris 7e40186a5f
fix: run batch until complete (#16971)
10 months ago
Rich Harris 4b32d6d8b3
fix: make `$inspect` logs come from the callsite (#17001)
10 months ago
Simon H a57868ebce
fix: don't preserve reactivity context across function boundaries (#17002)
10 months ago
David f549478dd0
fix: guard contents updated before the guard itself (#16930)
10 months ago
github-actions[bot] 7d9ea8ea99
Version Packages (#16984)
10 months ago
Rich Harris b8627e511d
chore: centralise branch management (#16977)
10 months ago
ComputerGuy 9a488d6b25
fix: place `let:` declarations before `{@const}` declarations (#16985)
10 months ago
Rich Harris c8ef540985
fix: improve `each_key_without_as` error (#16983)
10 months ago
github-actions[bot] bd2d3db6d0
Version Packages (#16970)
10 months ago
Rich Harris 53f2693b3b
feat: `$state.eager(value)` (#16849)
10 months ago
Rich Harris ee093e4c86
fix: preserve `<select>` state while focused (#16958)
10 months ago
Rich Harris 9b5fb3f430
fix: error if `each` block has `key` but no `as` clause (#16966)
10 months ago
Rich Harris 7d977fad88
chore: run boundary async effects in the context of the current batch (#16968)
10 months ago
github-actions[bot] a54186242a
Version Packages (#16967)
10 months ago
Paolo Ricciuti 8691391c08
fix: add hydration markers in `pending` branch of SSR boundary (#16965)
10 months ago
github-actions[bot] 94fc836e3a
Version Packages (#16950)
10 months ago
Rich Harris 470d61221e
chore: tidy up (#16957)
10 months ago
Rich Harris d6d13ced08
docs: improve createContext documentation (#16952)
10 months ago
Elliott Johnson 9cdd76e3a3
chore: Remove annoying sync-async warning (#16949)
10 months ago
github-actions[bot] 005895d994
Version Packages (#16946)
10 months ago
Rich Harris f3c55e8e6c
feat: add `createContext` utility for type-safe context (#16948)
10 months ago
Simon H 99711d5822
fix: ensure map iteration order is correct (#16947)
10 months ago
Simon H 28765f846e
fix: don't rerun async effects unnecessarily (#16944)
10 months ago
Rich Harris d50701d277 unused
10 months ago
Rich Harris a7c958a2a5
chore: simplify `batch.apply()` (#16945)
10 months ago
github-actions[bot] 2a951391dc
Version Packages (#16940)
10 months ago
Hannes Rüger e8330ee7bf
fix: svg `radialGradient` `fr` attribute missing in types (#16943)
10 months ago
Simon H 23e2bb3b89
fix: unset context on stale promises (#16935)
10 months ago
github-actions[bot] 420468a041
Version Packages (#16920)
10 months ago
Simon H 5d9b4c66ca
fix: better input cursor restoration for `bind:value` (#16925)
10 months ago
7nik 93012e1e6f
fix: track the user's getter of `bind:this` (#16916)
10 months ago
Paolo Ricciuti 297afd0578
fix: generate correct code for `each` blocks with async body (#16923)
10 months ago
Paolo Ricciuti 7f8e60fd8a
fix: generate correct SSR code for the case where `pending` is an attribute (#16919)
10 months ago
Simon H 9c350cfdab
chore: test for batches flush fix (#16915)
10 months ago
github-actions[bot] 844fab7798
Version Packages (#16913)
10 months ago
Rich Harris b5c8437151
fix: flush batches whenever an async value resolves (#16912)
10 months ago
github-actions[bot] 06bd6a8fbd
Version Packages (#16909)
10 months ago
Simon H 78481862fb
fix: hydrate each blocks inside element correctly (#16908)
10 months ago
Paolo Ricciuti 1b1f144396
fix: add `UNKNOWN` evaluation value before breaking for `binding.initial===SnippetBlock` (#16910)
10 months ago
ComputerGuy edcd4b59e3
fix: correctly transform `$derived` private fields on server (#16894)
10 months ago
Yuki Ishii 5d1ffcf413
fix: allow await in if block consequent and alternate (#16890)
10 months ago
ComputerGuy 303750a124
fix: don't replace rest props with `$$props` for excluded props (#16898)
10 months ago
github-actions[bot] acdd93053d
Version Packages (#16899)
10 months ago
Rich Harris 2b49a5e3c0
fix: flush when pending boundaries resolve (#16897)
10 months ago
github-actions[bot] 5c847ff79e
Version Packages (#16877)
11 months ago
Jungzl 949c026259
fix: preserve tuple type in `$state.snapshot` (#16864)
11 months ago
ComputerGuy 499973454a
fix: check boundary `pending` attribute at runtime on server (#16855)
11 months ago
Yuki Ishii 4f653ddcea
fix: update error message to clarify usage with radio inputs (#16874)
11 months ago
Yuki Ishii 31541c8849
fix: allow await in svelte boundary without pending (#16857)
11 months ago
github-actions[bot] e9cd45a2da
Version Packages (#16848)
11 months ago
Jakub Kolesár 46c10d0476
fix: missing title warning for buttons and anchor tags (#16872)
11 months ago
Rich Harris 25cbdc8cb1
fix: merge batches (#16866)
11 months ago
ComputerGuy 87f7e97963
fix: wrap async `children` in `$$renderer.async` (#16862)
11 months ago
ComputerGuy 8895bd44f5
fix: coerce nullish `<title>` to empty string (#16863)
11 months ago
Simon H bb33c555b4
chore: bump some dev deps, harden github actions (#16851)
11 months ago
Rich Harris ed0a39345b
chore: simplify batch logic (#16838)
11 months ago
Rich Harris f0cede6782
chore: replace queue_idle_task with queue_micro_task (#16844)
11 months ago
github-actions[bot] b92a55994b
Version Packages (#16824)
11 months ago
LeeWxx ac7e160029
fix: SSR scoped classes for <select value> elements (#16821)
11 months ago
7nik 24944e61f5
fix: async `class:` + spread attributes were compiled into sync server-side code (#16834)
11 months ago
Aaron Ajose 7b2113e1bf
chore: fix typos (#16830)
11 months ago
Simon H 1ef297f25d
fix: ensure tick resolves within a macrotask (#16825)
11 months ago
Simon H 5e6fed6bab
fix: depend on reads of deriveds created within reaction (async mode) (#16823)
11 months ago
github-actions[bot] 8680c29a0a
Version Packages (#16818)
11 months ago
Brittany Harris 562623d536
fix: use SSR format compatible with nginx SSI for props.id (#16820)
11 months ago
ComputerGuy cf35a22568
fix: allow `{@html await ...}` and async snippets on the server (#16817)
11 months ago
github-actions[bot] 3c694ce3a4
Version Packages (#16807)
11 months ago
Rich Harris 0e75498c21
fix: restore hydration state after `await` in `<script>` (#16806)
11 months ago
github-actions[bot] ded13b825d
Version Packages (#16801)
11 months ago
Rich Harris 5c09035685
fix: async hydration (#16797)
11 months ago
Rich Harris 1c8456885c
fix: remove outer hydration markers (#16800)
11 months ago
Rich Harris e5a75aecf8
chore: add explicit renderer.head method (#16796)
11 months ago
Rich Harris dc7da40369
chore: fix more wacky compiler output (#16794)
11 months ago
github-actions[bot] 4616422832
Version Packages (#16789)
11 months ago
Rich Harris e4ebca9289
fix: preserve SSR context when block expressions contain `await` (#16791)
11 months ago
Rich Harris 39682e2435
chore: fix SSR compiler output (#16790)
11 months ago
Rich Harris 88d7e05a2e
chore: update sandbox to support async SSR (#16787)
11 months ago
github-actions[bot] 16e16da1a8
Version Packages (#16785)
11 months ago
Rich Harris 6076bab730
fix: issue `state_proxy_unmount` warning when unmounting a state proxy (#16747)
11 months ago
Elliott Johnson 6798efacb2
chore: Rename Payload to Renderer (#16786)
11 months ago
Rich Harris fc35d9fab8
fix: add `then` to class component `render` output (#16783)
11 months ago
github-actions[bot] eaf4d40f51
Version Packages (#16774)
11 months ago
Elliott Johnson b8fd326d96
feat: async SSR (#16748)
11 months ago
7nik 8c982f6101
fix: correct wrong fix, get test to actually do something (#16779)
11 months ago
7nik 8b106b94f4
fix: correctly SSR hidden="until-found" (#16773)
11 months ago
Rich Harris 8b4e1fcb7a
chore: extract a couple of drive-by fixes from other branch (#16772)
11 months ago
Rich Harris 808fbb4989
chore: inline `suspend` (#16755)
11 months ago
github-actions[bot] df13be8727
Version Packages (#16754)
11 months ago
Rich Harris 72ce753278
fix: flush effects scheduled during boundary's pending phase (#16738)
11 months ago
github-actions[bot] 96a4b16842
Version Packages (#16744)
11 months ago
dai 558a3c963b
fix: transform input defaults from spread (#16481)
11 months ago
ComputerGuy 2743cd0fe5
fix: correctly analyze `<object.property>` components (#16711)
11 months ago
Elliott Johnson f09f25e6a3
fix: Don't destroy boundary contents on error unless the boundary is an error boundary (#16746)
11 months ago
ComputerGuy 68d27f1c4f
chore: generate CSS hash using the filename (#16740)
11 months ago
Simon H f343b00cc6
fix: clean up scheduling system (#16741)
11 months ago
github-actions[bot] f778975b76
Version Packages (#16734)
11 months ago
Rich Harris 18dd45640b
fix: send `$effect.pending` count to the correct boundary (#16732)
11 months ago
github-actions[bot] d92fa432d1
Version Packages (#16690)
11 months ago
Simon H f51c04afce
fix: ensure batch exists when resetting a failed boundary (#16698)
11 months ago
ComputerGuy 2344b4052e
fix: replace `undefined` with `void(0)` in CallExpressions (#16693)
12 months ago
ComputerGuy be645b4d9f
fix: place store setup inside async body (#16687)
12 months ago
Rich Harris 8f11796838 remove unused import
12 months ago
github-actions[bot] 942eaf027b
Version Packages (#16677)
12 months ago
Simon H bde51ed7dc
fix: don't fail on `flushSync` while flushing effects (#16674)
12 months ago
github-actions[bot] 5314f48d95
Version Packages (#16673)
12 months ago
github-actions[bot] 5912754fd6
Version Packages (#16667)
12 months ago
Simon H 677af5723c
fix: ensure async deriveds always get dependencies from thennable (#16672)
12 months ago
Gurpreet Atwal 967431c1a7
chore(elements.d.ts): add "Accept-CH" as valid value for `http-equiv` (#16671)
12 months ago
hariharan 0d48916e02
fix: cursor jumps in input two way binding (#16649)
12 months ago
Edoardo Cavazza 6534aa08e3
fix: Add check for builtin custom elements in `set_custom_element_data` (#16592)
12 months ago
Rich Harris 7105736828
fix: restore batch along with effect context (#16668)
12 months ago
ComputerGuy 57fed6a267
fix: place instance-level snippets inside async body (#16666)
12 months ago
github-actions[bot] e883cd086b
Version Packages (#16642)
12 months ago
Rich Harris d3cb1482fe
perf: better effect pruning (#16625)
12 months ago
Simon H acd9eaf2ec
fix: ensure correct order of template effect values (#16655)
12 months ago
ComputerGuy 11a2d8e937
fix: only emit `for_await_track_reactivity_loss` in async mode (#16644)
12 months ago
Simon H a60995abef
fix: allow async `{@const}` in more places (#16643)
12 months ago
Simon H 1dcced59e7
fix: properly catch top level await errors (#16619)
12 months ago
github-actions[bot] 04836a8799
Version Packages (#16603)
12 months ago
Rich Harris f5d4350f3d
Revert "fix: do not defer unmount; immediately unmount components (#16624)" (#16639)
12 months ago
Rich Harris 2b85d2a544
fix: run blocks eagerly during flush (#16631)
1 year ago
Rich Harris 7b2d774627
chore: update/simplify test (#16630)
1 year ago
Harsh Mandan 95e5175581
fix: do not defer unmount; immediately unmount components (#16624)
1 year ago
ComputerGuy 036d4588ab
fix: actually use the changes from #16617 (#16626)
1 year ago
ComputerGuy a543559acf
fix: avoid recursion error when tagging circular references (#16622)
1 year ago
ComputerGuy ad19a1a0f5
fix: don't clone non-proxies in `$inspect` (#16617)
1 year ago
github-actions[bot] 2e02868ef1
Version Packages (#16573)
1 year ago
Simon H 0480f040c0
fix: skip effects inside dynamic component that is about to be destroyed (#16601)
1 year ago
shamokit d2ba2589fe
fix: add hint popover (#16581)
1 year ago
Ben McCann f00b364d5b
chore: switch to jrdigewell version of remapping library (#16587)
1 year ago
Paolo Ricciuti 548ad7b7eb
fix: wrap `abort` in `without_reactive_context` (#16570)
1 year ago
Nathan Shively-Sanders 97f263c3d4
chore:Update for TS7 (#16485)
1 year ago
github-actions[bot] ec03c7ac36
Version Packages (#16560)
1 year ago
ComputerGuy 193f23fa05
feat: async fragments (#16542)
1 year ago
Rich Harris 41a20aa975
chore: remove `b.async` (#16566)
1 year ago
ComputerGuy b181c45484
chore: emit `await_reactivity_loss` in `for await` loops (#16521)
1 year ago
7nik bbd0b1ed87
fix: remount at any hydration error (#16248)
1 year ago
ComputerGuy d8c3f3d87e
fix: emit `snippet_invalid_export` instead of `undefined_export` for exported snippets (#16539)
1 year ago
Rich Harris e7e8a9c7b7
docs: remove 'thus', fix some phrasing (#16559)
1 year ago
Isak Regnström e1ff6ddf17
Correct link in README.md (#16557)
1 year ago
Anthony a3f18351af
docs: corrections (#16550)
1 year ago
github-actions[bot] 0cbb5becf6
Version Packages (#16544)
1 year ago
7nik 540f1b19ec
fix: reset attribute cache after setting corresponding property (#16543)
1 year ago
github-actions[bot] 9134856fec
Version Packages (#16529)
1 year ago
Rich Harris c04975d3db
fix: prevent last_propagated_event from being DCE'd (#16538)
1 year ago
Elliot Bentley 72e46d31c0
fix: add types for SVG bindable attributes (#16525)
1 year ago
ComputerGuy f5950f866c
fix: correctly differentiate static fields before emitting `duplicate_class_field` (#16526)
1 year ago
Laszlo Korte a91e0154d4
fix: double event processing in Firefox (#16522) (#16527)
1 year ago
github-actions[bot] d82edf6b1d
Version Packages (#16513)
1 year ago
ComputerGuy 48f2fa22c0
fix: allow await expressions inside `{#await ...}` argument (#16514)
1 year ago
ComputerGuy 03f2e44757
chore: remove some todos (#16515)
1 year ago
Rich Harris 51771447c6
chore: remove `parser.template_untrimmed` (#16511)
1 year ago
Paolo Ricciuti 99452053af
fix: `append_styles` in an effect to make them available on mount (#16509)
1 year ago
fkobi 1773df9484
docs: use sh instead of bash in source blocks (#16506)
1 year ago
github-actions[bot] 39ee7cf4c2
Version Packages (#16505)
1 year ago
Rich Harris 7cc4d56263
feat: ignore component options in `compileModule` (#16362)
1 year ago
7nik c7851789d7
fix: always mark props as stateful (#16504)
1 year ago
github-actions[bot] d0ebd42986
Version Packages (#16500)
1 year ago
ComputerGuy b0f9ea3ae6
fix: throw on duplicate class field declarations (#16502)
1 year ago
Bladesheng 0bba84cc20
fix: add types for `part` attribute to svg attributes (#16499)
1 year ago
github-actions[bot] 8ad02e4a8c
Version Packages (#16493)
1 year ago
Rich Harris dc043fb2d3
fix: don't update a focused input with values from its own past (#16491)
1 year ago
Simon H 7eb11e0e24
fix: don't destroy effect roots created inside of deriveds (#16492)
1 year ago
github-actions[bot] 4e74cd35fe
Version Packages (#16488)
1 year ago
Simon H 46d3261ed9
chore: don't do effect scheduling unnecessarily (#16489)
1 year ago
Rich Harris 53417ea8f7
fix: preserve dirty status of deferred effects (#16487)
1 year ago
github-actions[bot] f8820956d2
Version Packages (#16484)
1 year ago
Hyunbin Seo c26365bdda
chore: rename form `accept-charset` attribute (#16478)
1 year ago
Rich Harris 8e2f4b51c5
fix: unset batch before flushing queued effects (#16482)
1 year ago
Rich Harris 68372460e9
chore: small tidy up (#16476)
1 year ago
Rich Harris 1deb31082a
fix: abort and reschedule `$effect.pre` when necessary (#16335)
1 year ago
Rich Harris 9412c5861c
chore: log effect functions in log_effect_tree (#16468)
1 year ago
github-actions[bot] 28403beaeb
Version Packages (#16467)
1 year ago
Simon H aabd333d89
fix: ensure subscriptions are picked up correctly by deriveds (#16466)
1 year ago
github-actions[bot] ce4a99ed6d
Version Packages (#16459)
1 year ago
github-actions[bot] 8afe5ec0c5
Version Packages (#16453)
1 year ago
Rich Harris 1f99914a16
chore: move `capture_signals` to legacy module (#16456)
1 year ago
Rich Harris d3a01bd5a7
fix: always mark reactions of deriveds (#16457)
1 year ago
Rich Harris 53fdd0f93a
chore: remove some unused code (#16455)
1 year ago
Rich Harris 0a2a2e213a
fix: add labels to `@const` tags and props (#16454)
1 year ago
Rich Harris 5033c8e965
fix: tag stores for `$inspect.trace()` (#16452)
1 year ago
github-actions[bot] dd55de3b75
Version Packages (#16450)
1 year ago
Rich Harris 9a52007785
fix: prevent batches from getting intertwined (#16446)
1 year ago
github-actions[bot] cc05cbcf5c
Version Packages (#16445)
1 year ago
ComputerGuy e1e7a75d71
fix: allow async destructured deriveds (#16444)
1 year ago
ComputerGuy 307ec228ff
fix: move store setup/cleanup outside of async component body (#16443)
1 year ago
ComputerGuy ad0b58ee96
fix: move ownership validation into async component body (#16449)
1 year ago
ComputerGuy 63cbe2108a
fix: disallow `export { foo as default }` in `<script module>` (#16447)
1 year ago
Simon H 27c90dfa83
fix: don't reexecute derived with no dependencies on teardown (#16438)
1 year ago
github-actions[bot] 05f6436445
Version Packages (#16435)
1 year ago
Elliott Johnson f5db130e2d
chore: Switch `payload.out` to an array (#16428)
1 year ago
Paolo Ricciuti c2da1ebb85
fix: keep effect in the graph if it has an abort controller (#16430)
1 year ago
github-actions[bot] 93a8a495d2
Version Packages (#16426)
1 year ago
Rich Harris 98fb1b1f8b
fix: allow instrinsic `<svelte:...>` elements to inherit from `SvelteHTMLElements` (#16424)
1 year ago
github-actions[bot] 6c9717a91f
Version Packages (#16418)
1 year ago
Simon H 65e5249296
docs: remove mention of deprecated way to enhance typings (#16416)
1 year ago
Paolo Ricciuti bdf6adb411
fix: delegate functions with shadowed variables if declared locally (#16417)
1 year ago
ComputerGuy f343170927
docs: fix `$effect.root` jsdoc formatting (#16411)
1 year ago
Ray Thurn Void 9e1e7139fb
fix: robustify reset calls in error boundaries (#16171)
1 year ago
Rich Harris e5e6c0cd12
fix docs (#16409)
1 year ago
github-actions[bot] fcfbc9cca0
Version Packages (#16406)
1 year ago
Rich Harris a67b5862f1
fix: more informative error when effects run in an infinite loop (#16405)
1 year ago
Rich Harris 09c9a3c165
fix: silence `$inspect` errors when the effect is about to be destroyed (#16391)
1 year ago
Rich Harris c11c5ec0e3
docs: tweak createSubscriber explanation (#16398)
1 year ago
github-actions[bot] 58788db27b
Version Packages (#16397)
1 year ago
Simon H ee1ef6083a
fix: ensure compiler state is reset before compilation (#16396)
1 year ago
Rich Harris 4947283fa5
fix: avoid microtask in flushSync (#16394)
1 year ago
github-actions[bot] be44f8b23e
Version Packages (#16384)
1 year ago
7nik 6cf3a19342
fix: better handle $inspect on array mutations (#16389)
1 year ago
ComputerGuy 8e73fd4b03
fix: don't log `await_reactivity_loss` warning when signal is read in `untrack` (#16385)
1 year ago
Rich Harris e01bd97bef
fix: update `$effect.pending()` immediately after a batch is removed (#16382)
1 year ago
github-actions[bot] 3fa3dd78a1
Version Packages (#16377)
1 year ago
jjones315 eb23028d8f
fix: add pending snippet to <svelte:boundary> types (#16379)
1 year ago
Rich Harris 9f591223b1
docs: async stuff (#16376)
1 year ago
github-actions[bot] b23f1e0a43
Version Packages (#16374)
1 year ago
Rich Harris 9134caca24
fix: only skip updating bound `<input>` if the input was the source of the change (#16373)
1 year ago
Rich Harris 1e4547b005
chore: add `@since` tags for `settled` and `experimental.async` (#16371)
1 year ago
Rich Harris 2e49783afa
docs: fix code snippets (#16367)
1 year ago
Rich Harris 96ff125fcf
chore: fix error boundary test (#16368)
1 year ago
Rich Harris be0818552d
chore: squelch hydration warning in test suite (#16336)
1 year ago
github-actions[bot] 616d29f5cd
Version Packages (#16364)
1 year ago
Ahmad S. 63b5ebf36e
fix: silence a11y warning for inert elements (#16339)
1 year ago
Rich Harris 0672e48223
feat: allow `await` in components (#15844)
1 year ago
ComputerGuy 82f648157e
chore: clean up a11y analysis code (#16345)
1 year ago
github-actions[bot] 6d8f39f8d2
Version Packages (#16347)
1 year ago
Rich Harris f6a2599ee1
chore: remove memoize_expression (#16358)
1 year ago
Rich Harris df5801c5fe
chore: remove unused option validators (#16361)
1 year ago
Rich Harris 3f3cf9ff36
chore: rename check_dirtiness -> is_dirty (#16359)
1 year ago
Rich Harris a23599a196
fix: don't show adjusted error messages in boundaries (#16360)
1 year ago
Rich Harris 4ef53a75a9
chore: tidy up some stuff (#16357)
1 year ago
Rich Harris 61f75651d6
chore: re-export shared errors (#16356)
1 year ago
Ahmad S. 96c1a10042
fix: silence autofocus a11y warning inside `<dialog>` (#16341)
1 year ago
Ahmad S. e802d3b2cc
chore: replace inline regex with variable (#16340)
1 year ago
github-actions[bot] ca1eb55e97
Version Packages (#16334)
1 year ago
Rich Harris 6f0aec5271
chore: simplify source ownership (#16333)
1 year ago
Rich Harris 8da222f460
chore: simplify component pop (#16331)
1 year ago
Rich Harris 0cafe34c92
chore: DRY out increment logic (#16332)
1 year ago
Rich Harris c3361bfdb7
chore: remove component_context.d (#16330)
1 year ago
Rich Harris 86b06cb694
chore: dry out transition `get_options` (#16329)
1 year ago
Rich Harris 71ed9e4648
chore: simplify/optimize source_ownership occurrence (#16328)
1 year ago
github-actions[bot] fab2091743
Version Packages (#16314)
1 year ago
Paolo Ricciuti c9098bcaa0
fix: use `state` instead of `source` in reactive classes (#16239)
1 year ago
Rich Harris 140462374a
fix: re-evaluate derived props during teardown (#16278)
1 year ago
github-actions[bot] eb094ba059
Version Packages (#16313)
1 year ago
Rich Harris cf2ff5e8dc
fix: abort and reschedule effect processing after state change in user effect (#16280)
1 year ago
github-actions[bot] 63e48365fb
Version Packages (#16303)
1 year ago
Rich Harris 4a26edf545
chore: remove unused `mounting` variable from `select_option` call (#16312)
1 year ago