Rich Harris
e5881eade3
chore: tweak migration doc diff blocks ( #15527 )
1 month ago
Garik Asplund
f30d75ab7e
updated -> to → in v5-migration-guide ( #15526 )
1 month ago
Scott Wu
dab1a1b467
docs: Update 99-faq.md ( #15510 )
1 month ago
Ben McCann
2c4d85bcec
docs: address `$effect` feedback ( #15107 )
...
* docs: address $effect feedback
* also add a note to the migration guide
* minor wording tweak
* update onMount docs
* Update documentation/docs/02-runes/05-$effect.md
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* restore order
* soften a bit
* add back mention of updating template in response to effects
* define parent effect
* state that they don't run on the server
* Update documentation/docs/02-runes/04-$effect.md
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
* format
* Apply suggestions from code review
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
* update onMount docs
* add 'Understanding lifecycle' section
* note
* tweak wording
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2 months ago
Simon H
502b585ed2
docs: enhance migration docs about accessors ( #15138 )
...
* docs: enhance migration docs about accessors
related to #15134
* more
3 months ago
Matei Trandafir
3e11b89244
docs: improve section for snippets-slots interop ( #13869 )
...
* docs: improve section for snippets-slots interop
* tweak
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
3 months ago
Gonzalo Ruiz
d15aea4e18
docs: clarify svelte:component migration, avoids common gotcha ( #13835 )
...
* docs: clarify svelte:component migration to avoid lowercase component name gotcha
* docs: move <svelte:component> section out of Breaking Changes, since it is not breaking. Change links.
* docs: move migration dot notation component initialization notes to svelte:component section
* tweaks
* fix link
---------
Co-authored-by: Gonzalo Ruiz <rgon@rgon.es>
Co-authored-by: Rich Harris <rich.harris@vercel.com>
3 months ago
Simon H
34628b9c90
docs: note custom elements on caveat ( #14934 )
...
closes #14727
3 months ago
Simon H
a1f371e786
docs: add code of files being tested ( #14925 )
...
* docs: add code of files being tested
closes #14900
* fix
* Apply suggestions from code review
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* Update documentation/docs/07-misc/02-testing.md
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* Apply suggestions from code review
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* rename import
* from https://github.com/sveltejs/svelte.dev/pull/1094
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
3 months ago
Simon H
1ffce92d90
docs: note before/afterUpdate breaking change ( #14567 )
...
...about slotted content behavior
Related to #14564
5 months ago
Ben McCann
4b802dbed3
docs: add a mobile app FAQ ( #14559 )
...
* docs: add a mobile app FAQ
* Update 99-faq.md
5 months ago
Simon H
3d36e15ddd
docs: add tsconfig.json info to TS docs ( #14519 )
...
Also fix adjacent code examples
closes #14187
5 months ago
Rob B
97185eb3d5
docs Update 03-typescript.md ( #14382 )
...
* Update 03-typescript.md
Fix TS error: Cannot invoke an object which is possibly 'undefined'.
* Update 03-typescript.md
---------
Co-authored-by: Rich Harris <hello@rich-harris.dev>
5 months ago
Gwen Le Bihan
24ebbcbbc1
docs: use e.detail instead of e.details in migration examples ( #14340 )
5 months ago
CJSnyman
6534742ae1
docs: fix grammar ( #14244 )
...
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
5 months ago
Rich Harris
5ce1159ec3
Update 03-typescript.md ( #14197 )
6 months ago
Scott
26d109cb11
docs: `SvelteHTMLElements` can be used for creating component wrapper ( #14162 )
6 months ago
Pig Fang
3d67cd53db
docs: fix migration guide typo ( #14155 )
6 months ago
Simon H
a952860232
docs: more docs on TS types ( #14065 )
...
* docs: more docs on TS types
and a few related changes/enhancements
closes #13940
* Apply suggestions from code review
* adjust
* Apply suggestions from code review
* Update documentation/docs/07-misc/03-typescript.md
* Update documentation/docs/07-misc/03-typescript.md
* Update documentation/docs/07-misc/03-typescript.md
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
6 months ago
Rich Harris
82b87b361e
docs: fix syntax error ( #14106 )
6 months ago
Simon H
aac4cbd1f1
docs: note browser condition earlier ( #14096 )
...
* docs: note browser condition earlier
The browser condition is also necessary to test runes, so it makes sense to add it to the first occurence to the vite config. Also add a note about more fine-grained alias conditions.
Closes #13961
* Update documentation/docs/07-misc/02-testing.md
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
6 months ago
Simon H
7d11fa8da2
fix: recognize all custom element prop definitions ( #14084 )
...
We didn't account for the `$props` rune being writtin in a way that makes some props unknown, and they would only be visible through the `customElement.props` definition. This changes the iteration to account for that and also adds a note to the documentation that you need to list out the properties explicitly.
fixes #13785
6 months ago
Abu
ca58039e3e
docs: fix type ( #14064 )
...
this slot name should be `footer` instead it was `header`
6 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.
6 months ago
Harry Allen
86ef18165f
docs: fix code example ( #13847 )
6 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.
6 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>
6 months ago
Simon H
96e2d5a395
docs: provide info about wrapper components ( #13826 )
...
closes #13006
6 months ago
Ben McCann
0b178cecce
chore: update all learn.svelte.dev links and a couple of others ( #13803 )
6 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>
6 months ago
brunnerh
708fd9c4be
docs: fix various typos ( #13801 )
6 months ago
brunnerh
779b730a80
docs: fix typos in createEventDispatcher migration rationale ( #13800 )
6 months ago
wackbyte
0fd1a45131
docs: fix generic props type ( #13792 )
6 months ago
Rich Harris
e7d181ddb3
make links internal ( #13789 )
6 months ago
Rich Harris
4f6bb41030
More docs stuff ( #13769 )
...
* fix
* link
* more docs stuff
* more
* more
* fix
* more
* more
* fix
* fix
* more
* ffs
* FML
6 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>
6 months ago
brunnerh
ef205d960e
docs: fix typos ( #13752 )
...
- remove copy pasted argument from $set
- fix typo
6 months ago
Rich Harris
fd78385447
chore: restructure docs for new site ( #13699 )
6 months ago