diff --git a/ai-platform/snippets/package.json b/ai-platform/snippets/package.json index 4d7ad0964f..b62fb56cf7 100644 --- a/ai-platform/snippets/package.json +++ b/ai-platform/snippets/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "files": [ "*.js" @@ -25,4 +25,3 @@ "sinon": "^18.0.0" } } - diff --git a/appengine/analytics/package.json b/appengine/analytics/package.json index a7fd7f1c91..11f2f6f4ed 100644 --- a/appengine/analytics/package.json +++ b/appengine/analytics/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": "20.x" + "node": "22.x" }, "scripts": { "start": "node app.js", @@ -19,7 +19,7 @@ }, "dependencies": { "express": "^4.16.4", - "node-fetch": "^3.0.0" + "node-fetch": "^2.7.0" }, "devDependencies": { "c8": "^10.0.0", diff --git a/appengine/building-an-app/build/package.json b/appengine/building-an-app/build/package.json index 1e1e483490..693eb4596a 100644 --- a/appengine/building-an-app/build/package.json +++ b/appengine/building-an-app/build/package.json @@ -14,7 +14,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": "20.x.x" + "node": "22.x" }, "author": "Google Inc.", "license": "Apache-2.0", diff --git a/appengine/building-an-app/update/package.json b/appengine/building-an-app/update/package.json index c320fc6474..114bd30629 100644 --- a/appengine/building-an-app/update/package.json +++ b/appengine/building-an-app/update/package.json @@ -14,7 +14,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": "20.x.x" + "node": "22.x" }, "author": "Google Inc.", "license": "Apache-2.0", diff --git a/appengine/datastore/package.json b/appengine/datastore/package.json index 49cf16bb96..81b10a2e0b 100644 --- a/appengine/datastore/package.json +++ b/appengine/datastore/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": "20.x" + "node": "22.x" }, "scripts": { "start": "node app.js", diff --git a/appengine/endpoints/package.json b/appengine/endpoints/package.json index e302c18171..92cbe3f02a 100644 --- a/appengine/endpoints/package.json +++ b/appengine/endpoints/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": "20.x" + "node": "22.x" }, "scripts": { "deploy": "gcloud app deploy", diff --git a/appengine/hello-world/flexible/package.json b/appengine/hello-world/flexible/package.json index 0a4ed0ec62..e25815b783 100644 --- a/appengine/hello-world/flexible/package.json +++ b/appengine/hello-world/flexible/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "start": "node app.js", diff --git a/appengine/hello-world/flexible_nodejs16_and_earlier/package.json b/appengine/hello-world/flexible_nodejs16_and_earlier/package.json index ad9e77f4e5..920a0487fe 100644 --- a/appengine/hello-world/flexible_nodejs16_and_earlier/package.json +++ b/appengine/hello-world/flexible_nodejs16_and_earlier/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": "=v16.20.2" + "node": "22.x" }, "scripts": { "start": "node app.js", diff --git a/appengine/hello-world/standard/package.json b/appengine/hello-world/standard/package.json index 9746fa5b43..c6d2dcd220 100644 --- a/appengine/hello-world/standard/package.json +++ b/appengine/hello-world/standard/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "start": "node app.js", diff --git a/appengine/memcached/package.json b/appengine/memcached/package.json index 264c3499db..2ecc28ad52 100644 --- a/appengine/memcached/package.json +++ b/appengine/memcached/package.json @@ -6,7 +6,7 @@ "license": "Apache Version 2.0", "author": "Google Inc.", "engines": { - "node": "20.x" + "node": "22.x" }, "scripts": { "start": "node app.js", diff --git a/appengine/metadata/flexible/package.json b/appengine/metadata/flexible/package.json index d5ed439c21..ab464d5c82 100644 --- a/appengine/metadata/flexible/package.json +++ b/appengine/metadata/flexible/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">= 18.x.x" + "node": "22.x" }, "scripts": { "system-test": "c8 mocha -p -j 2 --exit test/*.test.js", @@ -18,7 +18,7 @@ }, "dependencies": { "express": "^4.17.1", - "node-fetch": "^3.0.0" + "node-fetch": "^2.7.0" }, "devDependencies": { "c8": "^10.0.0", diff --git a/appengine/metadata/flexible_nodejs16_and_earlier/package.json b/appengine/metadata/flexible_nodejs16_and_earlier/package.json index ea7ce8d0e5..acea49dfd8 100644 --- a/appengine/metadata/flexible_nodejs16_and_earlier/package.json +++ b/appengine/metadata/flexible_nodejs16_and_earlier/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": "16.x.x" + "node": "22.x" }, "scripts": { "system-test": "c8 mocha -p -j 2 --exit test/*.test.js", @@ -18,7 +18,7 @@ }, "dependencies": { "express": "^4.17.1", - "node-fetch": "^2.6.1" + "node-fetch": "^2.7.0" }, "devDependencies": { "c8": "^8.0.0", diff --git a/appengine/metadata/standard/package.json b/appengine/metadata/standard/package.json index 8b6e3e4250..129701d191 100644 --- a/appengine/metadata/standard/package.json +++ b/appengine/metadata/standard/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": "20.x" + "node": "22.x" }, "scripts": { "system-test": "c8 mocha -p -j 2 --exit test/*.test.js", @@ -18,7 +18,7 @@ }, "dependencies": { "express": "^4.17.1", - "node-fetch": "^3.0.0" + "node-fetch": "^2.7.0" }, "devDependencies": { "c8": "^10.0.0", diff --git a/appengine/pubsub/package.json b/appengine/pubsub/package.json index 95657ab8d9..b8f382a2db 100644 --- a/appengine/pubsub/package.json +++ b/appengine/pubsub/package.json @@ -6,7 +6,7 @@ "license": "Apache Version 2.0", "author": "Google Inc.", "engines": { - "node": "20.x" + "node": "22.x" }, "scripts": { "start": "node app.js", diff --git a/appengine/static-files/package.json b/appengine/static-files/package.json index 9445aee77f..2441010525 100644 --- a/appengine/static-files/package.json +++ b/appengine/static-files/package.json @@ -6,7 +6,7 @@ "license": "Apache Version 2.0", "author": "Google Inc.", "engines": { - "node": "20.x" + "node": "22.x" }, "scripts": { "start": "node app.js", diff --git a/appengine/storage/flexible/package.json b/appengine/storage/flexible/package.json index a9cb78e8e1..b1f7f96b4e 100644 --- a/appengine/storage/flexible/package.json +++ b/appengine/storage/flexible/package.json @@ -6,7 +6,7 @@ "test": "c8 mocha -p -j 2 system-test/*.test.js --exit --timeout=30000" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "dependencies": { "@google-cloud/storage": "^7.0.0", @@ -15,7 +15,7 @@ "pug": "^3.0.2" }, "devDependencies": { - "@types/express": "^4.17.17", + "@types/express": "^5.0.0", "@types/multer": "^1.4.7", "@types/proxyquire": "^1.3.28", "@types/supertest": "^6.0.0", diff --git a/appengine/storage/flexible_nodejs16_and_earlier/package.json b/appengine/storage/flexible_nodejs16_and_earlier/package.json index 4b8b4f3f8d..32fbe1496d 100644 --- a/appengine/storage/flexible_nodejs16_and_earlier/package.json +++ b/appengine/storage/flexible_nodejs16_and_earlier/package.json @@ -6,7 +6,7 @@ "test": "c8 mocha -p -j 2 system-test/*.test.js --exit --timeout=30000" }, "engines": { - "node": "16.x.x" + "node": "22.x" }, "dependencies": { "@google-cloud/storage": "^7.0.0", diff --git a/appengine/storage/standard/package.json b/appengine/storage/standard/package.json index a9cb78e8e1..b1f7f96b4e 100644 --- a/appengine/storage/standard/package.json +++ b/appengine/storage/standard/package.json @@ -6,7 +6,7 @@ "test": "c8 mocha -p -j 2 system-test/*.test.js --exit --timeout=30000" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "dependencies": { "@google-cloud/storage": "^7.0.0", @@ -15,7 +15,7 @@ "pug": "^3.0.2" }, "devDependencies": { - "@types/express": "^4.17.17", + "@types/express": "^5.0.0", "@types/multer": "^1.4.7", "@types/proxyquire": "^1.3.28", "@types/supertest": "^6.0.0", diff --git a/appengine/typescript/package.json b/appengine/typescript/package.json index be65b8723b..b09133d51f 100644 --- a/appengine/typescript/package.json +++ b/appengine/typescript/package.json @@ -6,7 +6,7 @@ "license": "Apache Version 2.0", "author": "Google Inc.", "engines": { - "node": "20.x" + "node": "22.x" }, "scripts": { "prepare": "npm run gcp-build", @@ -26,11 +26,11 @@ "express": "^4.16.3" }, "devDependencies": { - "@types/express": "^4.17.17", - "@types/node": "^20.0.0", + "@types/express": "^5.0.0", + "@types/node": "^22.0.0", "c8": "^10.0.0", "chai": "^4.5.0", - "gts": "^5.0.0", + "gts": "^6.0.0", "mocha": "^10.2.0", "typescript": "^5.0.0", "wait-port": "^1.0.0" diff --git a/appengine/websockets/package.json b/appengine/websockets/package.json index 411bf073d1..dd79202559 100644 --- a/appengine/websockets/package.json +++ b/appengine/websockets/package.json @@ -6,7 +6,7 @@ "license": "Apache Version 2.0", "author": "Google Inc.", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "deploy": "gcloud app deploy", diff --git a/asset/snippets/package.json b/asset/snippets/package.json index cb47edd476..05042cd682 100644 --- a/asset/snippets/package.json +++ b/asset/snippets/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=12.0.0" + "node": "22.x" }, "files": [ "*.js" @@ -25,7 +25,7 @@ "devDependencies": { "c8": "^10.0.0", "chai": "^4.5.0", - "gts": "^5.0.0", + "gts": "^6.0.0", "mocha": "^10.0.0", "sinon": "^18.0.0", "uuid": "^10.0.0" diff --git a/auth/package.json b/auth/package.json index 71988b2b5f..01d86c1dcc 100644 --- a/auth/package.json +++ b/auth/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test:auth": "c8 mocha -p -j 2 system-test/auth.test.js --timeout=30000", diff --git a/automl/package.json b/automl/package.json index ed73e722a7..b3c72de6ba 100644 --- a/automl/package.json +++ b/automl/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "repository": "googleapis/nodejs-automl", "private": true, diff --git a/batch/package.json b/batch/package.json index 236e107693..a53549f485 100644 --- a/batch/package.json +++ b/batch/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "files": [ "*.js" diff --git a/cloud-language/package.json b/cloud-language/package.json index 3842a0e2f2..909b9181b1 100644 --- a/cloud-language/package.json +++ b/cloud-language/package.json @@ -3,7 +3,7 @@ "license": "Apache-2.0", "author": "Google Inc.", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "repository": "googleapis/nodejs-language", "private": true, diff --git a/cloud-sql/mysql/mysql/Dockerfile b/cloud-sql/mysql/mysql/Dockerfile index aa8ccc39e9..7f8fcf80ee 100644 --- a/cloud-sql/mysql/mysql/Dockerfile +++ b/cloud-sql/mysql/mysql/Dockerfile @@ -14,7 +14,7 @@ # Use the official lightweight Node.js image. # https://hub.docker.com/_/node -FROM node:20-slim +FROM node:22-slim # Create and change to the app directory. WORKDIR /app diff --git a/cloud-sql/mysql/mysql/package.json b/cloud-sql/mysql/mysql/package.json index a9ee12aa61..9d8d7e6348 100644 --- a/cloud-sql/mysql/mysql/package.json +++ b/cloud-sql/mysql/mysql/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "start": "node server/server.js", diff --git a/cloud-sql/mysql/mysql2/Dockerfile b/cloud-sql/mysql/mysql2/Dockerfile index 91c87e8334..5b42797e4f 100644 --- a/cloud-sql/mysql/mysql2/Dockerfile +++ b/cloud-sql/mysql/mysql2/Dockerfile @@ -14,7 +14,7 @@ # Use the official lightweight Node.js image. # https://hub.docker.com/_/node -FROM node:20-slim +FROM node:22-slim # Create and change to the app directory. WORKDIR /app diff --git a/cloud-sql/mysql/mysql2/package.json b/cloud-sql/mysql/mysql2/package.json index fdc6554372..4a5400aa5b 100644 --- a/cloud-sql/mysql/mysql2/package.json +++ b/cloud-sql/mysql/mysql2/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "start": "node server/server.js", diff --git a/cloud-sql/postgres/knex/Dockerfile b/cloud-sql/postgres/knex/Dockerfile index 8457367715..c2c016828b 100644 --- a/cloud-sql/postgres/knex/Dockerfile +++ b/cloud-sql/postgres/knex/Dockerfile @@ -14,7 +14,7 @@ # Use the official lightweight Node.js image. # https://hub.docker.com/_/node -FROM node:20-slim +FROM node:22-slim # Create and change to the app directory. WORKDIR /app diff --git a/cloud-sql/postgres/knex/package.json b/cloud-sql/postgres/knex/package.json index 82e204f2f5..b3b22cbff6 100644 --- a/cloud-sql/postgres/knex/package.json +++ b/cloud-sql/postgres/knex/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "start": "node server/server.js", diff --git a/cloud-sql/sqlserver/mssql/Dockerfile b/cloud-sql/sqlserver/mssql/Dockerfile index d9371f5832..1f76f66b7d 100644 --- a/cloud-sql/sqlserver/mssql/Dockerfile +++ b/cloud-sql/sqlserver/mssql/Dockerfile @@ -15,7 +15,7 @@ # Use the official lightweight Node.js image. # https://hub.docker.com/_/node -FROM node:20-slim +FROM node:22-slim # Create and change to the app directory. WORKDIR /app diff --git a/cloud-sql/sqlserver/mssql/package.json b/cloud-sql/sqlserver/mssql/package.json index c048ae73a4..e87dcc4c5e 100644 --- a/cloud-sql/sqlserver/mssql/package.json +++ b/cloud-sql/sqlserver/mssql/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "start": "node server/server.js", diff --git a/cloud-sql/sqlserver/tedious/Dockerfile b/cloud-sql/sqlserver/tedious/Dockerfile index 20a5a67205..4265fd4de2 100644 --- a/cloud-sql/sqlserver/tedious/Dockerfile +++ b/cloud-sql/sqlserver/tedious/Dockerfile @@ -15,7 +15,7 @@ # Use the official lightweight Node.js image. # https://hub.docker.com/_/node -FROM node:20-slim +FROM node:22-slim # Create and change to the app directory. WORKDIR /app diff --git a/cloud-sql/sqlserver/tedious/package.json b/cloud-sql/sqlserver/tedious/package.json index 897a5bc7a5..f2e85c588e 100644 --- a/cloud-sql/sqlserver/tedious/package.json +++ b/cloud-sql/sqlserver/tedious/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "start": "node server/server.js", diff --git a/cloud-tasks/snippets/Dockerfile b/cloud-tasks/snippets/Dockerfile index aa93c76ca0..838f81afc1 100644 --- a/cloud-tasks/snippets/Dockerfile +++ b/cloud-tasks/snippets/Dockerfile @@ -1,6 +1,6 @@ # Use the official lightweight Node.js image. # https://hub.docker.com/_/node -FROM node:20-slim +FROM node:22-slim # Create and change to the app directory. WORKDIR /usr/src/app diff --git a/cloud-tasks/snippets/package.json b/cloud-tasks/snippets/package.json index 98a943e419..cdaf63ad72 100644 --- a/cloud-tasks/snippets/package.json +++ b/cloud-tasks/snippets/package.json @@ -5,7 +5,7 @@ "author": "Google Inc.", "private": true, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "files": [ "*.js" diff --git a/cloud-tasks/tutorial-gcf/app/package.json b/cloud-tasks/tutorial-gcf/app/package.json index b50f8b4c06..6caca78567 100644 --- a/cloud-tasks/tutorial-gcf/app/package.json +++ b/cloud-tasks/tutorial-gcf/app/package.json @@ -4,7 +4,7 @@ "main": "index.js", "private": true, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "start": "node index.js", diff --git a/cloud-tasks/tutorial-gcf/function/package.json b/cloud-tasks/tutorial-gcf/function/package.json index ee2ef53483..18435f373f 100644 --- a/cloud-tasks/tutorial-gcf/function/package.json +++ b/cloud-tasks/tutorial-gcf/function/package.json @@ -4,7 +4,7 @@ "main": "index.js", "private": true, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000" diff --git a/cloudbuild/package.json b/cloudbuild/package.json index e872969f39..66ff169e86 100644 --- a/cloudbuild/package.json +++ b/cloudbuild/package.json @@ -9,7 +9,7 @@ "author": "Google Inc.", "repository": "googleapis/nodejs-cloudbuild", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 system-test --timeout=800000" diff --git a/composer/functions/composer-storage-trigger/package.json b/composer/functions/composer-storage-trigger/package.json index f5549691f2..226fd3cb2e 100644 --- a/composer/functions/composer-storage-trigger/package.json +++ b/composer/functions/composer-storage-trigger/package.json @@ -3,10 +3,10 @@ "version": "0.0.1", "dependencies": { "form-data": "^4.0.0", - "node-fetch": "^3.0.0" + "node-fetch": "^2.7.0" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "private": true, "license": "Apache-2.0", diff --git a/composer/package.json b/composer/package.json index 861d14a013..956c319d78 100644 --- a/composer/package.json +++ b/composer/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 --exit test/*.test.js" diff --git a/compute/package.json b/compute/package.json index 131aac53f3..8255131923 100644 --- a/compute/package.json +++ b/compute/package.json @@ -3,7 +3,7 @@ "license": "Apache-2.0", "author": "Google Inc.", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "repository": "googleapis/nodejs-compute", "private": true, diff --git a/contact-center-insights/package.json b/contact-center-insights/package.json index 6c64c9994f..143bc6faa6 100644 --- a/contact-center-insights/package.json +++ b/contact-center-insights/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "files": [ "*.js" diff --git a/container-analysis/snippets/package.json b/container-analysis/snippets/package.json index 425af61fb7..ece5d7904a 100644 --- a/container-analysis/snippets/package.json +++ b/container-analysis/snippets/package.json @@ -8,7 +8,7 @@ "*.js" ], "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 --timeout 100000 test/**.test.js" diff --git a/container/package.json b/container/package.json index 37f7279944..891e583218 100644 --- a/container/package.json +++ b/container/package.json @@ -3,7 +3,7 @@ "license": "Apache-2.0", "author": "Google Inc.", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "repository": "googleapis/nodejs-cloud-container", "private": true, diff --git a/datacatalog/cloud-client/package.json b/datacatalog/cloud-client/package.json index 21cf33a18c..623e0ddbdd 100644 --- a/datacatalog/cloud-client/package.json +++ b/datacatalog/cloud-client/package.json @@ -7,7 +7,7 @@ "author": "Google LLC", "repository": "GoogleCloudPlatform/nodejs-docs-samples", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 system-test/*.test.js --timeout=60000" diff --git a/datacatalog/quickstart/package.json b/datacatalog/quickstart/package.json index 68bb12cb49..8be9a679d3 100644 --- a/datacatalog/quickstart/package.json +++ b/datacatalog/quickstart/package.json @@ -7,7 +7,7 @@ "author": "Google LLC", "repository": "GoogleCloudPlatform/nodejs-docs-samples", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 system-test/*.test.js --timeout=60000" diff --git a/datacatalog/snippets/package.json b/datacatalog/snippets/package.json index d775469d11..f98117c62d 100644 --- a/datacatalog/snippets/package.json +++ b/datacatalog/snippets/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "repository": "googleapis/nodejs-datacatalog", "private": true, diff --git a/datalabeling/package.json b/datalabeling/package.json index badd53b589..ab1a876b98 100644 --- a/datalabeling/package.json +++ b/datalabeling/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "files": [ "*.js", diff --git a/dataproc/package.json b/dataproc/package.json index e3516df867..84029bc76d 100644 --- a/dataproc/package.json +++ b/dataproc/package.json @@ -6,7 +6,7 @@ "*.js" ], "engines": { - "node": ">=12.0.0" + "node": "22.x" }, "repository": "googleapis/nodejs-dataproc", "private": true, diff --git a/datastore/functions/package.json b/datastore/functions/package.json index 38aca02bee..440dbf64d8 100644 --- a/datastore/functions/package.json +++ b/datastore/functions/package.json @@ -8,7 +8,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=5000" @@ -21,7 +21,7 @@ "c8": "^10.0.0", "child-process-promise": "^2.2.1", "mocha": "^10.0.0", - "node-fetch": "^3.0.0", + "node-fetch": "^2.7.0", "proxyquire": "^2.1.0", "sinon": "^18.0.0", "uuid": "^10.0.0", diff --git a/dialogflow-cx/package.json b/dialogflow-cx/package.json index 17c907f70b..79b4932187 100644 --- a/dialogflow-cx/package.json +++ b/dialogflow-cx/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "files": [ "*.js" diff --git a/dialogflow/package.json b/dialogflow/package.json index 13b2eeb85c..3d1bea6812 100644 --- a/dialogflow/package.json +++ b/dialogflow/package.json @@ -9,7 +9,7 @@ "resources" ], "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 system-test --timeout=600000" diff --git a/discoveryengine/package.json b/discoveryengine/package.json index 167a1015be..c9187005bb 100644 --- a/discoveryengine/package.json +++ b/discoveryengine/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "files": [ "*.js" diff --git a/dlp/package.json b/dlp/package.json index 2ba79f42e8..3274ecb3af 100644 --- a/dlp/package.json +++ b/dlp/package.json @@ -9,7 +9,7 @@ "*.js" ], "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 system-test/*.test.js --timeout=600000" @@ -22,7 +22,7 @@ "devDependencies": { "c8": "^10.0.0", "chai": "^4.5.0", - "mime": "^4.0.0", + "mime": "^3.0.0", "mocha": "^10.0.0", "pixelmatch": "^6.0.0", "pngjs": "^7.0.0", diff --git a/document-ai/package.json b/document-ai/package.json index a2cce35277..b2dd6baf1d 100644 --- a/document-ai/package.json +++ b/document-ai/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "files": [ "*.js" diff --git a/endpoints/getting-started-grpc/package.json b/endpoints/getting-started-grpc/package.json index 0d3b6b935a..c8a664747c 100644 --- a/endpoints/getting-started-grpc/package.json +++ b/endpoints/getting-started-grpc/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "start": "node server.js", @@ -26,4 +26,3 @@ "wait-port": "^1.0.4" } } - diff --git a/endpoints/getting-started/package.json b/endpoints/getting-started/package.json index a66f3dc59f..f18085940a 100644 --- a/endpoints/getting-started/package.json +++ b/endpoints/getting-started/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "start": "node app.js", diff --git a/error-reporting/package.json b/error-reporting/package.json index e55f01caf9..4ad7d6472f 100644 --- a/error-reporting/package.json +++ b/error-reporting/package.json @@ -9,7 +9,7 @@ "!test/" ], "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 --timeout=600000" diff --git a/eventarc/audit-storage/Dockerfile b/eventarc/audit-storage/Dockerfile index 711737d7a5..5c8be4aa62 100644 --- a/eventarc/audit-storage/Dockerfile +++ b/eventarc/audit-storage/Dockerfile @@ -16,7 +16,7 @@ # Use the official lightweight Node.js image. # https://hub.docker.com/_/node -FROM node:20-slim +FROM node:22-slim # Create and change to the app directory. WORKDIR /usr/src/app diff --git a/eventarc/audit-storage/package.json b/eventarc/audit-storage/package.json index 74a918235e..144a8eff69 100644 --- a/eventarc/audit-storage/package.json +++ b/eventarc/audit-storage/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">= 12.0.0" + "node": "22.x" }, "scripts": { "start": "node index.js", diff --git a/eventarc/generic/Dockerfile b/eventarc/generic/Dockerfile index 9246cecd1c..e366fbafb0 100644 --- a/eventarc/generic/Dockerfile +++ b/eventarc/generic/Dockerfile @@ -14,7 +14,7 @@ # Use the official lightweight Node.js image. # https://hub.docker.com/_/node -FROM node:20-slim +FROM node:22-slim # Create and change to the app directory. WORKDIR /usr/src/app diff --git a/eventarc/generic/package.json b/eventarc/generic/package.json index 99aef7c3fa..df46376886 100644 --- a/eventarc/generic/package.json +++ b/eventarc/generic/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">= 12.0.0" + "node": "22.x" }, "scripts": { "start": "node index.js", diff --git a/eventarc/pubsub/Dockerfile b/eventarc/pubsub/Dockerfile index 9246cecd1c..e366fbafb0 100644 --- a/eventarc/pubsub/Dockerfile +++ b/eventarc/pubsub/Dockerfile @@ -14,7 +14,7 @@ # Use the official lightweight Node.js image. # https://hub.docker.com/_/node -FROM node:20-slim +FROM node:22-slim # Create and change to the app directory. WORKDIR /usr/src/app diff --git a/eventarc/pubsub/package.json b/eventarc/pubsub/package.json index 7c2a765c3c..30d017ab81 100644 --- a/eventarc/pubsub/package.json +++ b/eventarc/pubsub/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">= 12.0.0" + "node": "22.x" }, "scripts": { "start": "node index.js", diff --git a/functions/billing/package.json b/functions/billing/package.json index 0c59d6c3e9..4c0c950556 100644 --- a/functions/billing/package.json +++ b/functions/billing/package.json @@ -5,7 +5,7 @@ "description": "Examples of integrating Cloud Functions with billing", "main": "index.js", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "compute-test": "c8 mocha -p -j 2 test/periodic.test.js --timeout=600000", @@ -17,7 +17,7 @@ "@google-cloud/billing": "^4.0.0", "@google-cloud/compute": "^4.0.0", "google-auth-library": "^9.0.0", - "googleapis": "^143.0.0", + "googleapis": "^144.0.0", "slack": "^11.0.1" }, "devDependencies": { diff --git a/functions/concepts/afterResponse/package.json b/functions/concepts/afterResponse/package.json index 6b32f840e4..0cac164270 100644 --- a/functions/concepts/afterResponse/package.json +++ b/functions/concepts/afterResponse/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "dependencies": { "@google-cloud/functions-framework": "^3.1.3" diff --git a/functions/concepts/afterTimeout/package.json b/functions/concepts/afterTimeout/package.json index e512261c8d..a27c4b4494 100644 --- a/functions/concepts/afterTimeout/package.json +++ b/functions/concepts/afterTimeout/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "dependencies": { "@google-cloud/functions-framework": "^3.1.3" diff --git a/functions/concepts/backgroundTermination/package.json b/functions/concepts/backgroundTermination/package.json index 73869e1ac6..40371bab29 100644 --- a/functions/concepts/backgroundTermination/package.json +++ b/functions/concepts/backgroundTermination/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "echo \"No tests exist for this sample.\"" diff --git a/functions/concepts/filesystem/package.json b/functions/concepts/filesystem/package.json index 92331e35ce..81464f2ed1 100644 --- a/functions/concepts/filesystem/package.json +++ b/functions/concepts/filesystem/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "dependencies": { "@google-cloud/functions-framework": "^3.1.2" diff --git a/functions/concepts/httpTermination/package.json b/functions/concepts/httpTermination/package.json index a21f066cb6..7281a4a9b8 100644 --- a/functions/concepts/httpTermination/package.json +++ b/functions/concepts/httpTermination/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "dependencies": { "@google-cloud/functions-framework": "^3.1.3" diff --git a/functions/concepts/package.json b/functions/concepts/package.json index 3faa393b8a..3a8b7d7df2 100644 --- a/functions/concepts/package.json +++ b/functions/concepts/package.json @@ -9,10 +9,10 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "dependencies": { - "node-fetch": "^3.0.0" + "node-fetch": "^2.7.0" }, "devDependencies": { "mocha": "^10.0.0", diff --git a/functions/concepts/requests/package.json b/functions/concepts/requests/package.json index c3cc301c1a..ba7483c3ad 100644 --- a/functions/concepts/requests/package.json +++ b/functions/concepts/requests/package.json @@ -9,11 +9,11 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "dependencies": { "@google-cloud/functions-framework": "^3.1.3", - "node-fetch": "^3.0.0" + "node-fetch": "^2.7.0" }, "scripts": { "test": "echo \"No tests exist for this sample.\"" diff --git a/functions/concepts/stateless/package.json b/functions/concepts/stateless/package.json index 4ac626ea93..d31ecca54b 100644 --- a/functions/concepts/stateless/package.json +++ b/functions/concepts/stateless/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "dependencies": { "@google-cloud/functions-framework": "^3.1.3" diff --git a/functions/env_vars/package.json b/functions/env_vars/package.json index f99e1fea61..54aa9340f5 100644 --- a/functions/env_vars/package.json +++ b/functions/env_vars/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=20000" diff --git a/functions/firebase/helloAnalytics/package.json b/functions/firebase/helloAnalytics/package.json index ab6a3b72f1..d40f2ea690 100644 --- a/functions/firebase/helloAnalytics/package.json +++ b/functions/firebase/helloAnalytics/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 -T 30s test/*.test.js" diff --git a/functions/firebase/helloAuth/package.json b/functions/firebase/helloAuth/package.json index e0057948a4..a2859d9b1a 100644 --- a/functions/firebase/helloAuth/package.json +++ b/functions/firebase/helloAuth/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 -T 30s test/*.test.js" diff --git a/functions/firebase/helloFirestore/package.json b/functions/firebase/helloFirestore/package.json index c010e65379..e7f38cdc9f 100644 --- a/functions/firebase/helloFirestore/package.json +++ b/functions/firebase/helloFirestore/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 -T 30s test/*.test.js" diff --git a/functions/firebase/helloRTDB/package.json b/functions/firebase/helloRTDB/package.json index 2667d6317a..ec7d2723eb 100644 --- a/functions/firebase/helloRTDB/package.json +++ b/functions/firebase/helloRTDB/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 -T 30s test/*.test.js" diff --git a/functions/firebase/helloRemoteConfig/package.json b/functions/firebase/helloRemoteConfig/package.json index 4395f1d6c3..02c6800f60 100644 --- a/functions/firebase/helloRemoteConfig/package.json +++ b/functions/firebase/helloRemoteConfig/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 -T 30s test/*.test.js" diff --git a/functions/firebase/makeUpperCase/package.json b/functions/firebase/makeUpperCase/package.json index 3ce9d98430..4be6b136c1 100644 --- a/functions/firebase/makeUpperCase/package.json +++ b/functions/firebase/makeUpperCase/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 -T 30s test/*.test.js" diff --git a/functions/firebase/package.json b/functions/firebase/package.json index b9ddfe1e02..6abe3393dc 100644 --- a/functions/firebase/package.json +++ b/functions/firebase/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "devDependencies": { "mocha": "^10.0.0", diff --git a/functions/helloworld/helloError/package.json b/functions/helloworld/helloError/package.json index 02515a5070..2a39f28dcd 100644 --- a/functions/helloworld/helloError/package.json +++ b/functions/helloworld/helloError/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --exit" diff --git a/functions/helloworld/helloGCS/package.json b/functions/helloworld/helloGCS/package.json index 00abd7607e..3a9a6cf81f 100644 --- a/functions/helloworld/helloGCS/package.json +++ b/functions/helloworld/helloGCS/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "unit-test": "c8 mocha -p -j 2 test/*unit*test.js test/*integration*test.js --timeout=6000 --exit", diff --git a/functions/helloworld/helloPubSub/package.json b/functions/helloworld/helloPubSub/package.json index 189d5931c3..bf010d9797 100644 --- a/functions/helloworld/helloPubSub/package.json +++ b/functions/helloworld/helloPubSub/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "unit-test": "c8 mocha -p -j 2 test/*unit*test.js test/*integration*test.js --timeout=6000 --exit", diff --git a/functions/helloworld/helloworldGet/package.json b/functions/helloworld/helloworldGet/package.json index d17681b8eb..6f6a3c7c85 100644 --- a/functions/helloworld/helloworldGet/package.json +++ b/functions/helloworld/helloworldGet/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=6000 --exit" diff --git a/functions/helloworld/helloworldHttp/package.json b/functions/helloworld/helloworldHttp/package.json index 97c20ad23d..cc3a9bf345 100644 --- a/functions/helloworld/helloworldHttp/package.json +++ b/functions/helloworld/helloworldHttp/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "unit-test": "c8 mocha -p -j 2 test/index.test.js test/*unit*test.js test/*integration*test.js --timeout=6000 --exit", diff --git a/functions/helloworld/package.json b/functions/helloworld/package.json index 4f5c8c8473..4fa690582a 100644 --- a/functions/helloworld/package.json +++ b/functions/helloworld/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "dependencies": { "@google-cloud/debug-agent": "^9.0.0", diff --git a/functions/http/corsEnabledFunction/package.json b/functions/http/corsEnabledFunction/package.json index 69bed9ba37..7e815f8076 100644 --- a/functions/http/corsEnabledFunction/package.json +++ b/functions/http/corsEnabledFunction/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000" diff --git a/functions/http/corsEnabledFunctionAuth/package.json b/functions/http/corsEnabledFunctionAuth/package.json index 1bc7a3b371..73b985c164 100644 --- a/functions/http/corsEnabledFunctionAuth/package.json +++ b/functions/http/corsEnabledFunctionAuth/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000" diff --git a/functions/http/httpContent/package.json b/functions/http/httpContent/package.json index 3ff8581ba8..f3732ae582 100644 --- a/functions/http/httpContent/package.json +++ b/functions/http/httpContent/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000" diff --git a/functions/http/httpMethods/package.json b/functions/http/httpMethods/package.json index 9837db712a..a9ac6f3035 100644 --- a/functions/http/httpMethods/package.json +++ b/functions/http/httpMethods/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000" diff --git a/functions/http/package.json b/functions/http/package.json index 84c1de6e1a..2349760619 100644 --- a/functions/http/package.json +++ b/functions/http/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "devDependencies": { "mocha": "^10.0.0", diff --git a/functions/http/parseXML/package.json b/functions/http/parseXML/package.json index 3b4eddc6f0..90e30c6c6a 100644 --- a/functions/http/parseXML/package.json +++ b/functions/http/parseXML/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=6000 --exit" diff --git a/functions/http/uploadFile/package.json b/functions/http/uploadFile/package.json index c58b7362e3..c384627225 100644 --- a/functions/http/uploadFile/package.json +++ b/functions/http/uploadFile/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "dependencies": { "@google-cloud/functions-framework": "^3.1.3", diff --git a/functions/imagemagick/package.json b/functions/imagemagick/package.json index 016d83e889..2b08b1a303 100644 --- a/functions/imagemagick/package.json +++ b/functions/imagemagick/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=20000 --exit" diff --git a/functions/log/helloWorld/package.json b/functions/log/helloWorld/package.json index b68e4d6422..cddd0553b7 100644 --- a/functions/log/helloWorld/package.json +++ b/functions/log/helloWorld/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=20000" diff --git a/functions/log/package.json b/functions/log/package.json index feb865c7ad..4055689ef5 100644 --- a/functions/log/package.json +++ b/functions/log/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "devDependencies": { "mocha": "^10.0.0", diff --git a/functions/log/processEntry/package.json b/functions/log/processEntry/package.json index 33ba16e805..fc53c814dd 100644 --- a/functions/log/processEntry/package.json +++ b/functions/log/processEntry/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=20000" diff --git a/functions/memorystore/redis/package.json b/functions/memorystore/redis/package.json index d3e29814a6..8b9f986b6a 100644 --- a/functions/memorystore/redis/package.json +++ b/functions/memorystore/redis/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "main": "index.js", "scripts": { diff --git a/functions/ocr/app/package.json b/functions/ocr/app/package.json index a54096f90a..88de02a7f8 100644 --- a/functions/ocr/app/package.json +++ b/functions/ocr/app/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=20000" diff --git a/functions/pubsub/package.json b/functions/pubsub/package.json index 12e8a55e2e..d20727e239 100644 --- a/functions/pubsub/package.json +++ b/functions/pubsub/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "dependencies": { "@google-cloud/pubsub": "^4.0.0" diff --git a/functions/pubsub/publish/package.json b/functions/pubsub/publish/package.json index cc101b93ef..45d4dab595 100644 --- a/functions/pubsub/publish/package.json +++ b/functions/pubsub/publish/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=20000 --exit" diff --git a/functions/pubsub/subscribe/package.json b/functions/pubsub/subscribe/package.json index e03880537a..7722c460c2 100644 --- a/functions/pubsub/subscribe/package.json +++ b/functions/pubsub/subscribe/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=20000 --exit" diff --git a/functions/scheduleinstance/package.json b/functions/scheduleinstance/package.json index d050b4e016..b2a230524a 100644 --- a/functions/scheduleinstance/package.json +++ b/functions/scheduleinstance/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=20000" diff --git a/functions/security/package.json b/functions/security/package.json index cce668cb47..82385d8237 100644 --- a/functions/security/package.json +++ b/functions/security/package.json @@ -9,13 +9,13 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js" }, "dependencies": { - "node-fetch": "^3.0.0" + "node-fetch": "^2.7.0" }, "devDependencies": { "c8": "^10.0.0", diff --git a/functions/slack/package.json b/functions/slack/package.json index de00569994..70fcfbc66e 100644 --- a/functions/slack/package.json +++ b/functions/slack/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=20000 --exit" diff --git a/functions/spanner/package.json b/functions/spanner/package.json index 774867f929..776b0ad325 100644 --- a/functions/spanner/package.json +++ b/functions/spanner/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=20000" diff --git a/functions/speech-to-speech/functions/package.json b/functions/speech-to-speech/functions/package.json index d7ac7cfd5b..e3b618d243 100644 --- a/functions/speech-to-speech/functions/package.json +++ b/functions/speech-to-speech/functions/package.json @@ -6,7 +6,7 @@ "author": "Google LLC", "private": true, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "repository": { "type": "git", @@ -37,7 +37,7 @@ "@google-cloud/text-to-speech": "^5.0.0", "@google-cloud/translate": "^8.0.0", "firebase-admin": "^12.0.0", - "firebase-functions": "^5.0.0", + "firebase-functions": "^6.0.0", "uuid": "^10.0.0" }, "devDependencies": { diff --git a/functions/tips/avoidInfiniteRetries/package.json b/functions/tips/avoidInfiniteRetries/package.json index 126464fabc..0649d18db8 100644 --- a/functions/tips/avoidInfiniteRetries/package.json +++ b/functions/tips/avoidInfiniteRetries/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "echo \"No tests exist for this sample.\"" diff --git a/functions/tips/connectionPools/package.json b/functions/tips/connectionPools/package.json index 10324b6aa2..15e07e8024 100644 --- a/functions/tips/connectionPools/package.json +++ b/functions/tips/connectionPools/package.json @@ -9,11 +9,11 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "dependencies": { "@google-cloud/functions-framework": "^3.1.2", - "node-fetch": "^3.0.0" + "node-fetch": "^2.7.0" }, "scripts": { "test": "echo \"No tests exist for this sample.\"" diff --git a/functions/tips/gcpApiCall/package.json b/functions/tips/gcpApiCall/package.json index 2f9ff121cd..c276e3af3b 100644 --- a/functions/tips/gcpApiCall/package.json +++ b/functions/tips/gcpApiCall/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000 --exit" diff --git a/functions/tips/lazyGlobals/package.json b/functions/tips/lazyGlobals/package.json index d74ec1d561..2812ca665b 100644 --- a/functions/tips/lazyGlobals/package.json +++ b/functions/tips/lazyGlobals/package.json @@ -9,12 +9,12 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "dependencies": { "@google-cloud/functions-framework": "^3.1.3" }, "scripts": { "test": "echo \"No tests exist for this sample.\"" - } + } } diff --git a/functions/tips/package.json b/functions/tips/package.json index db58b31e19..82c6ae298d 100644 --- a/functions/tips/package.json +++ b/functions/tips/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "echo \"Notice: tests moved into topic sub-directories\" && exit 0" @@ -19,7 +19,7 @@ "mocha": "^10.0.0" }, "devDependencies": { - "node-fetch": "^3.0.0", + "node-fetch": "^2.7.0", "sinon": "^18.0.0" } } diff --git a/functions/tips/retry/package.json b/functions/tips/retry/package.json index 15209e7f66..31e4cfb40d 100644 --- a/functions/tips/retry/package.json +++ b/functions/tips/retry/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000 --exit" diff --git a/functions/tips/scopeDemo/package.json b/functions/tips/scopeDemo/package.json index 9bd294252a..dd03850ddc 100644 --- a/functions/tips/scopeDemo/package.json +++ b/functions/tips/scopeDemo/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000" diff --git a/functions/v2/autoLabelInstance/package.json b/functions/v2/autoLabelInstance/package.json index 0e5734bd9f..b4569f7cda 100644 --- a/functions/v2/autoLabelInstance/package.json +++ b/functions/v2/autoLabelInstance/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/index.test.js", diff --git a/functions/v2/cloudEventLogging/package.json b/functions/v2/cloudEventLogging/package.json index 4329e29830..d20ba0d59d 100644 --- a/functions/v2/cloudEventLogging/package.json +++ b/functions/v2/cloudEventLogging/package.json @@ -6,7 +6,7 @@ "author": "Google LLC", "main": "index.js", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js" diff --git a/functions/v2/firebase/firestore/helloFirestore/package.json b/functions/v2/firebase/firestore/helloFirestore/package.json index 08c3a4211e..d74710fc63 100644 --- a/functions/v2/firebase/firestore/helloFirestore/package.json +++ b/functions/v2/firebase/firestore/helloFirestore/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 -T 30s test/*.test.js" diff --git a/functions/v2/firebase/firestore/makeUpperCase/package.json b/functions/v2/firebase/firestore/makeUpperCase/package.json index ac286a782b..c64e5f6bf0 100644 --- a/functions/v2/firebase/firestore/makeUpperCase/package.json +++ b/functions/v2/firebase/firestore/makeUpperCase/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 -T 30s test/*.test.js" diff --git a/functions/v2/firebase/remote-config/helloRemoteConfig/package.json b/functions/v2/firebase/remote-config/helloRemoteConfig/package.json index 349d7134e1..b3cbf51cbd 100644 --- a/functions/v2/firebase/remote-config/helloRemoteConfig/package.json +++ b/functions/v2/firebase/remote-config/helloRemoteConfig/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 -T 30s test/*.test.js" diff --git a/functions/v2/firebase/rtdb/helloRTDB/package.json b/functions/v2/firebase/rtdb/helloRTDB/package.json index c9214229bb..09cfdf1873 100644 --- a/functions/v2/firebase/rtdb/helloRTDB/package.json +++ b/functions/v2/firebase/rtdb/helloRTDB/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 -T 30s test/*.test.js" diff --git a/functions/v2/helloAuditLog/package.json b/functions/v2/helloAuditLog/package.json index c73316a5bd..1451241c90 100644 --- a/functions/v2/helloAuditLog/package.json +++ b/functions/v2/helloAuditLog/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000" diff --git a/functions/v2/helloBigQuery/package.json b/functions/v2/helloBigQuery/package.json index 19f72c4ca1..e3ea258c45 100644 --- a/functions/v2/helloBigQuery/package.json +++ b/functions/v2/helloBigQuery/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=20000 --exit" diff --git a/functions/v2/helloGCS/package.json b/functions/v2/helloGCS/package.json index 307aac2392..5f11f4f5f9 100644 --- a/functions/v2/helloGCS/package.json +++ b/functions/v2/helloGCS/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000" diff --git a/functions/v2/helloPubSub/package.json b/functions/v2/helloPubSub/package.json index c5432fd41d..cffd615d22 100644 --- a/functions/v2/helloPubSub/package.json +++ b/functions/v2/helloPubSub/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000" diff --git a/functions/v2/httpLogging/package.json b/functions/v2/httpLogging/package.json index 2466e87118..532d6ad244 100644 --- a/functions/v2/httpLogging/package.json +++ b/functions/v2/httpLogging/package.json @@ -6,7 +6,7 @@ "author": "Google LLC", "main": "index.js", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js", @@ -21,4 +21,4 @@ "mocha": "^10.0.0", "sinon": "^18.0.0" } -} \ No newline at end of file +} diff --git a/functions/v2/imagemagick/package.json b/functions/v2/imagemagick/package.json index 43e1ac3d46..865aac4df0 100644 --- a/functions/v2/imagemagick/package.json +++ b/functions/v2/imagemagick/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=20000 --exit" diff --git a/functions/v2/log/processEntry/package.json b/functions/v2/log/processEntry/package.json index 8a63b117a4..5a923224a1 100644 --- a/functions/v2/log/processEntry/package.json +++ b/functions/v2/log/processEntry/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=20000" diff --git a/functions/v2/ocr/app/package.json b/functions/v2/ocr/app/package.json index c3351a28bf..af35ab1cd8 100644 --- a/functions/v2/ocr/app/package.json +++ b/functions/v2/ocr/app/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=20000" diff --git a/functions/v2/responseStreaming/package.json b/functions/v2/responseStreaming/package.json index c8ea7719f4..ceaae839a7 100644 --- a/functions/v2/responseStreaming/package.json +++ b/functions/v2/responseStreaming/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=20000" diff --git a/functions/v2/tips/avoidInfiniteRetries/package.json b/functions/v2/tips/avoidInfiniteRetries/package.json index d37623027c..83a48ea071 100644 --- a/functions/v2/tips/avoidInfiniteRetries/package.json +++ b/functions/v2/tips/avoidInfiniteRetries/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000" diff --git a/functions/v2/tips/retry/package.json b/functions/v2/tips/retry/package.json index 211ca2ef85..8cc2dbdf88 100644 --- a/functions/v2/tips/retry/package.json +++ b/functions/v2/tips/retry/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000 --exit" diff --git a/generative-ai/snippets/package.json b/generative-ai/snippets/package.json index 1aedba79e3..a40ff3a8a1 100644 --- a/generative-ai/snippets/package.json +++ b/generative-ai/snippets/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "files": [ "*.js" diff --git a/healthcare/consent/package.json b/healthcare/consent/package.json index 8e610ed312..a149b9eee0 100644 --- a/healthcare/consent/package.json +++ b/healthcare/consent/package.json @@ -6,7 +6,7 @@ "author": "Google LLC", "repository": "GoogleCloudPlatform/nodejs-docs-samples", "engines": { - "node": ">=12.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 system-test/*.test.js --timeout=60000" diff --git a/healthcare/datasets/package.json b/healthcare/datasets/package.json index 8e610ed312..a149b9eee0 100644 --- a/healthcare/datasets/package.json +++ b/healthcare/datasets/package.json @@ -6,7 +6,7 @@ "author": "Google LLC", "repository": "GoogleCloudPlatform/nodejs-docs-samples", "engines": { - "node": ">=12.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 system-test/*.test.js --timeout=60000" diff --git a/healthcare/dicom/package.json b/healthcare/dicom/package.json index 59fe7d1b58..c348337eba 100644 --- a/healthcare/dicom/package.json +++ b/healthcare/dicom/package.json @@ -6,7 +6,7 @@ "author": "Google LLC", "repository": "GoogleCloudPlatform/nodejs-docs-samples", "engines": { - "node": ">=12.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 system-test/*.test.js --timeout=60000" diff --git a/healthcare/fhir/package.json b/healthcare/fhir/package.json index abb74033ed..f793f54601 100644 --- a/healthcare/fhir/package.json +++ b/healthcare/fhir/package.json @@ -6,7 +6,7 @@ "author": "Google LLC", "repository": "GoogleCloudPlatform/nodejs-docs-samples", "engines": { - "node": ">=12.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 system-test/*.test.js --timeout=60000" diff --git a/healthcare/hl7v2/package.json b/healthcare/hl7v2/package.json index e72bd475c5..e87dc2014e 100644 --- a/healthcare/hl7v2/package.json +++ b/healthcare/hl7v2/package.json @@ -6,7 +6,7 @@ "author": "Google LLC", "repository": "GoogleCloudPlatform/nodejs-docs-samples", "engines": { - "node": ">=12.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 system-test/*.test.js --timeout=60000" diff --git a/iam/deny/package.json b/iam/deny/package.json index 2b4e04eacf..f36c2aace2 100644 --- a/iam/deny/package.json +++ b/iam/deny/package.json @@ -8,7 +8,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000" diff --git a/kms/package.json b/kms/package.json index 26be9f131a..2c3e724217 100644 --- a/kms/package.json +++ b/kms/package.json @@ -8,7 +8,7 @@ "author": "Google LLC", "repository": "googleapis/nodejs-kms", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 --recursive test/ --timeout=800000" diff --git a/media/livestream/package.json b/media/livestream/package.json index f905e3ed86..6dda1fbd92 100644 --- a/media/livestream/package.json +++ b/media/livestream/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=12.0.0" + "node": "22.x" }, "files": [ "*.js" diff --git a/media/transcoder/package.json b/media/transcoder/package.json index 10fc880306..9847504bf1 100644 --- a/media/transcoder/package.json +++ b/media/transcoder/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "files": [ "*.js", diff --git a/media/video-stitcher/package.json b/media/video-stitcher/package.json index 8a6c1b873e..162c033f79 100644 --- a/media/video-stitcher/package.json +++ b/media/video-stitcher/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=10" + "node": "22.x" }, "files": [ "*.js" diff --git a/mediatranslation/package.json b/mediatranslation/package.json index fa4c5f93b1..e9f30fbeb4 100644 --- a/mediatranslation/package.json +++ b/mediatranslation/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "files": [ "*.js" @@ -21,4 +21,4 @@ "chai": "^4.5.0", "mocha": "^10.0.0" } -} \ No newline at end of file +} diff --git a/memorystore/redis/cloud_run_deployment/Dockerfile b/memorystore/redis/cloud_run_deployment/Dockerfile index 50c6d9522e..89d776ca08 100644 --- a/memorystore/redis/cloud_run_deployment/Dockerfile +++ b/memorystore/redis/cloud_run_deployment/Dockerfile @@ -1,6 +1,6 @@ # Use the official lightweight Node.js image. # https://hub.docker.com/_/node -FROM node:20-slim +FROM node:22-slim # Create and change to the app directory. WORKDIR /usr/src/app diff --git a/memorystore/redis/gke_deployment/Dockerfile b/memorystore/redis/gke_deployment/Dockerfile index 6f569a1769..0b0aeda492 100644 --- a/memorystore/redis/gke_deployment/Dockerfile +++ b/memorystore/redis/gke_deployment/Dockerfile @@ -11,7 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM node:20-alpine +FROM node:22-alpine ENV REDISHOST redis ENV REDISPORT 6379 diff --git a/memorystore/redis/package.json b/memorystore/redis/package.json index fa63678aca..360b39e6ee 100644 --- a/memorystore/redis/package.json +++ b/memorystore/redis/package.json @@ -6,10 +6,9 @@ "license": "Apache Version 2.0", "author": "Google Inc.", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "dependencies": { "redis": "^4.0.0" } } - diff --git a/monitoring/snippets/package.json b/monitoring/snippets/package.json index b6599d983e..df3f3b3fde 100644 --- a/monitoring/snippets/package.json +++ b/monitoring/snippets/package.json @@ -8,7 +8,7 @@ "*.js" ], "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 --timeout 600000" diff --git a/opencensus/package.json b/opencensus/package.json index 8f214d597d..3f1dad3378 100644 --- a/opencensus/package.json +++ b/opencensus/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "start": "node metrics-quickstart.js", diff --git a/package.json b/package.json index b239c7ad54..0a78cdd3e3 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google Inc.", "engines": { - "node": ">=18.0.0" + "node": "22.x" }, "repository": { "type": "git", @@ -22,9 +22,9 @@ "@typescript-eslint/parser": "^8.0.0", "c8": "^10.0.0", "eslint-config-prettier": "^9.0.0", - "eslint-plugin-n": "^14.0.0", + "eslint-plugin-n": "^17.0.0", "eslint-plugin-prettier": "^5.0.0-alpha.1", - "gts": "5.3.0", + "gts": "6.0.2", "mocha": "^10.2.0", "nunjucks": "^3.2.4", "prettier": "^3.0.3", diff --git a/recaptcha_enterprise/demosite/app/Dockerfile b/recaptcha_enterprise/demosite/app/Dockerfile index ed182e9762..354ab61183 100644 --- a/recaptcha_enterprise/demosite/app/Dockerfile +++ b/recaptcha_enterprise/demosite/app/Dockerfile @@ -14,7 +14,7 @@ # This file is only used for packaging and deployment purposes. -FROM node:20-slim +FROM node:22-slim ARG GOOGLE_CLOUD_PROJECT ENV GOOGLE_CLOUD_PROJECT=${GOOGLE_CLOUD_PROJECT} diff --git a/recaptcha_enterprise/demosite/app/package.json b/recaptcha_enterprise/demosite/app/package.json index 94c9646458..5438d06704 100644 --- a/recaptcha_enterprise/demosite/app/package.json +++ b/recaptcha_enterprise/demosite/app/package.json @@ -8,7 +8,7 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "repository": { "type": "git", diff --git a/recaptcha_enterprise/snippets/package.json b/recaptcha_enterprise/snippets/package.json index af0218e2b7..a39cdb04b3 100644 --- a/recaptcha_enterprise/snippets/package.json +++ b/recaptcha_enterprise/snippets/package.json @@ -5,7 +5,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "files": [ "*.js", @@ -24,12 +24,12 @@ "recaptcha-password-check-helpers": "^1.0.1" }, "devDependencies": { - "@types/express": "^4.17.17", - "@types/node": "^20.0.0", + "@types/express": "^5.0.0", + "@types/node": "^22.0.0", "@types/yargs": "^17.0.19", "c8": "^10.0.0", "eslint": "^8.57.0", - "gts": "^5.0.0", + "gts": "^6.0.0", "mocha": "^10.2.0", "ts-node": "^10.9.1", "typescript": "^5.0.0" diff --git a/renovate.json b/renovate.json index 705e2f7395..ea03311dfe 100644 --- a/renovate.json +++ b/renovate.json @@ -21,7 +21,7 @@ ], "force": { "constraints": { - "node": "< 15.0.0" + "node": "22.x" } }, "dependencyDashboardAutoclose": true, diff --git a/retail/package.json b/retail/package.json index 7ecfac9197..a710ac3812 100644 --- a/retail/package.json +++ b/retail/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "files": [ "*.js" @@ -13,7 +13,7 @@ "test": "c8 mocha -p -j 2" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "dependencies": { "@google-cloud/bigquery": "^7.0.0", diff --git a/routeoptimization/snippets/package.json b/routeoptimization/snippets/package.json index 4bfa6f1968..fd44270c67 100644 --- a/routeoptimization/snippets/package.json +++ b/routeoptimization/snippets/package.json @@ -8,7 +8,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000" diff --git a/run/hello-broken/Dockerfile b/run/hello-broken/Dockerfile index bf2f2c32f9..b374c97383 100644 --- a/run/hello-broken/Dockerfile +++ b/run/hello-broken/Dockerfile @@ -16,7 +16,7 @@ # Use the official lightweight Node.js image. # https://hub.docker.com/_/node -FROM node:20-slim +FROM node:22-slim # Create and change to the app directory. WORKDIR /usr/src/app diff --git a/run/hello-broken/package.json b/run/hello-broken/package.json index 5127309653..5c25a0312f 100644 --- a/run/hello-broken/package.json +++ b/run/hello-broken/package.json @@ -10,7 +10,7 @@ "system-test": "NAME=Cloud c8 mocha -p -j 2 test/system.test.js --timeout=360000 --exit" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "author": "Google LLC", "license": "Apache-2.0", diff --git a/run/helloworld/Dockerfile b/run/helloworld/Dockerfile index 43bb5475e3..ddc23d1e05 100644 --- a/run/helloworld/Dockerfile +++ b/run/helloworld/Dockerfile @@ -16,7 +16,7 @@ # Use the official lightweight Node.js image. # https://hub.docker.com/_/node -FROM node:20-slim +FROM node:22-slim # Create and change to the app directory. WORKDIR /usr/src/app diff --git a/run/helloworld/package.docs.json b/run/helloworld/package.docs.json index 8661600a08..c6749059ef 100644 --- a/run/helloworld/package.docs.json +++ b/run/helloworld/package.docs.json @@ -9,7 +9,7 @@ "start": "node index.js" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "author": "Google LLC", "license": "Apache-2.0", diff --git a/run/helloworld/package.json b/run/helloworld/package.json index c380d70ab2..fc855771a5 100644 --- a/run/helloworld/package.json +++ b/run/helloworld/package.json @@ -11,7 +11,7 @@ }, "type": "module", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "author": "Google LLC", "license": "Apache-2.0", diff --git a/run/idp-sql/Dockerfile b/run/idp-sql/Dockerfile index 0d33affacf..2a3cbe4429 100644 --- a/run/idp-sql/Dockerfile +++ b/run/idp-sql/Dockerfile @@ -14,7 +14,7 @@ # Use the official lightweight Node.js image. # https://hub.docker.com/_/node -FROM node:20-slim +FROM node:22-slim # Create and change to the app directory. WORKDIR /usr/src/app diff --git a/run/idp-sql/package.json b/run/idp-sql/package.json index 5f7970a3de..6c5747d9dd 100644 --- a/run/idp-sql/package.json +++ b/run/idp-sql/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "start": "node index.js", diff --git a/run/image-processing/Dockerfile b/run/image-processing/Dockerfile index a6be9e2c06..fc0bfcd963 100644 --- a/run/image-processing/Dockerfile +++ b/run/image-processing/Dockerfile @@ -14,7 +14,7 @@ # Use the official lightweight Node.js image. # https://hub.docker.com/_/node -FROM node:20-slim +FROM node:22-slim # [START cloudrun_imageproc_dockerfile_imagemagick] # Install Imagemagick into the container image. diff --git a/run/image-processing/package.json b/run/image-processing/package.json index d46a057c9b..64b6d04b19 100644 --- a/run/image-processing/package.json +++ b/run/image-processing/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "start": "node index.js", diff --git a/run/jobs/package.docs.json b/run/jobs/package.docs.json index eeb31f8edc..7b84477299 100644 --- a/run/jobs/package.docs.json +++ b/run/jobs/package.docs.json @@ -7,7 +7,7 @@ "start": "node index.js" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "author": "Google LLC", "license": "Apache-2.0" diff --git a/run/jobs/package.json b/run/jobs/package.json index 4b7092aaff..57250b32c6 100644 --- a/run/jobs/package.json +++ b/run/jobs/package.json @@ -9,7 +9,7 @@ "system-test": "c8 mocha -p -j 2 test/system.test.js --timeout=600000 --exit" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "author": "Google LLC", "license": "Apache-2.0", diff --git a/run/logging-manual/Dockerfile b/run/logging-manual/Dockerfile index c395ddd0c5..b88f3693f0 100644 --- a/run/logging-manual/Dockerfile +++ b/run/logging-manual/Dockerfile @@ -14,7 +14,7 @@ # Use the official lightweight Node.js image. # https://hub.docker.com/_/node -FROM node:20-slim +FROM node:22-slim # Create and change to the app directory. WORKDIR /usr/src/app diff --git a/run/logging-manual/package.json b/run/logging-manual/package.json index 5098c9d6ca..54a322552a 100644 --- a/run/logging-manual/package.json +++ b/run/logging-manual/package.json @@ -8,7 +8,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "start": "node index.js", diff --git a/run/markdown-preview/editor/Dockerfile b/run/markdown-preview/editor/Dockerfile index f0f2b5edd1..7655f374b2 100644 --- a/run/markdown-preview/editor/Dockerfile +++ b/run/markdown-preview/editor/Dockerfile @@ -14,7 +14,7 @@ # Use the official lightweight Node.js image. # https://hub.docker.com/_/node -FROM node:20-slim +FROM node:22-slim # Create and change to the app directory. WORKDIR /usr/src/app diff --git a/run/markdown-preview/editor/package.json b/run/markdown-preview/editor/package.json index 4594d0c0b6..69c4776051 100644 --- a/run/markdown-preview/editor/package.json +++ b/run/markdown-preview/editor/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "main": "main.js", "scripts": { diff --git a/run/markdown-preview/renderer/Dockerfile b/run/markdown-preview/renderer/Dockerfile index 58e8aa32bc..655810f2e1 100644 --- a/run/markdown-preview/renderer/Dockerfile +++ b/run/markdown-preview/renderer/Dockerfile @@ -14,7 +14,7 @@ # Use the official lightweight Node.js image. # https://hub.docker.com/_/node -FROM node:20-slim +FROM node:22-slim # Create and change to the app directory. WORKDIR /usr/src/app diff --git a/run/markdown-preview/renderer/package.json b/run/markdown-preview/renderer/package.json index b612f98225..986fdf4c90 100644 --- a/run/markdown-preview/renderer/package.json +++ b/run/markdown-preview/renderer/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "main": "index.js", "scripts": { diff --git a/run/pubsub/Dockerfile b/run/pubsub/Dockerfile index 9dc1a466ca..a438af8559 100644 --- a/run/pubsub/Dockerfile +++ b/run/pubsub/Dockerfile @@ -16,7 +16,7 @@ # Use the official lightweight Node.js image. # https://hub.docker.com/_/node -FROM node:20-slim +FROM node:22-slim # Create and change to the app directory. WORKDIR /usr/src/app diff --git a/run/pubsub/package.json b/run/pubsub/package.json index 990ae8ba54..21ffac5071 100644 --- a/run/pubsub/package.json +++ b/run/pubsub/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "start": "node index.js", diff --git a/run/system-package/Dockerfile b/run/system-package/Dockerfile index 6104def25d..4c9e160d13 100644 --- a/run/system-package/Dockerfile +++ b/run/system-package/Dockerfile @@ -14,7 +14,7 @@ # Use the official super-lightweight Node image. # https://hub.docker.com/_/node -FROM node:20-alpine +FROM node:22-alpine # Create and change to the app directory. WORKDIR /usr/src/app diff --git a/run/system-package/package.json b/run/system-package/package.json index 506f1ddcd1..461c866c62 100644 --- a/run/system-package/package.json +++ b/run/system-package/package.json @@ -11,7 +11,7 @@ "FIXME-system-test": "c8 mocha -p -j 2 test/system.test.js --timeout=360000 --exit" }, "engines": { - "node": ">=18.0.0" + "node": "22.x" }, "dependencies": { "express": "^4.17.1" diff --git a/run/websockets/package.json b/run/websockets/package.json index f9c96b0be9..38f8ed23fb 100644 --- a/run/websockets/package.json +++ b/run/websockets/package.json @@ -12,7 +12,7 @@ "system-test": "echo \"INFO: system-test temporarily disabled\"" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "dependencies": { "@socket.io/redis-adapter": "^8.1.0", @@ -21,7 +21,7 @@ "socket.io": "4.7.2" }, "devDependencies": { - "@types/express": "^4.17.17", + "@types/express": "^5.0.0", "c8": "^10.0.0", "google-auth-library": "^9.0.0", "got": "^11.5.0", diff --git a/scheduler/package.json b/scheduler/package.json index a57834678b..060404f7c5 100644 --- a/scheduler/package.json +++ b/scheduler/package.json @@ -3,7 +3,7 @@ "private": true, "main": "quickstart.js", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "files": [ "*.js", @@ -20,12 +20,12 @@ "@google-cloud/scheduler": "^4.0.0" }, "devDependencies": { - "@types/chai": "^4.3.4", + "@types/chai": "^4.5.0", "@types/mocha": "^10.0.1", - "@types/node": "^20.0.0", + "@types/node": "^22.0.0", "c8": "^10.0.0", "chai": "^4.5.0", - "gts": "^5.0.0", + "gts": "^6.0.0", "mocha": "^10.2.0", "ts-node": "^10.9.1", "typescript": "^5.0.0" diff --git a/secret-manager/package.json b/secret-manager/package.json index c9a1b257d2..231ecf8941 100644 --- a/secret-manager/package.json +++ b/secret-manager/package.json @@ -8,7 +8,7 @@ "author": "Google LLC", "repository": "googleapis/nodejs-secret-manager", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 --recursive test/ --timeout=800000" diff --git a/security-center/snippets/package.json b/security-center/snippets/package.json index 6cac1054d8..2f986ef7cf 100644 --- a/security-center/snippets/package.json +++ b/security-center/snippets/package.json @@ -6,7 +6,7 @@ "!system-test/" ], "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 --recursive --timeout 6000000 system-test/" diff --git a/service-directory/snippets/package.json b/service-directory/snippets/package.json index 396c4086fd..edc92cb623 100644 --- a/service-directory/snippets/package.json +++ b/service-directory/snippets/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "files": [ "*.js" diff --git a/speech/package.json b/speech/package.json index e1ec2aabae..f864be5f40 100644 --- a/speech/package.json +++ b/speech/package.json @@ -5,7 +5,7 @@ "author": "Google LLC", "repository": "googleapis/nodejs-speech", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "files": [ "*.js", diff --git a/storagetransfer/package.json b/storagetransfer/package.json index da6571c18a..7a18192954 100644 --- a/storagetransfer/package.json +++ b/storagetransfer/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "files": [ "*.js" diff --git a/talent/package.json b/talent/package.json index 4fdaf72e8d..a7b9a60e0e 100644 --- a/talent/package.json +++ b/talent/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "repository": "googleapis/nodejs-talent", "private": true, @@ -22,7 +22,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.0", - "@types/node": "^20.0.0", + "@types/node": "^22.0.0", "c8": "^10.0.0", "chai": "^4.5.0", "mocha": "^10.0.0", diff --git a/texttospeech/package.json b/texttospeech/package.json index b5b2412730..39d37cba99 100644 --- a/texttospeech/package.json +++ b/texttospeech/package.json @@ -8,7 +8,7 @@ "*.js" ], "engines": { - "node": ">=18.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 --timeout=60000", diff --git a/tpu/package.json b/tpu/package.json index 9ac90ca084..c80cb683d8 100644 --- a/tpu/package.json +++ b/tpu/package.json @@ -3,7 +3,7 @@ "license": "Apache-2.0", "author": "Google Inc.", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "repository": "googleapis/nodejs-tpu", "private": true, diff --git a/translate/package.json b/translate/package.json index 378b15a98a..32332cac2a 100644 --- a/translate/package.json +++ b/translate/package.json @@ -8,7 +8,7 @@ "!test/" ], "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 --recursive --timeout 240000" diff --git a/video-intelligence/package.json b/video-intelligence/package.json index c8241bff19..90b6c3edf3 100644 --- a/video-intelligence/package.json +++ b/video-intelligence/package.json @@ -9,7 +9,7 @@ "author": "Google Inc.", "repository": "googleapis/nodejs-video-intelligence", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "test": "c8 mocha -p -j 2 system-test --timeout=800000" diff --git a/vision/package.json b/vision/package.json index 06138e90ad..0786a3890b 100644 --- a/vision/package.json +++ b/vision/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "files": [ "*.js" diff --git a/workflows/invoke-private-endpoint/package.json b/workflows/invoke-private-endpoint/package.json index 6fde33c8ec..6656da7f64 100644 --- a/workflows/invoke-private-endpoint/package.json +++ b/workflows/invoke-private-endpoint/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "start": "node app.js", diff --git a/workflows/package.json b/workflows/package.json index 08291bc8f6..e752d7080b 100644 --- a/workflows/package.json +++ b/workflows/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "build": "tsc -p .", @@ -17,9 +17,9 @@ }, "devDependencies": { "@types/mocha": "^10.0.1", - "@types/node": "^20.0.0", + "@types/node": "^22.0.0", "c8": "^10.0.0", - "gts": "^5.0.0", + "gts": "^6.0.0", "mocha": "^10.2.0", "ts-node": "^10.9.1" } diff --git a/workflows/quickstart/package.json b/workflows/quickstart/package.json index dabe052eac..f6e14b0d6d 100644 --- a/workflows/quickstart/package.json +++ b/workflows/quickstart/package.json @@ -4,7 +4,7 @@ "main": "index.ts", "private": true, "engines": { - "node": ">=16.0.0" + "node": "22.x" }, "scripts": { "start": "node index.js", @@ -19,8 +19,8 @@ }, "devDependencies": { "@types/mocha": "^10.0.1", - "@types/node": "^20.0.0", - "gts": "^5.0.0", + "@types/node": "^22.0.0", + "gts": "^6.0.0", "mocha": "^10.2.0" } }