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>
3 months ago
Frédéric Crozatier
43679b855e
fix: A few type adjustments ( #12858 )
...
* crossorigin is an enumerated type
* wrap is an enumerated type
* changeset
3 months ago
Ben McCann
74b6f4d4dd
docs: add command to test PR in another project
3 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>
3 months ago
github-actions[bot]
45da5a426f
Version Packages (next) ( #12846 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 months ago
Rich Harris
50b905a531
fix: skip unnecessary `$$legacy` flag ( #12850 )
3 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
3 months ago
Rich Harris
0a06a3f2b6
feat: skip over static subtrees ( #12849 )
...
* feat: skip over static subtrees
* regenerate
* a few more
* prettier
3 months ago
Rich Harris
6b6f915f9f
fix: omit `$$index` parameter where possible ( #12851 )
3 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>
3 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
3 months ago
brunnerh
32808ac054
docs: More guidance on migrating away from `<svelte:component>`. ( #12839 )
...
* More guidance on migrating away from `<svelte:component>`.
* Slight adjustments.
3 months ago
github-actions[bot]
f12a5e49da
Version Packages (next) ( #12838 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 months ago
Dominic Gannaway
b0f693b121
fix: ensure onwheel is passive by default ( #12837 )
3 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
3 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
3 months ago
github-actions[bot]
555e90f932
Version Packages (next) ( #12825 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 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
3 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
3 months ago
github-actions[bot]
c2fb1a6df1
Version Packages (next) ( #12816 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 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
3 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
3 months ago
Rich Harris
31a4449012
chore: remove unused EACH_KEYED constant ( #12814 )
3 months ago
Rich Harris
9ba370f305
docs: replace `$state.frozen` docs with `$state.raw` ( #12812 )
3 months ago
github-actions[bot]
9f17f766b7
Version Packages (next) ( #12811 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 months ago
Rich Harris
8600caf952
fix: only proxy stuff in runes mode ( #12813 )
3 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
3 months ago
Dominic Gannaway
fa5d3a9002
fix: ensure inspect effects are skipped from effect parent logic ( #12810 )
3 months ago
Ignatius Bagus
34ad016a77
chore: configure provenance env var ( #12809 )
3 months ago
github-actions[bot]
b462c8d2e9
Version Packages (next) ( #12805 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 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
3 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>
3 months ago
Rich Harris
9a67ab15da
docs: fix section on browser requirements ( #12804 )
...
* docs: fix section on browser requirements
* link
3 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
3 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>
3 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>
3 months ago
Dominic Gannaway
97c0150b00
fix: improved memory profile for transitions/animations ( #12796 )
...
* fix: improved memory profile for transitions/animations
* put back the catch
3 months ago
github-actions[bot]
4aa6059712
Version Packages (next) ( #12795 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 months ago
Dominic Gannaway
d2efca0b04
fix: prevent numerous transition/animation memory leaks ( #12759 )
...
* fix: prevent numerous transition/animation memory leaks
* address feedback
* tweak
3 months ago
Dominic Gannaway
ba116a1b43
fix: propagate custom element component prop changes ( #12774 )
...
* fix: propagate custom element component prop changes
* add test
3 months ago
github-actions[bot]
a0bbf2ace0
Version Packages (next) ( #12794 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 months ago
Rich Harris
57a7b0cd48
chore: transformers ( #12780 )
...
* clear out getters on new scope
* fix
* fix
* fix
* fix
* consolidate legacy_reactive_import logic
* unused
* $$sanitized_props
* use getters mechanism for store_sub
* snapshot
* fix
* tests passing
* remove some stuff
* more
* fix
* tidy up
* simplify
* simplify
* getters -> transformers
* update
* use update transformers
* add assign transformer
* more
* tweak
* remove junk
* unused
* simplify
* tidy up
* tweak
* assign_property
* fix
* tidy up
* tidy up
* move store code
* this appears to be unused
* tidy up
* tweak
* simplify
* move code
* move stuff
* note to self
* move stuff
* each blocks
* note to self
* lengthen stack trace
* tweak
* more
* tidy up
* tidy up
* remove some junk
* tidy up
* move stuff
* remove stuff
* tweak
* tweak
* fix
* tweak
* tidy up
* tidy up
* tidy up
* tweak
* simplify
* tidy up
* simplify
* tidy up
* improve output
* delete comments
* more
* unused
* tidy up
* tidy up
* fix
* move some stuff
* tweak
* tidy up
* DRY
* synchronise
* DRY out
* tidy up
* tidy up
* tidy up
* add test that fails on main
* snapshot test
* changesets
* lint
* ugh
3 months ago
Rich Harris
f13c722ce4
chore: increase debug stack trace ( #12792 )
3 months ago
Rich Harris
8ac13f76f1
chore: print compiler warnings when using sandbox ( #12793 )
3 months ago
Dominic Gannaway
536be645fa
fix: ensure custom element styles append correctly during prod ( #12777 )
...
* fix: ensure custom element styles append correctly during prod
* fix
* fix
* fix
* feedback
* only add third argument for custom elements
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
3 months ago
github-actions[bot]
1a3dbda20c
Version Packages (next) ( #12789 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 months ago
Dominic Gannaway
d8954d7add
fix: ensure custom elements do not sync flush on mount ( #12787 )
...
* fix: ensure Svelte4Components do not sync flush
* fix: ensure Svelte4Components do not sync flush
* lint
* feedback
* simplify test, remove redundant comments
* prettier
* fix test
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
3 months ago
Rich Harris
057316ccd1
chore: simpler fallback values ( #12788 )
...
* DRY
* value_or_fallback_async doesnt do anything
* rename value_or_fallback to fallback
* DRY
* DRY
* make lazy the exception
* changeset
3 months ago
Dominic Gannaway
19819d0477
fix: provide more hydration mismatch coverage ( #12755 )
...
* fix: provide more hydration mismatch coverage
* tweak
* add test for safari borking stuff
* fix
* fix windows test
* failing test
* oops
* revert playground changes
* simplify
* template content hydration logic should really be separate from reset logic
* actually the test is incorrect, and now i cant seem to recreate what i saw before... hmm
* update comment to no longer mention templates
* failing test
* delete test for now
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
3 months ago
Dominic Gannaway
c32a91891f
fix: ensure event handlers referencing $host are not hoisted ( #12775 )
3 months ago