Skip to content

Commit 6b75207

Browse files
committed
merge main
2 parents f6aa8b2 + 9a887f8 commit 6b75207

File tree

387 files changed

+2951
-2740
lines changed

Some content is hidden

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

387 files changed

+2951
-2740
lines changed

.changeset/pre.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@
215215
"lovely-items-turn",
216216
"lovely-rules-eat",
217217
"lucky-colts-remember",
218+
"lucky-geckos-swim",
218219
"lucky-schools-hang",
219220
"lucky-toes-begin",
220221
"many-rockets-give",
@@ -432,6 +433,7 @@
432433
"tidy-chefs-taste",
433434
"tidy-starfishes-allow",
434435
"tiny-kings-whisper",
436+
"tiny-meals-deliver",
435437
"tough-radios-punch",
436438
"twelve-dragons-join",
437439
"twelve-onions-juggle",

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ packages/svelte/src/compiler/errors.js
77
packages/svelte/src/compiler/warnings.js
88
packages/svelte/src/internal/client/errors.js
99
packages/svelte/src/internal/client/warnings.js
10+
packages/svelte/src/internal/shared/errors.js
1011
packages/svelte/src/internal/shared/warnings.js
12+
packages/svelte/src/internal/server/errors.js
1113
packages/svelte/tests/**/*.svelte
1214
packages/svelte/tests/**/_expected*
1315
packages/svelte/tests/**/_actual*

packages/svelte/CHANGELOG.md

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

3+
## 5.0.0-next.115
4+
5+
### Patch Changes
6+
7+
- fix: remove `bind_prop` in runes mode ([#11321](https://github.com/sveltejs/svelte/pull/11321))
8+
9+
- fix: mark `accessors` and `immutable` as deprecated ([#11277](https://github.com/sveltejs/svelte/pull/11277))
10+
311
## 5.0.0-next.114
412

513
### Patch Changes

packages/svelte/messages/client-errors/effects.md

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
## bind_invalid_checkbox_value
2+
3+
> Using `bind:value` together with a checkbox input is not allowed. Use `bind:checked` instead
4+
5+
## bind_invalid_export
6+
7+
> Component %component% has an export named `%key%` that a consumer component is trying to access using `bind:%key%`, which is disallowed. Instead, use `bind:this` (e.g. `<%name% bind:this={component} />`) and then access the property on the bound component instance (e.g. `component.%key%`)
8+
9+
## bind_not_bindable
10+
11+
> A component is attempting to bind to a non-bindable property `%key%` belonging to %component% (i.e. `<%name% bind:%key%={...}>`). To mark a property as bindable: `let { %key% = $bindable() } = $props()`
12+
13+
## each_key_duplicate
14+
15+
> Keyed each block has duplicate key at indexes %a% and %b%
16+
17+
> Keyed each block has duplicate key `%value%` at indexes %a% and %b%
18+
19+
## effect_in_teardown
20+
21+
> `%rune%` cannot be used inside an effect cleanup function
22+
23+
## effect_orphan
24+
25+
> `%rune%` can only be used inside an effect (e.g. during component initialisation)
26+
27+
## effect_update_depth_exceeded
28+
29+
> Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
30+
31+
## hydration_missing_marker_close
32+
33+
> Missing hydration closing marker
34+
35+
## hydration_missing_marker_open
36+
37+
> Missing hydration opening marker
38+
39+
## lifecycle_legacy_only
40+
41+
> `%name%(...)` cannot be used in runes mode
42+
43+
## props_invalid_value
44+
45+
> Cannot do `bind:%key%={undefined}` when `%key%` has a fallback value
46+
47+
## props_rest_readonly
48+
49+
> Rest element properties of `$props()` such as `%property%` are readonly
50+
51+
## rune_outside_svelte
52+
53+
> The `%rune%` rune is only available inside `.svelte` and `.svelte.js/ts` files
54+
55+
## state_prototype_fixed
56+
57+
> Cannot set prototype of `$state` object
58+
59+
## state_unsafe_mutation
60+
61+
> Unsafe mutations during Svelte's render or derived phase are not permitted in runes mode. This can lead to unexpected errors and possibly cause infinite loops.
62+
>
63+
> If the object is not meant to be reactive, declare it without `$state`
64+
65+
## svelte_component_invalid_this_value
66+
67+
> The `this={...}` property of a `<svelte:component>` must be a Svelte component, if defined

packages/svelte/messages/client-errors/lifecycle.md

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
1+
## hydration_attribute_changed
2+
3+
> The `%attribute%` attribute on `%html%` changed its value between server and client renders. The client value, `%value%`, will be ignored in favour of the server value
4+
5+
## hydration_mismatch
6+
7+
> Hydration failed because the initial UI does not match what was rendered on the server
8+
19
## lifecycle_double_unmount
210

311
> Tried to unmount a component that was not mounted
412
513
## ownership_invalid_binding
614

7-
> %parent% passed a value to %child% with `bind:`, but the value is owned by %owner%. Consider creating a binding between %owner% and %parent%
15+
> %parent% passed a value to %child% with `bind:`, but the value is owned by %owner%. Consider creating a binding between %owner% and %parent%
16+
17+
## ownership_invalid_mutation
18+
19+
> Mutating a value outside the component that created it is strongly discouraged. Consider passing values to child components with `bind:`, or use a callback instead
20+
21+
> %component% mutated a value owned by %owner%. This is strongly discouraged. Consider passing values to child components with `bind:`, or use a callback instead

packages/svelte/messages/compile-errors/attributes.md

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

packages/svelte/messages/compile-errors/bindings.md

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

packages/svelte/messages/compile-errors/compiler_options.md

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

packages/svelte/messages/compile-errors/components.md

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

packages/svelte/messages/compile-errors/const_tag.md

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

packages/svelte/messages/compile-errors/elements.md

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

packages/svelte/messages/compile-errors/legacy_reactivity.md

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## options_invalid_value
2+
3+
> Invalid compiler option: %details%
4+
5+
## options_removed
6+
7+
> Invalid compiler option: %details%
8+
9+
## options_unrecognised
10+
11+
> Unrecognised compiler option %keypath%

0 commit comments

Comments
 (0)