Simon H
96e2d5a395
docs: provide info about wrapper components ( #13826 )
...
closes #13006
2 months ago
Simon H
5669b31fe6
fix: ensure `:has` selectors followed by other selectors match ( #13824 )
...
I resisted this previously because it felt a bit wasteful, but I now think that there's really no way around this: Instead of only going upwards the tree while matching, for `:has` we go _down_ the tree to see what matches. More specifically, we're collecting the children of the current element and then check if one of those does match the selectors inside `:has`.
This makes the way the code works easier to reason about and also removes some boolean tracking we had to add for the previous approach.
Fixes #13779
2 months ago
Simon H
c603553e89
docs: fix ComponentProps info ( #13827 )
...
* docs: fix ComponentProps info
closes #13770
* fix
2 months ago
Ben McCann
2d69a64e4e
chore: one of these is not like the others ( #13834 )
2 months ago
Dominic Gannaway
17cb462ca4
fix: ensure muted DOM property works correctly in FF ( #13751 )
...
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2 months ago
Francesco Zanini
185e112377
fix: property name conversion in custom transitions ( #13820 )
2 months ago
Ben McCann
0b178cecce
chore: update all learn.svelte.dev links and a couple of others ( #13803 )
2 months ago
brunnerh
69f6b58bd4
docs: Reference `svelte/reactivity` from `$state`. ( #13571 )
2 months ago
Emanuele Picchirallo
6257203c22
docs: specify script language and add `npm install` step to installation guide ( #13804 )
2 months ago
Simon H
7ecc6c076c
docs: fix code example ( #13810 )
...
backporting from https://github.com/sveltejs/svelte.dev/pull/546
2 months ago
José Pablo Ramírez Vargas
95980d1f08
feat: Define the MountOptions type ( #13674 )
...
* feat: Define the MountOptions type
* Revert "feat: Define the MountOptions type"
This reverts commit bd3596fcba
.
* feat: Define the MountOptions type
* chore: Add changeset
* lint
* lint
---------
Co-authored-by: Dominic Gannaway <dg@domgan.com>
2 months ago
Jayden W
d16a9da153
docs: fix TODO to add link to tutorial in migration guide ( #13796 )
...
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2 months ago
brunnerh
708fd9c4be
docs: fix various typos ( #13801 )
2 months ago
brunnerh
779b730a80
docs: fix typos in createEventDispatcher migration rationale ( #13800 )
2 months ago
wackbyte
0fd1a45131
docs: fix generic props type ( #13792 )
2 months ago
Conduitry
dbba2b0d27
docs: fix demo links to playground ( #13788 )
2 months ago
Ben McCann
03c4a7da53
chore: remove svelte.dev ( #13794 )
2 months ago
Dmytro Cheglakov
be131575d8
docs: fix typo in the snippet closing tag ( #13782 )
2 months ago
Rich Harris
e7d181ddb3
make links internal ( #13789 )
2 months ago
Paolo Ricciuti
b6a67e85b4
fix: prevent spread attribute from overriding class directive ( #13763 )
2 months ago
Dominic Gannaway
de609ec34c
fix: ensure $effect.tracking returns false inside transition functions ( #13775 )
2 months ago
Fengzi
4a0c90e87d
docs: use new Svelte 5 event handler syntax on preview site examples ( #13766 )
2 months ago
Rich Harris
4f6bb41030
More docs stuff ( #13769 )
...
* fix
* link
* more docs stuff
* more
* more
* fix
* more
* more
* fix
* fix
* more
* ffs
* FML
2 months ago
Simon H
4c7cfff434
docs: legacy docs ( #13756 )
...
* docs: legacy docs
add docs on old syntax
* rename section
* tweaks
* tweak
* tweaks
* tweaks
* tweaks
* fix link
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
2 months ago
Paolo Ricciuti
8ff2af52d3
fix: show filename information in `legacy_recursive_reactive_block` ( #13764 )
2 months ago
Paolo Ricciuti
41d61c7a37
fix: properly migrate ts with inferred type comments ( #13761 )
...
Closes #13747
2 months ago
Paolo Ricciuti
9832c639e5
fix: migrate default slots to children snippet ( #13760 )
...
Closes #13758
2 months ago
brunnerh
ef205d960e
docs: fix typos ( #13752 )
...
- remove copy pasted argument from $set
- fix typo
2 months ago
Paolo Ricciuti
d1cac703c0
fix: don't print errors on migration errors ( #13754 )
...
makes it look like the migration script failed when in reality you need to update some of your files by hand
2 months ago
github-actions[bot]
ae8f50fd6a
Version Packages ( #13742 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago
Simon H
a6e416da8c
fix: mark `:has` selectors with multiple preceding selectors as used ( #13750 )
...
Fixes #13717
There are two parts to this:
1. the parent selectors weren't passed along for the check inside `:has`, which in case of a leading combinator would mean it would always count as unused
2. In case if a selector like `x > y:has(z)`, the prior logic would correctly determine that for element `z` there's a match for the `:has` selector, by first checking its contents and then walking up the tree. But after it did that, it would try to walk up the tree once more, which is a) wasteful b) buggy because the tree walking mechanism would no longer be adjusted for the `:has` special case, resulting in false negatives. To fix that, the `:has` will return a new value from the function, signaling that it already fully checked the upper selectors, and so the function calling it will skip doing that.
2 months ago
Rich Harris
fd78385447
chore: restructure docs for new site ( #13699 )
2 months ago
adiGuba
ad578a5da5
fix: @debug does not work with proxied-state ( #13690 )
...
* fix: @debug must use $state.snapshot() on value
* changeset
* add test
---------
Co-authored-by: Dominic Gannaway <dg@domgan.com>
2 months ago
Simon H
28c8d2b95d
fix: do not comment out unused selectors that are inside an unused selector ( #13746 )
...
fixes #13680
2 months ago
Simon H
2efae794b8
fix: add more robust check for `Element` prototype ( #13744 )
...
fixes #13691
fixes #13414
fixes #13726
2 months ago
Simon H
a08f063b37
fix: more accurately detect `$derived` migration use cases ( #13740 )
...
- detect store mutations and not use `$derived` in that case, fixes #13723
- better detect `let x` that can be folded into `$derived`, fixes #13727
---------
Co-authored-by: ComputerGuy <63362464+Ocean-OS@users.noreply.github.com>
2 months ago
Simon H
8a06d051e8
fix: do not add jsdoc if no types found ( #13738 )
...
fixes #13417
fixes #13724
2 months ago
Dominic Gannaway
be02b7e54c
event_context ( #13737 )
2 months ago
github-actions[bot]
fb052be96e
Version Packages ( #13736 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago
Simon H
e41a66bdbe
chore: clean up PR template ( #13735 )
...
time to remove the Svelte 5 note
2 months ago
Simon H
8251bae8db
fix: better children snippet / default slot interop ( #13734 )
...
- correctly assign children snippet to default slot, fixes #13067
- allow `svelte:fragment` without `let:` directives to be rendered by `@render children()`, fixes #13066
2 months ago
Florent BENOIT
d0bfd22bef
fix: webview can contain any string for preload ( #13733 )
...
fixes #13661
2 months ago
github-actions[bot]
41b5cd6f5d
Version Packages ( #13720 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago
Ahmad S.
618d89c368
docs: replace `<div>` with `<svelte-css-wrapper>` for style props ( #13706 )
2 months ago
Dominic Gannaway
ed6d7eeb48
wrap-transition-events ( #13719 )
2 months ago
github-actions[bot]
0581e334a0
Version Packages ( #13704 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago
Paolo Ricciuti
e43176906f
fix: don't blank css on migration error ( #13703 )
2 months ago
github-actions[bot]
c73c683ecd
Version Packages ( #13702 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago
Paolo Ricciuti
6ad017ffc5
fix: use typedef for JSDoc props and maintain comments ( #13698 )
...
* fix: use typedef for JSDoc props and maintain comments
* chore: add comments
* chore: add extra spaces and delete commented line
2 months ago
Rich Harris
663a3ca550
update version.js
2 months ago