Skip to content

Commit 92250b5

Browse files
committed
Merge branch 'main' into deprecations
2 parents dbc1300 + f6dfac9 commit 92250b5

File tree

671 files changed

+4741
-4168
lines changed

Some content is hidden

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

671 files changed

+4741
-4168
lines changed

.changeset/beige-seas-share.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 binding to component exports in runes mode

.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/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/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/pink-goats-promise.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 types to express bindability

.changeset/plenty-starfishes-dress.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 hoisting error by using 'let' instead of 'var'

.changeset/pre.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"beige-flies-wash",
2020
"beige-mirrors-listen",
2121
"beige-rabbits-shave",
22+
"beige-seas-share",
2223
"big-cars-serve",
2324
"big-eggs-flash",
2425
"big-eyes-carry",
@@ -106,6 +107,7 @@
106107
"few-clouds-shop",
107108
"few-mugs-fail",
108109
"few-teachers-know",
110+
"fifty-masks-give",
109111
"fifty-rice-wait",
110112
"fifty-steaks-float",
111113
"five-tigers-search",
@@ -197,6 +199,7 @@
197199
"light-badgers-glow",
198200
"light-days-clean",
199201
"light-humans-hang",
202+
"light-penguins-invent",
200203
"light-pens-watch",
201204
"little-pans-jog",
202205
"long-buckets-lay",
@@ -211,6 +214,7 @@
211214
"lovely-houses-own",
212215
"lovely-items-turn",
213216
"lovely-rules-eat",
217+
"lucky-colts-remember",
214218
"lucky-schools-hang",
215219
"lucky-toes-begin",
216220
"many-rockets-give",
@@ -259,6 +263,7 @@
259263
"orange-yaks-protect",
260264
"pink-bikes-agree",
261265
"pink-mayflies-tie",
266+
"plenty-starfishes-dress",
262267
"polite-dolphins-care",
263268
"polite-pumpkins-guess",
264269
"polite-ravens-study",
@@ -303,6 +308,7 @@
303308
"selfish-socks-smile",
304309
"selfish-spies-help",
305310
"selfish-tools-hide",
311+
"serious-crabs-punch",
306312
"serious-gorillas-eat",
307313
"serious-kids-deliver",
308314
"serious-needles-joke",
@@ -320,12 +326,14 @@
320326
"sharp-kids-happen",
321327
"sharp-tomatoes-learn",
322328
"shiny-baboons-play",
329+
"shiny-mayflies-clean",
323330
"shiny-rats-heal",
324331
"shiny-shrimps-march",
325332
"short-buses-camp",
326333
"short-countries-rush",
327334
"shy-fishes-drive",
328335
"silent-apes-report",
336+
"silent-hats-stare",
329337
"silly-laws-happen",
330338
"silly-lies-film",
331339
"silly-ways-wash",
@@ -341,6 +349,7 @@
341349
"slow-kids-sparkle",
342350
"slow-plums-chew",
343351
"slow-wombats-reply",
352+
"small-apples-eat",
344353
"small-papayas-laugh",
345354
"small-sheep-type",
346355
"small-spiders-fail",
@@ -404,6 +413,7 @@
404413
"thick-cycles-rule",
405414
"thick-pans-tell",
406415
"thick-shirts-deliver",
416+
"thick-swans-type",
407417
"thin-foxes-lick",
408418
"thirty-flowers-sit",
409419
"thirty-ghosts-fix",

.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/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/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`

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ packages/**/dist/*.js
22
packages/**/build/*.js
33
packages/**/npm/**/*
44
packages/**/config/*.js
5+
packages/svelte/messages/**/*.md
6+
packages/svelte/src/compiler/errors.js
7+
packages/svelte/src/compiler/warnings.js
58
packages/svelte/tests/**/*.svelte
69
packages/svelte/tests/**/_expected*
710
packages/svelte/tests/**/_actual*

eslint.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,16 @@ export default [
3333
ignores: [
3434
'**/*.d.ts',
3535
'**/tests',
36+
'packages/svelte/scripts/process-messages/templates/*.js',
37+
'packages/svelte/src/compiler/errors.js',
3638
'packages/svelte/compiler/index.js',
3739
// documentation can contain invalid examples
3840
'documentation',
3941
// contains a fork of the REPL which doesn't adhere to eslint rules
4042
'sites/svelte-5-preview/**',
4143
// wasn't checked previously, reenable at some point
42-
'sites/svelte.dev/**'
44+
'sites/svelte.dev/**',
45+
'tmp/**'
4346
]
4447
}
4548
];

packages/svelte/CHANGELOG.md

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

3+
## 5.0.0-next.113
4+
5+
### Patch Changes
6+
7+
- breaking: disallow binding to component exports in runes mode ([#11238](https://github.com/sveltejs/svelte/pull/11238))
8+
9+
## 5.0.0-next.112
10+
11+
### Patch Changes
12+
13+
- fix: avoid hoisting error by using 'let' instead of 'var' ([#11291](https://github.com/sveltejs/svelte/pull/11291))
14+
15+
## 5.0.0-next.111
16+
17+
### Patch Changes
18+
19+
- fix: run render functions for dynamic void elements ([#11258](https://github.com/sveltejs/svelte/pull/11258))
20+
21+
- fix: allow events to continue propagating following an error ([#11263](https://github.com/sveltejs/svelte/pull/11263))
22+
23+
- fix: resolve type definition error in `svelte/compiler` ([#11283](https://github.com/sveltejs/svelte/pull/11283))
24+
25+
- feat: include `script` and `svelte:options` attributes in ast ([#11241](https://github.com/sveltejs/svelte/pull/11241))
26+
27+
- fix: only destroy snippets when they have changed ([#11267](https://github.com/sveltejs/svelte/pull/11267))
28+
29+
- fix: add type arguments to Map and Set ([#10820](https://github.com/sveltejs/svelte/pull/10820))
30+
31+
- feat: implement `:global {...}` CSS blocks ([#11276](https://github.com/sveltejs/svelte/pull/11276))
32+
33+
- feat: add read-only `bind:focused` ([#11271](https://github.com/sveltejs/svelte/pull/11271))
34+
335
## 5.0.0-next.110
436

537
### Patch Changes
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
## empty_attribute_shorthand
2+
3+
Attribute shorthand cannot be empty
4+
5+
## duplicate_attribute
6+
7+
Attributes need to be unique
8+
9+
## invalid_event_attribute_value
10+
11+
Event attribute must be a JavaScript expression, not a string
12+
13+
## invalid_attribute_name
14+
15+
'%name%' is not a valid attribute name
16+
17+
## animation_invalid_placement
18+
19+
An element that uses the `animate:` directive must be the only child of a keyed `{#each ...}` block
20+
21+
## animation_missing_key
22+
23+
An element that uses the `animate:` directive must be the only child of a keyed `{#each ...}` block. Did you forget to add a key to your each block?
24+
25+
## animation_duplicate
26+
27+
An element can only have one 'animate' directive
28+
29+
## invalid_event_modifier
30+
31+
Valid event modifiers are %list%
32+
33+
## invalid_component_event_modifier
34+
35+
Event modifiers other than 'once' can only be used on DOM elements
36+
37+
## invalid_event_modifier_combination
38+
39+
The '%modifier1%' and '%modifier2%' modifiers cannot be used together
40+
41+
## transition_duplicate
42+
43+
Cannot use multiple `%type%:` directives on a single element
44+
45+
## transition_conflict
46+
47+
Cannot use `%type%:` alongside existing `%existing%:` directive
48+
49+
## invalid_let_directive_placement
50+
51+
`let:` directive at invalid position
52+
53+
## invalid_style_directive_modifier
54+
55+
Invalid 'style:' modifier. Valid modifiers are: 'important'
56+
57+
## invalid_sequence_expression
58+
59+
Sequence expressions are not allowed as attribute/directive values in runes mode, unless wrapped in parentheses
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
## invalid_binding_expression
2+
3+
Can only bind to an Identifier or MemberExpression
4+
5+
## invalid_binding_value
6+
7+
Can only bind to state or props
8+
9+
## bind_invalid_target
10+
11+
`bind:%name%` can only be used with %elements%
12+
13+
## bind_invalid
14+
15+
`bind:%name%` is not a valid binding
16+
17+
## bind_invalid_detailed
18+
19+
`bind:%name%` is not a valid binding. %explanation%
20+
21+
## invalid_type_attribute
22+
23+
'type' attribute must be a static text value if input uses two-way binding
24+
25+
## invalid_multiple_attribute
26+
27+
'multiple' attribute must be static if select uses two-way binding
28+
29+
## missing_contenteditable_attribute
30+
31+
'contenteditable' attribute is required for textContent, innerHTML and innerText two-way bindings
32+
33+
## dynamic_contenteditable_attribute
34+
35+
'contenteditable' attribute cannot be dynamic if element uses two-way binding
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## invalid_compiler_option
2+
3+
Invalid compiler option: %msg%
4+
5+
## removed_compiler_option
6+
7+
Invalid compiler option: %msg%
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## invalid_component_directive
2+
3+
This type of directive is not valid on components
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## invalid_const_placement
2+
3+
{@const} must be the immediate child of {#snippet}, {#if}, {:else if}, {:else}, {#each}, {:then}, {:catch}, <svelte:fragment> or <Component>
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
## invalid_css_empty_declaration
2+
3+
Declaration cannot be empty
4+
5+
## invalid_css_global_block_list
6+
7+
A :global {...} block cannot be part of a selector list with more than one item
8+
9+
## invalid_css_global_block_modifier
10+
11+
A :global {...} block cannot modify an existing selector
12+
13+
## invalid_css_global_block_combinator
14+
15+
A :global {...} block cannot follow a %name% combinator
16+
17+
## invalid_css_global_block_declaration
18+
19+
A :global {...} block can only contain rules, not declarations
20+
21+
## invalid_css_global_placement
22+
23+
:global(...) can be at the start or end of a selector sequence, but not in the middle
24+
25+
## invalid_css_global_selector
26+
27+
:global(...) must contain exactly one selector
28+
29+
## invalid_css_global_selector_list
30+
31+
:global(...) must not contain type or universal selectors when used in a compound selector
32+
33+
## invalid_css_type_selector_placement
34+
35+
:global(...) must not be followed with a type selector
36+
37+
## invalid_css_selector
38+
39+
Invalid selector
40+
41+
## invalid_css_identifier
42+
43+
Expected a valid CSS identifier
44+
45+
## invalid_nesting_selector
46+
47+
Nesting selectors can only be used inside a rule
48+
49+
## invalid_css_declaration
50+
51+
Declaration cannot be empty
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
## invalid_textarea_content
2+
3+
A `<textarea>` can have either a value attribute or (equivalently) child content, but not both
4+
5+
## invalid_void_content
6+
7+
Void elements cannot have children or closing tags
8+
9+
## invalid_element_content
10+
11+
<%name%> cannot have children
12+
13+
## invalid_tag_name
14+
15+
Expected valid tag name
16+
17+
## invalid_node_placement
18+
19+
%thing% is invalid inside <%parent%>
20+
21+
## illegal_title_attribute
22+
23+
`<title>` cannot have attributes nor directives
24+
25+
## invalid_title_content
26+
27+
`<title>` can only contain text and {tags}

0 commit comments

Comments
 (0)