Skip to content

Commit

Permalink
refactor: updating samples to all use node v20
Browse files Browse the repository at this point in the history
  • Loading branch information
pattishin committed Mar 8, 2024
1 parent 39aed24 commit 137ca35
Show file tree
Hide file tree
Showing 158 changed files with 162 additions and 162 deletions.
2 changes: 1 addition & 1 deletion ai-platform/snippets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "Apache-2.0",
"author": "Google LLC",
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"files": [
"*.js"
Expand Down
2 changes: 1 addition & 1 deletion appengine/hello-world/flexible/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"scripts": {
"start": "node app.js",
Expand Down
2 changes: 1 addition & 1 deletion appengine/hello-world/standard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"scripts": {
"start": "node app.js",
Expand Down
2 changes: 1 addition & 1 deletion appengine/storage/flexible/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"test": "c8 mocha -p -j 2 system-test/*.test.js --exit --timeout=30000"
},
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"dependencies": {
"@google-cloud/storage": "^7.0.0",
Expand Down
2 changes: 1 addition & 1 deletion appengine/storage/standard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"test": "c8 mocha -p -j 2 system-test/*.test.js --exit --timeout=30000"
},
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"dependencies": {
"@google-cloud/storage": "^7.0.0",
Expand Down
2 changes: 1 addition & 1 deletion appengine/websockets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "Apache Version 2.0",
"author": "Google Inc.",
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"scripts": {
"deploy": "gcloud app deploy",
Expand Down
2 changes: 1 addition & 1 deletion asset/snippets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "Apache-2.0",
"author": "Google LLC",
"engines": {
"node": ">=12.0.0"
"node": ">=20.0.0"
},
"files": [
"*.js"
Expand Down
2 changes: 1 addition & 1 deletion auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"scripts": {
"test:auth": "c8 mocha -p -j 2 system-test/auth.test.js --timeout=30000",
Expand Down
2 changes: 1 addition & 1 deletion automl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "Apache-2.0",
"author": "Google LLC",
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"repository": "googleapis/nodejs-automl",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion batch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "Apache-2.0",
"author": "Google LLC",
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"files": [
"*.js"
Expand Down
4 changes: 2 additions & 2 deletions cloud-language/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"license": "Apache-2.0",
"author": "Google Inc.",
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"repository": "googleapis/nodejs-language",
"private": true,
Expand All @@ -17,7 +17,7 @@
"dependencies": {
"@google-cloud/language": "^6.1.0",
"@google-cloud/storage": "^7.0.0",
"mathjs": "^11.0.0",
"mathjs": "^12.0.0",
"yargs": "^17.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion cloud-sql/mysql/mysql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"scripts": {
"start": "node server/server.js",
Expand Down
2 changes: 1 addition & 1 deletion cloud-sql/mysql/mysql2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"scripts": {
"start": "node server/server.js",
Expand Down
2 changes: 1 addition & 1 deletion cloud-sql/postgres/knex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"scripts": {
"start": "node server/server.js",
Expand Down
2 changes: 1 addition & 1 deletion cloud-sql/sqlserver/mssql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"scripts": {
"start": "node server/server.js",
Expand Down
2 changes: 1 addition & 1 deletion cloud-sql/sqlserver/tedious/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"scripts": {
"start": "node server/server.js",
Expand Down
2 changes: 1 addition & 1 deletion cloud-tasks/snippets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Google Inc.",
"private": true,
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"files": [
"*.js"
Expand Down
2 changes: 1 addition & 1 deletion cloud-tasks/tutorial-gcf/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"main": "index.js",
"private": true,
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"scripts": {
"start": "node index.js",
Expand Down
2 changes: 1 addition & 1 deletion cloud-tasks/tutorial-gcf/function/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"main": "index.js",
"private": true,
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"scripts": {
"test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000"
Expand Down
2 changes: 1 addition & 1 deletion cloudbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"author": "Google Inc.",
"repository": "googleapis/nodejs-cloudbuild",
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"scripts": {
"test": "c8 mocha -p -j 2 system-test --timeout=800000"
Expand Down
2 changes: 1 addition & 1 deletion composer/functions/composer-storage-trigger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"node-fetch": "^2.2.0"
},
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"private": true,
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion composer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"scripts": {
"test": "c8 mocha -p -j 2 --exit test/*.test.js"
Expand Down
2 changes: 1 addition & 1 deletion compute/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"license": "Apache-2.0",
"author": "Google Inc.",
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"repository": "googleapis/nodejs-compute",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion contact-center-insights/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "Apache-2.0",
"author": "Google LLC",
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"files": [
"*.js"
Expand Down
2 changes: 1 addition & 1 deletion container-analysis/snippets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"*.js"
],
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"scripts": {
"test": "c8 mocha -p -j 2 --timeout 100000 test/**.test.js"
Expand Down
2 changes: 1 addition & 1 deletion container/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"license": "Apache-2.0",
"author": "Google Inc.",
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"repository": "googleapis/nodejs-cloud-container",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion datacatalog/cloud-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": "Google LLC",
"repository": "GoogleCloudPlatform/nodejs-docs-samples",
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"scripts": {
"test": "c8 mocha -p -j 2 system-test/*.test.js --timeout=60000"
Expand Down
2 changes: 1 addition & 1 deletion datacatalog/quickstart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": "Google LLC",
"repository": "GoogleCloudPlatform/nodejs-docs-samples",
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"scripts": {
"test": "c8 mocha -p -j 2 system-test/*.test.js --timeout=60000"
Expand Down
2 changes: 1 addition & 1 deletion datacatalog/snippets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "Apache-2.0",
"author": "Google LLC",
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"repository": "googleapis/nodejs-datacatalog",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion datalabeling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "Apache-2.0",
"author": "Google LLC",
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"files": [
"*.js",
Expand Down
2 changes: 1 addition & 1 deletion dataproc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"*.js"
],
"engines": {
"node": ">=12.0.0"
"node": ">=20.0.0"
},
"repository": "googleapis/nodejs-dataproc",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion datastore/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"scripts": {
"test": "c8 mocha -p -j 2 test/*.test.js --timeout=5000"
Expand Down
2 changes: 1 addition & 1 deletion dialogflow-cx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "Apache-2.0",
"author": "Google LLC",
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"files": [
"*.js"
Expand Down
2 changes: 1 addition & 1 deletion dialogflow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"resources"
],
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"scripts": {
"test": "c8 mocha -p -j 2 system-test --timeout=600000"
Expand Down
2 changes: 1 addition & 1 deletion discoveryengine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "Apache-2.0",
"author": "Google LLC",
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"files": [
"*.js"
Expand Down
2 changes: 1 addition & 1 deletion dlp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"*.js"
],
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"scripts": {
"test": "c8 mocha -p -j 2 system-test/*.test.js --timeout=600000"
Expand Down
2 changes: 1 addition & 1 deletion document-ai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "Apache-2.0",
"author": "Google LLC",
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"files": [
"*.js"
Expand Down
2 changes: 1 addition & 1 deletion endpoints/getting-started-grpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"scripts": {
"start": "node server.js",
Expand Down
2 changes: 1 addition & 1 deletion endpoints/getting-started/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"scripts": {
"start": "node app.js",
Expand Down
2 changes: 1 addition & 1 deletion error-reporting/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"!test/"
],
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"scripts": {
"test": "c8 mocha -p -j 2 --timeout=600000"
Expand Down
2 changes: 1 addition & 1 deletion eventarc/audit-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": ">= 12.0.0"
"node": ">=20.0.0"
},
"scripts": {
"start": "node index.js",
Expand Down
2 changes: 1 addition & 1 deletion eventarc/generic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": ">= 12.0.0"
"node": ">=20.0.0"
},
"scripts": {
"start": "node index.js",
Expand Down
2 changes: 1 addition & 1 deletion eventarc/pubsub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": ">= 12.0.0"
"node": ">=20.0.0"
},
"scripts": {
"start": "node index.js",
Expand Down
Loading

0 comments on commit 137ca35

Please sign in to comment.