Dominic Gannaway
63ec2e2e88
feat: adds $state.link rune ( #12545 )
...
* feat: adds $state.link rune
* add tests
* types
* docs
* debugger
* lint
* Update .changeset/friendly-rice-confess.md
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
* Update packages/svelte/src/compiler/phases/2-analyze/index.js
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
* feedback
* feedback
* feedback
* feedback
* rename link_state to linked_state for grammatical consistency
* oops, victim of find-replace
* no need to store linked_value if setting
* simplify tests
* test behaviour of objects
* update docs
* copy
* more direct example that shows unlinking and relinking
* add callback argument support
* fix
* tidy up
* document callback
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Rich Harris <rich.harris@vercel.com>
4 months ago
Gautier Ben Aïm
f6f0e78cbd
fix: small legibility improvement ( #12928 )
...
* fix: small legibility improvement
* Create rich-ladybugs-admire.md
* Update rich-ladybugs-admire.md
* even better?
4 months ago
Dominic Gannaway
189113ab8e
Revert "fix: avoid extra work in mark_reactions ( #12921 )" ( #12931 )
...
This reverts commit 4ce23bf07e
.
4 months ago
Simon H
8aed27db97
fix: allow mixing slots and snippets in custom elements mode ( #12929 )
...
We need to allow mixing those within custom element components because in a future version of Svelte where we remove the Svelte-version of slots, we'll preserve slots as-is, and people should use those within their components. At the same time they should be able to make use of snippets for reusable blocks of code.
Also document that you should continue using slots within custom elements.
closes #12892
4 months ago
Simon H
212b60203f
feat: support HMR with custom elements ( #12926 )
...
closes https://github.com/sveltejs/svelte-hmr/issues/26
4 months ago
Dominic Gannaway
4ce23bf07e
fix: avoid extra work in mark_reactions ( #12921 )
...
* fix: avoid extra work in mark_reactions
* Update packages/svelte/src/internal/client/reactivity/sources.js
Co-authored-by: Rich Harris <rich.harris@vercel.com>
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
4 months ago
Dominic Gannaway
a8c6b92f9a
chore: remove $state.is from docs ( #12927 )
4 months ago
Rich Harris
44a780fb9c
bump sveltekit ( #12923 )
4 months ago
Paolo Ricciuti
02c86b1973
feat: error on invalid component name ( #12821 )
...
* feat: treat tag with `[` as a component, even if lowercase
* chore: simpler regex
Co-authored-by: Conduitry <git@chor.date>
* feat: error on invalid component name
* fix: fully revert dot notation test
* tweak error message
---------
Co-authored-by: Conduitry <git@chor.date>
Co-authored-by: Rich Harris <rich.harris@vercel.com>
4 months ago
github-actions[bot]
9d9ed33d0c
Version Packages (next) ( #12922 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
4 months ago
Rich Harris
23bce2da20
feat: skip static nodes ( #12914 )
...
* step one
* WIP
* more
* fix
* collapse sequential sibling calls
* working
* working but messy
* tidy up
* unused
* tweak
* tweak
* tidy
* tweak
* tweak
* revert
* changeset
* Update packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/fragment.js
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
* revert this bit
* align
* comments
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
4 months ago
github-actions[bot]
b2214d1c5b
Version Packages (next) ( #12920 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
4 months ago
Rich Harris
0812b10100
breaking: overhaul proxies, remove `$state.is` ( #12916 )
...
* chore: use closures for state proxies
* use variables
* early return
* tidy up
* move ownership stuff into separate object
* put original value directly on STATE_SYMBOL
* rename
* tidy up
* tidy
* tweak
* fix
* remove is_frozen check
* remove `$state.is`
* avoid mutations
* tweak
* changesets
* changeset
* changeset
* regenerate
* add comment
* add note
* add test
4 months ago
github-actions[bot]
5797f5e6fd
Version Packages (next) ( #12907 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
4 months ago
Simon H
1681b218cf
docs: mention removal of `foreign` namespace ( #12906 )
...
leftover from #12869
4 months ago
Rich Harris
78b55c4130
fix: exclude local declarations from non-reactive property warnings ( #12909 )
...
* fix: exclude local declarations from non-reactive property warnings
* copypasta fail
4 months ago
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