Skip to content

Commit 2bfcc9e

Browse files
committed
regenerate
1 parent 193119e commit 2bfcc9e

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

documentation/docs/98-reference/.generated/compile-warnings.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -654,12 +654,6 @@ HTML restricts where certain elements can appear. In case of a violation the bro
654654

655655
This code will work when the component is rendered on the client (which is why this is a warning rather than an error), but if you use server rendering it will cause hydration to fail.
656656

657-
### non_reactive_update
658-
659-
```
660-
`%name%` is updated, but is not declared with `$state(...)`. Changing its value will not correctly trigger updates
661-
```
662-
663657
### options_deprecated_accessors
664658

665659
```

packages/svelte/src/compiler/warnings.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ export const codes = [
9797
"options_renamed_ssr_dom",
9898
"export_let_unused",
9999
"legacy_component_creation",
100-
"non_reactive_update",
101100
"perf_avoid_inline_class",
102101
"perf_avoid_nested_class",
103102
"reactive_declaration_invalid_placement",
@@ -600,15 +599,6 @@ export function legacy_component_creation(node) {
600599
w(node, "legacy_component_creation", "Svelte 5 components are no longer classes. Instantiate them using `mount` or `hydrate` (imported from 'svelte') instead.");
601600
}
602601

603-
/**
604-
* `%name%` is updated, but is not declared with `$state(...)`. Changing its value will not correctly trigger updates
605-
* @param {null | NodeLike} node
606-
* @param {string} name
607-
*/
608-
export function non_reactive_update(node, name) {
609-
w(node, "non_reactive_update", `\`${name}\` is updated, but is not declared with \`$state(...)\`. Changing its value will not correctly trigger updates`);
610-
}
611-
612602
/**
613603
* Avoid 'new class' — instead, declare the class at the top level scope
614604
* @param {null | NodeLike} node
@@ -641,6 +631,14 @@ export function reactive_declaration_module_script_dependency(node) {
641631
w(node, "reactive_declaration_module_script_dependency", "Reassignments of module-level declarations will not cause reactive statements to update");
642632
}
643633

634+
/**
635+
* Properties of objects and arrays are not reactive unless in runes mode. Changes to this property will not cause the reactive statement to update
636+
* @param {null | NodeLike} node
637+
*/
638+
export function reactive_declaration_non_reactive_property(node) {
639+
w(node, "reactive_declaration_non_reactive_property", "Properties of objects and arrays are not reactive unless in runes mode. Changes to this property will not cause the reactive statement to update");
640+
}
641+
644642
/**
645643
* State referenced in its own scope will never update. Did you mean to reference it inside a closure?
646644
* @param {null | NodeLike} node

0 commit comments

Comments
 (0)