Paolo Ricciuti
474c588067
fix: disallow `bind:group` to snippet parameters ( #15401 )
6 months ago
adiGuba
0d5d9ab760
docs: fix two element_invalid_self_closing_tag warning in example ( #15324 )
...
* code is incorrect (warning element_invalid_self_closing_tag)
* close canvas
7 months ago
Eric Liu
75f81991c2
docs(bindable): fix `file:` annotation for App.svelte ( #15314 )
7 months ago
Kid
5fe0272868
docs: remove duplicate `onDestroy` description ( #15274 )
7 months ago
adiGuba
85f83ec435
feat: $props.id(), a SSR-safe ID generation ( #15185 )
...
* first impl of $$uid
* fix
* $props.id()
* fix errors
* rename $.create_uid() into $.props_id()
* fix message
* relax const requirement, validate assignments instead
* oops
* simplify
* non-constants should be lowercased
* ditto
* start at 1
* add docs
* changeset
* add test
* add docs
* doc : add code example
* fix type reported by bennymi
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
7 months ago
Simon H
502b585ed2
docs: enhance migration docs about accessors ( #15138 )
...
* docs: enhance migration docs about accessors
related to #15134
* more
7 months ago
Scott Wu
e1014e3016
Update 11-bind.md ( #15192 )
7 months ago
tomoam
e83ab1c038
docs: fix typos and a link ( #15135 )
7 months ago
Scott Wu
674f81b5ce
[docs] clarify that `$effect` analyzes functions deeply ( #15144 )
...
* Update 04-$effect.md
* Update documentation/docs/02-runes/04-$effect.md
---------
Co-authored-by: Rich Harris <hello@rich-harris.dev>
7 months ago
Simon H
6df59055e7
docs: more examples on what is outside the rendering process ( #15157 )
...
closes #15151
7 months ago
Puru Vijay
2aefc5430d
feat(elements): Expose ClassValue ( #15035 )
...
* Push
* Cleanup
* Add changeset
* Remove redundant string
* Update documentation/docs/03-template-syntax/18-class.md
Co-authored-by: Paolo Ricciuti <ricciutipaolo@gmail.com>
* Update documentation/docs/03-template-syntax/18-class.md
---------
Co-authored-by: Paolo Ricciuti <ricciutipaolo@gmail.com>
8 months ago
Paolo Ricciuti
99fdc3f0ab
docs: update error message for `const_tag_invalid_placement` ( #15003 )
8 months ago
Paolo Ricciuti
a129592e5b
feat: allow const tag inside `svelte:boundary` ( #14993 )
...
* feat: allow const tag inside `svelte:boundary`
* chore: add better test
* docs: update docs for `@const`
8 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>
8 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>
8 months ago
Basti Ortiz
bf80c10625
docs: clarify example on dynamic dependency tracking ( #13767 )
...
* docs(effect): clarify example on dynamic dependency tracking
* use an if block, it's clearer
* fix
* toggle
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
8 months ago
Simon H
a2565efa37
docs: tweak "invalid assignment" compiler error message ( #14955 )
...
* docs: tweak "invalid assignment" compiler error message
fixes #14702
* tweak wording
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
8 months ago
Rich Harris
d41801c75f
feat: warn on using `slide` transition with invalid `display` styles ( #14936 )
...
* feat: warn on using `slide` transition with table elements
* more generic
* more generic
8 months ago
Rich Harris
ce2566d4c4
docs: simplify `$effect.tracking()` docs ( #14939 )
8 months ago
Caique Torres
48e3db21c1
fix: default values in object destructuring ( #14554 )
...
* fix: enhance string/expression length check and fix closing character issues
* docs: add documentation for unterminated_string_constant error
* test: add tests for object destructuring with default values in "each" blocks
* Update .changeset/clean-planets-rush.md
* refactor: clean up unnecessary comments and whitespace
* fix: resolve formatting issues
* simplify
* tweak
* regenerate
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
8 months ago
Rich Harris
19038d19cb
docs: add section on update propagation ( #14938 )
8 months ago
Simon H
34628b9c90
docs: note custom elements on caveat ( #14934 )
...
closes #14727
8 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>
8 months ago
Felipe
8201d7ad8b
docs: Switch typing of Action<Parameter> from null to undefined in 12-use.md ( #14798 )
...
* Update 12-use.md -
* Remove unecessary line in Action typing example
* drive-by formatting fix
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
8 months ago
ottomated
793f6f3b11
add note about svelte/elements to $props docs ( #14829 )
8 months ago
Rich Harris
97f3aa9151
docs: fix links in some errors/warnings ( #14825 )
...
* fix links in some errors/warnings
* fix
9 months ago
Simon H
015210a1a8
feat: allow objects/arrays for class attribute ( #14714 )
...
* WIP
* missed
* fix
* fix
* rename, smooth over incompatibilities
* spread support + test
* docs
* types
* implement CSS pruning for array/object expressions
* beefier static analysis
* lint
* rename doc
* move class after all directive docs
* tweak docs - clarify top-level falsy values, stagger examples, demonstrate composition, discourage class: more strongly
* changeset
* fix
* Update documentation/docs/03-template-syntax/18-class.md
Co-authored-by: Conduitry <git@chor.date>
* Apply suggestions from code review
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Conduitry <git@chor.date>
9 months ago
Rich Harris
bfa0b34663
add self-closing-tags info ( #14758 )
...
* add self-closing-tags info
* regenerate
9 months ago
joakim
d7e4bd2c66
Link to migration guide from <svelte:component> documentation ( #14737 )
9 months ago
Dominic Gannaway
5483495c8d
feat: add $inspect.trace rune ( #14290 )
...
* feat: add $trace rune
WIP
WIP
WIP
WIP
WIP
WIP
WIP
WIP
WIP
WIP
WIP
WIP
WIP
WIP
WIP
WIP
WIP
WIP
WIP
WIP
* lint
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* more tweaks
* lint
* improve label for derived cached
* improve label for derived cached
* lint
* better stacks
* complete redesign
* fixes
* dead code
* dead code
* improve change detection
* rename rune
* lint
* lint
* fix bug
* tweaks
* Update packages/svelte/src/internal/client/dev/tracing.js
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* Update packages/svelte/src/internal/client/dev/tracing.js
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* Update packages/svelte/src/internal/client/dev/tracing.js
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* Update packages/svelte/src/internal/client/dev/tracing.js
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* todos
* add test + some docs
* changeset
* update messages
* address feedback
* address feedback
* limit to first statement of function
* remove unreachable trace_rune_duplicate error
* tweak message
* remove the expression statement, not the expression
* revert
* make label optional
* relax restriction on label - no longer necessary with new design
* update errors
* newline
* tweak
* add some docs
* fix playground
* fix playground
* tweak message when function runs outside an effect
* unused
* tweak
* handle async functions
* fail on generators
* regenerate, update docs
* better labelling
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
9 months ago
Rich Harris
b0e3c5b438
feat: add outro option to unmount ( #14540 )
...
* feat: add outro option to unmount
* unused
* regenerate
* revert
* changeset
* create separate component_root effect
* docs
* return a promise
* remove from map immediately
9 months ago
waedi
65db409860
docs: typo in ## script_context_deprecated ( #14694 )
...
* Fix typo in ## script_context_deprecated
Changed +++context+++ to +++module+++
* regenerate
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
9 months ago
James Glenn
432db95358
docs: Update the linked playgrounds in the snippet docs ( #14676 )
...
* Update the linked playgrounds in the snippet docs
* Apply suggestions from code review
---------
Co-authored-by: Rich Harris <hello@rich-harris.dev>
9 months ago
Simon H
68d266e0f8
fix: remove overzealous `reactive_declaration_non_reactive_property` warning ( #14663 )
...
fixes #14532
This removes the `reactive_declaration_non_reactive_property` warning altogether. The first version caused many false positives at compile time. The refined runtime version (introduced in #14192 ) was hoped to fix this, but it turns out we now get loads of false positives at runtime.
9 months ago
Rich Harris
d43a10ba7a
feat: add `svelte/reactivity/window` module ( #14660 )
...
* feat: add `svelte/reactivity/window` module
* lint
* fix
* hide private types
* online binding
* tweak docs
* tweak
* add @since tags
---------
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
9 months ago
Rich Harris
3dcd5a4a3e
fix docs ( #14635 )
9 months ago
Simon H
c6fca02009
docs: more details for errors/warnings on the site ( #14632 )
...
* docs: more details for errors/warnings on the site
Related to #11305
* Apply suggestions from code review
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* fix in correct place
* tab not spaces
* tweaks
* fix
* Apply suggestions from code review
* regenerate
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
9 months ago
Rich Harris
c1c59e77a5
docs: where the hell did this come from? ( #14613 )
9 months ago
Dominic Gannaway
5771b455c0
feat: add support for bind getter/setters ( #14307 )
...
* feat: add support for bind getters/setters
* different direction
* oops
* oops
* build
* add changeset and tests
* move validation
* add comment
* build
* bind:group error
* simpler to just keep it as a SequenceExpression
* fix
* lint
* fix
* move validation to visitor
* fix
* no longer needed
* fix
* parser changes are no longer needed
* simplify
* simplify
* update messages
* docs
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
9 months ago
brunnerh
ad87572adc
docs: Import .svelte.js files with explicit extension. ( #14584 )
9 months ago
Simon H
1ffce92d90
docs: note before/afterUpdate breaking change ( #14567 )
...
...about slotted content behavior
Related to #14564
9 months ago
Ben McCann
4b802dbed3
docs: add a mobile app FAQ ( #14559 )
...
* docs: add a mobile app FAQ
* Update 99-faq.md
9 months ago
Rich Harris
350811ed8c
docs: note when defaultValue support was added ( #14553 )
9 months ago
Simon H
a57e747cbb
feat: default values for form elements ( #14289 )
...
* tests
* typings
* implement for defaultValue/defaultChecked on inputs
* docs (draft)
* selected
* fix test
* remove
* tweak
* changeset
* untrack reads, they could be inside an effect
* Apply suggestions from code review
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* handle select reset case
* handle reset case specifically: use different props/queries in that case
* enhance test
* fix
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
9 months ago
Simon H
86ae349bcc
fix: better error messages for invalid HTML trees ( #14445 )
...
* fix: better error messages for invalid HTML trees
closes #13331
* fix test
* more concise
* tweak
* tweak messages
* adjust tests
* tweak message slightly, so it doesn't sound like the bad element is the one we're currently encountering
* put locations in generated message
* tidy up
* consistency
* fix
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
9 months ago
Rich Harris
348185794d
docs: tweak slot docs ( #14543 )
9 months ago
Rich Harris
4c4f18b24c
chore: fix docs ( #14538 )
9 months ago
Rich Harris
fe0bd299a5
fix: proxify values when assigning using `||=`, `&&=` and `??=` operators ( #14273 )
...
* add failing test for #14268
* simplify
* proxify values when using ||=, &&= and ??= assignment operators
* proxify values assigned to private state fields
* changeset
* fix
* fix
* add warning
* update test
9 months ago
Paolo Ricciuti
d5a28a01a1
docs: fix typo in `$state` ( #14535 )
9 months ago
Rich Harris
a5de086f95
feat: turn `reactive_declaration_non_reactive_property` into a runtime warning ( #14192 )
...
* turn `reactive_declaration_non_reactive_property` into a runtime warning
* ignore warning
* Update packages/svelte/src/internal/client/reactivity/effects.js
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
* Update packages/svelte/src/internal/client/runtime.js
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
* fix
* test
* changeset
* Update .changeset/witty-turtles-bake.md
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
* add some details
* check
* regenerate
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
9 months ago
Rich Harris
87863da6ff
docs: how to javascript ( #14528 )
9 months ago
Rich Harris
8ad9295535
docs: hints on preserving reactivity ( #14514 )
9 months ago
Simon H
3d36e15ddd
docs: add tsconfig.json info to TS docs ( #14519 )
...
Also fix adjacent code examples
closes #14187
9 months ago
Rich Harris
7142fa0b5c
docs: note requirement on 5.5.0 to export snippets ( #14523 )
9 months ago
Dominic Gannaway
4d2f2fb8e6
feat: allow snippets to be exported from module scripts ( #14315 )
...
* feat: allow snippets to be exported from module scripts
* tweak type
* fix issue + add test
* refactor
* refactor
* fix exports error
* fix lint
* fix lint
* error on undefined export
* hoisted snippets belong in transform state, not analysis
* put the code where it's used
* drop the local_. just binding. it's cleaner
* simplify
* simplify
* simplify
* simplify
* tidy up
* oops
* update message, add some details
* lint
* Apply suggestions from code review
* add some docs
* Update packages/svelte/src/compiler/phases/3-transform/utils.js
* Update .changeset/famous-parents-turn.md
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
9 months ago
SukeshP1995
abb90d8737
docs: fix grammatical error ( #14500 )
...
a instead of an before failed
9 months ago
Simon H
a283083751
feat: each without as ( #14396 )
...
* feat: each without as
WIP
closes #8348
* properly
* docs
* changeset
* real world demo
* simplify
* typo
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
9 months ago
Rich Harris
9fcfd7f0d1
docs: note when boundaries were added ( #14487 )
9 months ago
Dominic Gannaway
ed7ebcde1e
feat: add error boundaries ( #14211 )
...
* feat: add error boundary support
tweak
tweak again
retry -> reset
tweaks
add tests
tweaks
tweaks
tweaks
more tests
more tests and tweaks
comments
tweak
tweak
tweak
tweak
tweak
* tweak
tweak
tweak
tweak
more fixes
tweak
tweak
more fixes
changeset
* Update packages/svelte/elements.d.ts
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
* Update .changeset/polite-peaches-do.md
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
* fix issue with rethrowing
* handle fallback error
* handle fallback error
* add more test coverage
* more tests
* more bug fixes
* guard against non-errors
* add component_stack to error
* alternative approach
* remove spread support
* lint
* add to legacy ast
* add to svelte-html
* disallow anything but attributes on the boundary element
* fix error
* more validation
* only create block when necessary
* swap argument order - results in nicer-looking code in many cases
* Update .changeset/polite-peaches-do.md
* simplify a bit
* simplify
* move declaration closer to usage
* push once
* unused
* tweaks
* consistent naming
* simplify
* add a couple newlines
* tweak comments
* simplify
* newlines
* placeholder documentation
* add some docs
* Update packages/svelte/src/internal/client/dom/blocks/boundary.js
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* Update packages/svelte/src/internal/client/dom/blocks/boundary.js
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* Update packages/svelte/src/internal/client/dom/blocks/boundary.js
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* fix type
* fix link
* explain what happens if onerror throws
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
Co-authored-by: Rich Harris <rich.harris@vercel.com>
9 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>
10 months ago
Gwen Le Bihan
24ebbcbbc1
docs: use e.detail instead of e.details in migration examples ( #14340 )
10 months ago
Simon H
6373641045
docs: add example to "state instead of stores" ( #14310 )
...
closes #13879
10 months ago
Dominic Gannaway
7fd3774015
fix: disallow invalid attributes for `<svelte:window>` and `<svelte:document>` ( #14228 )
10 months ago
Hosam Sultan
1e5a385c96
docs: fix typo ( #14232 )
10 months ago
CJSnyman
6534742ae1
docs: fix grammar ( #14244 )
...
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
10 months ago
Rich Harris
5ce1159ec3
Update 03-typescript.md ( #14197 )
10 months ago
Scott
26d109cb11
docs: `SvelteHTMLElements` can be used for creating component wrapper ( #14162 )
10 months ago
Pig Fang
3d67cd53db
docs: fix migration guide typo ( #14155 )
10 months ago
Christoph Sanz
87d83ffa39
Add same note as in tutorial to doc. ( #14136 )
...
Co-authored-by: Rich Harris <rich.harris@vercel.com>
10 months ago
Simon H
8731f4f780
docs: note what the value of `this` can be on `svelte:element` ( #14117 )
...
closes #7575
10 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>
10 months ago
Tim Deschryver
8d0937a534
docs: fix compilation error ( #14121 )
10 months ago
Ahmad S.
304d88edd0
docs: fix `$effect` section examples ( #13911 )
...
closes #13912
10 months ago
Rich Harris
96c299afc6
differentiate between 'effect' and `$effect` ( #14105 )
10 months ago
Rich Harris
82b87b361e
docs: fix syntax error ( #14106 )
10 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>
10 months ago
Conduitry
535ea44b9d
chore: replace non-breaking spaces ( #14098 )
...
* replace nbsp in docs
* replace nbsp in test
* replace nbsp in types
* regenerate types
10 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
10 months ago
Rich Harris
6a2c28c590
docs: tweak untrack description, provide an example of usage ( #14085 )
...
* docs: tweak untrack description, provide an example of usage
* link to untrack
* add derived docs too
10 months ago
Conduitry
2ab70041fd
chore: mark markdown output from process-messages as generated ( #13913 )
...
* chore: mark markdown output from process-messages as generated
* regenerate
10 months ago
Rich Harris
ffbd5c971e
docs: fix runtime-warnings page ( #14077 )
...
* fix runtime-warnings page
* fix
10 months ago
Rich Harris
9cd476881d
fix props docs ( #14079 )
10 months ago
Rich Harris
0ed914b2e5
docs: improve lazy import example ( #14076 )
...
* docs: improve lazy import example
* Update documentation/docs/03-template-syntax/05-await.md
10 months ago
Abu
ca58039e3e
docs: fix type ( #14064 )
...
this slot name should be `footer` instead it was `header`
10 months ago
Bernie Sumption
217ef2062d
docs: clarify when prop values are deeply reactive ( #13994 )
...
* Update $props documentation to clarify when prop values are deeply reactive
* Update 05-$props.md
* Apply suggestions from code review
* drive-by-fixes
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
10 months ago
Devr
6a1b5dd004
docs : add an example of using dynamic components ( #13993 )
...
Closes #13990
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
10 months ago
Rich Harris
6b6445a934
add parameters to `in:fly` ( #14057 )
...
Without a `y` value, `fly` is indistinguishable from `fade`
10 months ago
gubo97000
0efe031edc
Update 07-$inspect.md ( #14048 )
...
moved note to top
10 months ago
Dave Snider
ee2f4a209b
docs: Update in and out docs to show the imports ( #14050 )
...
* Update in and out docs to show the imports
* Apply suggestions from code review
---------
Co-authored-by: Rich Harris <hello@rich-harris.dev>
10 months ago
Rich Harris
4157db94c4
fix: correct typo in compiler error messages ( #14044 )
10 months ago
Conduitry
6ad8240464
docs: fix various typos in reference docs ( #14011 )
...
* docs: fix note about $derived
* fix some other typos
* revert one change
* emdash tweak
10 months ago
Simon H
e487f61262
docs: mark deprecated options as such ( #13989 )
...
closes #13984
10 months ago
Simon H
b3437e6020
docs: note old site ( #13996 )
10 months ago
Rich Harris
777d059b10
docs: update heading level in `02-getting-started.md` ( #13997 )
10 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.
10 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>
10 months ago
Max Duval
ac6d8c0bf4
docs: fix small typo ( #13967 )
...
A full stop or colon, we myst choose
10 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.
10 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
11 months ago
Conduitry
107be28890
docs: fix outdated $effect.tracking() demo ( #13906 )
11 months ago
plgingras88
18e2284e74
docs: fix setContext/getContext typo ( #13901 )
11 months ago
Harry Allen
86ef18165f
docs: fix code example ( #13847 )
11 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.
11 months ago
Simon H
594e3ab311
docs: note TS caveat about module exports ( #13842 )
...
closes #13554
11 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>
11 months ago
Simon H
96e2d5a395
docs: provide info about wrapper components ( #13826 )
...
closes #13006
11 months ago
Ben McCann
0b178cecce
chore: update all learn.svelte.dev links and a couple of others ( #13803 )
11 months ago
brunnerh
69f6b58bd4
docs: Reference `svelte/reactivity` from `$state`. ( #13571 )
11 months ago
Emanuele Picchirallo
6257203c22
docs: specify script language and add `npm install` step to installation guide ( #13804 )
11 months ago
Simon H
7ecc6c076c
docs: fix code example ( #13810 )
...
backporting from https://github.com/sveltejs/svelte.dev/pull/546
11 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>
11 months ago
brunnerh
708fd9c4be
docs: fix various typos ( #13801 )
11 months ago
brunnerh
779b730a80
docs: fix typos in createEventDispatcher migration rationale ( #13800 )
11 months ago
wackbyte
0fd1a45131
docs: fix generic props type ( #13792 )
11 months ago
Conduitry
dbba2b0d27
docs: fix demo links to playground ( #13788 )
11 months ago
Dmytro Cheglakov
be131575d8
docs: fix typo in the snippet closing tag ( #13782 )
11 months ago
Rich Harris
e7d181ddb3
make links internal ( #13789 )
11 months ago
Rich Harris
4f6bb41030
More docs stuff ( #13769 )
...
* fix
* link
* more docs stuff
* more
* more
* fix
* more
* more
* fix
* fix
* more
* ffs
* FML
11 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>
11 months ago
Paolo Ricciuti
8ff2af52d3
fix: show filename information in `legacy_recursive_reactive_block` ( #13764 )
11 months ago
brunnerh
ef205d960e
docs: fix typos ( #13752 )
...
- remove copy pasted argument from $set
- fix typo
11 months ago
Rich Harris
fd78385447
chore: restructure docs for new site ( #13699 )
11 months ago
Ahmad S.
618d89c368
docs: replace `<div>` with `<svelte-css-wrapper>` for style props ( #13706 )
11 months 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
11 months 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
11 months ago
Dominic Gannaway
2070c8a166
breaking: disallow state mutations in logic block expression ( #13625 )
11 months ago
Rich Harris
94aea0f624
gah missed a spot
11 months ago
Rich Harris
caaf74b854
docs: more fixes ( #13608 )
11 months ago
Rich Harris
6534f507ce
docs: add/fix some more stuff ( #13585 )
11 months ago
Rich Harris
941db36b01
fix ( #13581 )
11 months ago
Rich Harris
5ee3ae4369
update diffs ( #13575 )
...
* update diffs
* gah
* fix
11 months ago
Rich Harris
3f0b41b252
docs: annotate notes as such ( #13564 )
11 months 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>
11 months ago
Rich Harris
1c8d1ca124
docs: various fixes ( #13560 )
...
* docs: various fixes
* fixes
* fix
* fix
11 months ago
Rich Harris
2b0741fa11
docs: add error annotation ( #13533 )
11 months ago
Rich Harris
233bbecf55
chore: rename placeholder file ( #13520 )
11 months ago
Simon Holthausen
dfb8eee1cc
docs: some module intro comments
11 months ago
Rich Harris
56621a2b36
docs: add legacy callouts ( #13428 )
11 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.
12 months ago
brunnerh
9204d699d5
docs: fixes relating to `bind:files` & note on `FileList` API ( #13235 )
12 months ago
Simon H
e5c840c87b
docs: adjust `bind:files` section ( #13230 )
...
closes #13156
12 months ago
Simon Holthausen
36137e0e93
docs: tweaks
12 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
1 year ago
Simon H
29f29878c3
docs: note effects lifecycle ( #12993 )
...
* docs: note effects lifecycle
closes #9265
* tweak
1 year 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>
1 year ago
Rich Harris
803ebd5676
typo
1 year 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
1 year 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>
1 year ago
Rich Harris
0b51ff04b0
breaking: remove `$state.link` callback ( #12942 )
...
* breaking: remove `$state.link` callback
* simplify
* regenerate
1 year ago
Rich Harris
78677e40ef
fix: align list of passive events with browser defaults, and add documentation ( #12933 )
...
closes #12639
1 year ago