Rich Harris
cb75b5c966
chore: minor tidy up ( #12889 )
4 months ago
Dominic Gannaway
19a35c62e1
chore: inline start and end node properties into effect ( #12878 )
...
* chore: inline start and end node properties into effect
* Revert "chore: set `binding.kind` before analysis (#12843 )"
This reverts commit 19beb7754e
.
* name better
* oops
* revert
* revert
* revert
---------
Co-authored-by: Conduitry <git@chor.date>
4 months ago
Dominic Gannaway
817558828e
chore: refactor internal signal dependency heuristic ( #12881 )
...
* chore: remove redundant signal logic
* more tweaks
* more tweaks
* refactor
* tweak
4 months ago
Dominic Gannaway
4512462b66
chore: tweak each block logic ( #12884 )
...
* chore: tweak each block logic to avoid Array.from
* more tweaks
* lint
* Update packages/svelte/src/internal/client/dom/blocks/each.js
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* Update packages/svelte/src/internal/client/dom/blocks/each.js
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* Update packages/svelte/src/internal/client/dom/blocks/each.js
Co-authored-by: Rich Harris <rich.harris@vercel.com>
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
4 months ago
Frédéric Crozatier
aa55b709e7
fix: remove remaining Sapper stuff ( #12875 )
...
* remove sapper bindings
* changeset
4 months ago
Paolo Ricciuti
33a159cd61
fix: allow store as initial value for props in ssr ( #12885 )
4 months ago
github-actions[bot]
c09decec44
Version Packages (next) ( #12856 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
4 months ago
Dominic Gannaway
437509915c
Revert "chore: bring back recursive processing of effects" ( #12880 )
...
* Revert "chore: bring back recursive processing of effects (#12861 )"
This reverts commit cb124315be
.
* apply tweak
4 months ago
Rich Harris
39c559a0d7
feat: better destructuring assignments ( #12872 )
...
* preserve existing destructuring assignments where appropriate
* add test
* changeset
4 months ago
brunnerh
686b0865c5
docs: Move note on runes mode that ended up in wrong section. ( #12876 )
4 months ago
Rich Harris
6448e07521
breaking: remove foreign namespace ( #12869 )
...
* breaking: remove foreign namespace
* regenerate
4 months ago
Rich Harris
c8f963ab97
docs: add note on destructured declarations ( #12873 )
4 months ago
Dominic Gannaway
e4b7304365
fix: ensure outro animation is not prematurely aborted ( #12865 )
4 months ago
Dominic Gannaway
72c51e3df7
chore: improve performance of DOM traversal operations ( #12863 )
...
* chore: improve performance of DOM traversal operations
* feedback
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
4 months ago
Rich Harris
d421838272
feat: more efficient text-only fragments ( #12864 )
...
* feat: more efficient text-only fragments
* set_text always receives a string now
* another optimisation
* revert sandbox change
* fix test
4 months ago
brunnerh
d64aee7432
docs: Add `<svelte:component>` deprecation section also to preview docs. ( #12862 )
4 months ago
Dominic Gannaway
cb124315be
chore: bring back recursive processing of effects ( #12861 )
...
* chore: bring back recursive processing of effects
* Update packages/svelte/src/internal/client/runtime.js
Co-authored-by: Rich Harris <rich.harris@vercel.com>
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
4 months ago
Frédéric Crozatier
43679b855e
fix: A few type adjustments ( #12858 )
...
* crossorigin is an enumerated type
* wrap is an enumerated type
* changeset
4 months ago
Ben McCann
74b6f4d4dd
docs: add command to test PR in another project
4 months ago
Paolo Ricciuti
03945f56b4
fix: hoist reactive imports to the module ( #12845 )
...
* fix: hoist reactive imports to the module
* fix
* Update .changeset/eleven-teachers-drive.md
* beef up test
* unused
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Rich Harris <hello@rich-harris.dev>
4 months ago
github-actions[bot]
45da5a426f
Version Packages (next) ( #12846 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
4 months ago
Rich Harris
50b905a531
fix: skip unnecessary `$$legacy` flag ( #12850 )
4 months ago
Rich Harris
57a4b5d19c
feat: better compiler warnings for non-reactive dependencies of reactive statements ( #12824 )
...
* feat: better compiler warnings for non-reactive dependencies of reactive statements
* fix
* regenerate
4 months ago
Rich Harris
0a06a3f2b6
feat: skip over static subtrees ( #12849 )
...
* feat: skip over static subtrees
* regenerate
* a few more
* prettier
4 months ago
Rich Harris
6b6f915f9f
fix: omit `$$index` parameter where possible ( #12851 )
4 months ago
Oscar Dominguez
90334c812c
fix: avoid throwing `store_invalid_subscription_module` for runes ( #12848 )
...
* fix: avoid throwing `store_invalid_subscription_module` for runes
Co-authored-by: Paolo Ricciuti <ricciutipaolo@gmail.com>
* move test to the validator suite, which is faster
---------
Co-authored-by: Paolo Ricciuti <ricciutipaolo@gmail.com>
Co-authored-by: Rich Harris <rich.harris@vercel.com>
4 months ago
Rich Harris
19beb7754e
chore: set `binding.kind` before analysis ( #12843 )
...
* analyse exports before walking
* more
* another
* this is unused
* move stuff/tidy up
* this appears to be unnecessary
* this is all unnecessary
* simplify
* simplify
* simplify
* simplify
* move more stuff over
* changeset
* unused
* separate reassignment from mutation
* regenerate
* lint
4 months ago
brunnerh
32808ac054
docs: More guidance on migrating away from `<svelte:component>`. ( #12839 )
...
* More guidance on migrating away from `<svelte:component>`.
* Slight adjustments.
4 months ago
github-actions[bot]
f12a5e49da
Version Packages (next) ( #12838 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
4 months ago
Dominic Gannaway
b0f693b121
fix: ensure onwheel is passive by default ( #12837 )
4 months ago
Dominic Gannaway
dc787be550
chore: improve signal perf by using Set rather than array for reactions ( #12831 )
...
* chore: improve signal perf by using Set rather than array for reactions
* tweak
* simplify
* lint
* address feedback
4 months ago
Dominic Gannaway
873a184b41
fix: ensure each key validation occurs for updates ( #12836 )
...
* fix: ensure each key validation occurs for updates
* fix: ensure each key validation occurs for updates
4 months ago
github-actions[bot]
555e90f932
Version Packages (next) ( #12825 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
5 months ago
Dominic Gannaway
adcceb4aca
chore: improve set_text perf ( #12823 )
...
* chore: improve set_text perf
* chore: improve set_text perf
* chore: improve set_text perf
* chore: improve set_text perf
5 months ago
Rich Harris
c51dfcfc00
feat: warn on invalid event handlers ( #12818 )
...
* feat: warn on invalid event handlers
* handle assignments etc
* handle component events too where possible
* lint
5 months ago
github-actions[bot]
c2fb1a6df1
Version Packages (next) ( #12816 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
5 months ago
Rich Harris
b13d331f78
chore: remove stuff identified by knip as unused ( #12815 )
...
* chore: remove stuff identified by knip as unused
* need to continue exporting Parser, it is referenced as a type
5 months ago
Rich Harris
dfb6755514
feat: add compiler error when encountering a $-prefixed store value outside a `.svelte` file ( #12799 )
...
* feat: add compiler error when encountering a $-prefixed store value outside a .svelte file
* add fromState/toState APIs
* another test, update types
* rename fromState to toStore, and toState to fromStore
* docs
* add docs
* separate client/server entry points for svelte/store
5 months ago
Rich Harris
31a4449012
chore: remove unused EACH_KEYED constant ( #12814 )
5 months ago
Rich Harris
9ba370f305
docs: replace `$state.frozen` docs with `$state.raw` ( #12812 )
5 months ago
github-actions[bot]
9f17f766b7
Version Packages (next) ( #12811 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
5 months ago
Rich Harris
8600caf952
fix: only proxy stuff in runes mode ( #12813 )
5 months ago
Rich Harris
7cbd188f80
breaking: replace `$state.frozen` with `$state.raw` ( #12808 )
...
* breaking: replace `$state.frozen` with `$state.raw`
* regenerate
* rename
* rename
* rename
* rename
* rename
* rename
* rename
* rename
* rename
* typo
* add compiler error for existing `$state.frozen` uses
* regenerate
* rename
* tidy up
* move proxy logic into props function
5 months ago
Dominic Gannaway
fa5d3a9002
fix: ensure inspect effects are skipped from effect parent logic ( #12810 )
5 months ago
Ignatius Bagus
34ad016a77
chore: configure provenance env var ( #12809 )
5 months ago
github-actions[bot]
b462c8d2e9
Version Packages (next) ( #12805 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
5 months ago
Rich Harris
a5d349ebe5
feat: compiler-driven each block reactivity ( #12744 )
...
* WIP
* note to self
* WIP
* fix
* fix
* delete unwrap and is_signal
* simplify
* remove some junk
* regenerate
* reinstate key-is-item optimisation
5 months ago
Paolo Ricciuti
cbcd7617c4
feat: deprecate `svelte:component` ( #12694 )
...
* feat: deprecate `svelte:component`
Co-authored-by: Oscar Dominguez <dominguez.celada@gmail.com>
* move logic into the visitor
* tweak docs
---------
Co-authored-by: Oscar Dominguez <dominguez.celada@gmail.com>
Co-authored-by: Rich Harris <rich.harris@vercel.com>
5 months ago
Rich Harris
9a67ab15da
docs: fix section on browser requirements ( #12804 )
...
* docs: fix section on browser requirements
* link
5 months ago
Rich Harris
5094cb9e89
feat: treat tag with `.` as a component, even if lowercase ( #12798 )
...
* feat: treat tag with `.` as a component, even if lowercase
* changeset
* consistency
* note breaking change
* oops, wrong place
5 months ago