Skip to content

Commit e281ab5

Browse files
committed
fix
1 parent 82ab2cd commit e281ab5

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

packages/svelte/src/compiler/errors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,12 @@ export function host_invalid_placement(node) {
199199
}
200200

201201
/**
202-
* Cannot use `export let` in runes mode — use $props instead
202+
* Cannot use `export let` in runes mode — use `$props()` instead
203203
* @param {null | number | NodeLike} node
204204
* @returns {never}
205205
*/
206206
export function legacy_export_invalid(node) {
207-
e(node, "legacy_export_invalid", "Cannot use `export let` in runes mode — use $props instead");
207+
e(node, "legacy_export_invalid", "Cannot use `export let` in runes mode — use `$props()` instead");
208208
}
209209

210210
/**

packages/svelte/src/internal/client/warnings.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ var bold = 'font-weight: bold';
66
var normal = 'font-weight: normal';
77

88
/**
9-
* The `%attribute%` attribute on `%html%` changed value between server and client renders. The client value, `%value%`, will be ignored in favour of the server value
9+
* 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
1010
* @param {string} attribute
1111
* @param {string} html
1212
* @param {string} value
1313
*/
1414
export function hydration_attribute_changed(attribute, html, value) {
1515
if (DEV) {
16-
console.warn(`%c[svelte] ${"hydration_attribute_changed"}\n%c${`The \`${attribute}\` attribute on \`${html}\` changed value between server and client renders. The client value, \`${value}\`, will be ignored in favour of the server value`}`, bold, normal);
16+
console.warn(`%c[svelte] ${"hydration_attribute_changed"}\n%c${`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`}`, bold, normal);
1717
} else {
1818
// TODO print a link to the documentation
1919
console.warn("hydration_attribute_changed");

packages/svelte/tests/compiler-errors/samples/runes-export-let/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { test } from '../../test';
33
export default test({
44
error: {
55
code: 'legacy_export_invalid',
6-
message: 'Cannot use `export let` in runes mode — use $props instead'
6+
message: 'Cannot use `export let` in runes mode — use `$props()` instead'
77
}
88
});

packages/svelte/tests/hydration/samples/ignore-mismatched-href/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ export default test({
1414
},
1515

1616
errors: [
17-
'The `href` attribute on `<a href="/bar">...</a>` changed value between server and client renders. The client value, `/foo`, will be ignored in favour of the server value'
17+
'The `href` attribute on `<a href="/bar">...</a>` changed its value between server and client renders. The client value, `/foo`, will be ignored in favour of the server value'
1818
]
1919
});

0 commit comments

Comments
 (0)