From d8e429815bb605924050fd30d165419476a99992 Mon Sep 17 00:00:00 2001 From: Evgeniy Zapolskyi Date: Thu, 11 Jun 2026 15:29:13 +0300 Subject: [PATCH] fix(deps): deduplicate google-auth-library to fix release build The "Version Packages" lockfile regen floated the root google-auth-library to 10.7.0 while googleapis-common pins exactly 10.5.0, creating two copies of the v10 OAuth2Client type. That broke the backend TypeScript build (TS2345 in google.sheets()/google.bigquery() calls), which cascaded into ~15 failed CI checks since nearly every job starts by building the backend. Add a scoped npm override so googleapis-common reuses the hoisted root copy; the ^10.1.0 range auto-tracks future lockfile regens. The separate v9 cluster (@google-cloud/logging/pubsub, google-gax) is untouched. Co-Authored-By: Claude Opus 4.8 --- .changeset/dedupe-google-auth-library.md | 11 +++++ package-lock.json | 51 ++---------------------- package.json | 5 ++- 3 files changed, 18 insertions(+), 49 deletions(-) create mode 100644 .changeset/dedupe-google-auth-library.md diff --git a/.changeset/dedupe-google-auth-library.md b/.changeset/dedupe-google-auth-library.md new file mode 100644 index 0000000000..2b93f0bb94 --- /dev/null +++ b/.changeset/dedupe-google-auth-library.md @@ -0,0 +1,11 @@ +--- +'owox': patch +--- + +# Fix release build broken by duplicate google-auth-library + +A transitive dependency drift left two copies of `google-auth-library` (v10) in the +tree — one hoisted at the root and a second pinned exactly by `googleapis-common` — +which produced incompatible `OAuth2Client` types and broke the TypeScript build of the +Google Sheets and BigQuery integrations. A scoped npm override now makes +`googleapis-common` reuse the root copy, so the packages build and publish reliably again. diff --git a/package-lock.json b/package-lock.json index 85b7a21a61..9524658444 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14471,9 +14471,9 @@ } }, "node_modules/bare-stream": { - "version": "2.13.1", - "resolved": "https://registry.npmjs.org/bare-stream/-/bare-stream-2.13.1.tgz", - "integrity": "sha512-Vp0cnjYyrEC4whYTymQ+YZi6pBpfiICZO3cfRG8sy67ZNWe951urv1x4eW1BKNngw3U+3fPYb5JQvHbCtxH7Ow==", + "version": "2.13.2", + "resolved": "https://registry.npmjs.org/bare-stream/-/bare-stream-2.13.2.tgz", + "integrity": "sha512-2V5j0dOfxv3iIngIWMnW1O6UPXpeoU70HJzUJGVth/+RURhDyq7SEWTD70Y2SkUB0MQonYYWpIX3f85P/I22+Q==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -20460,38 +20460,6 @@ "node": ">=18" } }, - "node_modules/googleapis-common/node_modules/gcp-metadata": { - "version": "8.1.3", - "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-8.1.3.tgz", - "integrity": "sha512-ziTrzUhhpL9Zk5k0HHzgP/KIpWDJT0VMBC/ynt/QIBvTW+UUcSivQRl6VlwTf/EilDxtSWklHoRsKy1c4k+59w==", - "license": "Apache-2.0", - "dependencies": { - "gaxios": "7.1.3", - "google-logging-utils": "1.1.3", - "json-bigint": "^1.0.0" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/googleapis-common/node_modules/google-auth-library": { - "version": "10.5.0", - "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-10.5.0.tgz", - "integrity": "sha512-7ABviyMOlX5hIVD60YOfHw4/CxOfBhyduaYB+wbFWCWoni4N7SLcV46hrVRktuBbZjFC9ONyqamZITN7q3n32w==", - "license": "Apache-2.0", - "dependencies": { - "base64-js": "^1.3.0", - "ecdsa-sig-formatter": "^1.0.11", - "gaxios": "^7.0.0", - "gcp-metadata": "^8.0.0", - "google-logging-utils": "^1.0.0", - "gtoken": "^8.0.0", - "jws": "^4.0.0" - }, - "engines": { - "node": ">=18" - } - }, "node_modules/googleapis-common/node_modules/google-logging-utils": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-1.1.3.tgz", @@ -20501,19 +20469,6 @@ "node": ">=14" } }, - "node_modules/googleapis-common/node_modules/gtoken": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-8.0.0.tgz", - "integrity": "sha512-+CqsMbHPiSTdtSO14O51eMNlrp9N79gmeqmXeouJOhfucAedHw9noVe/n5uJk3tbKE6a+6ZCQg3RPhVhHByAIw==", - "license": "MIT", - "dependencies": { - "gaxios": "^7.0.0", - "jws": "^4.0.0" - }, - "engines": { - "node": ">=18" - } - }, "node_modules/googleapis-common/node_modules/https-proxy-agent": { "version": "7.0.6", "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", diff --git a/package.json b/package.json index 4b36dc3d0b..efb0e8c68a 100644 --- a/package.json +++ b/package.json @@ -108,6 +108,9 @@ "picomatch": "^4.0.4", "file-type": "^21.3.2", "thrift": "^0.23.0", - "uuid": "^11.1.1" + "uuid": "^11.1.1", + "googleapis-common": { + "google-auth-library": "^10.1.0" + } } }