From f2112530c2f5af5ef9e33e76a9114f887cf44051 Mon Sep 17 00:00:00 2001 From: Jordan Pina <106619535+jpina1-godaddy@users.noreply.github.com> Date: Mon, 11 Nov 2024 10:04:32 -0800 Subject: [PATCH] [PFX-802] Test node 22 (#957) * chore: prevent deprecation log * chore: update message * chore: package-lock * chore: set engine to node 22 * chore: added nvmrc and added node 20 to engine --- .nvmrc | 1 + package-lock.json | 78 ++++++++++++++++++++++++- package.json | 3 +- packages/create-gasket-app/lib/index.js | 3 + 4 files changed, 81 insertions(+), 4 deletions(-) create mode 100644 .nvmrc diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 000000000..2bd5a0a98 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +22 diff --git a/package-lock.json b/package-lock.json index 892295d9b..5fa13f31b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -188,6 +188,16 @@ "@algolia/transporter": "4.24.0" } }, + "node_modules/@algolia/client-common": { + "version": "5.13.0", + "resolved": "https://registry.npmjs.org/@algolia/client-common/-/client-common-5.13.0.tgz", + "integrity": "sha512-2SP6bGGWOTN920MLZv8s7yIR3OqY03vEe4U+vb2MGdL8a/8EQznF3L/nTC/rGf/hvEfZlX2tGFxPJaF2waravg==", + "dev": true, + "peer": true, + "engines": { + "node": ">= 14.0.0" + } + }, "node_modules/@algolia/client-personalization": { "version": "4.24.0", "resolved": "https://registry.npmjs.org/@algolia/client-personalization/-/client-personalization-4.24.0.tgz", @@ -211,6 +221,22 @@ "@algolia/transporter": "4.24.0" } }, + "node_modules/@algolia/client-search": { + "version": "5.13.0", + "resolved": "https://registry.npmjs.org/@algolia/client-search/-/client-search-5.13.0.tgz", + "integrity": "sha512-s2ge3uZ6Zg2sPSFibqijgEYsuorxcc8KVHg3I95nOPHvFHdnBtSHymhZvq4sp/fu8ijt/Y8jLwkuqm5myn+2Sg==", + "dev": true, + "peer": true, + "dependencies": { + "@algolia/client-common": "5.13.0", + "@algolia/requester-browser-xhr": "5.13.0", + "@algolia/requester-fetch": "5.13.0", + "@algolia/requester-node-http": "5.13.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, "node_modules/@algolia/events": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/@algolia/events/-/events-4.0.1.tgz", @@ -298,6 +324,19 @@ "@algolia/requester-common": "4.24.0" } }, + "node_modules/@algolia/requester-browser-xhr": { + "version": "5.13.0", + "resolved": "https://registry.npmjs.org/@algolia/requester-browser-xhr/-/requester-browser-xhr-5.13.0.tgz", + "integrity": "sha512-NV6oSCt5lFuzfsVQoSBpewEWf/h4ySr7pv2bfwu9yF/jc/g39pig8+YpuqsxlRWBm/lTGVA2V0Ai9ySwrNumIA==", + "dev": true, + "peer": true, + "dependencies": { + "@algolia/client-common": "5.13.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, "node_modules/@algolia/requester-common": { "version": "4.24.0", "resolved": "https://registry.npmjs.org/@algolia/requester-common/-/requester-common-4.24.0.tgz", @@ -305,6 +344,32 @@ "dev": true, "license": "MIT" }, + "node_modules/@algolia/requester-fetch": { + "version": "5.13.0", + "resolved": "https://registry.npmjs.org/@algolia/requester-fetch/-/requester-fetch-5.13.0.tgz", + "integrity": "sha512-094bK4rumf+rXJazxv3mq6eKRM0ep5AxIo8T0YmOdldswQt79apeufFiPLN19nHEWH22xR2FelimD+T/wRSP+Q==", + "dev": true, + "peer": true, + "dependencies": { + "@algolia/client-common": "5.13.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/requester-node-http": { + "version": "5.13.0", + "resolved": "https://registry.npmjs.org/@algolia/requester-node-http/-/requester-node-http-5.13.0.tgz", + "integrity": "sha512-JY5xhEYMgki53Wm+A6R2jUpOUdD0zZnBq+PC5R1TGMNOYL1s6JjDrJeMsvaI2YWxYMUSoCnRoltN/yf9RI8n3A==", + "dev": true, + "peer": true, + "dependencies": { + "@algolia/client-common": "5.13.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, "node_modules/@algolia/transporter": { "version": "4.24.0", "resolved": "https://registry.npmjs.org/@algolia/transporter/-/transporter-4.24.0.tgz", @@ -8923,6 +8988,7 @@ "os": [ "darwin" ], + "peer": true, "engines": { "node": ">=10" } @@ -8940,6 +9006,7 @@ "os": [ "darwin" ], + "peer": true, "engines": { "node": ">=10" } @@ -8957,6 +9024,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=10" } @@ -8974,6 +9042,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=10" } @@ -8991,6 +9060,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=10" } @@ -9008,6 +9078,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=10" } @@ -9025,6 +9096,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=10" } @@ -9042,6 +9114,7 @@ "os": [ "win32" ], + "peer": true, "engines": { "node": ">=10" } @@ -9059,6 +9132,7 @@ "os": [ "win32" ], + "peer": true, "engines": { "node": ">=10" } @@ -9076,6 +9150,7 @@ "os": [ "win32" ], + "peer": true, "engines": { "node": ">=10" } @@ -17090,7 +17165,6 @@ "version": "0.1.13", "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", - "dev": true, "license": "MIT", "optional": true, "dependencies": { @@ -17101,7 +17175,6 @@ "version": "0.6.3", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, "license": "MIT", "optional": true, "dependencies": { @@ -35567,7 +35640,6 @@ "version": "4.2.1", "resolved": "https://registry.npmjs.org/redux/-/redux-4.2.1.tgz", "integrity": "sha512-LAUYz4lc+Do8/g7aeRa8JkyDErK6ekstQaqWQrNRW//MY1TvCEpMtpTWvlQ+FPbWCx+Xixu/6SHt5N0HR+SB4w==", - "dev": true, "license": "MIT", "dependencies": { "@babel/runtime": "^7.9.2" diff --git a/package.json b/package.json index 4447f1aee..f7d6c2d54 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,8 @@ } }, "engines": { - "npm": ">=8.0.0" + "npm": ">=8.0.0", + "node": ">=20" }, "workspaces": [ "./packages/*", diff --git a/packages/create-gasket-app/lib/index.js b/packages/create-gasket-app/lib/index.js index e767d7b04..e3264cd28 100755 --- a/packages/create-gasket-app/lib/index.js +++ b/packages/create-gasket-app/lib/index.js @@ -19,6 +19,9 @@ const gasketBin = program async function main() { + // Suppress deprecation warning for punycode in node 22 + // @ts-ignore + process.noDeprecation = true; const { command, hidden, isDefault } = processCommand(createCommand); await warnIfOutdated(pkg.name, pkg.version); gasketBin.addCommand(command, { hidden, isDefault });