github-actions[bot]
6a49d9ead4
Version Packages
15 hours ago
Gonzalo Ruiz
e6dd871819
fix: ensure migrate keeps inline/trailing comments in $props type definition and produces non-broken code ( #14143 )
...
* feat[sv migrate]: keep inline/trailing comments when migrating export let types to type definition
* test: add tests for inline comment migration
* chore: add changeset
* fix: migrate trailing multiline comment parsing no longer results in broken code, FIXES PR #14143#issuecomment-2455702689
* test: add migrate test with same-line trailing multiline comments and same-line leading multiline comments
* chore: add changeset
* fix: lint
---------
Co-authored-by: Gonzalo Ruiz <rgon@rgon.es>
Co-authored-by: paoloricciuti <ricciutipaolo@gmail.com>
15 hours ago
Simon H
7dbe812fc9
fix: ensure non-matching elements are scoped for `:not(...)` selector ( #13999 )
...
If the contents of a `:not` selector don't match, then it's actually a match for `:not` because it's inverted. Therefore, we need to scope such elements. We're also making sure that contents of `:not` that never match actually count as a used (because the result is negated), and as such the contents of `:not` that always match are actually marked as unused.
Fixes #13974
16 hours ago
wackbyte
57e27ae90e
fix: only output the key for each_key_duplicate ( #14147 )
...
Fixes #14146
17 hours ago
Christoph Sanz
87d83ffa39
Add same note as in tutorial to doc. ( #14136 )
...
Co-authored-by: Rich Harris <rich.harris@vercel.com>
17 hours ago
Rich Harris
c6904e892f
use pull_request_target ( #14148 )
18 hours ago
Simon H
8731f4f780
docs: note what the value of `this` can be on `svelte:element` ( #14117 )
...
closes #7575
21 hours ago
Simon H
551284ca22
fix: correctly infer `<a>` tag namespace ( #14134 )
...
`<a>` tags are valid in both the SVG and HTML namespace. If there's no parent, we therefore have to look downwards to see if it's the parent of a SVG or HTML element.
fixes #7807
fixes #13793
2 days ago
Paolo Ricciuti
8de5605b6a
fix: prevent migrated snippet from shadow snippet prop ( #14127 )
2 days ago
Paolo Ricciuti
74a2c6b580
fix: migrate multiple declarations with only some exported correctly ( #14126 )
2 days 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>
2 days ago
Simon H
00f5b14d40
docs: fix description ( #14109 )
...
Since Svelte 5, comments are also preserved on the client
2 days ago
Rich Harris
4038b0cad6
chore: setup docs previews ( #14128 )
...
* chore: setup docs previews
* test
* delete
2 days ago
Tim Deschryver
8d0937a534
docs: fix compilation error ( #14121 )
3 days ago
Ahmad S.
304d88edd0
docs: fix `$effect` section examples ( #13911 )
...
closes #13912
4 days ago
Simon H
4ec9986cba
fix: check options namespace for top level `svelte:element`s ( #14101 )
...
We were checking it for nested elements, but not root elements
fixes #13875
4 days ago
Rich Harris
96c299afc6
differentiate between 'effect' and `$effect` ( #14105 )
4 days ago
Rich Harris
82b87b361e
docs: fix syntax error ( #14106 )
4 days 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>
4 days ago
Dominic Gannaway
9883e7078c
fix: ensure SvelteMap and SvelteSet work with generators in dev ( #14103 )
...
* fix: ensure SvelteMap and SvelteSet work with generators in dev
* add test
* better fix
* better fix
* better fix
* better fix
4 days ago
Conduitry
535ea44b9d
chore: replace non-breaking spaces ( #14098 )
...
* replace nbsp in docs
* replace nbsp in test
* replace nbsp in types
* regenerate types
4 days ago
Simon H
e7d68d8c10
fix: pass along `anchor` in legacy class wrappers ( #14100 )
...
fixes #13832
4 days ago
Dominic Gannaway
a315a14939
fix: ensure video elements autoplay in safari ( #14095 )
4 days 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
4 days 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
4 days ago
Conduitry
2ab70041fd
chore: mark markdown output from process-messages as generated ( #13913 )
...
* chore: mark markdown output from process-messages as generated
* regenerate
4 days ago
github-actions[bot]
cf25930512
Version Packages ( #14081 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
5 days ago
Rich Harris
ffbd5c971e
docs: fix runtime-warnings page ( #14077 )
...
* fix runtime-warnings page
* fix
5 days ago
Rich Harris
e58c03b100
add link to sync-docs README ( #14056 )
5 days ago
Rich Harris
9cd476881d
fix props docs ( #14079 )
5 days ago
Dominic Gannaway
58b1540ddc
fix: ensure transitions are applied to nested elements ( #14080 )
5 days ago
Rich Harris
0ed914b2e5
docs: improve lazy import example ( #14076 )
...
* docs: improve lazy import example
* Update documentation/docs/03-template-syntax/05-await.md
5 days ago
github-actions[bot]
b0d255aefe
Version Packages ( #14075 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
5 days ago
Dominic Gannaway
2bdc3d401f
fix: ensure compiler statements are correctly included ( #14074 )
...
Fixes #14068 and fixes #14071
5 days ago
github-actions[bot]
3b38bc2a77
Version Packages ( #14052 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
5 days ago
Rich Harris
37049b4171
Revert "feat: migrate `Component` to `ComponentExports<typeof Component>` in …" ( #14070 )
...
This reverts commit 4715dfaad2
.
5 days ago
Rich Harris
2784fb19f3
Revert "feat: add `ComponentExports` utility type ( #13441 )" ( #14069 )
...
This reverts commit d93ad3ba1e
.
5 days ago
Simon H
4f80ab6da6
fix: allow `warningFilter` option for `compileModule` ( #14066 )
...
fixes #14012
5 days ago
Abu
ca58039e3e
docs: fix type ( #14064 )
...
this slot name should be `footer` instead it was `header`
5 days ago
Paolo Ricciuti
4715dfaad2
feat: migrate `Component` to `ComponentExports<typeof Component>` in TS ( #13656 )
...
Closes #13491
---------
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
5 days ago
FoHoOV
d93ad3ba1e
feat: add `ComponentExports` utility type ( #13441 )
...
Safer/clearer/backwards/forward-compatibale way to reference them
---------
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
5 days ago
Dominic Gannaway
3999fed4ca
fix: ensure each block inert items are disposed of if the each block is also inert ( #13930 )
...
Fixes #13926
5 days ago
Paolo Ricciuti
e47ee22628
fix: wrap `:id`, `:where``:not` and `:has` with `:global` during migration ( #13850 )
...
Closes #13765
5 days 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>
5 days 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>
5 days ago
Rich Harris
6b6445a934
add parameters to `in:fly` ( #14057 )
...
Without a `y` value, `fly` is indistinguishable from `fade`
6 days ago
gubo97000
0efe031edc
Update 07-$inspect.md ( #14048 )
...
moved note to top
6 days 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>
6 days ago
Rich Harris
dc3c82cb2d
chore: add sync request workflow ( #14055 )
6 days ago
Dominic Gannaway
4a5a0b15d9
fix: ensure onMount correctly fires when new expressions are used ( #14049 )
...
* fix: ensure onMount correctly fires when used externally
* fix root context
* fix root context
* revert
* alternative fix
6 days ago