Simon H
0da4116b9d
fix: ensure typings for `<svelte:options>` are picked up (Svelte 5 version) ( #12903 )
...
fixes #12886
4 months ago
github-actions[bot]
4c006d18c7
Version Packages (next) ( #12897 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
4 months ago
Dominic Gannaway
aa5c4421cf
fix: ensure nullish expressions render empty text ( #12898 )
4 months ago
Rich Harris
1f99935b99
feat: more efficient checking for missing SSR text node ( #12891 )
...
* feat: more efficient checking for missing SSR text node
* update tests
4 months ago
TOMIKAWA Sotaro
b41300d58a
fix: improve createRawSnippet types with cleanup type ( #12894 )
...
* fix: improve createRawSnippet types
Add cleanup type to return value of setup function
* changeset
---------
Co-authored-by: Rich Harris <hello@rich-harris.dev>
4 months ago
Dominic Gannaway
7eabce8c96
chore: improve the performance of set_text for single expressions ( #12893 )
4 months ago
Rich Harris
47e8ad7619
chore: convert member expression property strings to identifiers ( #12890 )
...
* chore: convert member expression property strings to identifiers
* oops
* tweak
* while we're here
4 months ago
github-actions[bot]
eaee7d3581
Version Packages (next) ( #12887 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
4 months ago
Dominic Gannaway
94ed09628d
fix: correctly ensure prop bindings are reactive when bound ( #12879 )
...
* fix: correctly ensure prop bindings are reactive when bound
* oops
* Apply suggestions from code review
* Update packages/svelte/src/compiler/phases/3-transform/client/utils.js
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
4 months ago
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>
4 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
4 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
4 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