Rich Harris
d5de86803d
opt into runes mode when using blocking await
8 months ago
Rich Harris
f355eaf9a0
differentiate between 'top-level' and 'needs context preservation' so that SSR errors occur correctly
8 months ago
Rich Harris
3be5a88b6f
use shared error
8 months ago
Dominic Gannaway
e1d56e7ed7
cleanup and add guards
8 months ago
Dominic Gannaway
d123167778
remove todo
8 months ago
Dominic Gannaway
177885eb1e
add todo
8 months ago
Dominic Gannaway
9cbc4aaea4
fix bugs
8 months ago
Dominic Gannaway
4b851c8351
simplify
8 months ago
Dominic Gannaway
8eeeeff141
fix hydration
8 months ago
Dominic Gannaway
e8e723b181
fix leakage of context again
8 months ago
Dominic Gannaway
fae03532b8
revert
8 months ago
Dominic Gannaway
5f5375a3f1
fix leakage of context
8 months ago
Trevor N. Suarez
d47f4f5908
fix: expand boolean attribute support ( #15095 )
...
* Adding test for expected boolean attribute support
* Improving support for more boolean attributes:
Added:
- `defer`
- `disablepictureinpicture`
- `disableremoteplayback`
Improved:
- `allowfullscreen`
- `novalidate`
* Skipping JSDOM version of boolean attribute test
JSDOM lacks support for some attributes, so we'll skip it for now.
See:
- `async`: https://github.com/jsdom/jsdom/issues/1564
- `nomodule`: https://github.com/jsdom/jsdom/issues/2475
- `autofocus`: https://github.com/jsdom/jsdom/issues/3041
- `inert`: https://github.com/jsdom/jsdom/issues/3605
- etc...: https://github.com/jestjs/jest/issues/139#issuecomment-592673550
* Adding changeset
8 months ago
Rich Harris
28842f463b
update test
8 months ago
Rich Harris
d33c8ae4fe
start working on hydration
8 months ago
Rich Harris
96942400bd
basic SSR
8 months ago
Rich Harris
364f45a08e
key blocks
8 months ago
Rich Harris
18b902344c
each blocks
8 months ago
Rich Harris
255eec7fff
each test
8 months ago
Rich Harris
ed348c6cab
if blocks
8 months ago
Edoardo Cavazza
d17f5c748d
fix: add check for is attribute ( #15086 )
...
Fixes #15085
Add a check for is attribute in is_custom_element_node function.
8 months ago
Rich Harris
7740d4576b
fix: optimise || expressions in template ( #15092 )
8 months ago
Rich Harris
c34e44f781
async props
8 months ago
Theodore Brown
c2e805f05c
fix: consistently set value to blank string when value attribute is undefined ( #15057 )
...
Fixes #4467
8 months ago
Rich Harris
5ae974f47d
separate sync from async expressions
8 months ago
Rich Harris
6ea6e2d724
merge main
8 months ago
Rich Harris
8bba70b8e3
fix: avoid double deriveds in component props ( #15089 )
...
* fix: prevent double deriveds in component props
* unused
* reuse mechanism
* move code to where it is used
* changeset
8 months ago
Rich Harris
093a3bfd2c
test
8 months ago
Rich Harris
39ed111367
return is_async from build_template_chunk
8 months ago
Trevor N. Suarez
eee808fb79
fix: correctly handle `novalidate` attribute casing ( #15083 )
...
This PR fixes #15082 by correctly handling the HTML element novalidate attribute casing through noValidate DOM property mapping.
8 months ago
Paolo Ricciuti
7da86ef80c
fix: don't throw for `undefined` non delegated event handlers ( #15087 )
...
* fix: don't throw for `undefined` non delegated event handlers
* chore: update typings
8 months ago
github-actions[bot]
ee024ffd0e
Version Packages ( #15080 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
8 months ago
Rich Harris
9348259879
WIP
8 months ago
Rich Harris
e15eae86b3
WIP
8 months ago
Rich Harris
4f78f64df5
fix
8 months ago
Rich Harris
085cdbadd6
fix
8 months ago
Rich Harris
c73de77412
fix
8 months ago
Dominic Gannaway
09510c8c5c
fix: address regression with untrack ( #15079 )
...
* fix: address regression with untrack
* add test
8 months ago
Rich Harris
02c2ca4843
fix
8 months ago
Rich Harris
06e61193b1
revert
8 months ago
Rich Harris
beaa64f0de
revert some stuff for now
8 months ago
Rich Harris
b386784d97
Merge branch 'main' into aa
8 months ago
github-actions[bot]
c75f1f5f2f
Version Packages ( #15052 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
8 months ago
Paolo Ricciuti
5ad6a0cdc3
fix: initialize `files` bind on hydration ( #15059 )
8 months ago
Dominic Gannaway
2ad519542d
fix: ensure untrack correctly retains the active reaction ( #15065 )
...
* fix: ensure untrack correctly retains the active reaction
* fix: ensure untrack correctly retains the active reaction
8 months ago
Rich Harris
a4eb7f7328
merge
8 months ago
Rich Harris
bc873145e5
merge
8 months ago
ComputerGuy
de94159238
docs: update README banner ( #15063 )
...
* fix
* update banner image
this is an empty commit whose name will be shown in the commit history (if someone looks at the commit history they should be able to understand what commit does what).
* chore: fix spacing
* chore: fix spacing
---------
Co-authored-by: Paolo Ricciuti <ricciutipaolo@gmail.com>
8 months ago
ComputerGuy
5f6525f416
fix: omit unnecessary nullish coallescing in template expressions ( #15056 )
...
* omit unnecessary nullish coallescing in template expressions
* add tests
8 months ago
Rich Harris
700029bd4d
fix: more efficient template effect grouping ( #15050 )
...
* WIP
* drive-by
* group attribute updates
* fix
* more
* unused
* more
* WIP
* unused
* simplify
* simplify
* simplify
* more
* unused
* unused
* more
* tweak
* update how class/style directives are handled
* more
* more
* simplify
* changeset
8 months ago
Dominic Gannaway
0dcc250a00
chore: refactor task microtask dispatching + boundary scheduling
8 months ago
Rich Harris
c5bab8d6f2
merge
8 months ago
Rich Harris
232bb6f0c6
Merge branch 'main' into experiment_s
8 months ago
Rich Harris
0d8f27eae6
parallelize
8 months ago
github-actions[bot]
a9d1f46dbb
Version Packages ( #15021 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
8 months ago
Rich Harris
509ba568f3
fix: create fewer deriveds for concatenated strings ( #15041 )
...
* fix: create fewer deriveds for concatenated strings
* stringified_text -> expression
8 months ago
Rich Harris
1a72d285f6
tests
8 months ago
Rich Harris
2fe198f1ad
fix
8 months ago
Rich Harris
1588464d3f
fix
8 months ago
Rich Harris
1320130862
various
8 months ago
Puru Vijay
2aefc5430d
feat(elements): Expose ClassValue ( #15035 )
...
* Push
* Cleanup
* Add changeset
* Remove redundant string
* Update documentation/docs/03-template-syntax/18-class.md
Co-authored-by: Paolo Ricciuti <ricciutipaolo@gmail.com>
* Update documentation/docs/03-template-syntax/18-class.md
---------
Co-authored-by: Paolo Ricciuti <ricciutipaolo@gmail.com>
8 months ago
Rich Harris
b0a08f5034
fix
8 months ago
Rich Harris
53b639de83
fix
8 months ago
Rich Harris
fa8d4596d2
adjust test (yes, this is _technically_ breaking)
8 months ago
Rich Harris
92ff62ed7d
merge
8 months ago
Rich Harris
c81e94a4a3
add test
8 months ago
Rich Harris
32e12d03b3
async deriveds
8 months ago
Dominic Gannaway
0c0fd47b39
more tweaks
8 months ago
Dominic Gannaway
36e2469cce
more tweaks
8 months ago
Dominic Gannaway
a8a420c846
cleanup
8 months ago
Dominic Gannaway
16f502a9d5
more fixes
8 months ago
Rich Harris
2cd6b73236
Merge branch 'experiment_s' into aa
8 months ago
Rich Harris
e2bc4d937f
top-level await
8 months ago
Dominic Gannaway
c7d3af1a32
oops
8 months ago
Dominic Gannaway
ff957d1db2
another fix
8 months ago
Dominic Gannaway
7addfd83ba
Revert "another fix"
...
This reverts commit 78bb187dde
.
8 months ago
Dominic Gannaway
78bb187dde
another fix
8 months ago
Dominic Gannaway
ad1c214b29
another fix
8 months ago
Rich Harris
209f311f20
reduce indirection
8 months ago
Rich Harris
964004a1b0
preserve context
8 months ago
Rich Harris
b788ec059a
fix
8 months ago
Rich Harris
5bb5a8f767
WIP
8 months ago
Rich Harris
3b185b7ba9
Merge branch 'experiment_s' into aa
8 months ago
Rich Harris
278c49056d
fix
8 months ago
Rich Harris
d1d1835680
Merge branch 'experiment_s' into aa
8 months ago
Rich Harris
4ef2be3a5d
fix
8 months ago
Rich Harris
ea139370de
WIP
8 months ago
Dominic Gannaway
e6cd4265eb
wip
8 months ago
Paolo Ricciuti
973b51d168
fix: correctly parse leading comments in function binding ( #15020 )
...
* fix: correctly parse leading comments in function binding
* chore: fix lint
8 months ago
github-actions[bot]
1d3c4397b2
Version Packages ( #15010 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
8 months ago
Rich Harris
ff79704ab8
fix: bump esrap ( #15015 )
...
* chore: bump esrap
* changeset
8 months ago
Dominic Gannaway
a4bf5e3981
Merge branch 'main' into experiment_s
8 months ago
Dominic Gannaway
74c483c69d
wip
8 months ago
Dominic Gannaway
5419610833
fix: ensure resume effects are scheduled in topological order ( #15012 )
...
* fix: ensure resume effects are scheduled in topological order
* fix: ensure resume effects are scheduled in topological order
8 months ago
Paolo Ricciuti
360ee70dcb
fix: remove listener on `bind_current_time` teardown ( #15013 )
...
Fixes #15008
8 months ago
Paolo Ricciuti
dfa97a5e64
feat: allow every children in `template` tags ( #15007 )
...
* feat: allow every children in `template` tags
* Update .changeset/dry-mails-return.md
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
8 months ago
github-actions[bot]
a1698c63ec
Version Packages ( #15001 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
8 months ago
Dominic Gannaway
dae4c5f5e1
fix: ensure signal write invalidation within effects is consistent ( #14989 )
...
* fix: ensure signal write invalidation within effects is persistent
* fix: ensure signal write invalidation within effects is persistent
* fix: ensure signal write invalidation within effects is persistent
* address feedback
8 months ago
Paolo Ricciuti
99fdc3f0ab
docs: update error message for `const_tag_invalid_placement` ( #15003 )
8 months ago
Paolo Ricciuti
a129592e5b
feat: allow const tag inside `svelte:boundary` ( #14993 )
...
* feat: allow const tag inside `svelte:boundary`
* chore: add better test
* docs: update docs for `@const`
8 months ago
github-actions[bot]
efa5acf24e
Version Packages ( #14970 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
8 months ago
Paolo Ricciuti
8a1acac084
fix: never consider inert boundary effects ( #14999 )
...
* fix: never consider inert boundary effects
* chore: inline bitwise
8 months ago
Dominic Gannaway
36ef59df1f
chore: improve test cases ( #14984 )
...
* chore: improve test cases
* lint
8 months ago
Rich Harris
76ce303b0a
chore: bump esrap ( #14969 )
...
* chore: bump esrap
* fix
* bump again
8 months ago
Paolo Ricciuti
9b6e65fbeb
fix: correctly transform `pre` with no content ( #14973 )
...
Closes #14971
8 months ago
Paolo Ricciuti
41fb51349e
fix: store access on component destroy ( #14968 )
...
Co-authored-by: Oscar Dominguez <dominguez.celada@gmail.com>
8 months ago
Dominic Gannaway
dbe5818560
fix: wrap each block expression in derived to encapsulte effects ( #14967 )
...
* fix: wrap each block expression in derived to encapsulte effects
* add test
* Update .changeset/tender-apples-scream.md
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
8 months ago
github-actions[bot]
dc8ae825b8
Version Packages ( #14965 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
8 months ago
Dominic Gannaway
bdc02008e4
fix: reset dependency read versions after reaction execution ( #14964 )
...
* fix: reset dependency read versions after reaction execution
* fix: reset dependency read versions after reaction execution
* fix: reset dependency read versions after reaction execution
* fix: reset dependency read versions after reaction execution
* fix: reset dependency read versions after reaction execution
* chore: add test
* changeset
---------
Co-authored-by: paoloricciuti <ricciutipaolo@gmail.com>
Co-authored-by: Rich Harris <rich.harris@vercel.com>
8 months ago
github-actions[bot]
b7400ae93b
Version Packages ( #14959 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
8 months ago
Rich Harris
c0842d1459
fix: properly add owners to function bindings ( #14962 )
...
Closes #14956
8 months ago
Rich Harris
68cffa8489
fix: apply `overflow: hidden` style when transitioning elements, where necessary ( #14930 )
...
* fix: apply `overflow: hidden` style when transitioning elements, where necessary
* notes to self
8 months ago
Rich Harris
79a67c9561
fix: account for parent scale when animating elements ( #14957 )
...
* WIP fix flip
* fix: account for parent scale when animating elements
8 months ago
github-actions[bot]
80d9f9996f
Version Packages ( #14953 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
8 months ago
Simon H
9aae463ae1
fix: silence false-positive statel value warning ( #14958 )
...
fixes #14687
8 months ago
Simon H
a2565efa37
docs: tweak "invalid assignment" compiler error message ( #14955 )
...
* docs: tweak "invalid assignment" compiler error message
fixes #14702
* tweak wording
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
8 months ago
Rich Harris
ce4f9722da
fix: remove bindable prop validation ( #14946 )
8 months ago
github-actions[bot]
9b71eea35d
Version Packages ( #14943 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
8 months ago
Rich Harris
d41801c75f
feat: warn on using `slide` transition with invalid `display` styles ( #14936 )
...
* feat: warn on using `slide` transition with table elements
* more generic
* more generic
8 months ago
Rich Harris
4d2cb2734b
fix: prevent long delays causing erratic spring behaviour ( #14940 )
8 months ago
Rich Harris
d245bab63a
feat: allow non-numeric values to be tweened by snapping immediately to new value ( #14941 )
8 months ago
Rich Harris
adee13d98c
fix: account for min-width/height in `slide` transition ( #14942 )
8 months ago
Dominic Gannaway
9c20eb4815
chore: improve signal performance by reducing duplicate deps ( #14945 )
...
* chore: expand benchmark iterations
* chore: improve signal performance by reducing duplicate deps
* feedback
* oops
8 months ago
Caique Torres
48e3db21c1
fix: default values in object destructuring ( #14554 )
...
* fix: enhance string/expression length check and fix closing character issues
* docs: add documentation for unterminated_string_constant error
* test: add tests for object destructuring with default values in "each" blocks
* Update .changeset/clean-planets-rush.md
* refactor: clean up unnecessary comments and whitespace
* fix: resolve formatting issues
* simplify
* tweak
* regenerate
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
8 months ago
github-actions[bot]
4aadb34c02
Version Packages ( #14924 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
9 months ago
Simon H
08061c85da
fix: guard against `customElements` being unavailable in browser extension contexts ( #14933 )
...
fixes #14739
9 months ago
Simon H
8241096b06
fix: treat `inert` as a boolean attribute ( #14935 )
...
* fix: treat `inert` as a boolean attribute
fixes #14731
* remove solo: true
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
9 months ago
Matthijs
c8865bb4a7
fix: make Tween with duration 0 set current to target immediately ( #14937 )
...
* fix: Make Tween duration 0 set current to target immediately
* Run prettier on test file
* tweak
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
9 months ago
Rich Harris
77378688b9
fix: remove leading newline from `<pre>` contents ( #14922 )
...
... if it's not followed by another newline, according to the spec
Fixes #14767
---------
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
9 months ago
Rich Harris
08a9d123e8
chore: use codePointAt instead of implementing it ourselves ( #14923 )
...
seems to be some sort of codePointAt polyfill from ancient times before that was available on String.prototype
9 months ago
github-actions[bot]
fb67bad5b0
Version Packages ( #14921 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
9 months ago
Paolo Ricciuti
72a6c7263c
fix: don't throw `bind_invalid_export` if there's also a bindable prop with the same name ( #14813 )
9 months ago
Dominic Gannaway
cd1adbc4e6
fix: ensure logic blocks keep consistent namespacing ( #14817 )
...
* fix: ensure logic blocks keep consitent namespacing
* lint
* add test
* handle `<title>` ambiguity the same as `<a>`
* update changeset
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
9 months ago
github-actions[bot]
f5c285080c
Version Packages ( #14918 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
9 months ago
Matthijs
a646780109
fix: Make Tween work with continuous target changes ( #14895 )
...
* Read previous_value at a later stage in Tween.set
* Add changeset
* tweak
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
9 months ago
Dominic Gannaway
dbdb8cd7fd
fix: use cached indexOf array prototype method internally ( #14912 )
9 months ago
github-actions[bot]
a8ca375c57
Version Packages ( #14908 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
9 months ago
Simon H
ab91c5cddb
docs: tweak links ( #14915 )
...
Remove one that is unnecessary, and make another one appear nice in markdown.
9 months ago
Simon H
2e2b440954
fix: apply `clsx` logic to custom element `class` attributes ( #14907 )
...
Fixes #14902
9 months ago
Paolo Ricciuti
c4e9faad52
fix: correctly parse `each` with loose parser ( #14887 )
...
* fix: correctly parse `each` with loose parser
* chore: fix lint
* chore: remove unused imports
* Apply suggestions from code review
* chore: fix lint
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
9 months ago
github-actions[bot]
ed26c3f658
Version Packages ( #14888 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
9 months ago
Dominic Gannaway
82db92f870
fix: ensure disconnected deriveds correctly connect again ( #14899 )
...
* fix: ensure disconnected deriveds correctly connect again
* fix: ensure disconnected deriveds correctly connect again
9 months ago
Paolo Ricciuti
a91308d9db
fix: correctly highlight sources reassigned inside `trace` ( #14811 )
...
* fix: correctly highlight sources reassigned inside `trace`
* chore: add missing effect logs
* fix: prevent `null` access on `tracing_expressions` for nested tracing
* chore: add test case for #14853
* fix: types for `$inpect.trace`
9 months ago
github-actions[bot]
f3a7ded734
Version Packages ( #14856 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
9 months ago
Dominic Gannaway
8148734812
fix: ensure unowned deriveds correctly get re-linked to the graph ( #14855 )
...
* fix: ensure unowned deriveds correctly get re-linked to the graph
* fix: ensure unowned deriveds correctly get re-linked to the graph
* fix: ensure unowned deriveds correctly get re-linked to the graph
* add test
* add test
* cleaner apporach
* cleaner apporach
* cleaner apporach
* cleaner apporach
9 months ago
Dominic Gannaway
32348a5387
fix: ensure $inspect.trace works correctly with null values ( #14853 )
...
* fix: ensure $inspect.trace works correctly with null values
* fix: ensure $inspect.trace works correctly with null values
9 months ago
github-actions[bot]
7f8acb8a37
Version Packages ( #14824 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
9 months ago
Rich Harris
97f3aa9151
docs: fix links in some errors/warnings ( #14825 )
...
* fix links in some errors/warnings
* fix
9 months ago
Simon H
015210a1a8
feat: allow objects/arrays for class attribute ( #14714 )
...
* WIP
* missed
* fix
* fix
* rename, smooth over incompatibilities
* spread support + test
* docs
* types
* implement CSS pruning for array/object expressions
* beefier static analysis
* lint
* rename doc
* move class after all directive docs
* tweak docs - clarify top-level falsy values, stagger examples, demonstrate composition, discourage class: more strongly
* changeset
* fix
* Update documentation/docs/03-template-syntax/18-class.md
Co-authored-by: Conduitry <git@chor.date>
* Apply suggestions from code review
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Conduitry <git@chor.date>
9 months ago
Andrey Sitnik
38a3ae321f
fix: Allow to disable animation prefix ( #14822 )
...
* fix: Allow to disable animation prefix
* Apply suggestions from code review
---------
Co-authored-by: Paolo Ricciuti <ricciutipaolo@gmail.com>
9 months ago