Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cjs and esm support #22

Merged
merged 7 commits into from
Sep 8, 2024
Merged

Add cjs and esm support #22

merged 7 commits into from
Sep 8, 2024

Conversation

Nesopie
Copy link
Contributor

@Nesopie Nesopie commented Aug 9, 2024

Adds:

  • Support for CJS and ESM import
  • Replaced Buffer with Uint8Array to be compatible with browser (and also uses crypto.getRandomValues)
  • Replaced typeforce with valibot

Copy link
Member

@junderw junderw left a comment

Choose a reason for hiding this comment

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

LGTM 0c8666f

As mentioned on Matrix, we'll publish this along with all the other major libraries.

I highly recommend against installing random forks published from random accounts with barely any public history.

Sure they might be trustworthy members of the community just eager to get their hands on an experimental PR, but they could also be adding a backdoor.

Be careful out there.

@encloinc

This comment was marked as off-topic.

@junderw

This comment was marked as off-topic.

@encloinc

This comment was marked as abuse.

@junderw junderw merged commit cbb8a5a into bitcoinjs:master Sep 8, 2024
0 of 6 checks passed
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.

3 participants