henrykrinkle01
0af6f20c77
Fix grammar ( #15533 )
3 weeks ago
Rich Harris
e5881eade3
chore: tweak migration doc diff blocks ( #15527 )
3 weeks ago
Garik Asplund
f30d75ab7e
updated -> to → in v5-migration-guide ( #15526 )
3 weeks ago
Simon H
aaeda65f2f
docs: add docs on state_unsafe_mutation error ( #14932 )
...
closes #14752
4 weeks ago
Scott Wu
dab1a1b467
docs: Update 99-faq.md ( #15510 )
4 weeks ago
Maple
dbd4617ac4
docs: correct toggle function in lifecycle hooks example ( #15486 )
4 weeks 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>
1 month ago
Pavel Nedrigailov
e591e872aa
Update 01-basic-markup.md with new svelte-ignore syntax ( #15394 )
1 month ago
Matthew Carroll
016421533d
Fix Rune phonetic spelling ( #15445 )
1 month ago
Paolo Ricciuti
474c588067
fix: disallow `bind:group` to snippet parameters ( #15401 )
1 month 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
2 months ago
Eric Liu
75f81991c2
docs(bindable): fix `file:` annotation for App.svelte ( #15314 )
2 months ago
Kid
5fe0272868
docs: remove duplicate `onDestroy` description ( #15274 )
2 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>
2 months ago
Simon H
502b585ed2
docs: enhance migration docs about accessors ( #15138 )
...
* docs: enhance migration docs about accessors
related to #15134
* more
2 months ago
Scott Wu
e1014e3016
Update 11-bind.md ( #15192 )
2 months ago
tomoam
e83ab1c038
docs: fix typos and a link ( #15135 )
2 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>
2 months ago
Simon H
6df59055e7
docs: more examples on what is outside the rendering process ( #15157 )
...
closes #15151
2 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>
3 months ago
Paolo Ricciuti
99fdc3f0ab
docs: update error message for `const_tag_invalid_placement` ( #15003 )
3 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`
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
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>
3 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>
3 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
3 months ago
Rich Harris
ce2566d4c4
docs: simplify `$effect.tracking()` docs ( #14939 )
3 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>
3 months ago
Rich Harris
19038d19cb
docs: add section on update propagation ( #14938 )
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
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>
3 months ago
ottomated
793f6f3b11
add note about svelte/elements to $props docs ( #14829 )
3 months ago
Rich Harris
97f3aa9151
docs: fix links in some errors/warnings ( #14825 )
...
* fix links in some errors/warnings
* fix
4 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>
4 months ago
Rich Harris
bfa0b34663
add self-closing-tags info ( #14758 )
...
* add self-closing-tags info
* regenerate
4 months ago
joakim
d7e4bd2c66
Link to migration guide from <svelte:component> documentation ( #14737 )
4 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>
4 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
4 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>
4 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>
4 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.
4 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>
4 months ago
Rich Harris
3dcd5a4a3e
fix docs ( #14635 )
4 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>
4 months ago
Rich Harris
c1c59e77a5
docs: where the hell did this come from? ( #14613 )
4 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>
4 months ago
brunnerh
ad87572adc
docs: Import .svelte.js files with explicit extension. ( #14584 )
4 months ago
Simon H
1ffce92d90
docs: note before/afterUpdate breaking change ( #14567 )
...
...about slotted content behavior
Related to #14564
4 months ago