Skip to content

Commit 8451a79

Browse files
committed
Merge branch 'main' into bindable-types
2 parents 1f58030 + 05ac8f4 commit 8451a79

File tree

416 files changed

+3208
-2650
lines changed

Some content is hidden

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

416 files changed

+3208
-2650
lines changed

.changeset/brave-carrots-draw.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 robust moving of each item nodes

.changeset/fifty-masks-give.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: run render functions for dynamic void elements

.changeset/funny-ties-jump.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: ensure that CSS is generated for the final frame of a transition

.changeset/lemon-trees-act.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: measure elements before taking siblings out of the flow

.changeset/light-penguins-invent.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 events to continue propagating following an error

.changeset/loud-socks-look.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 accurate error message when creating orphan effects

.changeset/lucky-colts-remember.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: resolve type definition error in `svelte/compiler`

.changeset/nine-cooks-join.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: warn on self-closing non-void HTML tags

.changeset/pre.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"blue-ants-raise",
2828
"blue-rules-juggle",
2929
"blue-timers-film",
30+
"brave-carrots-draw",
3031
"brave-gorillas-end",
3132
"brave-points-sleep",
3233
"brave-shrimps-kiss",
@@ -105,6 +106,7 @@
105106
"few-clouds-shop",
106107
"few-mugs-fail",
107108
"few-teachers-know",
109+
"fifty-masks-give",
108110
"fifty-rice-wait",
109111
"fifty-steaks-float",
110112
"five-tigers-search",
@@ -118,11 +120,13 @@
118120
"forty-suns-smile",
119121
"four-flies-hammer",
120122
"four-mice-hammer",
123+
"four-pugs-listen",
121124
"fresh-dots-destroy",
122125
"fresh-impalas-bow",
123126
"fresh-weeks-trade",
124127
"friendly-candles-relate",
125128
"friendly-lies-camp",
129+
"funny-ties-jump",
126130
"funny-wombats-argue",
127131
"fuzzy-bags-camp",
128132
"fuzzy-donuts-provide",
@@ -152,6 +156,7 @@
152156
"heavy-ducks-leave",
153157
"heavy-ears-rule",
154158
"hip-balloons-begin",
159+
"hip-pumpkins-boil",
155160
"honest-buses-add",
156161
"honest-dragons-turn",
157162
"honest-icons-change",
@@ -189,9 +194,11 @@
189194
"lazy-spiders-think",
190195
"lemon-geese-call",
191196
"lemon-geese-drum",
197+
"lemon-trees-act",
192198
"light-badgers-glow",
193199
"light-days-clean",
194200
"light-humans-hang",
201+
"light-penguins-invent",
195202
"light-pens-watch",
196203
"little-pans-jog",
197204
"long-buckets-lay",
@@ -201,10 +208,12 @@
201208
"loud-cheetahs-flow",
202209
"loud-mugs-smile",
203210
"loud-ravens-drop",
211+
"loud-socks-look",
204212
"lovely-carpets-lick",
205213
"lovely-houses-own",
206214
"lovely-items-turn",
207215
"lovely-rules-eat",
216+
"lucky-colts-remember",
208217
"lucky-schools-hang",
209218
"lucky-toes-begin",
210219
"many-rockets-give",
@@ -230,6 +239,7 @@
230239
"new-brooms-grin",
231240
"new-rabbits-flow",
232241
"nice-avocados-move",
242+
"nine-cooks-join",
233243
"ninety-dingos-walk",
234244
"odd-buckets-lie",
235245
"odd-needles-joke",
@@ -262,6 +272,7 @@
262272
"popular-mangos-rest",
263273
"popular-walls-hunt",
264274
"pretty-ties-help",
275+
"proud-pets-hang",
265276
"proud-queens-sniff",
266277
"purple-dragons-peel",
267278
"quiet-apricots-dream",
@@ -295,13 +306,15 @@
295306
"selfish-socks-smile",
296307
"selfish-spies-help",
297308
"selfish-tools-hide",
309+
"serious-crabs-punch",
298310
"serious-gorillas-eat",
299311
"serious-kids-deliver",
300312
"serious-needles-joke",
301313
"serious-poems-brake",
302314
"serious-socks-cover",
303315
"serious-zebras-scream",
304316
"seven-deers-jam",
317+
"seven-garlics-serve",
305318
"seven-hornets-smile",
306319
"seven-jobs-sniff",
307320
"seven-masks-end",
@@ -311,17 +324,21 @@
311324
"sharp-kids-happen",
312325
"sharp-tomatoes-learn",
313326
"shiny-baboons-play",
327+
"shiny-mayflies-clean",
314328
"shiny-rats-heal",
315329
"shiny-shrimps-march",
316330
"short-buses-camp",
317331
"short-countries-rush",
318332
"shy-fishes-drive",
319333
"silent-apes-report",
334+
"silent-hats-stare",
320335
"silly-laws-happen",
321336
"silly-lies-film",
322337
"silly-ways-wash",
323338
"silver-points-approve",
324339
"sixty-items-crash",
340+
"sixty-numbers-hope",
341+
"sixty-pandas-rush",
325342
"slimy-clouds-talk",
326343
"slimy-laws-explode",
327344
"slimy-walls-draw",
@@ -330,6 +347,7 @@
330347
"slow-kids-sparkle",
331348
"slow-plums-chew",
332349
"slow-wombats-reply",
350+
"small-apples-eat",
333351
"small-papayas-laugh",
334352
"small-sheep-type",
335353
"small-spiders-fail",
@@ -338,6 +356,7 @@
338356
"smart-parents-swim",
339357
"smart-turkeys-tell",
340358
"smart-zebras-pay",
359+
"smooth-kids-protect",
341360
"smooth-rings-rush",
342361
"soft-clocks-remember",
343362
"soft-geese-learn",
@@ -362,6 +381,7 @@
362381
"strong-gifts-smoke",
363382
"strong-lemons-provide",
364383
"strong-pans-doubt",
384+
"stupid-parents-crash",
365385
"sweet-mangos-beg",
366386
"sweet-pens-sniff",
367387
"swift-donkeys-perform",
@@ -387,9 +407,11 @@
387407
"ten-singers-cough",
388408
"ten-ties-repair",
389409
"ten-worms-reflect",
410+
"tender-rocks-walk",
390411
"thick-cycles-rule",
391412
"thick-pans-tell",
392413
"thick-shirts-deliver",
414+
"thick-swans-type",
393415
"thin-foxes-lick",
394416
"thirty-flowers-sit",
395417
"thirty-ghosts-fix",
@@ -418,6 +440,7 @@
418440
"unlucky-trees-lick",
419441
"violet-pigs-jam",
420442
"weak-drinks-speak",
443+
"weak-frogs-bow",
421444
"weak-terms-destroy",
422445
"wet-games-fly",
423446
"wet-wombats-repeat",

.changeset/serious-crabs-punch.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: include `script` and `svelte:options` attributes in ast

.changeset/seven-garlics-serve.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 sure event attributes run after bindings

.changeset/shiny-mayflies-clean.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: only destroy snippets when they have changed

.changeset/silent-hats-stare.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 type arguments to Map and Set

.changeset/sixty-numbers-hope.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: support `$state.snapshot` as part of variable declarations

.changeset/sixty-pandas-rush.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: optimize object property mutations in compilation

.changeset/small-apples-eat.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: implement `:global {...}` CSS blocks

.changeset/smooth-kids-protect.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: don't allow children in svelte:options

.changeset/stupid-parents-crash.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: possible name clash in hoisted functions

.changeset/tender-rocks-walk.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: preserve getters/setters in HMR mode

.changeset/thick-swans-type.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 read-only `bind:focused`

.changeset/tiny-poems-doubt.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/svelte/CHANGELOG.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,67 @@
11
# svelte
22

3+
## 5.0.0-next.111
4+
5+
### Patch Changes
6+
7+
- fix: run render functions for dynamic void elements ([#11258](https://github.com/sveltejs/svelte/pull/11258))
8+
9+
- fix: allow events to continue propagating following an error ([#11263](https://github.com/sveltejs/svelte/pull/11263))
10+
11+
- fix: resolve type definition error in `svelte/compiler` ([#11283](https://github.com/sveltejs/svelte/pull/11283))
12+
13+
- feat: include `script` and `svelte:options` attributes in ast ([#11241](https://github.com/sveltejs/svelte/pull/11241))
14+
15+
- fix: only destroy snippets when they have changed ([#11267](https://github.com/sveltejs/svelte/pull/11267))
16+
17+
- fix: add type arguments to Map and Set ([#10820](https://github.com/sveltejs/svelte/pull/10820))
18+
19+
- feat: implement `:global {...}` CSS blocks ([#11276](https://github.com/sveltejs/svelte/pull/11276))
20+
21+
- feat: add read-only `bind:focused` ([#11271](https://github.com/sveltejs/svelte/pull/11271))
22+
23+
## 5.0.0-next.110
24+
25+
### Patch Changes
26+
27+
- fix: make sure event attributes run after bindings ([#11230](https://github.com/sveltejs/svelte/pull/11230))
28+
29+
## 5.0.0-next.109
30+
31+
### Patch Changes
32+
33+
- fix: more robust moving of each item nodes ([#11254](https://github.com/sveltejs/svelte/pull/11254))
34+
35+
- fix: ensure that CSS is generated for the final frame of a transition ([#11251](https://github.com/sveltejs/svelte/pull/11251))
36+
37+
- fix: more accurate error message when creating orphan effects ([#11227](https://github.com/sveltejs/svelte/pull/11227))
38+
39+
- fix: support `$state.snapshot` as part of variable declarations ([#11235](https://github.com/sveltejs/svelte/pull/11235))
40+
41+
- fix: optimize object property mutations in compilation ([#11243](https://github.com/sveltejs/svelte/pull/11243))
42+
43+
- breaking: don't allow children in svelte:options ([#11250](https://github.com/sveltejs/svelte/pull/11250))
44+
45+
- fix: possible name clash in hoisted functions ([#11237](https://github.com/sveltejs/svelte/pull/11237))
46+
47+
- fix: preserve getters/setters in HMR mode ([#11231](https://github.com/sveltejs/svelte/pull/11231))
48+
49+
## 5.0.0-next.108
50+
51+
### Patch Changes
52+
53+
- breaking: warn on slots and event handlers in runes mode, error on `<slot>` + `{@render ...}` tag usage in same component ([#11203](https://github.com/sveltejs/svelte/pull/11203))
54+
55+
- fix: fall back to component namespace when not statically determinable, add way to tell `<svelte:element>` the namespace at runtime ([#11219](https://github.com/sveltejs/svelte/pull/11219))
56+
57+
- fix: measure elements before taking siblings out of the flow ([#11216](https://github.com/sveltejs/svelte/pull/11216))
58+
59+
- breaking: warn on self-closing non-void HTML tags ([#11114](https://github.com/sveltejs/svelte/pull/11114))
60+
61+
- fix: take outroing elements out of the flow when animating siblings ([#11208](https://github.com/sveltejs/svelte/pull/11208))
62+
63+
- fix: widen ownership when sub state is assigned to new state ([#11217](https://github.com/sveltejs/svelte/pull/11217))
64+
365
## 5.0.0-next.107
466

567
### Patch Changes

packages/svelte/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "svelte",
33
"description": "Cybernetically enhanced web apps",
44
"license": "MIT",
5-
"version": "5.0.0-next.107",
5+
"version": "5.0.0-next.111",
66
"type": "module",
77
"types": "./types/index.d.ts",
88
"engines": {

packages/svelte/src/compiler/errors.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,15 @@ const css = {
103103
/** @param {string} message */
104104
'css-parse-error': (message) => message,
105105
'invalid-css-empty-declaration': () => `Declaration cannot be empty`,
106+
'invalid-css-global-block-list': () =>
107+
`A :global {...} block cannot be part of a selector list with more than one item`,
108+
'invalid-css-global-block-modifier': () =>
109+
`A :global {...} block cannot modify an existing selector`,
110+
/** @param {string} name */
111+
'invalid-css-global-block-combinator': (name) =>
112+
`A :global {...} block cannot follow a ${name} combinator`,
113+
'invalid-css-global-block-declaration': () =>
114+
`A :global {...} block can only contain rules, not declarations`,
106115
'invalid-css-global-placement': () =>
107116
`:global(...) can be at the start or end of a selector sequence, but not in the middle`,
108117
'invalid-css-global-selector': () => `:global(...) must contain exactly one selector`,

0 commit comments

Comments
 (0)