Skip to content

Commit 5b1fa92

Browse files
authored
chore: update pnpm, TS, dependencies and playwright (#640)
* pnpm is upgraded to 10.17.0 or higher * playwright update to 1.55 * TypeScript to 5.9.2 * update other dependencies
2 parents a2cbf44 + f8faf16 commit 5b1fa92

File tree

10 files changed

+4066
-3342
lines changed

10 files changed

+4066
-3342
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use Playwright's base image
2-
FROM mcr.microsoft.com/playwright:v1.49.0-jammy
2+
FROM mcr.microsoft.com/playwright:v1.55.0-jammy
33

44
# Set the working directory
55
WORKDIR /work
@@ -9,7 +9,7 @@ COPY .npmrc .npmrc
99
COPY package.json package.json
1010

1111
# Install PNPM
12-
RUN corepack enable && corepack prepare pnpm@8.15.5 --activate
12+
RUN corepack enable && corepack prepare pnpm@10.17.0 --activate
1313

1414
# Get pnpm to install the version of Node declared in .npmrc
1515
RUN pnpm exec ls

examples/tests/mount-pivot.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ export default async function ({ renderer, testRoot }: ExampleSettings) {
9797
mount: 0.5,
9898
});
9999

100-
101100
setTimeout(async () => {
102101
const dimension = node
103102
.animate(

examples/tests/render-bounds.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ export default async function ({ renderer, testRoot }: ExampleSettings) {
3737
});
3838

3939
let redRectAnimation: IAnimationController | null = null;
40-
40+
4141
setTimeout(async () => {
42-
4342
while (true) {
4443
redRectAnimation = redRect
4544
.animate(
@@ -89,9 +88,8 @@ export default async function ({ renderer, testRoot }: ExampleSettings) {
8988
});
9089

9190
let blueRectAnimation: IAnimationController | null = null;
92-
91+
9392
setTimeout(async () => {
94-
9593
while (true) {
9694
blueRectAnimation = blueRect
9795
.animate(

examples/tests/robot.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,7 @@ export default async function ({ renderer, testRoot }: ExampleSettings) {
108108
parent: robot,
109109
});
110110

111-
112111
setTimeout(async () => {
113-
114112
while (true) {
115113
await robotCore
116114
.animate({ y: 10 }, { duration: 500 })
@@ -143,7 +141,6 @@ export default async function ({ renderer, testRoot }: ExampleSettings) {
143141
parent: testRoot,
144142
});
145143

146-
147144
setTimeout(async () => {
148145
await openGroundDoors(1000);
149146
await robot

examples/tests/viewport-events-canvas.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ export default async function ({ renderer, testRoot }: ExampleSettings) {
173173
.waitUntilStopped();
174174

175175
if (runAnimation) {
176-
177176
setTimeout(animate, 2000);
178177
}
179178
};
@@ -184,7 +183,6 @@ export default async function ({ renderer, testRoot }: ExampleSettings) {
184183
runAnimation = !runAnimation;
185184

186185
if (runAnimation) {
187-
188186
animate();
189187
}
190188
}

examples/tests/viewport-events.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,6 @@ export default async function test({ renderer, testRoot }: ExampleSettings) {
314314
.waitUntilStopped();
315315

316316
if (runAnimation) {
317-
318317
setTimeout(animate, 2000);
319318
}
320319
};
@@ -467,7 +466,6 @@ export default async function test({ renderer, testRoot }: ExampleSettings) {
467466
runAnimation = !runAnimation;
468467

469468
if (runAnimation) {
470-
471469
animate();
472470
}
473471
}

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,19 @@
5252
},
5353
"homepage": "https://github.com/lightning-js/renderer#readme",
5454
"devDependencies": {
55-
"@types/node": "^20.0.0",
56-
"@typescript-eslint/eslint-plugin": "^8.16.0",
57-
"@typescript-eslint/parser": "^8.16.0",
58-
"@vitest/coverage-v8": "^2.1.5",
59-
"concurrently": "^8.0.1",
60-
"eslint": "^9.15.0",
61-
"eslint-config-prettier": "^8.7.0",
55+
"@types/node": "^20.19.17",
56+
"@typescript-eslint/eslint-plugin": "^8.44.0",
57+
"@typescript-eslint/parser": "^8.44.0",
58+
"@vitest/coverage-v8": "^2.1.9",
59+
"concurrently": "^8.2.2",
60+
"eslint": "^9.36.0",
61+
"eslint-config-prettier": "^8.10.2",
6262
"husky": "^8.0.3",
63-
"lint-staged": "^13.2.0",
64-
"prettier": "^2.8.4",
65-
"typedoc": "^0.26.11",
66-
"typescript": "~5.6.3",
67-
"vitest": "^2.0.0",
63+
"lint-staged": "^13.3.0",
64+
"prettier": "^2.8.8",
65+
"typedoc": "^0.28.13",
66+
"typescript": "~5.9.2",
67+
"vitest": "^2.1.9",
6868
"vitest-mock-extended": "^2.0.2"
6969
},
7070
"lint-staged": {
@@ -83,10 +83,10 @@
8383
"README.md",
8484
"scripts"
8585
],
86-
"packageManager": "pnpm@8.9.2",
86+
"packageManager": "pnpm@10.17.0",
8787
"engines": {
8888
"npm": ">= 10.0.0",
89-
"pnpm": ">= 8.9.2",
89+
"pnpm": ">= 10.17.0",
9090
"node": ">= 18.0.0"
9191
}
9292
}

0 commit comments

Comments
 (0)