Skip to content

feat(awm): bump SDK betas and adapt to async encrypt/decrypt#258

Merged
zahin-mohammad merged 3 commits into
masterfrom
feat/sdk-bump-async-crypto
Jul 23, 2026
Merged

feat(awm): bump SDK betas and adapt to async encrypt/decrypt#258
zahin-mohammad merged 3 commits into
masterfrom
feat/sdk-bump-async-crypto

Conversation

@zahin-mohammad

Copy link
Copy Markdown
Contributor

Summary

  • Bumps all @bitgo-beta/* deps to latest betas via bump-version.ts — pulls in new coin support through @bitgo-beta/statics. This bump is the release content (no other commits since v3.4.0).
  • Adapts to a breaking SDK change: BitGo.encrypt/decrypt are now async (stringPromise<string>). Added await to all 6 call sites in the MPC wallet-generation handlers; switched decrypt test stubs .returns().resolves(). One site (eddsaMPCWalletGenerationInitialize.ts:104) was not flagged by tsc (loose return type) but was returning an unresolved Promise as encryptedData.
  • Fixes root cause of override drift: bump-version.ts now syncs the npm overrides block. Pins moved from yarn resolutions to npm overrides during the yarn→npm migration, but the script only updated resolutions, so sdk-core/statics overrides drifted and broke npm install with EOVERRIDE.
  • Lockfile shrinks ~10k lines: verified as legitimate dedup (602 removed entries are nested node_modules/.../ duplicates the lockstep betas collapse), not lost dependencies. Reproduced under the repo's Node 22.1.0.

Test plan

  • npm ci (Node 22.1.0)
  • npm run build — clean
  • npm run lint — clean
  • npm test — 400 passing
  • CI green on this PR
  • After merge: trigger Release to GHCR workflow (semantic-release → minor bump v3.5.0)

🤖 Generated with Claude Code

@zahin-mohammad
zahin-mohammad requested review from a team as code owners July 23, 2026 15:50
@zahin-mohammad
zahin-mohammad force-pushed the feat/sdk-bump-async-crypto branch from fa10a45 to 5a57a9b Compare July 23, 2026 15:53
zahin-mohammad and others added 3 commits July 23, 2026 12:00
Bumps all @bitgo-beta/* dependencies to their latest betas via
bump-version.ts, pulling in new coin support through @bitgo-beta/statics.

The new sdk-core makes BitGo.encrypt/decrypt async (string ->
Promise<string>). Adds await to all six call sites in the MPC wallet
generation handlers and switches the decrypt test stubs from .returns()
to .resolves(). One site (eddsa initialize) was not caught by tsc due to
a loose return type but returned an unresolved Promise as encryptedData.

Ticket: WCN-1593

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Trivy flagged 10 findings (1 CRITICAL, 9 HIGH) on the pre-bump lockfile.
The SDK bump's lockfile regeneration already resolves all of them to fixed
versions within existing semver ranges, so these overrides do not change
the current tree; they pin a floor so the per-release lockfile regen cannot
silently regress below the fix.

- axios: ^1.13.5 -> ^1.18.0 (GHSA-gcfj-64vw-6mp9)
- tar: ^7.5.11 -> ^7.5.19 (CVE-2026-59873 CRITICAL, CVE-2026-59874)
- fast-uri: ^3.1.4 (CVE-2026-13676, CVE-2026-16221)
- shell-quote: ^1.9.0 (CVE-2026-13311)
- brace-expansion: ^1.1.16 / ^2.1.2 / ^5.0.7 (CVE-2026-13149)
- js-yaml: ^3.15.0 / ^4.3.0 (CVE-2026-59869)

Ticket: WCN-1593

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@zahin-mohammad
zahin-mohammad force-pushed the feat/sdk-bump-async-crypto branch from 5a57a9b to 3219108 Compare July 23, 2026 16:14
@zahin-mohammad
zahin-mohammad enabled auto-merge July 23, 2026 16:16
@zahin-mohammad
zahin-mohammad merged commit e279a7b into master Jul 23, 2026
22 checks passed
@zahin-mohammad
zahin-mohammad deleted the feat/sdk-bump-async-crypto branch July 23, 2026 16:18
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