diff --git a/workflows/invoke-private-endpoint/package.json b/workflows/invoke-private-endpoint/package.json index 6fde33c8eca..e4539662d98 100644 --- a/workflows/invoke-private-endpoint/package.json +++ b/workflows/invoke-private-endpoint/package.json @@ -10,17 +10,17 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=16.0.0" + "node": ">=20.0.0" }, "scripts": { "start": "node app.js", "test": "c8 mocha -p -j 2 --exit test/*.test.js" }, "dependencies": { - "express": "^4.17.1" + "express": "^5.0.0" }, "devDependencies": { - "c8": "^10.0.0", + "c8": "^12.0.0", "mocha": "^10.0.0", "supertest": "^7.0.0" } diff --git a/workflows/package.json b/workflows/package.json index 08291bc8f68..9f4df6859fc 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": ">=20.0.0" }, "scripts": { "build": "tsc -p .", @@ -13,12 +13,12 @@ "test": "c8 mocha -p -j 2 --loader=ts-node/esm --extension ts --timeout 600000 --exit" }, "dependencies": { - "@google-cloud/workflows": "^3.0.0" + "@google-cloud/workflows": "^5.0.0" }, "devDependencies": { "@types/mocha": "^10.0.1", "@types/node": "^20.0.0", - "c8": "^10.0.0", + "c8": "^12.0.0", "gts": "^5.0.0", "mocha": "^10.2.0", "ts-node": "^10.9.1" diff --git a/workflows/quickstart/package.json b/workflows/quickstart/package.json index dabe052eace..d0decb753f3 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": ">=20.0.0" }, "scripts": { "start": "node index.js", @@ -14,7 +14,7 @@ "test": "mocha --loader=ts-node/esm --extension ts --timeout 600000 --exit" }, "dependencies": { - "@google-cloud/workflows": "^3.0.0", + "@google-cloud/workflows": "^5.0.0", "typescript": "^5.1.6" }, "devDependencies": { diff --git a/workflows/quickstart/test/quickstart.test.ts b/workflows/quickstart/test/quickstart.test.ts index aa51b2ab3aa..8c4178c8cb7 100644 --- a/workflows/quickstart/test/quickstart.test.ts +++ b/workflows/quickstart/test/quickstart.test.ts @@ -12,14 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. -import {WorkflowsClient} from '@google-cloud/workflows'; +import {v1} from '@google-cloud/workflows'; import * as assert from 'assert'; import * as cp from 'child_process'; import {before, beforeEach, describe, it} from 'mocha'; -const client: WorkflowsClient = new WorkflowsClient(); +const client = new v1.WorkflowsClient(); const execSync = (cmd: string) => cp.execSync(cmd, {encoding: 'utf-8'}); - const PROJECT_ID = process.env.GOOGLE_CLOUD_PROJECT as string; const LOCATION_ID = 'us-central1'; const WORKFLOW_ID = 'myFirstWorkflow'; diff --git a/workflows/quickstart/tsconfig.json b/workflows/quickstart/tsconfig.json index 121cda905fe..a5799cbcb99 100644 --- a/workflows/quickstart/tsconfig.json +++ b/workflows/quickstart/tsconfig.json @@ -4,7 +4,6 @@ "strict": true, "noImplicitAny": false, "esModuleInterop": true, - "moduleResolution": "node", "module": "commonjs" } } diff --git a/workflows/tsconfig.json b/workflows/tsconfig.json index 98adaa3d86e..13c86886baf 100644 --- a/workflows/tsconfig.json +++ b/workflows/tsconfig.json @@ -3,7 +3,6 @@ "target": "ES2020", "strict": true, "noImplicitAny": false, - "esModuleInterop": true, - "moduleResolution": "node" + "esModuleInterop": true } }