From b53e14b5849cca3cd1376af0a51c9b5887a05036 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 17 May 2024 18:47:21 +0000 Subject: [PATCH 1/2] chore(deps): update dependency @types/node to v20.12.12 --- .../typescript/hello-world/package-lock.json | 30 ++++++++++++++----- .../typescript/hello-world/package.json | 2 +- .../scheduled-function/package.json | 2 +- package-lock.json | 14 ++++----- package.json | 2 +- 5 files changed, 33 insertions(+), 17 deletions(-) diff --git a/functions-templates/typescript/hello-world/package-lock.json b/functions-templates/typescript/hello-world/package-lock.json index a4f4d348dd2..334e7fcdc3d 100644 --- a/functions-templates/typescript/hello-world/package-lock.json +++ b/functions-templates/typescript/hello-world/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "@netlify/functions": "^2.7.0", - "@types/node": "^14.0.0", + "@types/node": "^20.0.0", "typescript": "^4.0.0" } }, @@ -301,9 +301,12 @@ } }, "node_modules/@types/node": { - "version": "14.18.63", - "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.63.tgz", - "integrity": "sha512-fAtCfv4jJg+ExtXhvCkCqUKZ+4ok/JQk01qDKhL5BDDoS3AxKXhV5/MAVUZyQnSEd2GT92fkgZl0pz0Q0AzcIQ==" + "version": "20.12.12", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.12.tgz", + "integrity": "sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==", + "dependencies": { + "undici-types": "~5.26.4" + } }, "node_modules/lodash.merge": { "version": "4.6.2", @@ -322,6 +325,11 @@ "node": ">=4.2.0" } }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" + }, "node_modules/urlpattern-polyfill": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-8.0.2.tgz", @@ -516,9 +524,12 @@ "integrity": "sha512-yL0jI6Ltuz8R+Opj7jClGrul6pOoYrdfVmzQS4SITXRPH7I5IRZbrwe/6/v8v4WYMa6MYZG480S1+uc/IGfqsA==" }, "@types/node": { - "version": "14.18.63", - "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.63.tgz", - "integrity": "sha512-fAtCfv4jJg+ExtXhvCkCqUKZ+4ok/JQk01qDKhL5BDDoS3AxKXhV5/MAVUZyQnSEd2GT92fkgZl0pz0Q0AzcIQ==" + "version": "20.12.12", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.12.tgz", + "integrity": "sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==", + "requires": { + "undici-types": "~5.26.4" + } }, "lodash.merge": { "version": "4.6.2", @@ -530,6 +541,11 @@ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==" }, + "undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" + }, "urlpattern-polyfill": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-8.0.2.tgz", diff --git a/functions-templates/typescript/hello-world/package.json b/functions-templates/typescript/hello-world/package.json index acd9edf146c..3b79cfb9cf4 100644 --- a/functions-templates/typescript/hello-world/package.json +++ b/functions-templates/typescript/hello-world/package.json @@ -15,7 +15,7 @@ "license": "MIT", "dependencies": { "@netlify/functions": "^2.7.0", - "@types/node": "^14.0.0", + "@types/node": "^20.0.0", "typescript": "^4.0.0" } } diff --git a/functions-templates/typescript/scheduled-function/package.json b/functions-templates/typescript/scheduled-function/package.json index 3e8cbf0ba6e..a3334384899 100644 --- a/functions-templates/typescript/scheduled-function/package.json +++ b/functions-templates/typescript/scheduled-function/package.json @@ -16,7 +16,7 @@ "license": "MIT", "dependencies": { "@netlify/functions": "^2.7.0", - "@types/node": "^18.0.0", + "@types/node": "^20.0.0", "typescript": "^4.5.5" } } diff --git a/package-lock.json b/package-lock.json index a0f695391b8..894229150bc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -135,7 +135,7 @@ "@types/fs-extra": "11.0.4", "@types/inquirer": "9.0.7", "@types/jsonwebtoken": "9.0.6", - "@types/node": "20.9.0", + "@types/node": "20.12.12", "@types/node-fetch": "2.6.11", "@types/parse-gitignore": "1.0.2", "@types/prettyjson": "0.0.33", @@ -6361,9 +6361,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.9.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.9.0.tgz", - "integrity": "sha512-nekiGu2NDb1BcVofVcEKMIwzlx4NjHlcjhoxxKBNLtz15Y1z7MYf549DFvkHSId02Ax6kGwWntIBPC3l/JZcmw==", + "version": "20.12.12", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.12.tgz", + "integrity": "sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==", "dependencies": { "undici-types": "~5.26.4" } @@ -29265,9 +29265,9 @@ "dev": true }, "@types/node": { - "version": "20.9.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.9.0.tgz", - "integrity": "sha512-nekiGu2NDb1BcVofVcEKMIwzlx4NjHlcjhoxxKBNLtz15Y1z7MYf549DFvkHSId02Ax6kGwWntIBPC3l/JZcmw==", + "version": "20.12.12", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.12.tgz", + "integrity": "sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==", "requires": { "undici-types": "~5.26.4" } diff --git a/package.json b/package.json index 5eadbed9b36..6ea23f8e0f7 100644 --- a/package.json +++ b/package.json @@ -191,7 +191,7 @@ "@types/fs-extra": "11.0.4", "@types/inquirer": "9.0.7", "@types/jsonwebtoken": "9.0.6", - "@types/node": "20.9.0", + "@types/node": "20.12.12", "@types/node-fetch": "2.6.11", "@types/parse-gitignore": "1.0.2", "@types/prettyjson": "0.0.33", From 2d78088e341557931fae6c2a8abb22cc14a9d147 Mon Sep 17 00:00:00 2001 From: Mateusz Bocian Date: Fri, 17 May 2024 14:48:04 -0400 Subject: [PATCH 2/2] fix: remove unused ts-expect-error directive --- src/utils/live-tunnel.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/utils/live-tunnel.ts b/src/utils/live-tunnel.ts index 53e67b42dda..15c250e3008 100644 --- a/src/utils/live-tunnel.ts +++ b/src/utils/live-tunnel.ts @@ -61,7 +61,6 @@ const connectTunnel = function ({ localPort, netlifyApiToken, session }) { } const ps = execa(execPath, args, { stdio: 'inherit' }) - // @ts-expect-error TS(7006) FIXME: Parameter 'code' implicitly has an 'any' type. ps.on('close', (code) => process.exit(code)) ps.on('SIGINT', process.exit) ps.on('SIGTERM', process.exit)