Skip to content

Commit baf721f

Browse files
authored
Merge pull request #1634 from nubolab-ffwd/renovate/svelte-5.x
chore(deps): update dependency svelte to v5.39.6
2 parents 4e76f5b + 897a29a commit baf721f

File tree

15 files changed

+333
-101
lines changed

15 files changed

+333
-101
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858
- jsdom@^25.0.0
5959
- jsdom@^26.0.0
6060
61+
6162
steps:
6263
- uses: actions/[email protected]
6364
- uses: pnpm/[email protected]

docs-site/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"rehype-wrap-all": "1.1.0",
4141
"semver": "7.7.2",
4242
"shiki": "3.9.2",
43-
"svelte": "5.37.3",
43+
"svelte": "5.39.6",
4444
"svelte-check": "4.3.1",
4545
"svelte-fluent-examples": "workspace:^",
4646
"svelte2tsx": "0.7.42",

examples/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"postcss": "8.5.6",
2222
"postcss-load-config": "6.0.1",
2323
"postcss-preset-env": "10.2.4",
24-
"svelte": "5.37.3",
24+
"svelte": "5.39.6",
2525
"svelte-check": "4.3.1",
2626
"svelte2tsx": "0.7.42",
2727
"tslib": "2.8.1",

packages/svelte-fluent/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"postcss-preset-env": "10.2.4",
4141
"publint": "0.3.12",
4242
"semver": "7.7.2",
43-
"svelte": "5.37.3",
43+
"svelte": "5.39.6",
4444
"svelte-check": "4.3.1",
4545
"svelte2tsx": "0.7.42",
4646
"tslib": "2.8.1",

packages/svelte-fluent/src/internal/OverlaySSR.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ const concatOutputs = (a: PayloadOutput, b: PayloadOutput): PayloadOutput => {
3333
};
3434

3535
function OverlaySSR($$payload: Payload, $$props: Props) {
36+
if (!('out' in $$payload) || !('head' in $$payload)) {
37+
// currently we have no way to SSR render Overlays with the new svelte async renderer architecture
38+
return Overlay($$payload as unknown as Parameters<typeof Overlay>[0], $$props);
39+
}
3640
const savedOut = $$payload.out;
3741
const savedHeadOut = $$payload.head.out;
3842
$$payload.out = createEmptyOutput($$payload.out);

pnpm-lock.yaml

Lines changed: 81 additions & 74 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

testsuite/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"@sveltejs/vite-plugin-svelte": "6.1.0",
1818
"@testing-library/svelte": "5.2.8",
1919
"@types/jsdom": "21.1.7",
20+
"@types/semver": "7.7.1",
2021
"@vitest/ui": "3.2.4",
2122
"autoprefixer": "10.4.21",
2223
"npm-run-all2": "8.0.4",
@@ -25,7 +26,7 @@
2526
"postcss-load-config": "6.0.1",
2627
"postcss-preset-env": "10.2.4",
2728
"semver": "7.7.2",
28-
"svelte": "5.37.3",
29+
"svelte": "5.39.6",
2930
"svelte-check": "4.3.1",
3031
"svelte-fluent-examples": "workspace:^",
3132
"svelte2tsx": "0.7.42",
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2+
3+
exports[`Case empty-pattern-with-attributes/Test.svelte > should render 1`] = `
4+
{
5+
"body": "<!--[--><!--[--><!---->Some text<!----><!--]--><!--]-->",
6+
"head": "",
7+
"html": "<!--[--><!--[--><!---->Some text<!----><!--]--><!--]-->",
8+
}
9+
`;
10+
11+
exports[`Case localize-store/Test.svelte > should render 1`] = `
12+
{
13+
"body": "<!--[--><div id="plain">Test
14+
Attribute</div> <div id="with-vars">Test ⁨with variables⁩
15+
Attribute ⁨with variables⁩</div><!--]-->",
16+
"head": "",
17+
"html": "<!--[--><div id="plain">Test
18+
Attribute</div> <div id="with-vars">Test ⁨with variables⁩
19+
Attribute ⁨with variables⁩</div><!--]-->",
20+
}
21+
`;
22+
23+
exports[`Case overlay-rendering/Test.svelte > should render 1`] = `
24+
{
25+
"body": "<!--[--><svelte-fluent-overlay style="display: contents;">This <a data-l10n-name="link" href="https://example.com/">link</a> is rendered with Overlay.</svelte-fluent-overlay><!--]-->",
26+
"head": "<!--[--><template><a data-l10n-name="link" href="https://example.com/"></a><!----></template><!--]-->",
27+
"html": "<!--[--><svelte-fluent-overlay style="display: contents;">This <a data-l10n-name="link" href="https://example.com/">link</a> is rendered with Overlay.</svelte-fluent-overlay><!--]-->",
28+
}
29+
`;
30+
31+
exports[`Case readme-example/Test.svelte > should render 1`] = `
32+
{
33+
"body": "<!--[--><strong><!--[!-->Hello, ⁨Anna⁩!<!--]--><!----></strong> <p><!--[!-->⁨Anna⁩ ⁨added ⁨3⁩ new photos⁩ to ⁨her stream⁩.<!--]--><!----></p><!--]-->",
34+
"head": "",
35+
"html": "<!--[--><strong><!--[!-->Hello, ⁨Anna⁩!<!--]--><!----></strong> <p><!--[!-->⁨Anna⁩ ⁨added ⁨3⁩ new photos⁩ to ⁨her stream⁩.<!--]--><!----></p><!--]-->",
36+
}
37+
`;
Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2+
3+
exports[`Example frontpage/App.svelte > should render 1`] = `
4+
{
5+
"body": "<!--[--><strong><!--[!-->Hello, ⁨Anna⁩!<!--]--><!----></strong> <p><!--[!-->⁨Anna⁩ ⁨added ⁨3⁩ new photos⁩ to ⁨her stream⁩.<!--]--><!----></p><!--]-->",
6+
"head": "",
7+
"html": "<!--[--><strong><!--[!-->Hello, ⁨Anna⁩!<!--]--><!----></strong> <p><!--[!-->⁨Anna⁩ ⁨added ⁨3⁩ new photos⁩ to ⁨her stream⁩.<!--]--><!----></p><!--]-->",
8+
}
9+
`;
10+
11+
exports[`Example localize/attributes/App.svelte > should render 1`] = `
12+
{
13+
"body": "<!--[--><button>Show prompt</button><!--]-->",
14+
"head": "",
15+
"html": "<!--[--><button>Show prompt</button><!--]-->",
16+
}
17+
`;
18+
19+
exports[`Example localize/dynamic-text/App.svelte > should render 1`] = `
20+
{
21+
"body": "<!--[--><button>Say hello</button><!--]-->",
22+
"head": "",
23+
"html": "<!--[--><button>Say hello</button><!--]-->",
24+
}
25+
`;
26+
27+
exports[`Example localize/static-text/App.svelte > should render 1`] = `
28+
{
29+
"body": "<!--[--><button>Say hello</button><!--]-->",
30+
"head": "",
31+
"html": "<!--[--><button>Say hello</button><!--]-->",
32+
}
33+
`;
34+
35+
exports[`Example localized/attributes/App.svelte > should render 1`] = `
36+
{
37+
"body": "<!--[--><!--[--><div>Please confirm the action.</div> <div><button>Ok</button> <button>Cancel</button></div><!----><!--]--><!--]-->",
38+
"head": "",
39+
"html": "<!--[--><!--[--><div>Please confirm the action.</div> <div><button>Ok</button> <button>Cancel</button></div><!----><!--]--><!--]-->",
40+
}
41+
`;
42+
43+
exports[`Example localized/attributes-with-variables/App.svelte > should render 1`] = `
44+
{
45+
"body": "<!--[--><!--[--><div>Please confirm the action for ⁨20⁩ items.</div> <div><button>Yes, perform action for ⁨20⁩ items</button> <button>Cancel</button></div><!----><!--]--><!--]-->",
46+
"head": "",
47+
"html": "<!--[--><!--[--><div>Please confirm the action for ⁨20⁩ items.</div> <div><button>Yes, perform action for ⁨20⁩ items</button> <button>Cancel</button></div><!----><!--]--><!--]-->",
48+
}
49+
`;
50+
51+
exports[`Example localized/dynamic-text/App.svelte > should render 1`] = `
52+
{
53+
"body": "<!--[--><!--[!-->You have ⁨10⁩ unread emails.<!--]--><!--]-->",
54+
"head": "",
55+
"html": "<!--[--><!--[!-->You have ⁨10⁩ unread emails.<!--]--><!--]-->",
56+
}
57+
`;
58+
59+
exports[`Example localized/static-text/App.svelte > should render 1`] = `
60+
{
61+
"body": "<!--[--><!--[!-->Hello, world!<!--]--><!--]-->",
62+
"head": "",
63+
"html": "<!--[--><!--[!-->Hello, world!<!--]--><!--]-->",
64+
}
65+
`;
66+
67+
exports[`Example localized-legacy/attributes/App.svelte > should render 1`] = `
68+
{
69+
"body": "<!--[--><!--[--><!----><div>Please confirm the action.</div> <div><button>Ok</button> <button>Cancel</button></div><!----><!----><!--]--><!--]-->",
70+
"head": "",
71+
"html": "<!--[--><!--[--><!----><div>Please confirm the action.</div> <div><button>Ok</button> <button>Cancel</button></div><!----><!----><!--]--><!--]-->",
72+
}
73+
`;
74+
75+
exports[`Example overlay/dynamic-text/App.svelte > should render 1`] = `
76+
{
77+
"body": "<!--[--><svelte-fluent-overlay style="display: contents;">You can download "Example Product" by clicking
78+
on the <strong>Download</strong> button or read
79+
the <a data-l10n-name="release-notes" href="https://example.com/" target="_blank" rel="noreferrer">release notes</a> to learn more.</svelte-fluent-overlay><!--]-->",
80+
"head": "<!--[--><template><a data-l10n-name="release-notes" href="https://example.com/" target="_blank" rel="noreferrer"></a><!----></template><!--]-->",
81+
"html": "<!--[--><svelte-fluent-overlay style="display: contents;">You can download "Example Product" by clicking
82+
on the <strong>Download</strong> button or read
83+
the <a data-l10n-name="release-notes" href="https://example.com/" target="_blank" rel="noreferrer">release notes</a> to learn more.</svelte-fluent-overlay><!--]-->",
84+
}
85+
`;
86+
87+
exports[`Example overlay/static-text/App.svelte > should render 1`] = `
88+
{
89+
"body": "<!--[--><svelte-fluent-overlay style="display: contents;">Read the <a data-l10n-name="link" href="https://example.com/">documentation</a> for more information.</svelte-fluent-overlay><!--]-->",
90+
"head": "<!--[--><template><a data-l10n-name="link" href="https://example.com/"></a><!----></template><!--]-->",
91+
"html": "<!--[--><svelte-fluent-overlay style="display: contents;">Read the <a data-l10n-name="link" href="https://example.com/">documentation</a> for more information.</svelte-fluent-overlay><!--]-->",
92+
}
93+
`;
94+
95+
exports[`Example provider/App.svelte > should render 1`] = `
96+
{
97+
"body": "<!--[--><!----><!--[!-->Hello, world!<!--]--><!----><!--]-->",
98+
"head": "",
99+
"html": "<!--[--><!----><!--[!-->Hello, world!<!--]--><!----><!--]-->",
100+
}
101+
`;
102+
103+
exports[`Example tutorial/attributes/App.svelte > should render 1`] = `
104+
{
105+
"body": "<!--[--><!--[--><label>Login <input type="email" placeholder="email@example.com" title="Type your login email" aria-label="Login input value"/></label><!----><!--]--><!--]-->",
106+
"head": "",
107+
"html": "<!--[--><!--[--><label>Login <input type="email" placeholder="email@example.com" title="Type your login email" aria-label="Login input value"/></label><!----><!--]--><!--]-->",
108+
}
109+
`;
110+
111+
exports[`Example tutorial/first-steps/App.svelte > should render 1`] = `
112+
{
113+
"body": "<!--[--><!--[!-->Hello, world!<!--]--><!--]-->",
114+
"head": "",
115+
"html": "<!--[--><!--[!-->Hello, world!<!--]--><!--]-->",
116+
}
117+
`;
118+
119+
exports[`Example tutorial/interpolation/App.svelte > should render 1`] = `
120+
{
121+
"body": "<!--[--><!--[!-->Hello, ⁨everyone⁩!<!--]--><!--]-->",
122+
"head": "",
123+
"html": "<!--[--><!--[!-->Hello, ⁨everyone⁩!<!--]--><!--]-->",
124+
}
125+
`;
126+
127+
exports[`Example tutorial/interpolation-custom-functions/App.svelte > should render 1`] = `
128+
{
129+
"body": "<!--[--><div><!--[!-->Weekday ⁨2⁩ is ⁨Tuesday⁩<!--]--><!----></div> <div><!--[!-->Weekday of ⁨2/6/2024⁩ is ⁨Tuesday⁩<!--]--><!----></div><!--]-->",
130+
"head": "",
131+
"html": "<!--[--><div><!--[!-->Weekday ⁨2⁩ is ⁨Tuesday⁩<!--]--><!----></div> <div><!--[!-->Weekday of ⁨2/6/2024⁩ is ⁨Tuesday⁩<!--]--><!----></div><!--]-->",
132+
}
133+
`;
134+
135+
exports[`Example tutorial/interpolation-formatting/App.svelte > should render 1`] = `
136+
{
137+
"body": "<!--[--><div><!--[!-->Your DPI ratio is ⁨1.778⁩<!--]--><!----></div> <div><!--[!-->Your account balance is ⁨$1,234.56⁩<!--]--><!----></div> <div><!--[!-->Today is ⁨September 13, 2022⁩<!--]--><!----></div><!--]-->",
138+
"head": "",
139+
"html": "<!--[--><div><!--[!-->Your DPI ratio is ⁨1.778⁩<!--]--><!----></div> <div><!--[!-->Your account balance is ⁨$1,234.56⁩<!--]--><!----></div> <div><!--[!-->Today is ⁨September 13, 2022⁩<!--]--><!----></div><!--]-->",
140+
}
141+
`;
142+
143+
exports[`Example tutorial/multi-language/App.svelte > should render 1`] = `
144+
{
145+
"body": "<!--[--><!--[!-->Hello, world!<!--]--><!--]-->",
146+
"head": "",
147+
"html": "<!--[--><!--[!-->Hello, world!<!--]--><!--]-->",
148+
}
149+
`;
150+
151+
exports[`Example tutorial/translation-files/App.svelte > should render 1`] = `
152+
{
153+
"body": "<!--[--><!--[!-->Hello, world!<!--]--><!--]-->",
154+
"head": "",
155+
"html": "<!--[--><!--[!-->Hello, world!<!--]--><!--]-->",
156+
}
157+
`;

testsuite/tests/ssr/__snapshots__/svelte@5/cases.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ exports[`Case localize-store/Test.svelte > should render 1`] = `
2222

2323
exports[`Case overlay-rendering/Test.svelte > should render 1`] = `
2424
{
25-
"body": "<!--[--><svelte-fluent-overlay style="display: contents;">This <a data-l10n-name="link" href="https://example.com/">link</a> is rendered with Overlay.</svelte-fluent-overlay><!--]-->",
25+
"body": "<!--[--><svelte-fluent-overlay style="display: contents;"></svelte-fluent-overlay><!--]-->",
2626
"head": "<!--[--><template><a data-l10n-name="link" href="https://example.com/"></a><!----></template><!--]-->",
27-
"html": "<!--[--><svelte-fluent-overlay style="display: contents;">This <a data-l10n-name="link" href="https://example.com/">link</a> is rendered with Overlay.</svelte-fluent-overlay><!--]-->",
27+
"html": "<!--[--><svelte-fluent-overlay style="display: contents;"></svelte-fluent-overlay><!--]-->",
2828
}
2929
`;
3030

0 commit comments

Comments
 (0)