Skip to content

chore: bump @bitgo/public-types to 7.6.5 - #10316

Merged
danielpeng1 merged 2 commits into
masterfrom
WEB-000-bump-public-types-7.6.5
Dec 4, 2026
Merged

danielpeng1 merged 2 commits into
masterfrom
WEB-000-bump-public-types-7.6.5

Conversation

@zahin-mohammad

@zahin-mohammad zahin-mohammad commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

What

  • Bump @bitgo/public-types to 7.6.5 in all nine modules that depend on it: abstract-lightning, bitgo, express, passkey-crypto, sdk-coin-canton, sdk-coin-flrp, sdk-coin-sol, sdk-core, sdk-lib-safes. yarn.lock goes from three resolved versions (6.90.0, 7.1.0, 7.6.0) to one.
  • Teach the Express OpenAPI generator about t.refinement (modules/express/openapi-generator.rc.js). Needed because of the bump, see below.

Why

7.6.5 declares Apache-2.0 and ships a LICENSE file (BitGo/public-types#511). The 6.90.0 and 7.1.0 tarballs declared UNLICENSED, which a customer's license scanner flagged.

OpenAPI generator fix

Express was on public-types 7.1.0. Since then public-types added BaseIntentCatchAll, defined with t.refinement, as the fallback member of the transaction-intent union. The generator has no handler for t.refinement, so it emitted a dangling #/components/schemas/refinement reference. That failed the Vacuum audit and made the breaking-change check report the catch-all intent's fields (intentType, sequenceId, comment, nonce) as removed.

The new handler returns the wrapped codec's schema, because a refinement only narrows decoding at runtime and leaves the wire shape unchanged. The built-in io-ts handlers are spread back in because the generator merges custom handlers per module, not per export.

Verified by generating the spec on master and on this branch and comparing them (ignoring descriptions and titles):

  • No component schemas removed, no union members removed, request and response paths identical.
  • 19 schemas added: Canton governance-lock and end-investor intents, ZecPaymentIntent, BaseIntentCatchAll.
  • IntentType enum grew, and CantonCosignDelegationProposalIntent gained a userAuthorization property.

Breaking-change review

The only breaking change in the public-types release notes between 6.90.0 and 7.6.5 is 7.0.0 (defiParams fields now required in TxSendBody). No file under modules/*/src or modules/*/test references defiParams, DefiParams or TxSendBody, and none of the 117 symbols the SDK imports from the package was removed.

Ticket: WCN-5332

🤖 Generated with Claude Code

@zahin-mohammad
zahin-mohammad requested a review from a team as a code owner December 4, 2026 15:48

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@zahin-mohammad
zahin-mohammad marked this pull request as draft December 4, 2026 15:49
Align every module on 7.6.5, which declares the Apache-2.0 license and
ships a LICENSE file (earlier 6.90.0 and 7.1.0 tarballs declared
UNLICENSED, which a customer license scanner flagged). Collapses three
resolved versions in yarn.lock into one.

The only breaking change between 6.90.0 and 7.6.5 is 7.0.0 requiring all
defiParams fields in TxSendBody; no module in this repo references
defiParams or TxSendBody, and no symbol imported from the package was
removed.

TICKET: WCN-5332

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Compatibility checks are failing on Node.js 27-nightly (experimental, non-blocking). This does not block merge, but it signals an incompatibility to fix before this release becomes supported.

View run

@zahin-mohammad
zahin-mohammad force-pushed the WEB-000-bump-public-types-7.6.5 branch from 8f03b93 to 3cc5b40 Compare December 4, 2026 15:50
@zahin-mohammad
zahin-mohammad marked this pull request as ready for review December 4, 2026 15:51
@zahin-mohammad
zahin-mohammad requested a deployment to breaking-changes-override December 4, 2026 15:58 — with GitHub Actions Waiting
pranishnepal
pranishnepal previously approved these changes Dec 4, 2026
pranishnepal
pranishnepal previously approved these changes Dec 4, 2026
Comment thread modules/express/openapi-generator.rc.js Resolved
@zahin-mohammad
zahin-mohammad marked this pull request as draft December 4, 2026 16:04
public-types 7.6.x defines `BaseIntentCatchAll` with `t.refinement`, which
the OpenAPI generator has no handler for. It emitted a dangling
`#/components/schemas/refinement` reference, failing the Vacuum audit and
reporting the catch-all intent's fields as removed in the breaking-change
check.

Register a `refinement` handler that returns the wrapped codec's schema,
since a refinement only narrows decoding at runtime and leaves the wire
shape unchanged. The generator merges custom handlers per package, so an
`io-ts` entry would drop every built-in io-ts handler; fall back to them
through the public `Project#resolveKnownImport` rather than importing the
generator's `dist` internals.

TICKET: WCN-5332

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@zahin-mohammad
zahin-mohammad force-pushed the WEB-000-bump-public-types-7.6.5 branch from 08b0f41 to b949a4e Compare December 4, 2026 16:08
@zahin-mohammad
zahin-mohammad marked this pull request as ready for review December 4, 2026 17:08
@danielpeng1
danielpeng1 merged commit b5aef7d into master Dec 4, 2026
27 checks passed
@linear-code

linear-code Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

WCN-5340

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.

5 participants