From 2eebd0a60fe94ec4d24bf806124266f8e06da74c Mon Sep 17 00:00:00 2001 From: Angel Caamal Date: Thu, 24 Sep 2026 16:58:59 +0000 Subject: [PATCH 1/5] deps(workflows): update dependencies across workflows samples --- workflows/invoke-private-endpoint/package.json | 6 +++--- workflows/package.json | 6 +++--- workflows/quickstart/package.json | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) 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": { From f3416bbb9c305cc4b43f48dab63db8c12131b662 Mon Sep 17 00:00:00 2001 From: Angel Caamal Date: Fri, 25 Sep 2026 17:57:40 +0000 Subject: [PATCH 2/5] fix(workflows): update WorkflowsClient import for library compatibility --- workflows/quickstart/test/quickstart.test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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'; From ec1c73de8c8e640a83ad292b47125c5fb56e9fcb Mon Sep 17 00:00:00 2001 From: Angel Caamal Date: Fri, 25 Sep 2026 18:01:22 +0000 Subject: [PATCH 3/5] build(workflows): remove deprecated moduleResolution from tsconfig --- workflows/quickstart/tsconfig.json | 1 - 1 file changed, 1 deletion(-) 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" } } From db01d498a5fced397aa3ea7bd4e27a34f2997768 Mon Sep 17 00:00:00 2001 From: Angel Caamal Date: Fri, 25 Sep 2026 18:05:34 +0000 Subject: [PATCH 4/5] build(workflows): remove deprecated moduleResolution from tsconfig --- workflows/tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workflows/tsconfig.json b/workflows/tsconfig.json index 98adaa3d86e..58c4973d94d 100644 --- a/workflows/tsconfig.json +++ b/workflows/tsconfig.json @@ -4,6 +4,7 @@ "strict": true, "noImplicitAny": false, "esModuleInterop": true, - "moduleResolution": "node" + "module": "node16", + "moduleResolution": "node16" } } From 767475bdeefda86b0f0030779799a06a83c99fac Mon Sep 17 00:00:00 2001 From: Angel Caamal Date: Fri, 25 Sep 2026 18:09:22 +0000 Subject: [PATCH 5/5] build(workflows): remove deprecated moduleResolution from tsconfig --- workflows/tsconfig.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/workflows/tsconfig.json b/workflows/tsconfig.json index 58c4973d94d..13c86886baf 100644 --- a/workflows/tsconfig.json +++ b/workflows/tsconfig.json @@ -3,8 +3,6 @@ "target": "ES2020", "strict": true, "noImplicitAny": false, - "esModuleInterop": true, - "module": "node16", - "moduleResolution": "node16" + "esModuleInterop": true } }