Simon H
cbc2ca36ce
fix: allow to pass in TS preference to migration ( #13929 )
...
First half of https://github.com/sveltejs/kit/issues/12880 - the idea is for the migration script to check for a tsconfig.json and then set it to `true` if one is found
2 months ago
Ben McCann
08bc37a374
fix: don't access requestAnimationFrame eagerly ( #14026 )
2 months ago
Simon H
b3437e6020
docs: note old site ( #13996 )
2 months ago
github-actions[bot]
4441952028
Version Packages ( #13949 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago
Ben McCann
07219f1cbd
chore: update links that previously pointed to preview site ( #14001 )
2 months ago
Ben McCann
c93a645b68
docs: fix broken links ( #13944 )
2 months ago
Paolo Ricciuti
b6fccdb4f7
fix: properly migrate imports types prefixed with $ ( #14007 )
2 months ago
Dominic Gannaway
3876b302f3
fix: ensure effect_tracking correctly handles tracking reactions ( #14005 )
...
* fix: ensure effect_tracking correctly handles tracking reactions
* fix: ensure effect_tracking correctly handles tracking reactions
2 months ago
Rich Harris
777d059b10
docs: update heading level in `02-getting-started.md` ( #13997 )
2 months ago
Richard Smith
e99e865291
docs: update links to point to new site ( #13986 )
...
Update (some) of the links pointing to the old preview site as mentioned in #13982 .
This updates all the links in documentation/ and packages/svelte/messages, but doesn't touch others present in packages/svelte/ or fix the original link in that issue.
2 months ago
Tee Ming
430c2bb129
docs: use `$effect.pre` instead of `beforeUpdate` ( #13955 )
...
* Update 03-lifecycle-hooks.md
* Update documentation/docs/06-runtime/03-lifecycle-hooks.md
Co-authored-by: Paolo Ricciuti <ricciutipaolo@gmail.com>
---------
Co-authored-by: Paolo Ricciuti <ricciutipaolo@gmail.com>
2 months ago
Max Duval
ac6d8c0bf4
docs: fix small typo ( #13967 )
...
A full stop or colon, we myst choose
2 months ago
Paolo Ricciuti
67cf3871b4
fix: more exhaustive check during `SvelteMap.set` in deriveds ( #13951 )
...
* fix: more exhaustive check during `SvelteMap.set` in deriveds
* chore: use set for version reactions
* chore: cleanup
2 months ago
george looshch
5ab65e3d59
docs: consistently capitalize DOM in the Svelte 5 migration guide ( #13957 ) ( #13958 )
...
Make the casing of the word ‘DOM’ in the Svelte 5 migration guide
consistent.
2 months ago
Paolo Ricciuti
12fcc7a35a
fix: trim whitespace while migrating blocks ( #13941 )
...
Co-authored-by: Oscar Dominguez <dominguez.celada@gmail.com>
2 months ago
Paolo Ricciuti
7be3afb3a6
fix: add empty stack to `CompileDiagnostic` to show error on build ( #13942 )
...
* fix: add empty stack to `CompileDiagnostic` to show error on build
* chore: generate types
* chore: make stack optional to make TS happy
* chore: generate types -.-"
* chore: add comment
2 months ago
github-actions[bot]
da1fefcd45
Version Packages ( #13920 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago
Dominic Gannaway
83a5eaac8e
fix: skip comment nodes in snippet validation logic ( #13936 )
2 months ago
Dominic Gannaway
37fa34c4ad
fix: ensure value is correctly set to zero on the progress element ( #13924 )
...
* fix: ensure value is correctly set to zero on the progress element
* fix: ensure value is correctly set to zero on the progress element
* fix: ensure value is correctly set to zero on the progress element
2 months ago
Dominic Gannaway
1e6cf1bb40
fix: ensure bind:group works as intended with proxied state objects ( #13939 )
2 months ago
Dominic Gannaway
7bbaedd6c7
fix: rethrow errors from await block if no catch block exists ( #13819 )
...
* chore: highlight swallowed errors from await blocks in DEV
* chore: highlight swallowed errors from await blocks in DEV
* chore: highlight swallowed errors from await blocks in DEV
* lint
* feedback
* feedback
* add test
* Update packages/svelte/tests/runtime-runes/samples/await-no-catch-error/main.svelte
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2 months ago
Simon H
81f9bdd376
fix: remove metadata from legacy AST ( #13927 )
...
Besides being private API that shouldn't be exposed, they caused our AST explorer on the Svelte site to traverse endlessly
fixes https://github.com/sveltejs/svelte.dev/issues/480
2 months ago
Dominic Gannaway
441124c5c7
fix: ensure SVG element attributes have case preserved ( #13935 )
...
* fix: ensure SVG element attributes have case preserved
* fix: ensure SVG element attributes have case preserved
* fix: ensure SVG element attributes have case preserved
2 months ago
Stephane
feb2d85f46
docs: clarify why we need to use the derived rune ( #13919 )
...
* clarify why we need to use the derived rune
* put clarification as note
2 months ago
Conduitry
107be28890
docs: fix outdated $effect.tracking() demo ( #13906 )
2 months ago
Matthew Carroll
1a6a3e7ebd
fix: typo in `Action` types ( #13874 )
...
* typo: HTMLDiveElement
* regenerate types
* add changeset
---------
Co-authored-by: Conduitry <git@chor.date>
2 months ago
plgingras88
18e2284e74
docs: fix setContext/getContext typo ( #13901 )
2 months ago
github-actions[bot]
1ee2ac4d05
Version Packages ( #13888 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago
Paolo Ricciuti
b63fde3b75
fix: prevent migration script from adding `props.` to the `export let` identifier ( #13899 )
2 months ago
Paolo Ricciuti
3147287813
fix: prevent var name clashing for delegated events without params ( #13896 )
2 months ago
Dominic Gannaway
dee8db53df
chore: add missing changeset ( #13895 )
...
Adds a changeset for #13884
2 months 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 months ago
Dominic Gannaway
42ccdc1023
fix: ensure snippets after empty text correctly hydrate ( #13870 )
2 months ago
Paolo Ricciuti
b5750ac667
chore: setup `pkg.pr.new` ( #13891 )
...
* chore: setup `pkg.pr.new`
* chore: let's try with this
2 months 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 months ago
Dominic Gannaway
4cf2d4a904
fix: ensure each block references to imports are handled correctly ( #13892 )
2 months ago
adiGuba
59ff7f1e88
fix: date test fail for some timezone ( #13889 )
...
* fix test for some timezone
* lint
2 months 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 months ago
github-actions[bot]
041e563466
Version Packages ( #13863 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago
adiGuba
7c7fd6518f
feat: Little improvement to set_style() ( #13836 )
...
* improvement to set_style()
* add __styles to Element prototype
2 months 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 months ago
Paolo Ricciuti
04c38b089f
fix: allow binding to const with spread in legacy mode ( #13849 )
2 months 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 months 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 months ago
Harry Allen
86ef18165f
docs: fix code example ( #13847 )
2 months 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 months ago
Simon H
594e3ab311
docs: note TS caveat about module exports ( #13842 )
...
closes #13554
2 months 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 months 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 months 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 months ago