Rich Harris
4d0b743918
feat: use linked lists for each blocks ( #11107 )
...
* unify indexed/keyed each blocks
* WIP
* comment out console temporarily
* WIP
* animations
* fix animations
* mostly working
* working
* revert unnecessary test changes
* remove unused code
* noop when item matches
* add test
* DRY
* simplify
* mostly working
* fix
* fix
* uncomment
* remove unnecessary test
* unused
* appease eslint etc
* avoid mutating lookup
* reuse lookup
* perf tweaks
* microoptimisations
* more efficient linking
* optimise
9 months ago
Rich Harris
48202597de
chore: allow preview site to work offline in local dev ( #11091 )
9 months ago
Dominic Gannaway
ce348f0d69
chore: add test to show usage of context in component template ( #11061 )
...
* chore: prevent usage of getContext during component template
* repurpose test to be just a test to capture context in template
9 months ago
github-actions[bot]
e8f7437cf6
Version Packages (next) ( #11093 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
9 months ago
Simon H
5a1c756a4e
fix: execute sole static script tag ( #11095 )
...
- take into account that template could consist of a single script tag, for which querySelectorAll('script') would yield false negatives
- add test to ensure that we don't execute script tags inside `@html` tags next to static script tags
fixes #11082
9 months ago
Dominic Gannaway
3c2f4d2d55
fix: improve hydration of svelte head blocks ( #11099 )
...
* fix: improve hydration of svelte head blocks
* revert sandbox
* simplify
9 months ago
Dominic Gannaway
48549f7d00
fix: improve internal proxied state signal heuristic ( #11102 )
...
Fixes #11069
9 months ago
Simon H
d2b6159d2e
chore: css unused selector warnings ( #11098 )
...
The character adjustments in the existing warnings are because we remove some tabs from empty lines when initializing the Svelte 5 repo; the warnings were just not checked at that time yet.
9 months ago
Simon H
ed9bab9200
fix: better sibling selector handling ( #11096 )
...
Keep sibling selectors when dealing with slots/render tags/`svelte:element` tags
fixes #9274
9 months ago
Dominic Gannaway
3462c54fd2
fix: improve compiled output of multiple call expression in single text node ( #11097 )
...
* fix: improve compiled output of multiple call expression in single text node
* fix
9 months ago
Simon H
22494be9ec
feat: introduce `$host` rune, deprecate `createEventDispatcher` ( #11059 )
...
closes #11022
9 months ago
Simon H
8578857332
fix: ensure deep mutation ownership widening ( #11094 )
...
Previously, ownership widening/removal was only done if the immediate object that was encountered was state. This isn't always the case. It also didn't take into account classes with state on it (which turn into getters). This change takes both these cases into account and now always traverses the given object deeply.
fixes #11060
9 months ago
Simon H
b1a8038f8b
fix: make static `element` property available ( #11079 )
...
for the SvelteComponent type
closes #8936
9 months ago
Simon H
6b7f1162ad
docs: note walk breaking change ( #11078 )
...
closes #10734
9 months ago
github-actions[bot]
dfc55c18f0
Version Packages (next) ( #11072 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
9 months ago
Simon H
a9e15bdf2d
breaking: robustify interop of exports and props ( #11064 )
...
- don't throw a dev time error when binding to an export (fixes #11008 )
- remove bindings that are for component exports
- throw an error when using a component export with the same name as a property
9 months ago
Dominic Gannaway
452749494e
Fix unowned bug 2 ( #11077 )
...
* fix: improve handled of unowned derived signals
* fix: improve handled of unowned derived signals
* lint
9 months ago
Rich Harris
071d6314d9
chore: fix local dev ( #11074 )
9 months ago
Rich Harris
8cbe8c1197
fix: bundle CSS types ( #11067 )
...
* make Css a proper namespace
* changeset
9 months ago
github-actions[bot]
ae3d472cbc
Version Packages (next) ( #11057 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
9 months ago
Dominic Gannaway
b87d57dc6e
fix: add `anchor` support to mount() API ( #11050 )
...
* fix: add `anchor` support to mount() API
* use ??
* fix inconsistent formatting
* required options before optional ones
* regenerate types
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
9 months ago
dependabot[bot]
b2892b02e1
chore(deps-dev): bump vite from 5.0.12 to 5.0.13 ( #11054 )
...
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite ) from 5.0.12 to 5.0.13.
- [Release notes](https://github.com/vitejs/vite/releases )
- [Changelog](https://github.com/vitejs/vite/blob/v5.0.13/packages/vite/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite/commits/v5.0.13/packages/vite )
---
updated-dependencies:
- dependency-name: vite
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
9 months ago
Dominic Gannaway
02441c6a19
chore: apply each block controlled teardown optimization, again ( #11051 )
9 months ago
Rich Harris
f7c8fd569b
Revert "chore: apply each block controlled teardown optimization ( #11045 )" ( #11049 )
...
This reverts commit 1afec80261
.
9 months ago
Rich Harris
bb1d229e26
fix docs ( #11048 )
9 months ago
Dominic Gannaway
1afec80261
chore: apply each block controlled teardown optimization ( #11045 )
...
* chore: apply each block controlled teardown optimization
remove deopt
remove deopt
* remove deopt
* give a more descriptive name if we're running it across modules
* shorter comment
* rename each_element -> parent_node
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
9 months ago
Dominic Gannaway
17281c3df1
Revert "chore: remove deopts and refactor code for controlled optimizations (…" ( #11043 )
...
This reverts commit 3ece9cd051
.
9 months ago
Dominic Gannaway
3ece9cd051
chore: remove deopts and refactor code for controlled optimizations ( #11040 )
...
* chore: remove deopts and refactor code for controlled optimizations
* remove comment
* tune
* tweak
* tweak
* typo
* get rid of single-use variable
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
9 months ago
github-actions[bot]
d85d5a060b
Version Packages (next) ( #11035 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
9 months ago
Dominic Gannaway
c50883e496
fix: ensure transition errors are not swallowed ( #11039 )
...
* fix: ensure transition errors are not swallowed
* feedback
9 months ago
Dominic Gannaway
b210fe3c9d
chore: remove parent DOM before children DOM ( #11038 )
9 months ago
Rich Harris
92909834f0
breaking: prevent unparenthesized sequence expressions in attributes ( #11032 )
9 months ago
github-actions[bot]
2a1d3c6e73
Version Packages (next) ( #11034 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
9 months ago
Rich Harris
3254d2e22f
fix: add missing package.json in package ( #11033 )
9 months ago
github-actions[bot]
6bb825b1b1
Version Packages (next) ( #11018 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
9 months ago
Dominic Gannaway
1d52c1323b
fix: improve unowned derived signal heuristics ( #11029 )
...
* fix: improve unowned derived signal heuristics
* spelling
9 months ago
Dominic Gannaway
2a784fce16
fix: correctly handle closure passed to $derived.by when destructuring ( #11028 )
...
* fix: correctly handle closure passed to $derived.by when destructuring
* oops
9 months ago
Dominic Gannaway
ade3d1afb9
fix: improve $effect.active REPL autocomplete ( #11027 )
9 months ago
Rich Harris
3c155e3f3e
fix: ensure effect cleanup functions are called with null `this` ( #11024 )
9 months ago
Rich Harris
ad11c5087f
fix: ensure correct context for action update/destroy functions ( #11023 )
9 months ago
Rich Harris
34748ba015
chore: verify that `$effect.root(...)` does not re-run ( #11020 )
9 months ago
Rich Harris
0a162924fb
feat: more efficient hydration markers ( #11019 )
...
* remove <!--ssr:if:true--> comments
* remove <!--ssr:each_else--> comments
* changeset
* tidy up
9 months ago
Rich Harris
4f3fae7c6d
chore: compiler subpackage ( #10988 )
...
* move compiler.cjs to compiler/index.js
* changeset
* prettier
* ugh
9 months ago
Frédéric Crozatier
1c75b9ac4d
fix: add `name` to HTMLDetailsAttributes ( #11013 )
...
* add name attribute to HTMLDetailsAttributes
* changeset
9 months ago
Ignatius Bagus
0fa9d16e53
docs: fix $bindable hash link ( #11011 )
...
* docs: fix $bindable hash link
* standardise
9 months ago
Dominic Gannaway
8c4769db37
chore: improve internal performance of effect runtime ( #10999 )
...
* chore: improve internal performance of effect runtime
* add TODOs
* add TODOs
9 months ago
Rich Harris
b6fab1cb91
chore: squelch vite warning ( #11005 )
9 months ago
github-actions[bot]
57813124d8
Version Packages (next) ( #10995 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
9 months ago
Rich Harris
7bd853b1a8
fix: hydrate HTML with surrounding whitespace ( #10996 )
...
* fix: hydrate HTML with surrounding whitespace
* add test
* fix a few more short comments
* tidy up
* avoid magic strings
* avoid magic strings
* fix
* oops
9 months ago
Dominic Gannaway
3f6eff55a4
chore: use internal doubly linked listed for effect tree ( #10994 )
...
* chore: use internal doubly linked listed for effect tree
* cleanup
* todo
9 months ago