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>
5 months ago
github-actions[bot]
b2214d1c5b
Version Packages (next) ( #12920 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
5 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
5 months ago
github-actions[bot]
5797f5e6fd
Version Packages (next) ( #12907 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
5 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
5 months ago
Simon H
0da4116b9d
fix: ensure typings for `<svelte:options>` are picked up (Svelte 5 version) ( #12903 )
...
fixes #12886
5 months ago
github-actions[bot]
4c006d18c7
Version Packages (next) ( #12897 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
5 months ago
Dominic Gannaway
aa5c4421cf
fix: ensure nullish expressions render empty text ( #12898 )
5 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
5 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>
5 months ago
Dominic Gannaway
7eabce8c96
chore: improve the performance of set_text for single expressions ( #12893 )
5 months ago
github-actions[bot]
eaee7d3581
Version Packages (next) ( #12887 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
5 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>
5 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>
5 months ago
Dominic Gannaway
817558828e
chore: refactor internal signal dependency heuristic ( #12881 )
...
* chore: remove redundant signal logic
* more tweaks
* more tweaks
* refactor
* tweak
5 months ago
Frédéric Crozatier
aa55b709e7
fix: remove remaining Sapper stuff ( #12875 )
...
* remove sapper bindings
* changeset
5 months ago
Paolo Ricciuti
33a159cd61
fix: allow store as initial value for props in ssr ( #12885 )
5 months ago
github-actions[bot]
c09decec44
Version Packages (next) ( #12856 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
5 months ago
Rich Harris
39c559a0d7
feat: better destructuring assignments ( #12872 )
...
* preserve existing destructuring assignments where appropriate
* add test
* changeset
5 months ago
Rich Harris
6448e07521
breaking: remove foreign namespace ( #12869 )
...
* breaking: remove foreign namespace
* regenerate
5 months ago
Dominic Gannaway
e4b7304365
fix: ensure outro animation is not prematurely aborted ( #12865 )
5 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>
5 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
5 months ago
Frédéric Crozatier
43679b855e
fix: A few type adjustments ( #12858 )
...
* crossorigin is an enumerated type
* wrap is an enumerated type
* changeset
5 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>
5 months ago
github-actions[bot]
45da5a426f
Version Packages (next) ( #12846 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
5 months ago
Rich Harris
50b905a531
fix: skip unnecessary `$$legacy` flag ( #12850 )
5 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
5 months ago
Rich Harris
0a06a3f2b6
feat: skip over static subtrees ( #12849 )
...
* feat: skip over static subtrees
* regenerate
* a few more
* prettier
5 months ago
Rich Harris
6b6f915f9f
fix: omit `$$index` parameter where possible ( #12851 )
5 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>
5 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
5 months ago
github-actions[bot]
f12a5e49da
Version Packages (next) ( #12838 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
5 months ago
Dominic Gannaway
b0f693b121
fix: ensure onwheel is passive by default ( #12837 )
5 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
5 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
5 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
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
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
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
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
github-actions[bot]
b462c8d2e9
Version Packages (next) ( #12805 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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
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
github-actions[bot]
09db33979d
Version Packages (next) ( #12797 )
...
* Version Packages (next)
* Update CHANGELOG.md
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rich Harris <rich.harris@vercel.com>
5 months ago
Theodor Steiner
7ae21ea97d
feat: make <svelte:option> customElement configuration's tag property optional ( #12751 ) ( #12754 )
...
* feat: make svelte:option customElement tag property optional (#12751 )
* tweak comment
* tweak docs
* tweak some more wording
* Update .changeset/four-kids-flow.md
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Rich Harris <hello@rich-harris.dev>
5 months ago
Dominic Gannaway
97c0150b00
fix: improved memory profile for transitions/animations ( #12796 )
...
* fix: improved memory profile for transitions/animations
* put back the catch
5 months ago
github-actions[bot]
4aa6059712
Version Packages (next) ( #12795 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
5 months ago