Rich Harris
e7d181ddb3
make links internal ( #13789 )
3 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
brunnerh
ef205d960e
docs: fix typos ( #13752 )
...
- remove copy pasted argument from $set
- fix typo
4 weeks ago
Rich Harris
fd78385447
chore: restructure docs for new site ( #13699 )
4 weeks ago
Ahmad S.
618d89c368
docs: replace `<div>` with `<svelte-css-wrapper>` for style props ( #13706 )
4 weeks ago
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
4 weeks ago
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
4 weeks ago
Dominic Gannaway
2070c8a166
breaking: disallow state mutations in logic block expression ( #13625 )
1 month ago
Rich Harris
94aea0f624
gah missed a spot
1 month ago
Rich Harris
caaf74b854
docs: more fixes ( #13608 )
1 month ago
Rich Harris
6534f507ce
docs: add/fix some more stuff ( #13585 )
1 month ago
Rich Harris
941db36b01
fix ( #13581 )
1 month ago
Rich Harris
5ee3ae4369
update diffs ( #13575 )
...
* update diffs
* gah
* fix
1 month ago
Rich Harris
3f0b41b252
docs: annotate notes as such ( #13564 )
1 month ago
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>
1 month ago
Rich Harris
1c8d1ca124
docs: various fixes ( #13560 )
...
* docs: various fixes
* fixes
* fix
* fix
1 month ago
Rich Harris
2b0741fa11
docs: add error annotation ( #13533 )
1 month ago
Rich Harris
233bbecf55
chore: rename placeholder file ( #13520 )
1 month ago
Simon Holthausen
dfb8eee1cc
docs: some module intro comments
1 month ago
Rich Harris
56621a2b36
docs: add legacy callouts ( #13428 )
2 months ago
sacrosanctic
c5028a27c5
docs: Update 7guis-timer example to support SSR context ( #13356 )
...
* Update 7guis-timer
* remove window reference on variable init
* better still
* prettier
---------
Co-authored-by: Rich Harris <hello@rich-harris.dev>
Co-authored-by: Rich Harris <rich.harris@vercel.com>
2 months ago
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.
2 months ago
brunnerh
9204d699d5
docs: fixes relating to `bind:files` & note on `FileList` API ( #13235 )
2 months ago
Simon H
e5c840c87b
docs: adjust `bind:files` section ( #13230 )
...
closes #13156
2 months ago
Simon Holthausen
36137e0e93
docs: tweaks
2 months ago
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
2 months ago
Simon H
29f29878c3
docs: note effects lifecycle ( #12993 )
...
* docs: note effects lifecycle
closes #9265
* tweak
3 months ago
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>
3 months ago
Rich Harris
803ebd5676
typo
3 months ago
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
3 months ago
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>
3 months ago
Rich Harris
0b51ff04b0
breaking: remove `$state.link` callback ( #12942 )
...
* breaking: remove `$state.link` callback
* simplify
* regenerate
3 months ago
Rich Harris
78677e40ef
fix: align list of passive events with browser defaults, and add documentation ( #12933 )
...
closes #12639
3 months ago
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>
3 months ago
Rich Harris
0812b10100
breaking: overhaul proxies, remove `$state.is` ( #12916 )
...
* chore: use closures for state proxies
* use variables
* early return
* tidy up
* move ownership stuff into separate object
* put original value directly on STATE_SYMBOL
* rename
* tidy up
* tidy
* tweak
* fix
* remove is_frozen check
* remove `$state.is`
* avoid mutations
* tweak
* changesets
* changeset
* changeset
* regenerate
* add comment
* add note
* add test
3 months ago
Rich Harris
9ba370f305
docs: replace `$state.frozen` docs with `$state.raw` ( #12812 )
3 months ago
Theodor Steiner
7ae21ea97d
feat: make <svelte:option> customElement configuration's tag property optional ( #12751 ) ( #12754 )
...
* feat: make svelte:option customElement tag property optional (#12751 )
* tweak comment
* tweak docs
* tweak some more wording
* Update .changeset/four-kids-flow.md
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Rich Harris <hello@rich-harris.dev>
3 months ago
Rich Harris
2e8a205161
chore: remove outdated comment ( #12632 )
4 months ago
Rich Harris
04a211e1e1
chore: VSCode -> VS Code ( #12631 )
4 months ago
Simon H
dba4dfaff8
docs: add testing section ( #12600 )
...
* docs: add testing section
- explain component and rune testing using Vitest
- explain e2e testing using Playwright
closes #10244
closes #10650
* better examples
* Update documentation/docs/05-misc/02-testing.md
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* Update documentation/docs/05-misc/02-testing.md
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* Update documentation/docs/05-misc/02-testing.md
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* fix
* Update documentation/docs/05-misc/02-testing.md
* Update documentation/docs/05-misc/02-testing.md
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
* Update documentation/docs/05-misc/02-testing.md
* we normally use single quotes
* Apply suggestions from code review
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* more details on component testing
* extract component testing into its own sub section, reorder a bit
* fix code example
* Update documentation/docs/05-misc/02-testing.md
* Apply suggestions from code review
Co-authored-by: Rich Harris <rich.harris@vercel.com>
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
4 months ago
Rich Harris
ba5f5f38b1
chore: tweak event delegation docs ( #12607 )
4 months ago
Simon H
13d86e9019
feat: allow `:global` in more places (alternative) ( #12560 )
...
* `div { :global { &.x { ... } } }` is equivalent to `div:global.x { ... }`, so the latter should be allowed, too
* finalize
* replace obsolete breaking change (which turned out to be a wrong change and was since reverted), add new breaking change note
* changeset
* regenerate types
* Update sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-breaking-changes.md
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* always remove descendant selector before global
* error on lone `:global` with nested `&`, revert "remove spaces" rule
* regenerate types
* documentation
* oops
* switch to removing descendant combinator
* fix
* revert combinator validation relaxation
* error on first global being modified
* tweak docs
* tweak error messages
* Update documentation/docs/02-template-syntax/05-styles-and-classes.md
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* clarify
* tweak messages
* update tests
* tweak docs
* tweak `:global(...)` docs
* tweak docs
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
4 months ago
Rich Harris
e2f17c8a7b
chore: tweak xmlns docs ( #12606 )
4 months ago
Dominic Gannaway
afa3128d2f
breaking: avoid flushing queued updates on mount/hydrate ( #12602 )
...
* Revert "Revert "breaking: avoid flushing queued updates on mount/hydrate" (#1…"
This reverts commit 8d139210b7
.
* fix legacy wrapper
* lint
* docs
* duplicate
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
4 months ago
Simon H
6223a7e87e
docs: event delegation tweaks ( #12597 )
...
closes #11317
4 months ago
Simon H
bc78391bdc
docs: mention xmlns attribute for `<svelte:element>` ( #12598 )
...
closes #11993
4 months ago
Simon H
2698716bdf
docs: fine-tune $props types info ( #12534 )
...
Show how to do optional props, add jsdoc example to non-preview-docs
closes #12528
4 months ago
Simon H
73d97f7af9
docs: fix `$effect.pre` code example ( #12444 )
...
closes #12439
4 months ago