Skip to content

chore(core): upgrade googleapis to ^173.0.0 and add GooglePlay unit tests - #1081

Merged
gstepniewski-google merged 1 commit into
mainfrom
chore/upgrade-googleapis-with-tests
Nov 30, 2026
Merged

gstepniewski-google merged 1 commit into
mainfrom
chore/upgrade-googleapis-with-tests

Conversation

@gstepniewski-google

Copy link
Copy Markdown
Collaborator

Upgrades googleapis in @bubblewrap/core from ^81.0.0 to ^173.0.0 (eliminating transitive uuid@8.3.2 and node-forge/google-p12-pem) and adds unit test coverage for GooglePlay.ts.

Why ^173.0.0

  • googleapis@178.1.1+ raises engines.node to >=22.0.0 (breaking Bubblewrap's >=18.0.0 engine contract and Node 18.x/20.x CI under .npmrc engine-strict=true).
  • googleapis@174.0.0–178.0.0 pin exact older google-auth-library@10.5.0, whereas ^173.0.0 keeps engines.node >= 18 across the full dependency graph and resolves googleapis@173.0.0, googleapis-common@8.0.3, google-auth-library@10.9.1, gaxios@7.3.1, and preserves qs@6.17.1.

Changes

  • packages/core/package.json & packages/core/package-lock.json:
    • Bumped "googleapis" from ^81.0.0 to ^173.0.0.
    • Removed transitive uuid@8.3.2 (CVE-2026-41988), node-forge, and google-p12-pem.
  • packages/core/src/spec/lib/GooglePlaySpec.ts (new, 15 specs):
    • Covers asPlayStoreTrack, real runtime googleapis@173.0.0 client & google.auth.JWT wiring, constructor options & error path, performPlayOperation (insert/delete/commitEdit), publishBundle (fs.ReadStream upload, timeout: 180000, tracks.update, commit, call order, missing versionCode), getLargestVersionCode, and versionExists.

Verification

  • npm ci (lerna bootstrap && lerna link), npm run build, npm run lint, and npm test all pass (156 specs, 0 failures in @bubblewrap/core, including 15 new specs in GooglePlaySpec).
  • Audited all 146 engines.node entries in packages/core/package-lock.json against Node 18.0.0 and 20.0.0 (0 incompatibilities).
  • Note: Recommend a quick manual bubblewrap play smoke test against a Play Store test app before cutting the next release, as unit tests mock Play API HTTP calls.

…ests

Upgrade googleapis from ^81.0.0 to ^173.0.0 (highest Node >=18 compatible line without pinned older google-auth-library), removing transitive uuid@8.3.2, node-forge, and google-p12-pem while keeping qs@6.17.1. Add 15 Jasmine unit tests covering GooglePlay.ts and runtime googleapis client wiring.
@gstepniewski-google
gstepniewski-google force-pushed the chore/upgrade-googleapis-with-tests branch from ca10571 to 13152de Compare November 30, 2026 14:18
@gstepniewski-google
gstepniewski-google merged commit a4b55e9 into main Nov 30, 2026
14 checks passed
@gstepniewski-google
gstepniewski-google deleted the chore/upgrade-googleapis-with-tests branch November 30, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants