plgingras88
18e2284e74
docs: fix setContext/getContext typo ( #13901 )
3 weeks ago
github-actions[bot]
1ee2ac4d05
Version Packages ( #13888 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 weeks ago
Paolo Ricciuti
b63fde3b75
fix: prevent migration script from adding `props.` to the `export let` identifier ( #13899 )
3 weeks ago
Paolo Ricciuti
3147287813
fix: prevent var name clashing for delegated events without params ( #13896 )
3 weeks ago
Dominic Gannaway
dee8db53df
chore: add missing changeset ( #13895 )
...
Adds a changeset for #13884
3 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
3 weeks ago
Dominic Gannaway
42ccdc1023
fix: ensure snippets after empty text correctly hydrate ( #13870 )
3 weeks ago
Paolo Ricciuti
b5750ac667
chore: setup `pkg.pr.new` ( #13891 )
...
* chore: setup `pkg.pr.new`
* chore: let's try with this
3 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>
3 weeks ago
Dominic Gannaway
4cf2d4a904
fix: ensure each block references to imports are handled correctly ( #13892 )
3 weeks ago
adiGuba
59ff7f1e88
fix: date test fail for some timezone ( #13889 )
...
* fix test for some timezone
* lint
3 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
3 weeks ago
github-actions[bot]
041e563466
Version Packages ( #13863 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 weeks ago
adiGuba
7c7fd6518f
feat: Little improvement to set_style() ( #13836 )
...
* improvement to set_style()
* add __styles to Element prototype
3 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
3 weeks ago
Paolo Ricciuti
04c38b089f
fix: allow binding to const with spread in legacy mode ( #13849 )
3 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>
3 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>
3 weeks ago
Harry Allen
86ef18165f
docs: fix code example ( #13847 )
3 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.
3 weeks ago
Simon H
594e3ab311
docs: note TS caveat about module exports ( #13842 )
...
closes #13554
3 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>
3 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.
3 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>
3 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.
3 weeks ago
Simon H
96e2d5a395
docs: provide info about wrapper components ( #13826 )
...
closes #13006
3 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
3 weeks ago
Simon H
c603553e89
docs: fix ComponentProps info ( #13827 )
...
* docs: fix ComponentProps info
closes #13770
* fix
3 weeks ago
Ben McCann
2d69a64e4e
chore: one of these is not like the others ( #13834 )
3 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>
3 weeks ago
Francesco Zanini
185e112377
fix: property name conversion in custom transitions ( #13820 )
3 weeks ago
Ben McCann
0b178cecce
chore: update all learn.svelte.dev links and a couple of others ( #13803 )
3 weeks ago
brunnerh
69f6b58bd4
docs: Reference `svelte/reactivity` from `$state`. ( #13571 )
3 weeks ago
Emanuele Picchirallo
6257203c22
docs: specify script language and add `npm install` step to installation guide ( #13804 )
3 weeks ago
Simon H
7ecc6c076c
docs: fix code example ( #13810 )
...
backporting from https://github.com/sveltejs/svelte.dev/pull/546
3 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>
3 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>
3 weeks ago
brunnerh
708fd9c4be
docs: fix various typos ( #13801 )
3 weeks ago
brunnerh
779b730a80
docs: fix typos in createEventDispatcher migration rationale ( #13800 )
3 weeks ago
wackbyte
0fd1a45131
docs: fix generic props type ( #13792 )
3 weeks ago
Conduitry
dbba2b0d27
docs: fix demo links to playground ( #13788 )
3 weeks ago
Ben McCann
03c4a7da53
chore: remove svelte.dev ( #13794 )
3 weeks ago
Dmytro Cheglakov
be131575d8
docs: fix typo in the snippet closing tag ( #13782 )
3 weeks ago
Rich Harris
e7d181ddb3
make links internal ( #13789 )
3 weeks ago
Paolo Ricciuti
b6a67e85b4
fix: prevent spread attribute from overriding class directive ( #13763 )
3 weeks ago
Dominic Gannaway
de609ec34c
fix: ensure $effect.tracking returns false inside transition functions ( #13775 )
3 weeks ago
Fengzi
4a0c90e87d
docs: use new Svelte 5 event handler syntax on preview site examples ( #13766 )
4 weeks ago
Rich Harris
4f6bb41030
More docs stuff ( #13769 )
...
* fix
* link
* more docs stuff
* more
* more
* fix
* more
* more
* fix
* fix
* more
* ffs
* FML
4 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>
4 weeks ago
Paolo Ricciuti
8ff2af52d3
fix: show filename information in `legacy_recursive_reactive_block` ( #13764 )
4 weeks ago