Dominic Gannaway
dee8db53df
chore: add missing changeset ( #13895 )
...
Adds a changeset for #13884
2 weeks ago
adiGuba
d0177711b1
fix : Rapidly toggling element with out: transition causes incorrect node removal ( #13884 )
...
* set onfinish to null to fix a rare bug
* replace null by noop
2 weeks ago
Dominic Gannaway
42ccdc1023
fix: ensure snippets after empty text correctly hydrate ( #13870 )
2 weeks ago
Paolo Ricciuti
b5750ac667
chore: setup `pkg.pr.new` ( #13891 )
...
* chore: setup `pkg.pr.new`
* chore: let's try with this
2 weeks ago
Dominic Gannaway
771b1e8905
fix: enable bound store props in runes mode components ( #13887 )
...
* fix: enable bound store props in runes mode components
* add some JSDoc, since it could be a headscratcher for future us
* make it clear that this is specifically about bindings
* skip intermediate value
* tweak other names too
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
2 weeks ago
Dominic Gannaway
4cf2d4a904
fix: ensure each block references to imports are handled correctly ( #13892 )
2 weeks ago
adiGuba
59ff7f1e88
fix: date test fail for some timezone ( #13889 )
...
* fix test for some timezone
* lint
2 weeks ago
Dominic Gannaway
5a54ad9cc7
fix: ensure SvelteMap reactivity persists through deriveds ( #13877 )
...
* fix: ensure SvelteMap reactivity persists through deriveds
* fix: ensure SvelteMap reactivity persists through deriveds
* fix: ensure SvelteMap reactivity persists through deriveds
2 weeks ago
github-actions[bot]
041e563466
Version Packages ( #13863 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 weeks ago
adiGuba
7c7fd6518f
feat: Little improvement to set_style() ( #13836 )
...
* improvement to set_style()
* add __styles to Element prototype
2 weeks ago
Simon H
b979c291e2
fix: properly traverse children when checking matches for `:has` ( #13866 )
...
The previous algorithm didn't take control flow blocks etc into account, this fixes that. Fixes #13860
2 weeks ago
Paolo Ricciuti
04c38b089f
fix: allow binding to const with spread in legacy mode ( #13849 )
2 weeks ago
Dominic Gannaway
4fbd2a6f10
fix: ensure props internally untracks current_value on sets ( #13859 )
...
* fix: ensure props internally untracks current_value on sets
* Update packages/svelte/src/internal/client/reactivity/props.js
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2 weeks ago
Dominic Gannaway
60dcffb856
fix: internally wrap store subscribe in untrack ( #13858 )
...
* fix: internally wrap store subscribe in untrack
* lint
* Update packages/svelte/src/store/utils.js
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2 weeks ago
Harry Allen
86ef18165f
docs: fix code example ( #13847 )
2 weeks ago
Houssam Elbadissi
3d3c98f3b0
docs: cleanup some leftover `>` symbols ( #13846 )
...
I assume they were accidentally left there because they used to be separate lines each with their own `>` at the beginning of the line, but whoever collapsed them into one line forgot to remove the extra arrow.
Whatever the case is, this commit removes (probably) all of these leftover `>` symbols.
2 weeks ago
Simon H
594e3ab311
docs: note TS caveat about module exports ( #13842 )
...
closes #13554
2 weeks ago
github-actions[bot]
af4d105cd3
Version Packages ( #13757 )
...
* Version Packages
* Update packages/svelte/CHANGELOG.md
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2 weeks ago
Simon H
44c8889291
chore: tweak MountOptions docs ( #13841 )
...
A few wording tweaks, and most importantly mark `events` as deprecated - we don't want to encourage its use.
2 weeks ago
Alex
134049f6d3
docs: clarifying wording in explanation of state rune in v5 migration guide. ( #13839 )
...
Co-authored-by: Bustos, Alex <alex.bustos@gtri.gatech.edu>
2 weeks ago
Dominic Gannaway
d621f59642
feat: allow usage of getContext() within $derived runes ( #13830 )
...
Closes #13493 .
This PR allows the usage of getContext() inside $derived runes. Previously, you could use it, but only on init and not updates – and this inconsistency was unnecessary. We can make it work just like we do in other places.
2 weeks ago
Simon H
96e2d5a395
docs: provide info about wrapper components ( #13826 )
...
closes #13006
2 weeks 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 weeks ago
Simon H
c603553e89
docs: fix ComponentProps info ( #13827 )
...
* docs: fix ComponentProps info
closes #13770
* fix
2 weeks ago
Ben McCann
2d69a64e4e
chore: one of these is not like the others ( #13834 )
2 weeks 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 weeks ago
Francesco Zanini
185e112377
fix: property name conversion in custom transitions ( #13820 )
2 weeks ago
Ben McCann
0b178cecce
chore: update all learn.svelte.dev links and a couple of others ( #13803 )
2 weeks ago
brunnerh
69f6b58bd4
docs: Reference `svelte/reactivity` from `$state`. ( #13571 )
2 weeks ago
Emanuele Picchirallo
6257203c22
docs: specify script language and add `npm install` step to installation guide ( #13804 )
2 weeks ago
Simon H
7ecc6c076c
docs: fix code example ( #13810 )
...
backporting from https://github.com/sveltejs/svelte.dev/pull/546
2 weeks 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 weeks 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 weeks ago
brunnerh
708fd9c4be
docs: fix various typos ( #13801 )
2 weeks ago
brunnerh
779b730a80
docs: fix typos in createEventDispatcher migration rationale ( #13800 )
2 weeks ago
wackbyte
0fd1a45131
docs: fix generic props type ( #13792 )
2 weeks ago
Conduitry
dbba2b0d27
docs: fix demo links to playground ( #13788 )
2 weeks ago
Ben McCann
03c4a7da53
chore: remove svelte.dev ( #13794 )
2 weeks ago
Dmytro Cheglakov
be131575d8
docs: fix typo in the snippet closing tag ( #13782 )
2 weeks ago
Rich Harris
e7d181ddb3
make links internal ( #13789 )
2 weeks ago
Paolo Ricciuti
b6a67e85b4
fix: prevent spread attribute from overriding class directive ( #13763 )
2 weeks ago
Dominic Gannaway
de609ec34c
fix: ensure $effect.tracking returns false inside transition functions ( #13775 )
2 weeks ago
Fengzi
4a0c90e87d
docs: use new Svelte 5 event handler syntax on preview site examples ( #13766 )
2 weeks ago
Rich Harris
4f6bb41030
More docs stuff ( #13769 )
...
* fix
* link
* more docs stuff
* more
* more
* fix
* more
* more
* fix
* fix
* more
* ffs
* FML
2 weeks 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 weeks ago
Paolo Ricciuti
8ff2af52d3
fix: show filename information in `legacy_recursive_reactive_block` ( #13764 )
2 weeks ago
Paolo Ricciuti
41d61c7a37
fix: properly migrate ts with inferred type comments ( #13761 )
...
Closes #13747
2 weeks ago
Paolo Ricciuti
9832c639e5
fix: migrate default slots to children snippet ( #13760 )
...
Closes #13758
2 weeks ago
brunnerh
ef205d960e
docs: fix typos ( #13752 )
...
- remove copy pasted argument from $set
- fix typo
2 weeks 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 weeks ago