Commit Graph

2720 Commits (b48c12b8594e5653cd333f6de3bce53e2c54c373)

Author SHA1 Message Date
Rich Harris 5d9bd7f1ef more
8 months ago
Rich Harris 527deea929 more
8 months ago
Rich Harris 892dc82aa2 rename
8 months ago
Rich Harris f9eb2f9f9d mirror some changes from main
8 months ago
github-actions[bot] bbeeed421b
Version Packages (#15380)
8 months ago
Rich Harris 5f3b4d5421
chore: DRY out assignment validation (#15360)
8 months ago
Rich Harris 51337f22bd
chore: simplify flushing (#15348)
8 months ago
Rich Harris 7958eb74df
chore: remove unnecessary `binding.is_called` property (#15361)
8 months ago
Rich Harris 1b882fb1b5
chore: remove reactive_statements from state (#15363)
8 months ago
Rich Harris bfeb9ad448
chore: create `binding.updated` getter (#15362)
8 months ago
Rich Harris 53d1b17ce9
remove some unused exports (#15365)
8 months ago
Rich Harris 52d6ed1c73
remove instance_scope (#15364)
8 months ago
github-actions[bot] 220c2418d1
Version Packages (#15358)
8 months ago
adiGuba d4360af751
chore: rewrite set_class() to handle directives (#15352)
8 months ago
Alexis 5a946e7905
fix: Allow @const inside #key (#15377)
8 months ago
Rich Harris 3c4a8d425b
chore: make Binding a class (#15359)
8 months ago
adiGuba 1e1aea4063
chore: remove unnecessary `?? ''` on some expressions (#15287)
8 months ago
Rich Harris c582b5d3b5
chore: simplify flush_sync (#15346)
8 months ago
Rich Harris 0e4f041ae2 WIP
8 months ago
Rich Harris 8aaa5688e4 Merge branch 'async' into async-global-coordination
8 months ago
Rich Harris 6f32d21310 merge main
8 months ago
Rich Harris 2fbf29025e WIP
8 months ago
Rich Harris 0bc2af265d WIP
8 months ago
Rich Harris 120b086b85 WIP
8 months ago
Rich Harris b18247be38 WIP
8 months ago
github-actions[bot] 9873443337
Version Packages (#15304)
9 months ago
Paolo Ricciuti d8e78f7f57
fix: `muted` reactive without `bind` and select/autofocus attributes … (#15326)
9 months ago
Simon H 9091e7e930
fix: fire delegated events on target even it was disabled in the meantime (#15319)
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
adiGuba c40392c1e8
chore: remove options.uid in render() (#15302)
9 months ago
github-actions[bot] 32b78c9954
Version Packages (#15279)
9 months ago
Simon H 7e3253745e
fix: ensure AST analysis on `svelte.js` modules succeeds (#15297)
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
Rich Harris 7923b5a754 simplify
9 months ago
Rich Harris 9d7d045310 create separate effect type for async deriveds, as they are not blocks
9 months ago
Rich Harris ef28490c07 merge main
9 months ago
Caique Torres 21dadfc997
fix: ignore typescript abstract methods during code transformation (#15267)
9 months ago
github-actions[bot] 23ecc364da
Version Packages (#15271)
9 months ago
Dominic Gannaway f747c412f4
chore: tweak effect self invalidation logic (#15275)
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
Rich Harris a4540f8f2b merge main
9 months ago
adiGuba 85f83ec435
feat: $props.id(), a SSR-safe ID generation (#15185)
9 months ago
Rich Harris 73220b8667
chore: simplify process_effects (#15270)
9 months ago
Rich Harris df027d0f34 shuffle
9 months ago
Rich Harris 30cd46de11 more
9 months ago
Rich Harris 63be623021 unused
9 months ago
Rich Harris 3b9349e51a tweak
9 months ago
Rich Harris 67b5c09fb3 more
9 months ago
Rich Harris 58dc13efb1 unused
9 months ago
Rich Harris 1f58d6b7e4 simplify
9 months ago
Rich Harris 9cc52e27d2 simplify
9 months ago
Rich Harris 4c0405390a more
9 months ago
Rich Harris 1e56ce2c25 unused
9 months ago
Rich Harris 8c727cced5 more
9 months ago
Rich Harris 6b058526f3 more
9 months ago
Rich Harris 4a9ff233cd more
9 months ago
Rich Harris 7e26a83775 simplify
9 months ago
Rich Harris 72ab4fc21a more
9 months ago
Rich Harris 85fa872796 unused
9 months ago
Rich Harris eb465b56ed more
9 months ago
Rich Harris e9962194f8 more
9 months ago
Rich Harris 2e65e6eb54 more
9 months ago
Rich Harris 31a9844ba9 more
9 months ago
Rich Harris 66f0f1b803 more
9 months ago
Rich Harris 7b2c677474 unused
9 months ago
Rich Harris fe3b177d97 more
9 months ago
github-actions[bot] 280d8c74cc
Version Packages (#15263)
9 months ago
Dominic Gannaway b602c59a22
fix: when re-connecting unowned deriveds, remove their unowned flag (#15255)
9 months ago
Rich Harris ba957b625f unused
9 months ago
Rich Harris 7bf7e0dd78 start converting boundary to a class
9 months ago
Paolo Ricciuti 02788f8e62
fix: allow mutation of private derived state (#15228)
9 months ago
Rich Harris 7bd6969711 fix
9 months ago
github-actions[bot] c4d4349d0a
Version Packages (#15234)
9 months ago
Simon H 4883fd2c83
fix: hydrate `href` that is part of spread attributes (#15226)
9 months ago
Dominic Gannaway f2c83e5db7
fix: ensure unowned derived dependencies are not duplicated when reac… (#15232)
9 months ago
Rich Harris 3289ac3ad1 slightly better waterfall warning
9 months ago
Rich Harris 0b9bfc9a31 async derived cannot use $derived.by
9 months ago
Rich Harris 461c081cd1 error handling
9 months ago
Rich Harris 69a1902a22 small fix
9 months ago
github-actions[bot] b0c4fa5246
Version Packages (#15216)
9 months ago
Simon H 3b7066f5c6
fix: ensure custom element updates don't run in hydration mode (#15217)
9 months ago
Simon H 6f392d679b
fix: properly set `value` property of custom elements (#15206)
9 months ago
dependabot[bot] 872ee51378
chore(deps-dev): bump vitest from 2.0.5 to 2.1.9 (#15220)
9 months ago
Rich Harris 726b3f1b85 delay initial async derived resolution if invalidated during init
9 months ago
Rich Harris 2703ac6096 fix heuristic for transforming await expressions on server
9 months ago
Rich Harris bcdddc6efb fix member expressions for real
9 months ago
Rich Harris 994afafbd9 Revert "fix await member expressions"
9 months ago
Rich Harris 68a10b73b9 Merge branch 'main' into async
9 months ago
Dominic Gannaway d39d8c0675
fix: ensure tracking returns true, even if in unowned (#15214)
9 months ago
Dominic Gannaway ae8bd6f222 fix await member expressions
9 months ago
Rich Harris 990634d15f remove old comment
9 months ago
Rich Harris ff5d9fec07 pending_items -> offscreen_items
9 months ago
Rich Harris 80550468f9 dont reconnect deriveds inside destroyed effects
9 months ago
Rich Harris b64cfc6231 update comment
9 months ago
Rich Harris 5f2abc8fb4 skip adding dependencies for destroyed effects
9 months ago
Rich Harris cc7bc3279e merge main
9 months ago
github-actions[bot] 64f86ee9d4
Version Packages (#15190)
9 months ago
Dominic Gannaway e0b3dc020c
chore: remove unused code from signal logic (#15195)
9 months ago
Rich Harris 0dc84ab2a2 only suspend in top-level async deriveds
9 months ago
Rich Harris 80b713a85e abort component if already destroyed
9 months ago
pgliang001 e12fe8795c
chore: simplify assignment expression (#15177)
9 months ago
7nik 5b30fbfb0b
fix: encounter svelte:element in blocks as sibling during pruning css (#15165)
9 months ago
Rich Harris 0a5628f456 improve waterfall detection
9 months ago
Rich Harris c56ee71653 add showPendingAfter and showPendingFor
9 months ago
Rich Harris c9d61951c6 make purpose explicit
9 months ago
Rich Harris d155191556 fix
9 months ago
Rich Harris 5969b0919c waterfall detection
9 months ago
Rich Harris 51e50ecb3f add test, tidy up
9 months ago
Rich Harris 148ffd2783 warn on reactivity loss
9 months ago
Rich Harris 09cf66ccff simplify
9 months ago
Rich Harris 7e337bc21e unused
9 months ago
Rich Harris a405d477f7 remove unnecessary TEMPLATE_EFFECT distinction
9 months ago
Rich Harris 5f61b08849 simplify
9 months ago
Rich Harris 6e1a33162c tidy up
9 months ago
Rich Harris 0ace243a5f fix
9 months ago
Rich Harris 6025193b98 partial fix
9 months ago
Rich Harris 012cdebed6 fix
9 months ago
Rich Harris 028dba829f each blocks work!
9 months ago
Rich Harris 010108a38c hoist commit logic
9 months ago
Rich Harris 952ea25ed1 failing test
9 months ago
Rich Harris b5df097f7b fixes
9 months ago
Rich Harris f2002ce682 fix
9 months ago
Rich Harris c270c76779 fix timing
9 months ago
Rich Harris af2224ebb3 tidy up
9 months ago
Rich Harris 2e49f7ce1e tidy
9 months ago
Rich Harris 176ec0d67b fix
9 months ago
Rich Harris 70fa1033de simplify
9 months ago
Rich Harris ffc4f1b037 mostly working
9 months ago
Rich Harris 303d738374 add should_defer_append flag
9 months ago
Rich Harris da5ff8809a cordon off hydration code
9 months ago
Rich Harris 877a417c17 move code
9 months ago
Rich Harris 3763ff39af Merge branch 'aa' into aa-coordination
9 months ago
Rich Harris 4588ad6366 Merge branch 'main' into aa
9 months ago
Rich Harris 9d9198af9e tweak
9 months ago
Rich Harris 5b0b9eb261 debugging utils
9 months ago
Dominic Gannaway 6117037b64 fix HMR bug
9 months ago
github-actions[bot] 04addca428
Version Packages (#15156)
9 months ago
Rich Harris 2be3823e3a
chore: remove inert check from each block reconciliation (#15143)
9 months ago
Dominic Gannaway a79dfb5a19 fix conflict
9 months ago
Dominic Gannaway 7bef5963bd
fix: ensure reactions are correctly attached for unowned deriveds (#15158)
9 months ago
Simon H 970aa7cfaa
fix: prevent false-positive ownership validations due to hot reload (#15154)
9 months ago
Simon H 83f00ebbd6
fix: don't error on slot prop inside block inside other component (#15148)
9 months ago
Simon H b8607f8765
fix: silence a11y attribute warnings when spread attributes present (#15150)
9 months ago
Simon H f5406c952e
fix: widen ownership when calling setContext (#15153)
9 months ago
7nik 522557559f
fix: do not prune selectors like `:global(.foo):has(.scoped)` (#15140)
9 months ago
Rich Harris 2c557b6cd8 html tags
9 months ago
Rich Harris 4642b499bb merge aa
9 months ago
Rich Harris a6d3f859a0 merge main
9 months ago
Rich Harris 8e83127e1a
chore: move more code (#15133)
9 months ago
Rich Harris f38bd5c0fa key blocks
9 months ago
github-actions[bot] c8bbb15693
Version Packages (#15139)
9 months ago
Dominic Gannaway 13a6d555c0
fix: improve derived connection to ownership graph (#15137)
9 months ago
7nik 9410ad0318
fix: correctly look for sibling elements inside blocks and components (#15106)
9 months ago
Rich Harris 42a59e2966 fix
9 months ago
Rich Harris ca11ebdde4 fix
9 months ago
Rich Harris ce34c7618c update tests
9 months ago
Rich Harris 41314a685a WIP
9 months ago
Rich Harris 5e9b29c351
chore: move context code into new module (#15132)
9 months ago
Rich Harris 2b0812817c step one - template effects
9 months ago
Rich Harris 422e658cdb Merge branch 'main' into aa
9 months ago
Rich Harris cfba900fb1 represent main/pending/failed effects separately, as we do for other blocks
9 months ago
github-actions[bot] b2c8224a73
Version Packages (#15118)
9 months ago
Dominic Gannaway fc4dd2dec4
fix: lazily connect derievds (in deriveds) to their parent (#15129)
9 months ago
Rich Harris 056601f1f1 there's no point passing to , it's unused
9 months ago
Rich Harris 29a47c23ba type annotation is unnecessary
9 months ago
Rich Harris 91d09b0d00 unused
9 months ago
Rich Harris 9c00acd5da no need to explicitly remove
9 months ago
Rich Harris 6b5d6c05b9 remove unnecessary function wrapper
9 months ago
Rich Harris adb137579f rename async_effect/fragment to offscreen_effect/fragment — much clearer IMHO
9 months ago
Rich Harris 36e281c8c9 boundary_fn -> children
9 months ago
Rich Harris 1c4db3d341 hoist functions, use names to make stuff a little clearer
9 months ago
Dominic Gannaway 5a4b11b78b fix leak
9 months ago
Elliott Johnson 3f8ce21f47
fix: Add `bind:focused` to `HTMLAttributes` (#15122)
9 months ago
Rich Harris 0e0f01ee1c
fix: disallow $state/$derived in const tags (#15115)
9 months ago
Dominic Gannaway b9a3f1e207 cleanup and simplify
9 months ago
Rich Harris a2cbfe2b15 block only runs once, put vars inside
9 months ago
Rich Harris a0c8e71005 tidy up
9 months ago
Rich Harris 08c7e7bcab use experimental.async in sandbox and migrate
9 months ago
Rich Harris c16abcf79a unused
9 months ago
Rich Harris da2fa01a48 Merge branch 'main' into aa
9 months ago
Rich Harris 197acef8db waterfall detection is overzealous — remove it for now
9 months ago
github-actions[bot] 357e1a74b4
Version Packages (#15088)
9 months ago
Rich Harris e3d4a0fa8e
chore: tweak render tag logic (#15109)
9 months ago
Rich Harris 24b6fab58b
chore: construct analysis before module walk (#15108)
9 months ago
Rich Harris b16f21a41d unused
9 months ago
Rich Harris 65385c277f revert rename
9 months ago
Rich Harris 4782a892b5 revert whatever this was
9 months ago
Rich Harris b984bf0762 add experimental option
9 months ago
Dominic Gannaway 00107cbfcf fix effect bug
9 months ago
Rich Harris 7907d1d04a await derived in module
9 months ago
Rich Harris 3dd1d30d90 remove script_suspend in favour of component-level suspending
9 months ago
Dominic Gannaway 38934893df fix bug
9 months ago
Dominic Gannaway 18b062c635 simplify pending boundary detection
9 months ago
Rich Harris 76314039ea fix
9 months ago
Rich Harris 46a004eef2 add experimental.async option
9 months ago
Rich Harris b78fed8eb7 merge main
9 months ago
Rich Harris 6166738520 fix comment
9 months ago
Rich Harris a4f17e139a tidy up
9 months ago
Rich Harris 69b95e6285 tidy up
9 months ago
Rich Harris 7c34419c6d simplify
9 months ago
Rich Harris c8a3d17cfd simplify
9 months ago
Rich Harris 08c3d6a577 remove some Promise.resolves
9 months ago
Dominic Gannaway 79ae4084ae remove todos
9 months ago
Rich Harris 8a28f72090 dynamic elements
9 months ago
Rich Harris 1426a6d9eb fix
9 months ago
Rich Harris e9cc7dc9a1
chore: tweak each block code (#15094)
9 months ago
Rich Harris ef59763c76 html tags
9 months ago
Rich Harris baba2638c9 render tags
9 months ago
Rich Harris e8e0d7338d Merge branch 'main' into aa
9 months ago
Rich Harris 3561117b04 skip for now
9 months ago
Rich Harris 2c00f85f45 fix test
9 months ago
Rich Harris 9fc083a10f fix type
9 months ago
Rich Harris a769fadb8e Merge branch 'aa' of github.com:sveltejs/svelte into aa
9 months ago
Dominic Gannaway b35e19cf42 perf tweak
9 months ago
Dominic Gannaway 10751c85fb perf tweak
9 months ago
Dominic Gannaway f8aedc4e36 cleanup
9 months ago
Dominic Gannaway bf8bb140d9 add comment
9 months ago
Dominic Gannaway 3e9d14a166 add comment
9 months ago
Dominic Gannaway debc148746 avoid eagerly trigger user effects or templates effects when suspended
9 months ago
Dominic Gannaway e102ec06fa improve test
9 months ago
Dominic Gannaway 8517eef6e7 unwaterfall for now
9 months ago
Dominic Gannaway acb71be6e5 remove debugger
9 months ago
Rich Harris ccb9afeb18 Merge branch 'aa' of github.com:sveltejs/svelte into aa
9 months ago
Dominic Gannaway 0d34b7abb6 more fixes
9 months ago
Rich Harris 05d8cb22dd update test
9 months ago
Dominic Gannaway 48cf4a25f6 multiple bug fixes
9 months ago
Rich Harris 118e28445d experimental waterfall detection
9 months ago
Rich Harris a0eaccc5ed remove some unnecessary awaits
9 months ago
Rich Harris 23ac0d7e2d propagate to next boundary, if no pending snippet exists
9 months ago
Rich Harris ef13cda2ca cut out the middleman
9 months ago
Rich Harris 074afa9bec finish separation of suspend/capture
9 months ago
Rich Harris 6b314bd202 another
9 months ago
Rich Harris d98d6be8d6 use async/await
9 months ago
Rich Harris df67772711 separate suspend and capture from save
9 months ago
Rich Harris 78ffe81598 export capture
9 months ago
Rich Harris 0743a013be rename suspend/exit to save/restore
9 months ago
Rich Harris c0f26a1c22 remove unused function
9 months ago
Dominic Gannaway fcdfb6a857 better fix
9 months ago
Rich Harris 18752cc728 prevent context leakage
9 months ago
Rich Harris f440273f21 revert 5f5375a3f
9 months ago
Rich Harris d7e74d9438 regenerate
9 months ago
Rich Harris 4a9c4c6f50 use proper compiler error for await-in-legacy-mode
9 months ago
Rich Harris d5de86803d opt into runes mode when using blocking await
9 months ago