Skip to content

Commit 9678651

Browse files
authored
Chore: Downgrade to Node 20 (#619)
1 parent 1869219 commit 9678651

File tree

6 files changed

+22
-35
lines changed

6 files changed

+22
-35
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22.13.1
1+
20.19.0

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Base stage
2-
FROM node:22-alpine AS base
2+
FROM node:20-alpine AS base
33

44
ENV CHROME_BIN="/usr/bin/chromium-browser"
55
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"

debian.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:22-slim AS base
1+
FROM node:20-slim AS base
22

33
ENV CHROME_BIN="/usr/bin/google-chrome-stable"
44
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"@types/jest": "^29.5.12",
5555
"@types/jsdom": "20.0.0",
5656
"@types/multer": "^1.4.7",
57-
"@types/node": "^22.13.1",
57+
"@types/node": "^20.17.27",
5858
"@types/pixelmatch": "^5.2.6",
5959
"@types/supertest": "^2.0.15",
6060
"@typescript-eslint/eslint-plugin": "5.37.0",
@@ -88,6 +88,6 @@
8888
},
8989
"bin": "build/app.js",
9090
"engines": {
91-
"node": ">= 22"
91+
"node": ">= 20"
9292
}
9393
}

scripts/pkg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ if(platform === 'macos' && (arch.includes('arm'))) {
3131
const outputPath = "dist/" + (process.argv[3] || `plugin-${archArg}`);
3232
const outputNodeModules = `${outputPath}/node_modules`
3333

34-
childProcess.execSync(`"./node_modules/.bin/pkg" -t node22-${platform}-${arch} . --out-path ${outputPath} --no-native-build`, {stdio: 'inherit'});
34+
childProcess.execSync(`"./node_modules/.bin/pkg" -t node20-${platform}-${arch} . --out-path ${outputPath} --no-native-build`, {stdio: 'inherit'});
3535

3636
childProcess.execSync(`rm -rf ${outputNodeModules}`)

yarn.lock

Lines changed: 16 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,7 @@
12771277
dependencies:
12781278
"@types/express" "*"
12791279

1280-
"@types/node@*", "@types/node@>=13.7.0", "@types/node@^22.13.1":
1280+
"@types/node@*", "@types/node@>=13.7.0":
12811281
version "22.13.1"
12821282
resolved "https://registry.yarnpkg.com/@types/node/-/node-22.13.1.tgz#a2a3fefbdeb7ba6b89f40371842162fac0934f33"
12831283
integrity sha512-jK8uzQlrvXqEU91UxiK5J7pKHyzgnI1Qnl0QDHIgVGuolJhRb9EEl28Cj9b3rGR8B2lhFCtvIm5os8lFnO/1Ew==
@@ -1289,6 +1289,13 @@
12891289
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.9.1.tgz#0611b37db4246c937feef529ddcc018cf8e35708"
12901290
integrity sha512-QpLcX9ZSsq3YYUUnD3nFDY8H7wctAhQj/TFKL8Ya8v5fMm3CFXxo8zStsLAl780ltoYoo1WvKUVGBQK+1ifr7g==
12911291

1292+
"@types/node@^20.17.27":
1293+
version "20.17.27"
1294+
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.17.27.tgz#dbf0f9e6f905e9004045742f94e8413e20bad776"
1295+
integrity sha512-U58sbKhDrthHlxHRJw7ZLiLDZGmAUOZUbpw0S6nL27sYUdhvgBLCRu/keSd6qcTsfArd1sRFCCBxzWATGr/0UA==
1296+
dependencies:
1297+
undici-types "~6.19.2"
1298+
12921299
"@types/pako@^2.0.0":
12931300
version "2.0.3"
12941301
resolved "https://registry.yarnpkg.com/@types/pako/-/pako-2.0.3.tgz#b6993334f3af27c158f3fe0dfeeba987c578afb1"
@@ -6517,16 +6524,7 @@ string-length@^4.0.1:
65176524
char-regex "^1.0.2"
65186525
strip-ansi "^6.0.0"
65196526

6520-
"string-width-cjs@npm:string-width@^4.2.0":
6521-
version "4.2.3"
6522-
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
6523-
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
6524-
dependencies:
6525-
emoji-regex "^8.0.0"
6526-
is-fullwidth-code-point "^3.0.0"
6527-
strip-ansi "^6.0.1"
6528-
6529-
string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
6527+
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
65306528
version "4.2.3"
65316529
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
65326530
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -6609,14 +6607,7 @@ string_decoder@~1.1.1:
66096607
dependencies:
66106608
safe-buffer "~5.1.0"
66116609

6612-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
6613-
version "6.0.1"
6614-
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
6615-
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
6616-
dependencies:
6617-
ansi-regex "^5.0.1"
6618-
6619-
strip-ansi@^6.0.0, strip-ansi@^6.0.1:
6610+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
66206611
version "6.0.1"
66216612
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
66226613
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -7048,6 +7039,11 @@ unbzip2-stream@^1.4.3:
70487039
buffer "^5.2.1"
70497040
through "^2.3.8"
70507041

7042+
undici-types@~6.19.2:
7043+
version "6.19.8"
7044+
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.19.8.tgz#35111c9d1437ab83a7cdc0abae2f26d88eda0a02"
7045+
integrity sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==
7046+
70517047
undici-types@~6.20.0:
70527048
version "6.20.0"
70537049
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.20.0.tgz#8171bf22c1f588d1554d55bf204bc624af388433"
@@ -7316,7 +7312,7 @@ word-wrap@^1.2.5:
73167312
resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.5.tgz#d2c45c6dd4fbce621a66f136cbe328afd0410b34"
73177313
integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==
73187314

7319-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
7315+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
73207316
version "7.0.0"
73217317
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
73227318
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@@ -7334,15 +7330,6 @@ wrap-ansi@^6.2.0:
73347330
string-width "^4.1.0"
73357331
strip-ansi "^6.0.0"
73367332

7337-
wrap-ansi@^7.0.0:
7338-
version "7.0.0"
7339-
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
7340-
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
7341-
dependencies:
7342-
ansi-styles "^4.0.0"
7343-
string-width "^4.1.0"
7344-
strip-ansi "^6.0.0"
7345-
73467333
wrap-ansi@^8.1.0:
73477334
version "8.1.0"
73487335
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"

0 commit comments

Comments
 (0)