github-actions[bot]
b0374f8863
Version Packages ( #14662 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 weeks ago
Rich Harris
d43a10ba7a
feat: add `svelte/reactivity/window` module ( #14660 )
...
* feat: add `svelte/reactivity/window` module
* lint
* fix
* hide private types
* online binding
* tweak docs
* tweak
* add @since tags
---------
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
2 weeks ago
Simon H
a2539cfe1f
fix: correctly set custom element props ( #14508 )
...
fixes #14391
In #13337 the "when to set as a property" logic for custom elements was adjusted. A bug was introduced during this, and it consists of several parts, of which the latter I'm not sure what's the best solution, hence opening this to discuss.
The problem is that during set_custom_element_data, get_setters is the only check done to differentiate between setting the value as a prop (has a setter) or as an attribute (doesn't have a setter).
The solution is to take into account whether or not the custom element is already registered, and defer getting (and caching) its setters until then. Instead, fall back to a "an object is always set as a prop" heuristic.
2 weeks ago
github-actions[bot]
cb5734ae66
Version Packages ( #14652 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 weeks ago
grieben
a26b6d80ef
fix: overwrite #last_value when Spring is `.set()` with `{instant: true}` ( #14656 )
...
* fix: overwrite #last_value when Spring is with
* run npx changeset
2 weeks ago
Dominic Gannaway
fb879dd702
fix: ensure $state.snapshot clones holey arrays correctly ( #14657 )
...
* fix: ensure $state.snapshot clones holey arrays correctly
* fix: ensure $state.snapshot clones holey arrays correctly
* fix: ensure $state.snapshot clones holey arrays correctly
* fix: ensure $state.snapshot clones holey arrays correctly
2 weeks ago
Paolo Ricciuti
ab1f7f437e
fix: transform everything that is not a selector inside `:global` ( #14577 )
...
Fixes #14568
2 weeks ago
Simon H
88184cd769
fix: don't emit assignment warnings for bindings ( #14651 )
...
Also fixes the possibility of an infinite loop due to the property access during the dev time check
fixes #14643
2 weeks ago
Dominic Gannaway
66e30d3288
fix: ensure snippet hoisting works in the correct scope ( #14642 )
...
* fix: ensure snippet hoisting works in the correct scope
* fix bug
* revert
* revert
2 weeks ago
Dominic Gannaway
9cfd2e20ab
fix: restore input binding selection position ( #14649 )
2 weeks ago
github-actions[bot]
8bee23e387
Version Packages ( #14631 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 weeks ago
Rich Harris
a25a17373d
chore: upgrade last changeset to a minor ( #14636 )
3 weeks ago
Simon H
cfc1fb7de8
chore: provide links to documentation for errors/warnings ( #14629 )
...
* chore: provide links to documentation for errors/warnings
closes #11305
* changeset
* fix most of the tests
* fix mutations messing with nodes between runs
* more concise
* more test fixes
* last one
3 weeks ago
Rich Harris
3dcd5a4a3e
fix docs ( #14635 )
3 weeks ago
Simon H
c6fca02009
docs: more details for errors/warnings on the site ( #14632 )
...
* docs: more details for errors/warnings on the site
Related to #11305
* Apply suggestions from code review
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* fix in correct place
* tab not spaces
* tweaks
* fix
* Apply suggestions from code review
* regenerate
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
3 weeks ago
Paolo Ricciuti
11764632b9
fix: deconflict `get_name` for literal class properties ( #14607 )
3 weeks ago
Paolo Ricciuti
38171f60ea
fix: allow exports with source from script module even if no bind is present ( #14620 )
...
* fix: allow exports with source from script module even if no bind is present
* chore: move test to validator
3 weeks ago
github-actions[bot]
0a10c59517
Version Packages ( #14628 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 weeks ago
Paolo Ricciuti
c66bf178aa
fix: mark subtree dynamic for bind with sequence expressions ( #14626 )
3 weeks ago
Rich Harris
c1c59e77a5
docs: where the hell did this come from? ( #14613 )
3 weeks ago
github-actions[bot]
301744f1f7
Version Packages ( #14598 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 weeks ago
Rich Harris
57f8ca6e3c
oops
3 weeks ago
Dominic Gannaway
5771b455c0
feat: add support for bind getter/setters ( #14307 )
...
* feat: add support for bind getters/setters
* different direction
* oops
* oops
* build
* add changeset and tests
* move validation
* add comment
* build
* bind:group error
* simpler to just keep it as a SequenceExpression
* fix
* lint
* fix
* move validation to visitor
* fix
* no longer needed
* fix
* parser changes are no longer needed
* simplify
* simplify
* update messages
* docs
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
3 weeks ago
Rich Harris
1a0b822f48
fix: always run `if` block code the first time ( #14597 )
...
* fix: always run `if` block code the first time
* fix
3 weeks ago
Rich Harris
08e2cf25b0
chore: fix sandbox ( #14596 )
3 weeks ago
Simon Holthausen
dd748e22d2
Merge branch 'main' into svelte-html
3 weeks ago
Simon Holthausen
6bf6c748ee
test
3 weeks ago
Simon Holthausen
8f8a5b10df
tweak implementation
3 weeks ago
github-actions[bot]
98286349b2
Version Packages ( #14593 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 weeks ago
Rich Harris
65fdcec55d
chore: regenerate types ( #14592 )
3 weeks ago
Simon Holthausen
0a9594913c
fix test setup
3 weeks ago
Simon Holthausen
86342319d8
robustify for multiple blocks:
...
- revert to previous value on unmount, if it was the last one changing the value
- special handling for classes: merge them
3 weeks ago
brunnerh
ad87572adc
docs: Import .svelte.js files with explicit extension. ( #14584 )
3 weeks ago
Rich Harris
8433a7169b
fix: reinstate `prefersReducedMotion` ( #14586 )
...
* reinstate prefersReducedMotion
* changeset
3 weeks ago
Rich Harris
7086709767
add since tag to Spring ( #14585 )
3 weeks ago
github-actions[bot]
947d4adf3b
Version Packages ( #14583 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 weeks ago
Rich Harris
80ffcc3fe1
feat: add Spring and Tween classes ( #11519 )
...
* feat: add Spring class
* add some docs, Spring.of static method
* add Tween class
* lint
* preserveMomentum in milliseconds
* deprecate tweened
* changeset
* wrestle with types
* more consolidation
* flesh out the distinction a bit more, deprecate `subscribe`
---------
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
3 weeks ago
Simon Holthausen
0c1c8b992b
Merge branch 'main' into svelte-html
3 weeks ago
github-actions[bot]
60c0dc7a2d
Version Packages ( #14576 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 weeks ago
Simon H
ca67aa1b34
fix: ensure bindings always take precedence over spreads ( #14575 )
3 weeks ago
Rich Harris
6a6b4ec36a
fix deprecation notices ( #14574 )
3 weeks ago
github-actions[bot]
7f5172745d
Version Packages ( #14570 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 weeks ago
Simon H
0a9890bb1e
feat: provide `MediaQuery` / `prefersReducedMotion` ( #14422 )
...
* feat: provide `MediaQuery` / `prefersReducedMotion`
closes #5346
* matches -> current, server fallback
* createStartStopNotifier
* test polyfill
* more tests fixes
* feedback
* rename
* tweak, types
* hnnnggh
* mark as pure
* fix type check
* notify -> subscribe
* add links to inline docs
* better API, more docs
* add example to prefersReducedMotion
* add example for MediaQuery
* typo
* fix example
* tweak docs
* changesets
* note when APIs were added
* add note
* regenerate
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
3 weeks ago
Simon H
73b3cf72d0
fix: treat `undefined` and `null` the same for the initial input value ( #14562 )
...
* fix: treat `undefined` and `null` the same for the initial input value
Fixes #14558
* test
* same for checked
3 weeks ago
Simon H
1ffce92d90
docs: note before/afterUpdate breaking change ( #14567 )
...
...about slotted content behavior
Related to #14564
3 weeks ago
Ben McCann
4b802dbed3
docs: add a mobile app FAQ ( #14559 )
...
* docs: add a mobile app FAQ
* Update 99-faq.md
3 weeks ago
github-actions[bot]
85dec47a5e
Version Packages ( #14557 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 weeks ago
Dominic Gannaway
a220330011
chore: make if blocks tree-shakable ( #14549 )
...
* chore: make if blocks dead code eliminable
* chore: make if blocks dead code eliminable
* chore: make if blocks dead code eliminable
* address feedback
* address feedback
* prettier
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
3 weeks ago
github-actions[bot]
51c9eac577
Version Packages ( #14556 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 weeks ago
Simon H
a151ae1804
fix: handle static form values in combination with default values ( #14555 )
...
When the `value` or `checked` attribute of an input or the contents of a textarea were static, setting the `defaulValue/defaultChecked` property caused the latter to take precedence over the former. This is due to how we transform the code: If the value is static, we put it onto
3 weeks ago