Skip to content

Move bn.js to controller-utils dependencies#4023

Merged
FrederikBolding merged 2 commits intomainfrom
fb/move-bn-to-deps
Mar 6, 2024
Merged

Move bn.js to controller-utils dependencies#4023
FrederikBolding merged 2 commits intomainfrom
fb/move-bn-to-deps

Conversation

@FrederikBolding
Copy link
Copy Markdown
Member

@FrederikBolding FrederikBolding commented Mar 6, 2024

Explanation

This PR moves bn.js to be a non-dev dependency of controller-utils as it is used directly in https://github.com/MetaMask/core/blob/main/packages/controller-utils/src/util.ts

It also adds @types/bn.js to the dependencies, mirroring the implementation from assets-controllers.

For more context see this CI failure: https://github.com/MetaMask/snaps/actions/runs/8154723823/job/22288793408?pr=2245

Changelog

@metamask/controller-utils

  • Changed: Add bn.js to dependencies

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate

@FrederikBolding FrederikBolding requested a review from a team as a code owner March 6, 2024 11:14
@FrederikBolding FrederikBolding merged commit 43b5ff0 into main Mar 6, 2024
@FrederikBolding FrederikBolding deleted the fb/move-bn-to-deps branch March 6, 2024 11:41
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