Skip to content

Commit a86dd53

Browse files
committed
Merge remote-tracking branch 'sveltejs/main' into update-up-to-20240506-main
2 parents f4a6854 + 1784026 commit a86dd53

File tree

204 files changed

+2548
-983
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

204 files changed

+2548
-983
lines changed

.changeset/angry-wasps-help.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
chore: remove `handle_compile_error`

.changeset/bright-falcons-float.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
chore: improve SSR invalid element error message

.changeset/cold-cheetahs-judge.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: deduplicate children prop and default slot

.changeset/cyan-ducks-teach.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: make messages more consistent

.changeset/dull-worms-relax.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
breaking: disallow string literal values in `<svelte:element this="...">`

.changeset/eight-carrots-hunt.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
feat: error on imports to `svelte/internal/*`

.changeset/eight-cougars-watch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: better handle img loading attribute

.changeset/eight-pianos-raise.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: add backwards-compat for old warning codes in legacy mode

.changeset/eighty-lizards-notice.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
chore: improve runtime overhead of creating comment templates

.changeset/empty-flowers-change.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: replicate Svelte 4 props update detection in legacy mode

.changeset/fresh-beds-wash.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: use coarse-grained updates for derived expressions passed to props in legacy mode

.changeset/gentle-trees-exercise.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: allow for non optional chain call expression in render

.changeset/good-roses-argue.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: correctly handle falsy values of style directives in SSR mode

.changeset/khaki-mails-scream.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
feat: introduce `rootDir` compiler option, make `filename` relative to it

.changeset/khaki-monkeys-cry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
feat: add $state.is rune

.changeset/kind-doors-grin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: rename `__svelte_meta.filename` to `__svelte_meta.file` to align with svelte 4

.changeset/little-ligers-exist.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
feat: provide $state warnings for accidental equality

.changeset/plenty-zoos-fix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: improve handling of lazy image elements

.changeset/popular-apes-bathe.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: skip deriveds for props with known safe calls

.changeset/popular-games-hug.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: avoid state_referenced_locally warning within type annotations

.changeset/popular-roses-teach.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: robustify `bind:scrollX/Y` binding

.changeset/pre.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"afraid-moose-matter",
1616
"angry-books-jam",
1717
"angry-plums-punch",
18+
"angry-wasps-help",
1819
"beige-cobras-smoke",
1920
"beige-flies-wash",
2021
"beige-mirrors-listen",
@@ -38,6 +39,7 @@
3839
"brave-walls-flow",
3940
"breezy-carrots-flash",
4041
"breezy-rules-beg",
42+
"bright-falcons-float",
4143
"bright-peas-juggle",
4244
"bright-snakes-sing",
4345
"brown-geckos-fry",
@@ -61,6 +63,7 @@
6163
"clever-rockets-burn",
6264
"clever-sloths-push",
6365
"cold-birds-own",
66+
"cold-cheetahs-judge",
6467
"cold-masks-learn",
6568
"cool-actors-tan",
6669
"cool-ants-leave",
@@ -78,6 +81,7 @@
7881
"curvy-flies-exercise",
7982
"curvy-ties-shout",
8083
"cyan-colts-raise",
84+
"cyan-ducks-teach",
8185
"cyan-flowers-destroy",
8286
"cyan-spies-grin",
8387
"cyan-squids-drive",
@@ -95,18 +99,24 @@
9599
"dull-mangos-wave",
96100
"dull-pots-add",
97101
"dull-roses-relate",
102+
"dull-worms-relax",
98103
"early-ads-tie",
99104
"early-months-whisper",
105+
"eight-carrots-hunt",
106+
"eight-cougars-watch",
100107
"eight-hornets-punch",
108+
"eight-pianos-raise",
101109
"eight-steaks-shout",
102110
"eighty-bikes-camp",
103111
"eighty-days-cheat",
112+
"eighty-lizards-notice",
104113
"eleven-beers-yell",
105114
"eleven-cycles-applaud",
106115
"empty-bags-heal",
107116
"empty-bulldogs-exercise",
108117
"empty-coins-build",
109118
"empty-crabs-think",
119+
"empty-flowers-change",
110120
"empty-geckos-pretend",
111121
"empty-tools-share",
112122
"fair-bags-smoke",
@@ -139,6 +149,7 @@
139149
"four-flies-hammer",
140150
"four-mice-hammer",
141151
"four-pugs-listen",
152+
"fresh-beds-wash",
142153
"fresh-dots-destroy",
143154
"fresh-impalas-bow",
144155
"fresh-weeks-trade",
@@ -152,6 +163,7 @@
152163
"gentle-sheep-hug",
153164
"gentle-spies-happen",
154165
"gentle-toys-chew",
166+
"gentle-trees-exercise",
155167
"giant-bananas-turn",
156168
"giant-moons-own",
157169
"giant-planets-shake",
@@ -163,6 +175,7 @@
163175
"good-pianos-jump",
164176
"good-plums-type",
165177
"good-rivers-yawn",
178+
"good-roses-argue",
166179
"gorgeous-monkeys-carry",
167180
"gorgeous-singers-rest",
168181
"great-fans-unite",
@@ -204,10 +217,13 @@
204217
"khaki-cooks-develop",
205218
"khaki-ligers-sing",
206219
"khaki-mails-draw",
220+
"khaki-mails-scream",
221+
"khaki-monkeys-cry",
207222
"khaki-moose-arrive",
208223
"khaki-tomatoes-rule",
209224
"kind-baboons-approve",
210225
"kind-deers-lay",
226+
"kind-doors-grin",
211227
"kind-dots-sort",
212228
"kind-eagles-join",
213229
"kind-rings-flash",
@@ -229,6 +245,7 @@
229245
"light-humans-hang",
230246
"light-penguins-invent",
231247
"light-pens-watch",
248+
"little-ligers-exist",
232249
"little-pans-jog",
233250
"long-buckets-lay",
234251
"long-crews-return",
@@ -302,14 +319,18 @@
302319
"pink-goats-promise",
303320
"pink-mayflies-tie",
304321
"plenty-starfishes-dress",
322+
"plenty-zoos-fix",
305323
"polite-dolphins-care",
306324
"polite-pumpkins-guess",
307325
"polite-ravens-study",
308326
"poor-eggs-enjoy",
309327
"poor-hats-design",
310328
"poor-seahorses-flash",
329+
"popular-apes-bathe",
330+
"popular-games-hug",
311331
"popular-ligers-perform",
312332
"popular-mangos-rest",
333+
"popular-roses-teach",
313334
"popular-walls-hunt",
314335
"pretty-ties-help",
315336
"proud-pets-hang",
@@ -461,6 +482,7 @@
461482
"thick-shirts-deliver",
462483
"thick-swans-type",
463484
"thin-foxes-lick",
485+
"thin-years-rhyme",
464486
"thirty-flowers-sit",
465487
"thirty-ghosts-fix",
466488
"thirty-impalas-repair",
@@ -492,8 +514,10 @@
492514
"unlucky-boxes-obey",
493515
"unlucky-steaks-warn",
494516
"unlucky-trees-lick",
517+
"violet-mails-trade",
495518
"violet-mugs-behave",
496519
"violet-pigs-jam",
520+
"warm-cherries-shake",
497521
"weak-drinks-speak",
498522
"weak-frogs-bow",
499523
"weak-terms-destroy",
@@ -511,6 +535,7 @@
511535
"wise-dodos-tell",
512536
"wise-donkeys-marry",
513537
"wise-jobs-admire",
538+
"wise-kids-wash",
514539
"wise-radios-exercise",
515540
"wise-ties-clap",
516541
"witty-camels-warn",
@@ -520,6 +545,7 @@
520545
"witty-years-crash",
521546
"yellow-pugs-raise",
522547
"yellow-taxis-double",
548+
"yellow-trees-juggle",
523549
"young-ads-roll",
524550
"young-masks-refuse"
525551
]

.changeset/quiet-berries-explode.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: more efficient spread attributes in SSR output

.changeset/thin-years-rhyme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
feat: migrate `<svelte:element this="div">`

.changeset/twelve-beans-drive.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: don't require warning codes to be separated by commas in non-runes mode

.changeset/violet-mails-trade.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
feat: more information when hydration fails

.changeset/warm-cherries-shake.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
feat: error when snippet shadow a prop

.changeset/wise-kids-wash.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: replay load and error events on load during hydration

.changeset/yellow-trees-juggle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
chore: use `new CustomEvent` instead of deprecated `initCustomEvent`

eslint.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ export default [
4343
'documentation',
4444
// contains a fork of the REPL which doesn't adhere to eslint rules
4545
'sites/svelte-5-preview/**',
46+
'playgrounds/demo/src/**',
47+
'tmp/**',
4648
// wasn't checked previously, reenable at some point
47-
'sites/svelte.dev/**',
48-
'tmp/**'
49+
'sites/svelte.dev/**'
4950
]
5051
}
5152
];

0 commit comments

Comments
 (0)