Skip to content

fix(@formatjs/intl-durationformat): declare @formatjs/bigdecimal dependency#6468

Merged
longlho merged 1 commit intomainfrom
fix/durationformat-bigdecimal-dep-6467
Apr 29, 2026
Merged

fix(@formatjs/intl-durationformat): declare @formatjs/bigdecimal dependency#6468
longlho merged 1 commit intomainfrom
fix/durationformat-bigdecimal-dep-6467

Conversation

@longlho
Copy link
Copy Markdown
Member

@longlho longlho commented Apr 29, 2026

Summary

  • Add @formatjs/bigdecimal to @formatjs/intl-durationformat's dependencies. The polyfill bundle externalizes it (introduced in fix(@formatjs/intl-durationformat): use BigDecimal for sub-second rollups #6466 for sub-second rollup precision), but it was only declared in BUILD.bazel — not in package.json. Consumers updating to 0.10.6 hit Rolldown failed to resolve import @formatjs/bigdecimal at build time.

Fixes #6467.

Why this slipped past CI

tools/check-package-json.ts exists for exactly this validation, but the Bazel rule that wires it up (package_json_test in tools/index.bzl:410-439) is commented out as a TODO. Will follow up with a separate PR to re-enable it across all packages.

Test plan

  • bazel test //packages/intl-durationformat:intl-durationformat_test
  • Inspected bazel-bin/packages/intl-durationformat/pkg/package.json@formatjs/bigdecimal now appears in dependencies

🤖 Generated with Claude Code

…ndency

The polyfill bundle imports BigDecimal (added in #6466 for sub-second
rollup precision), but @formatjs/bigdecimal was only listed in
BUILD.bazel — not in package.json. rolldown externalizes it, so consumers
hit "Rolldown failed to resolve import @formatjs/bigdecimal" at build
time after updating to 0.10.6.

Fixes #6467

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@longlho longlho added this pull request to the merge queue Apr 29, 2026
Merged via the queue into main with commit 104cbb1 Apr 29, 2026
3 checks passed
@longlho longlho deleted the fix/durationformat-bigdecimal-dep-6467 branch April 29, 2026 19:57
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.

Updating @formatjs/intl-durationformat to 0.10.6 breaks builds

1 participant