Simon H
eebe42789b
fix: properly handle proxied array length mutations ( #13026 )
...
fixes #13022
1 year ago
github-actions[bot]
5aa082ce37
Version Packages (next) ( #13015 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 year ago
Rich Harris
cb4f82f811
fix: handle deletions of state proxy properties ( #13008 )
1 year ago
Rich Harris
96117fa44d
fix: join text nodes separated by comments ( #13009 )
1 year ago
Rich Harris
ae27f27810
make internal sources ownerless ( #13013 )
...
* make internal sources ownerless
* WIP
* WIP
* WIP
* same for mutable_state
* oops
* DRY
* unrelated
* changeset
* fix
1 year ago
github-actions[bot]
e7e7ef6d00
Version Packages (next) ( #12998 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 year ago
Dominic Gannaway
975918c602
fix: ensure assignments to state field inside constructor trigger effect ( #12985 )
...
* fix: ensure assignments to state field inside constructor trigger effects
* address feedback
* address feedback
* address feedback
* add test
* alternative approach
* lint
* error on reading local source in derived
* build
* add changeset for self-dependency error
* revert unused changes
* revert unused changes
* Update packages/svelte/messages/client-errors/errors.md
* regenerate
* tweak
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
1 year ago
Simon H
72b066b7fd
feat: allow non-synchronous legacy component instantiation ( #12970 )
...
* feat: allow non-synchronous legacy component instantiation
Add a new option to the legacy class component interface so that `flush_sync` can be omitted. Part of https://github.com/sveltejs/kit/issues/12248
* lint
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
1 year ago
Rich Harris
c5c54dabcc
chore: default options.filename to "(unknown)" ( #12997 )
...
* chore: default options.filename to "(unknown)"
* fix
* regenerate
1 year ago
Dominic Gannaway
21081d0fa5
fix: ensure $inspect works with SvelteMap and SvelteSet ( #12994 )
...
* fix: ensure $inspect works with SvelteMap and SvelteSet
* build
* dev only
* dev only
* lint
* lint
* lint
* alternative
* Update packages/svelte/src/reactivity/map.js
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
1 year ago
github-actions[bot]
d42bd398e7
Version Packages (next) ( #12986 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 year ago
Rich Harris
b4382e422d
fix: properly transform destructured `$derived.by` declarations ( #12984 )
...
fixes #12983
1 year ago
github-actions[bot]
f1a1a08a74
Version Packages (next) ( #12978 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 year ago
Dominic Gannaway
5bdf71639e
fix: correctly hydrate empty raw blocks ( #12979 )
...
* fix: correctly hydrate empty raw blocks
* lint
* Update packages/svelte/src/internal/client/dom/blocks/html.js
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
1 year ago
Ben McCann
448f21620f
chore: update client check for smaller bundle size ( #12975 )
1 year ago
github-actions[bot]
f9020997e9
Version Packages (next) ( #12972 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 year ago
Rich Harris
cadc0dceca
feat: only traverse trailing static nodes during hydration ( #12935 )
1 year ago
Simon H
75759dbeae
fix: allow deleting non-existent `$$restProps` properties ( #12971 )
...
fixes #12966
1 year ago
github-actions[bot]
39f2d5ef80
Version Packages (next) ( #12958 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 year ago
Rich Harris
8c1d439a36
fix: remove buggy `validate_dynamic_component` check ( #12960 )
...
closes #12857
1 year ago
Simon H
01d32e53a9
fix: more robust handling of var declarations ( #12949 )
...
* fix: more robust handling of var declarations
- fixes #12807 : state declared with var is now retrieved using a new `safe_get` function, which works like `get` but checks for undefined
- fixes #12900 : ensure we're not creating another new scope for block statements of function declarations, which resulted in var declarations getting "swallowed" (because they were hoisted to the function declaration scope and never seen by our logic)
* simplify
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
1 year ago
github-actions[bot]
70ed8cd666
Version Packages (next) ( #12957 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 year ago
Rich Harris
9f962d6f81
breaking: remove `$state.link` ( #12943 )
...
* Revert "breaking: remove `$state.link` callback (#12942 )"
This reverts commit 0b51ff04b0
.
* Revert "feat: adds $state.link rune (#12545 )"
This reverts commit 63ec2e2e88
.
* put changesets back
* changeset
* merge main
1 year ago
Rich Harris
af7f90020d
fix: ensure `$store` reads are properly transformed ( #12952 )
...
The backing store variable of a $store read could be a variable that itself needs a transformer, which is why we need to make accessing the reads lazy
fixes #12859
1 year ago
Simon H
732dbf7fa9
breaking: deprecate `context="module"` in favor of `module` ( #12948 )
...
* breaking: deprecate `context="module"` in favor of `module`
Also reserve a few attributes, which we may or may not use in the future
closes #12637
* fix tests
* one more
* add svelte package to the root so eslint and prettier can use it
* tweak messages
* warn on unknown attributes
* regenerate
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
1 year ago
github-actions[bot]
3b3ed77783
Version Packages (next) ( #12953 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 year ago
Rich Harris
0b51ff04b0
breaking: remove `$state.link` callback ( #12942 )
...
* breaking: remove `$state.link` callback
* simplify
* regenerate
1 year ago
github-actions[bot]
af35fb7ae6
Version Packages (next) ( #12940 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 year ago
Simon H
419546f29b
fix: don't skip custom elements with attributes ( #12939 )
...
* fix: don't skip custom elements with attributes
fixes #12934
* still need this
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
1 year ago
Gautier Ben Aïm
9c2ca693a5
fix: ensure await scope shadowing is computed in the correct order ( #12945 )
...
* fix: ensure await scope shadowing is computed in the correct order
* Create popular-news-happen.md
* removed solo
1 year ago
Rich Harris
78677e40ef
fix: align list of passive events with browser defaults, and add documentation ( #12933 )
...
closes #12639
1 year ago
github-actions[bot]
363a5418e6
Version Packages (next) ( #12924 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 year ago
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>
1 year 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?
1 year ago
Dominic Gannaway
189113ab8e
Revert "fix: avoid extra work in mark_reactions ( #12921 )" ( #12931 )
...
This reverts commit 4ce23bf07e
.
1 year 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
1 year ago
Simon H
212b60203f
feat: support HMR with custom elements ( #12926 )
...
closes https://github.com/sveltejs/svelte-hmr/issues/26
1 year 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>
1 year 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>
1 year ago
github-actions[bot]
9d9ed33d0c
Version Packages (next) ( #12922 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 year 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>
1 year ago
github-actions[bot]
b2214d1c5b
Version Packages (next) ( #12920 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 year 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
1 year ago
github-actions[bot]
5797f5e6fd
Version Packages (next) ( #12907 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 year 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
1 year ago
Simon H
0da4116b9d
fix: ensure typings for `<svelte:options>` are picked up (Svelte 5 version) ( #12903 )
...
fixes #12886
1 year ago
github-actions[bot]
4c006d18c7
Version Packages (next) ( #12897 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 year ago
Dominic Gannaway
aa5c4421cf
fix: ensure nullish expressions render empty text ( #12898 )
1 year 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
1 year 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>
1 year ago
Dominic Gannaway
7eabce8c96
chore: improve the performance of set_text for single expressions ( #12893 )
1 year ago
github-actions[bot]
eaee7d3581
Version Packages (next) ( #12887 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 year 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>
1 year 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>
1 year ago
Dominic Gannaway
817558828e
chore: refactor internal signal dependency heuristic ( #12881 )
...
* chore: remove redundant signal logic
* more tweaks
* more tweaks
* refactor
* tweak
1 year ago
Frédéric Crozatier
aa55b709e7
fix: remove remaining Sapper stuff ( #12875 )
...
* remove sapper bindings
* changeset
1 year ago
Paolo Ricciuti
33a159cd61
fix: allow store as initial value for props in ssr ( #12885 )
1 year ago
github-actions[bot]
c09decec44
Version Packages (next) ( #12856 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 year ago
Rich Harris
39c559a0d7
feat: better destructuring assignments ( #12872 )
...
* preserve existing destructuring assignments where appropriate
* add test
* changeset
1 year ago
Rich Harris
6448e07521
breaking: remove foreign namespace ( #12869 )
...
* breaking: remove foreign namespace
* regenerate
1 year ago
Dominic Gannaway
e4b7304365
fix: ensure outro animation is not prematurely aborted ( #12865 )
1 year 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>
1 year 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
1 year ago
Frédéric Crozatier
43679b855e
fix: A few type adjustments ( #12858 )
...
* crossorigin is an enumerated type
* wrap is an enumerated type
* changeset
1 year 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>
1 year ago
github-actions[bot]
45da5a426f
Version Packages (next) ( #12846 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 year ago
Rich Harris
50b905a531
fix: skip unnecessary `$$legacy` flag ( #12850 )
1 year 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
1 year ago
Rich Harris
0a06a3f2b6
feat: skip over static subtrees ( #12849 )
...
* feat: skip over static subtrees
* regenerate
* a few more
* prettier
1 year ago
Rich Harris
6b6f915f9f
fix: omit `$$index` parameter where possible ( #12851 )
1 year 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>
1 year 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
1 year ago
github-actions[bot]
f12a5e49da
Version Packages (next) ( #12838 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 year ago
Dominic Gannaway
b0f693b121
fix: ensure onwheel is passive by default ( #12837 )
1 year 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
1 year 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
1 year ago
github-actions[bot]
555e90f932
Version Packages (next) ( #12825 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 year 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
1 year ago
github-actions[bot]
c2fb1a6df1
Version Packages (next) ( #12816 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 year 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
1 year ago
github-actions[bot]
9f17f766b7
Version Packages (next) ( #12811 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 year 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
1 year ago
Dominic Gannaway
fa5d3a9002
fix: ensure inspect effects are skipped from effect parent logic ( #12810 )
1 year ago
github-actions[bot]
b462c8d2e9
Version Packages (next) ( #12805 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 year 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>
1 year 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
1 year 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>
1 year 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>
1 year ago
Dominic Gannaway
97c0150b00
fix: improved memory profile for transitions/animations ( #12796 )
...
* fix: improved memory profile for transitions/animations
* put back the catch
1 year ago
github-actions[bot]
4aa6059712
Version Packages (next) ( #12795 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 year ago
Dominic Gannaway
d2efca0b04
fix: prevent numerous transition/animation memory leaks ( #12759 )
...
* fix: prevent numerous transition/animation memory leaks
* address feedback
* tweak
1 year ago
Dominic Gannaway
ba116a1b43
fix: propagate custom element component prop changes ( #12774 )
...
* fix: propagate custom element component prop changes
* add test
1 year ago
github-actions[bot]
a0bbf2ace0
Version Packages (next) ( #12794 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 year 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
1 year 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>
1 year ago
github-actions[bot]
1a3dbda20c
Version Packages (next) ( #12789 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 year 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>
1 year 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
1 year 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>
1 year ago
Dominic Gannaway
c32a91891f
fix: ensure event handlers referencing $host are not hoisted ( #12775 )
1 year ago