Skip to content

Commit 627fb81

Browse files
committed
Merge branch 'main' into renovate/all-minor-patch
2 parents a20237b + e2232ba commit 627fb81

File tree

10 files changed

+38
-46
lines changed

10 files changed

+38
-46
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# build and test on linux, windows, mac with node 18,20
21
name: CI
32

43
on:
@@ -22,15 +21,15 @@ permissions:
2221
contents: read # to fetch code (actions/checkout)
2322

2423
jobs:
25-
# "checks" job runs on linux + 16 only and checks that install, build, lint and audit work
24+
# "checks" job runs on linux + node lts only and checks that install, build, lint and audit work
2625
# it also primes the pnpm store cache for linux, important for downstream tests
2726
checks:
2827
timeout-minutes: 5
2928
runs-on: ${{ matrix.os }}
3029
strategy:
3130
matrix:
3231
# pseudo-matrix for convenience, NEVER use more than a single combination
33-
node: [20]
32+
node: [22]
3433
os: [ubuntu-latest]
3534
steps:
3635
- uses: actions/checkout@v4
@@ -68,18 +67,19 @@ jobs:
6867
if: (${{ success() }} || ${{ failure() }})
6968
run: pnpm generate:types && [ "`git status --porcelain=v1`" == "" ]
7069

70+
# "test" job runs on linux, windows, mac with node active lts and linux with node maintenance lts
7171
test:
7272
timeout-minutes: 10
7373
runs-on: ${{ matrix.os }}
7474
strategy:
7575
fail-fast: false
7676
matrix:
77-
node: [20]
77+
node: [22]
7878
os: [ubuntu-latest, macos-latest, windows-latest]
7979
include:
8080
- node: 18
8181
os: ubuntu-latest
82-
- node: 22
82+
- node: 20
8383
os: ubuntu-latest
8484
steps:
8585
- uses: actions/checkout@v4

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
matrix:
2121
# pseudo-matrix for convenience, NEVER use more than a single combination
22-
node: [20]
22+
node: [22]
2323
os: [ubuntu-latest]
2424
steps:
2525
- name: checkout

packages/e2e-tests/import-queries/__tests__/__snapshots__/svelte-5/direct-css.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ button.svelte-d8vj6a {
22
color: #000099;
33
}
44

5-
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRHVtbXkuc3ZlbHRlIiwibWFwcGluZ3MiOiJBQVdrQiIsIm5hbWVzIjpbXSwic291cmNlcyI6WyJEdW1teS5zdmVsdGUiXX0= */
5+
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRHVtbXkuc3ZlbHRlIiwibWFwcGluZ3MiOiJBQVdrQiIsIm5hbWVzIjpbXSwiaWdub3JlTGlzdCI6W10sInNvdXJjZXMiOlsiRHVtbXkuc3ZlbHRlIl19 */

packages/e2e-tests/import-queries/__tests__/__snapshots__/svelte-5/direct-js.txt

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,19 @@ import * as $ from "/node_modules/.vite/deps/svelte_internal_client.js?v=XXX";
44
var root = $.template(`<button class="svelte-d8vj6a"> </button>`);
55

66
export default function Dummy($$anchor, $$props) {
7-
let name = $.prop($$props, "name");
8-
let clicks = $.mutable_source(0);
7+
let name = $.prop($$props, "name", 8);
8+
let clicks = $.mutable_state(0);
99
var button = root();
1010
var text = $.child(button);
1111

12+
$.reset(button);
1213
$.template_effect(() => $.set_text(text, `${name() ?? ""} clicks: ${$.get(clicks) ?? ""}`));
1314

14-
$.event(
15-
"click",
16-
button,
17-
() => {
18-
$.update(clicks);
19-
},
20-
false
21-
);
15+
$.event("click", button, () => {
16+
$.update(clicks);
17+
});
2218

2319
$.append($$anchor, button);
2420
}
2521

26-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJtYXBwaW5ncyI6Ijs7Ozs7O0tBQ1ksSUFBWTtLQUNuQixNQUFNLG9CQUFHLENBQUM7Ozs7NkNBTVYsSUFBSSwwQkFBVyxNQUFNIiwibmFtZXMiOltdLCJzb3VyY2VzIjpbIkR1bW15LnN2ZWx0ZSJdfQ==
22+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJtYXBwaW5ncyI6Ijs7Ozs7O0tBQ1ksSUFBWTtLQUNuQixNQUFNLG1CQUFHLENBQUM7Ozs7OzZDQU1WLElBQUksMEJBQVcsTUFBTTs7O1dBRHhCLE1BQU0iLCJuYW1lcyI6W10sImlnbm9yZUxpc3QiOltdLCJzb3VyY2VzIjpbIkR1bW15LnN2ZWx0ZSJdfQ==

packages/e2e-tests/import-queries/__tests__/__snapshots__/svelte-5/ssr-custom-element.txt

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,28 @@ import * as $ from "svelte/internal/client";
33

44
var root = $.template(`<button class="svelte-d8vj6a"> </button>`);
55

6+
const $$css = {
7+
hash: "svelte-d8vj6a",
8+
code: "button.svelte-d8vj6a {\n color: #000099;\n}"
9+
};
10+
611
export default function Dummy($$anchor, $$props) {
712
$.push($$props, false);
13+
$.append_styles($$anchor, $$css);
814

9-
let name = $.prop($$props, "name", 4);
10-
let clicks = $.mutable_source(0);
15+
let name = $.prop($$props, "name", 12);
16+
let clicks = $.mutable_state(0);
1117
var button = root();
1218
var text = $.child(button);
1319

20+
$.reset(button);
1421
$.template_effect(() => $.set_text(text, `${name() ?? ""} clicks: ${$.get(clicks) ?? ""}`));
1522

16-
$.event(
17-
"click",
18-
button,
19-
() => {
20-
$.update(clicks);
21-
},
22-
false
23-
);
23+
$.event("click", button, () => {
24+
$.update(clicks);
25+
});
2426

2527
$.append($$anchor, button);
26-
$.append_styles($$anchor, "svelte-d8vj6a", "button.svelte-d8vj6a {\n color: #000099;\n}");
2728

2829
return $.pop({
2930
get name() {

packages/e2e-tests/import-queries/__tests__/__snapshots__/svelte-5/ssr-raw.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
>
1111

1212
<style lang="scss">
13+
@use 'sass:color';
1314
$blue: blue;
1415
button {
15-
color: darken($blue, 20);
16+
color: color.adjust($blue, $lightness: -20%);
1617
}
1718
</style>

packages/e2e-tests/import-queries/__tests__/__snapshots__/svelte-5/ssr-script.txt

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,17 @@ import * as $ from "svelte/internal/client";
44
var root = $.template(`<button class="svelte-d8vj6a"> </button>`);
55

66
export default function Dummy($$anchor, $$props) {
7-
let name = $.prop($$props, "name");
8-
let clicks = $.mutable_source(0);
7+
let name = $.prop($$props, "name", 8);
8+
let clicks = $.mutable_state(0);
99
var button = root();
1010
var text = $.child(button);
1111

12+
$.reset(button);
1213
$.template_effect(() => $.set_text(text, `${name() ?? ""} clicks: ${$.get(clicks) ?? ""}`));
1314

14-
$.event(
15-
"click",
16-
button,
17-
() => {
18-
$.update(clicks);
19-
},
20-
false
21-
);
15+
$.event("click", button, () => {
16+
$.update(clicks);
17+
});
2218

2319
$.append($$anchor, button);
2420
}

packages/e2e-tests/import-queries/__tests__/import-queries.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ describe('raw', () => {
8888
});
8989
});
9090

91-
describe.runIf(!isBuild).skip('direct', () => {
91+
describe.runIf(!isBuild)('direct', () => {
9292
test('Dummy.svelte?direct&svelte&type=style&sourcemap&lang.css', async () => {
9393
const response = await fetchFromPage(
9494
'src/Dummy.svelte?direct&svelte&type=style&sourcemap&lang.css',
@@ -116,7 +116,7 @@ describe.runIf(!isBuild).skip('direct', () => {
116116
});
117117
});
118118

119-
describe.runIf(!isBuild).skip('ssrLoadModule', () => {
119+
describe.runIf(!isBuild)('ssrLoadModule', () => {
120120
let vite: ViteDevServer;
121121
let ssrLoadDummy;
122122
beforeAll(async () => {

packages/e2e-tests/inspector-kit/__tests__/inspector.kit.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { getEl, getText, isBuild, page, isCI } from '~utils';
22

3-
// TODO reenable when inspector works for svelte5
4-
describe.skip('inspector-kit', () => {
3+
describe('inspector-kit', () => {
54
it('should render page', async () => {
65
expect(await getText('h1')).toBe('Hello Inspector!');
76
});

packages/e2e-tests/inspector-vite/__tests__/inspector.vite.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { getEl, getText, isBuild, page, isCI } from '~utils';
22

3-
// TODO reenable when inspector works for svelte5
4-
describe.skip('inspector-vite', () => {
3+
describe('inspector-vite', () => {
54
it('should render page', async () => {
65
expect(await getText('h1')).toBe('Hello Inspector!');
76
});

0 commit comments

Comments
 (0)