0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-22 03:47:27 +01:00
Commit Graph

130 Commits

Author SHA1 Message Date
Harry Allen
86ef18165f
docs: fix code example (#13847) 2024-10-23 23:03:15 +02:00
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.
2024-10-23 22:24:52 +02:00
Simon H
594e3ab311
docs: note TS caveat about module exports (#13842)
closes #13554
2024-10-23 21:10:03 +02:00
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>
2024-10-23 20:39:29 +02:00
Simon H
96e2d5a395
docs: provide info about wrapper components (#13826)
closes #13006
2024-10-23 19:20:37 +02:00
Ben McCann
0b178cecce
chore: update all learn.svelte.dev links and a couple of others (#13803) 2024-10-23 16:53:19 +02:00
brunnerh
69f6b58bd4
docs: Reference svelte/reactivity from $state. (#13571) 2024-10-23 16:50:43 +02:00
Emanuele Picchirallo
6257203c22
docs: specify script language and add npm install step to installation guide (#13804) 2024-10-23 16:48:59 +02:00
Simon H
7ecc6c076c
docs: fix code example (#13810)
backporting from https://github.com/sveltejs/svelte.dev/pull/546
2024-10-23 09:15:46 +01:00
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>
2024-10-22 19:56:38 -07:00
brunnerh
708fd9c4be
docs: fix various typos (#13801) 2024-10-22 20:57:25 -04:00
brunnerh
779b730a80
docs: fix typos in createEventDispatcher migration rationale (#13800) 2024-10-22 20:25:38 -04:00
wackbyte
0fd1a45131
docs: fix generic props type (#13792) 2024-10-22 21:10:12 +02:00
Conduitry
dbba2b0d27
docs: fix demo links to playground (#13788) 2024-10-22 21:08:01 +02:00
Dmytro Cheglakov
be131575d8
docs: fix typo in the snippet closing tag (#13782) 2024-10-22 11:40:29 -07:00
Rich Harris
e7d181ddb3
make links internal (#13789) 2024-10-22 13:03:38 -04:00
Rich Harris
4f6bb41030
More docs stuff (#13769)
* fix

* link

* more docs stuff

* more

* more

* fix

* more

* more

* fix

* fix

* more

* ffs

* FML
2024-10-22 02:11:35 -04:00
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>
2024-10-21 23:35:51 -04:00
Paolo Ricciuti
8ff2af52d3
fix: show filename information in legacy_recursive_reactive_block (#13764) 2024-10-21 23:36:08 +02:00
brunnerh
ef205d960e
docs: fix typos (#13752)
- remove copy pasted argument from $set
- fix typo
2024-10-21 21:07:48 +02:00
Rich Harris
fd78385447
chore: restructure docs for new site (#13699) 2024-10-21 08:57:07 -07:00
Ahmad S.
618d89c368
docs: replace <div> with <svelte-css-wrapper> for style props (#13706) 2024-10-20 13:07:04 +01:00
Dominic Gannaway
ae10f4d37c
breaking: state mutations inside the template are no longer allowed (#13660)
* breaking: state mutations inside the template are no longer allowed

* fix test

* fix test

* lint

* update error message

* fix test
2024-10-19 13:38:41 +01:00
Dominic Gannaway
139114bdcb
fix: ensure legacy run utility does not cause cycles (#13643)
* fix: ensure legacy run utility does not cause cycles

* add warning

* add warning

* lint

* feedback

* lint

* lint
2024-10-17 14:05:19 +01:00
Dominic Gannaway
2070c8a166
breaking: disallow state mutations in logic block expression (#13625) 2024-10-16 14:02:12 +01:00
Rich Harris
94aea0f624 gah missed a spot 2024-10-14 22:57:14 -04:00
Rich Harris
caaf74b854
docs: more fixes (#13608) 2024-10-14 22:48:40 -04:00
Rich Harris
6534f507ce
docs: add/fix some more stuff (#13585) 2024-10-12 13:19:33 -04:00
Rich Harris
941db36b01
fix (#13581) 2024-10-12 10:10:12 -04:00
Rich Harris
5ee3ae4369
update diffs (#13575)
* update diffs

* gah

* fix
2024-10-11 17:03:26 -04:00
Rich Harris
3f0b41b252
docs: annotate notes as such (#13564) 2024-10-10 22:22:01 -04:00
Simon H
4578d4f25a
docs: generate pages for compiler/runtime warnings/errors (#13557)
* docs: generate pages for compiler/runtime warnings/errors

Ideally each warning has accompanying details so that it doesn't look so empty on the final site, but that can happen separately

* fix

* sort alphabetically, code ticks for headings

* only uppercase first word

* regenerate

* generate codes using [!NOTE], remove any backticks and escape `<` characters

* some prose preceeding the list of compiler warnings

* bring over prose from Svelte 4 a11y warnings

* fix

* lint

* remove backticks from headers, now that they are getting rendered

* Revert "remove backticks from headers, now that they are getting rendered"

This reverts commit c295281848.

* back to normal headers/code blocks

* fix

* separate authored from generated stuff

* newlines

---------

Co-authored-by: Rich Harris <rich.harris@vercel.com>
2024-10-10 20:05:38 -04:00
Rich Harris
1c8d1ca124
docs: various fixes (#13560)
* docs: various fixes

* fixes

* fix

* fix
2024-10-10 12:40:53 -04:00
Rich Harris
2b0741fa11
docs: add error annotation (#13533) 2024-10-08 18:07:13 -04:00
Rich Harris
233bbecf55
chore: rename placeholder file (#13520) 2024-10-07 12:28:08 -04:00
Simon Holthausen
dfb8eee1cc docs: some module intro comments 2024-10-07 17:59:25 +02:00
Rich Harris
56621a2b36
docs: add legacy callouts (#13428) 2024-09-28 21:54:22 -04:00
Simon H
5dbe763792
fix: don't make wheel events passive by default (#13322)
This was done previously to align with browser behavior, but the browser behavior actually only makes them passive on window/document/body. Since wheel events are not delegated, we can revert their passive-by-default setting. Closes #13318

For touchstart/touchmove we're not changing it because these events are delegated, which means they happen a lot more often on a target higher up the tree, which may cause jank.
2024-09-19 08:45:28 -04:00
brunnerh
9204d699d5
docs: fixes relating to bind:files & note on FileList API (#13235) 2024-09-16 09:34:33 +02:00
Simon H
e5c840c87b
docs: adjust bind:files section (#13230)
closes #13156
2024-09-13 15:01:28 +02:00
Simon Holthausen
36137e0e93 docs: tweaks 2024-09-11 22:07:19 +02:00
Simon Holthausen
25f67df911 docs: adjust placeholder syntax
switch over to using the existing `> ...` syntax, using the new `> MODULE: ..` placeholder. Related to https://github.com/sveltejs/svelte.dev/pull/78
2024-09-10 20:32:43 +02:00
Simon H
29f29878c3
docs: note effects lifecycle (#12993)
* docs: note effects lifecycle

closes #9265

* tweak
2024-08-23 13:24:27 -04:00
Rich Harris
213258b024
docs: add note on when effects re-run (#12961)
closes #11806

---------

Co-authored-by: Conduitry <git@chor.date>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2024-08-22 09:58:45 +02:00
Rich Harris
803ebd5676 typo 2024-08-21 21:35:10 -04:00
Rich Harris
9f962d6f81
breaking: remove $state.link (#12943)
* Revert "breaking: remove `$state.link` callback (#12942)"

This reverts commit 0b51ff04b0.

* Revert "feat: adds $state.link rune (#12545)"

This reverts commit 63ec2e2e88.

* put changesets back

* changeset

* merge main
2024-08-21 15:28:58 -04:00
Simon H
732dbf7fa9
breaking: deprecate context="module" in favor of module (#12948)
* breaking: deprecate `context="module"` in favor of `module`

Also reserve a few attributes, which we may or may not use in the future

closes #12637

* fix tests

* one more

* add svelte package to the root so eslint and prettier can use it

* tweak messages

* warn on unknown attributes

* regenerate

---------

Co-authored-by: Rich Harris <rich.harris@vercel.com>
2024-08-21 15:15:22 -04:00
Rich Harris
0b51ff04b0
breaking: remove $state.link callback (#12942)
* breaking: remove `$state.link` callback

* simplify

* regenerate
2024-08-21 09:48:50 -04:00
Rich Harris
78677e40ef
fix: align list of passive events with browser defaults, and add documentation (#12933)
closes #12639
2024-08-20 23:10:48 +02:00
Dominic Gannaway
63ec2e2e88
feat: adds $state.link rune (#12545)
* feat: adds $state.link rune

* add tests

* types

* docs

* debugger

* lint

* Update .changeset/friendly-rice-confess.md

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>

* Update packages/svelte/src/compiler/phases/2-analyze/index.js

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>

* feedback

* feedback

* feedback

* feedback

* rename link_state to linked_state for grammatical consistency

* oops, victim of find-replace

* no need to store linked_value if setting

* simplify tests

* test behaviour of objects

* update docs

* copy

* more direct example that shows unlinking and relinking

* add callback argument support

* fix

* tidy up

* document callback

---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Rich Harris <rich.harris@vercel.com>
2024-08-20 15:11:15 -04:00