Skip to content
This repository was archived by the owner on Jun 17, 2021. It is now read-only.

[Util v7| Tracking Issue for BN.js v4 and v5 interoperability issues #250

@holgerd77

Description

@holgerd77

This library bumped the BN.js dependency and re-export from v4 to v5 with the last v7.0.0 release.

Along the integrational work within the wallet library here ethereumjs/ethereumjs-wallet#121 there were significant interoperability issues discovered which got triggered by the tests there.

This is a tracking issue on this question since there should be some reaction here soon (within the next 5-10 days) since otherwise people upgrading to the Util v7 library and using the updated BN.jsversion might run into similar issues.

Possible solutions/actions I can think of:

  1. This might be able to be fixed soon (within days) on the BN.js side (see comment on the issue there, if there is a release there is not too much further action needed, likely we should do a patch release here to raise awareness (it is a bit unclear though if there are more major changes on the BN.js side, reading the CHANGELOG on the v5 PR Semver-major release: 5.0.0 indutny/bn.js#219 I have the impression that there are not)
  2. Release a v7.0.1 here with a downgraded BN.js version back to ^v4.11.8 and deprecate v7.0.0 (I would think this might be justified since v4 is more or less upwards-compatible)
    3a. Release a v8.0.0 version, otherwise same as 2.
    3b. Release a v8.0.0 version, get finally rid of all re-exports (technically not directly related to the question here), and - likely - go back to use v4.11.8 internally (internally used version has to be thought along)

Phew. 😛

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions