Skip to content

Commit 76ce303

Browse files
authored
chore: bump esrap (#14969)
* chore: bump esrap * fix * bump again
1 parent 9b6e65f commit 76ce303

File tree

45 files changed

+414
-414
lines changed

Some content is hidden

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

45 files changed

+414
-414
lines changed

packages/svelte/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
"axobject-query": "^4.1.0",
156156
"clsx": "^2.1.1",
157157
"esm-env": "^1.2.1",
158-
"esrap": "^1.3.2",
158+
"esrap": "^1.4.2",
159159
"is-reference": "^3.0.3",
160160
"locate-character": "^3.0.0",
161161
"magic-string": "^0.30.11",

packages/svelte/src/compiler/errors.js

Lines changed: 165 additions & 165 deletions
Large diffs are not rendered by default.

packages/svelte/src/compiler/warnings.js

Lines changed: 156 additions & 156 deletions
Large diffs are not rendered by default.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export function hydration_attribute_changed(attribute, html, value) {
7676
*/
7777
export function hydration_html_changed(location) {
7878
if (DEV) {
79-
console.warn(`%c[svelte] hydration_html_changed\n%c${location ? `The value of an \`{@html ...}\` block ${location} changed between server and client renders. The client value will be ignored in favour of the server value` : "The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}\nhttps://svelte.dev/e/hydration_html_changed`, bold, normal);
79+
console.warn(`%c[svelte] hydration_html_changed\n%c${location ? `The value of an \`{@html ...}\` block ${location} changed between server and client renders. The client value will be ignored in favour of the server value` : 'The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value'}\nhttps://svelte.dev/e/hydration_html_changed`, bold, normal);
8080
} else {
8181
console.warn(`https://svelte.dev/e/hydration_html_changed`);
8282
}
@@ -88,7 +88,7 @@ export function hydration_html_changed(location) {
8888
*/
8989
export function hydration_mismatch(location) {
9090
if (DEV) {
91-
console.warn(`%c[svelte] hydration_mismatch\n%c${location ? `Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${location}` : "Hydration failed because the initial UI does not match what was rendered on the server"}\nhttps://svelte.dev/e/hydration_mismatch`, bold, normal);
91+
console.warn(`%c[svelte] hydration_mismatch\n%c${location ? `Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${location}` : 'Hydration failed because the initial UI does not match what was rendered on the server'}\nhttps://svelte.dev/e/hydration_mismatch`, bold, normal);
9292
} else {
9393
console.warn(`https://svelte.dev/e/hydration_mismatch`);
9494
}
@@ -149,7 +149,7 @@ export function ownership_invalid_binding(parent, child, owner) {
149149
*/
150150
export function ownership_invalid_mutation(component, owner) {
151151
if (DEV) {
152-
console.warn(`%c[svelte] ownership_invalid_mutation\n%c${component ? `${component} mutated a value owned by ${owner}. This is strongly discouraged. Consider passing values to child components with \`bind:\`, or use a callback instead` : "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"}\nhttps://svelte.dev/e/ownership_invalid_mutation`, bold, normal);
152+
console.warn(`%c[svelte] ownership_invalid_mutation\n%c${component ? `${component} mutated a value owned by ${owner}. This is strongly discouraged. Consider passing values to child components with \`bind:\`, or use a callback instead` : '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'}\nhttps://svelte.dev/e/ownership_invalid_mutation`, bold, normal);
153153
} else {
154154
console.warn(`https://svelte.dev/e/ownership_invalid_mutation`);
155155
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function state_snapshot_uncloneable(properties) {
2929
? `The following properties cannot be cloned with \`$state.snapshot\` — the return value contains the originals:
3030
3131
${properties}`
32-
: "Value cannot be cloned with `$state.snapshot` — the original value was returned"}\nhttps://svelte.dev/e/state_snapshot_uncloneable`, bold, normal);
32+
: 'Value cannot be cloned with `$state.snapshot` — the original value was returned'}\nhttps://svelte.dev/e/state_snapshot_uncloneable`, bold, normal);
3333
} else {
3434
console.warn(`https://svelte.dev/e/state_snapshot_uncloneable`);
3535
}

packages/svelte/tests/snapshot/samples/await-block-scope/_expected/client/index.svelte.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import "svelte/internal/disclose-version";
2-
import * as $ from "svelte/internal/client";
1+
import 'svelte/internal/disclose-version';
2+
import * as $ from 'svelte/internal/client';
33

44
function increment(_, counter) {
55
counter.count += 1;
@@ -26,11 +26,11 @@ export default function Await_block_scope($$anchor) {
2626
var text_1 = $.sibling(node);
2727

2828
$.template_effect(() => {
29-
$.set_text(text, `clicks: ${counter.count ?? ""}`);
30-
$.set_text(text_1, ` ${counter.count ?? ""}`);
29+
$.set_text(text, `clicks: ${counter.count ?? ''}`);
30+
$.set_text(text_1, ` ${counter.count ?? ''}`);
3131
});
3232

3333
$.append($$anchor, fragment);
3434
}
3535

36-
$.delegate(["click"]);
36+
$.delegate(['click']);

packages/svelte/tests/snapshot/samples/await-block-scope/_expected/server/index.svelte.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as $ from "svelte/internal/server";
1+
import * as $ from 'svelte/internal/server';
22

33
export default function Await_block_scope($$payload) {
44
let counter = { count: 0 };

packages/svelte/tests/snapshot/samples/bind-component-snippet/_expected/client/index.svelte.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import "svelte/internal/disclose-version";
2-
import * as $ from "svelte/internal/client";
1+
import 'svelte/internal/disclose-version';
2+
import * as $ from 'svelte/internal/client';
33
import TextInput from './Child.svelte';
44

55
const snippet = ($$anchor) => {
66
$.next();
77

8-
var text = $.text("Something");
8+
var text = $.text('Something');
99

1010
$.append($$anchor, text);
1111
};
@@ -29,6 +29,6 @@ export default function Bind_component_snippet($$anchor) {
2929

3030
var text_1 = $.sibling(node);
3131

32-
$.template_effect(() => $.set_text(text_1, ` value: ${$.get(value) ?? ""}`));
32+
$.template_effect(() => $.set_text(text_1, ` value: ${$.get(value) ?? ''}`));
3333
$.append($$anchor, fragment);
3434
}

packages/svelte/tests/snapshot/samples/bind-component-snippet/_expected/server/index.svelte.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as $ from "svelte/internal/server";
1+
import * as $ from 'svelte/internal/server';
22
import TextInput from './Child.svelte';
33

44
function snippet($$payload) {

packages/svelte/tests/snapshot/samples/bind-this/_expected/client/index.svelte.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import "svelte/internal/disclose-version";
2-
import "svelte/internal/flags/legacy";
3-
import * as $ from "svelte/internal/client";
1+
import 'svelte/internal/disclose-version';
2+
import 'svelte/internal/flags/legacy';
3+
import * as $ from 'svelte/internal/client';
44

55
export default function Bind_this($$anchor) {
66
$.bind_this(Foo($$anchor, { $$legacy: true }), ($$value) => foo = $$value, () => foo);

0 commit comments

Comments
 (0)