Skip to content

Use bigint#23

Open
peachbits wants to merge 3 commits into
masterfrom
bigint
Open

Use bigint#23
peachbits wants to merge 3 commits into
masterfrom
bigint

Conversation

@peachbits
Copy link
Copy Markdown
Contributor

@peachbits peachbits commented May 19, 2026

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

Note

Medium Risk
Replaces the library’s core arithmetic/comparison implementation with native BigInt, which may change edge-case behavior (division/rounding, hex parsing) and raises the minimum supported runtime/TS target.

Overview
Switches big number operations from bn.js to native BigInt. All core helpers (add, sub, mul, div, comparisons, min/max/abs) now operate via BigInt, including a new parseBigInt workaround to support signed hex inputs like -0x....

Bumps project/runtime requirements and tooling. Version moves to 5.0.0, adds engines.node >= 10.4, updates TypeScript target to es2020, removes bn.js/@types/bn.js, modernizes lint config/scripts, updates dev dependencies, and updates CI (Travis Node 18; removes legacy .babelrc and CircleCI config).

Reviewed by Cursor Bugbot for commit bbb0f18. Bugbot is set up for automated code reviews on this repo. Configure here.

peachbits added 3 commits May 20, 2026 12:37
The BN suffix was a leftover from the bn.js library.
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.

1 participant