Ben McCann
4942d6b9cc
docs: update routing FAQ with some more recent options ( #10452 )
...
* docs: update routing FAQ with some more recent options
* Update documentation/docs/05-misc/01-faq.md
Co-authored-by: Conduitry <git@chor.date>
* Update documentation/docs/05-misc/01-faq.md
---------
Co-authored-by: Conduitry <git@chor.date>
11 months ago
Dominic Gannaway
667ffb7a39
fix: improve global transition handling of effect cleardown ( #10469 )
...
* fix: improve global transition handling of effect cleardown
11 months ago
Dominic Gannaway
1b56a3219c
fix: ensure inspect fires on prop changes ( #10468 )
...
* fix: ensure inspect fires on prop changes
* fix: ensure inspect fires on prop changes
* fix: ensure inspect fires on prop changes
11 months ago
ikalachy
9129d2f138
fix: check that component wasn't instantiated ( #10458 )
...
#10454
11 months ago
Simon H
1a721e5916
fix: only throw bind error when not passing a value ( #10090 )
...
Relax the runtime error to only throw when you're passing a binding with an undefined value. This makes it possible to provide components in a way that can be used more flexibly while keeping the error to guard against the case that we want to avoid: a default value propagation up.
11 months ago
Dominic Gannaway
9161448ee5
fix: improve handling of object property deletions ( #10456 )
...
* fix: improve handling of object property deletions
* revert
* revert
* revert
11 months ago
Dominic Gannaway
1366932dc0
cleanup a bunch of internal runtime logic ( #10446 )
11 months ago
github-actions[bot]
89123a8117
Version Packages (next) ( #10434 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
11 months ago
Rich Harris
999fca97cf
fix: use hybrid scoping strategy for consistent specificity increase ( #10443 )
...
* end the specificity wars
* tweaks
* document breaking change
* blurgh
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
11 months ago
Simon H
5dd9951cb6
fix: handle sole empty expression tags ( #10433 )
...
* fix: handle sole empty expression tags
When there's only a single expression tag and its value evaluates to the empty string, special handling is needed to create and insert a text node
fixes #10426
* fix
* need this, too
* Update packages/svelte/src/internal/client/operations.js
---------
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
11 months ago
Simon H
456cf843d2
fix: throw validation error when binding to each argument in runes mode ( #10441 )
...
closes #10437
11 months ago
Ahmad
49bfb6b1d6
fix: improve animation name transformation ( #10432 )
...
* fix: improve animation name transformation
* oops
* s
* minor style tweaks
* expand changeset description
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
11 months ago
github-actions[bot]
2d032c733d
Version Packages (next) ( #10419 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
11 months ago
Dominic Gannaway
4fcd1cb1ed
fix: add compiler error for each block mutations in runes mode ( #10428 )
...
* fix: improve code generation for mutation to each block reference
* fix: add compiler error for each block mutations in runes mode
* lint
* lint
* lint
* use existing validate_assignment logic
* assignment, not mutation
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
11 months ago
Chien Tran
976e807a3f
docs: rename svelte 5 discord channel ( #10431 )
...
* rename svelte 5 discord channel
* changeset
* Delete .changeset/stupid-insects-help.md
---------
Co-authored-by: Rich Harris <hello@rich-harris.dev>
11 months ago
Simon H
dab0a43693
fix: stricter validation for component exports ( #10430 )
...
disallow exporting props, derived and reassigned state from within components
closes #10310 , closes #10311 , closes #10293
11 months ago
Dominic Gannaway
0e011add4e
fix: improve indexed each array reconcilation ( #10422 )
...
* fix: improve indexed each array reconcilation
* simplify
11 months ago
Rich Harris
623340a1de
fix: make beforeUpdate/afterUpdate behave more like Svelte 4 ( #10408 )
...
Closes #9420 .
This PR creates an $effect.pre (before beforeUpdate and an $effect (for afterUpdate) and, inside those, listen for all locally declared signals plus reactive props. This does mean that we need to link the locally declared signals to the component context (the reverse of the current behaviour, wherein we link the component context to locally declared signals).
11 months ago
github-actions[bot]
983db98756
Version Packages (next) ( #10417 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
11 months ago
Ahmad
89c4cf393f
fix: set `open` binding value in `<details>` ( #10413 )
...
* fix: set initial value for `open` binding in `<details>`
* accurate desc
11 months ago
github-actions[bot]
76620e7d02
Version Packages (next) ( #10409 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
11 months ago
Dominic Gannaway
f9f5d3a1be
fix: only update lazy properties that have actually changed ( #10415 )
...
* fix: only update lazy properties that have actually changed
* code golf
* changeset
* Add test
11 months ago
Simon H
9aa0ed3eb6
fix: handle nested script tags ( #10416 )
...
fixes #9484
11 months ago
Rich Harris
90f8b63bee
fix: run `onDestroy` cleanup during SSR ( #10297 )
...
fixes #10296
Also make sure to use the server export conditions when resolving Svelte imports from inside the server compiler output
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
11 months ago
Simon H
268ac95fde
fix: properly analyze group expressions ( #10410 )
...
fixes #9947 for real
closes #10379
11 months ago
Daniel Imfeld
255693e78f
fix: correctly determine binding scope of `let:` directives ( #10395 )
...
Fixes #9797
Also added missing validation error around duplicate slots
---------
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
11 months ago
Rich Harris
34019b3ba2
typo
11 months ago
Rich Harris
b81c7966fa
typo
11 months ago
Rich Harris
a333d4bf12
Tidy up parser ( #10407 )
...
* tidy up parser a bit
* better
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
11 months ago
Rich Harris
08b4d359fa
chore: simpler const parsing ( #10347 )
...
* chore: simpler const parsing
* fix
* fix
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
11 months ago
github-actions[bot]
a84d02ff08
Version Packages (next) ( #10406 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
11 months ago
Rich Harris
b831562218
chore: bump zimmerframe ( #10405 )
...
* bump zimmerframe
* Create famous-pants-pay.md
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
11 months ago
github-actions[bot]
20893270db
Version Packages (next) ( #10402 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
11 months ago
Simon Holthausen
74f51401aa
fix: add `fetchpriority` to `script` and `link` tags
...
Works on more elements besides img
fixes #10394
11 months ago
Simon Holthausen
b63ab91c7b
chore: bump zimmerframe to resolve AST-traversal-related bugs
...
fixes #10371
fixes #10370
11 months ago
Rich Harris
8ebc472ef5
small tidy up ( #10400 )
...
Co-authored-by: Rich Harris <rich.harris@vercel.com>
11 months ago
github-actions[bot]
1381d1937c
Version Packages (next) ( #10399 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
11 months ago
Daniel Imfeld
97d3ec2f89
fix: allow `let:` directives on slot elements ( #10391 )
...
fixes #10382
---------
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
11 months ago
Simon H
b6fcc149b8
fix: repair each block length mismatches during hydration ( #10398 )
...
fixes #10332
11 months ago
Matt Kane
d23805a6f0
feat: add fetchpriority to img attrs ( #10388 )
...
* feat: add fetchpriority to img attrs
* chore: remove attr alias
11 months ago
github-actions[bot]
d08e05bf7f
Version Packages (next) ( #10367 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
11 months ago
Simon H
bd0ebf3b81
fix: correctly determine `bind:group` members ( #10368 )
...
- Previously, any each block parents where used as keys for the sub group. That's wrong, it should only be using each blocks whos declarations contribute to the `bind:group` expression. Fixes #10345
- Only the left-most identifier of the expression was used to determine the binding group. This is wrong, all identifiers within the expression need to be taken into account. Fixes #9947
11 months ago
Rich Harris
3b78c14be8
fix: make inline doc links valid ( #10365 )
...
* fix: make inline doc links valid
* couple more
* doh
* ugh
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
11 months ago
github-actions[bot]
283366b13a
Version Packages (next) ( #10357 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
11 months ago
Simon H
e75c9acd18
fix: don't reuse proxies when state symbol refers to stale value ( #10343 )
...
* fix: don't reuse proxies when state symbol refers to stale value
When somebody copies over the state symbol property onto a new object (you can retrieve the symbol by using `Reflect.ownKeys(...)`), it was wrongfully assumed that it always relates to the current value. This PR adds an additional check that this is actually the case.
This also adds a dev time warning when an object is frozen but contains a state property, which hints at a bug in user land.
fixes #10316
* lint
* rename
* remove warning
* update test
* changeset
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
11 months ago
gtmnayan
bce4f3f01c
fix: strip typescript assertions before analysis ( #10329 )
...
* strip typescript assertions before analysis
* add test
* changeset
* move ts handling from transform to before analysis
* format
* types
* remove unwrap_ts_expression
---------
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
11 months ago
github-actions[bot]
2a31987da5
Version Packages (next) ( #10353 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
11 months ago
Rich Harris
36fc203eec
fix: correctly update tweened store initialized with nullish value ( #10356 )
...
Co-authored-by: Rich Harris <rich.harris@vercel.com>
11 months ago
Rich Harris
a53b44338e
add missing motion tests ( #10355 )
...
* add missing motion tests
* fix
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
11 months ago
Rich Harris
ccc7266fd9
docs: clarify that `$state` works deeply ( #10354 )
11 months ago