-
Notifications
You must be signed in to change notification settings - Fork 93
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
Version 3 #125
Conversation
cc @legobeat please review |
Is the intention to run the two builds before publishing? I guess so, but just double-checking. Should we add info about the new modules to the readme? |
@alcuadrado yes, in fact, we have been doing two builds for a long time, using
Yes, and tests for them. |
It's not clear to me if Node.js v14 compatibility is intended for this release or if that's a question in scope for this at all (here is BTW where an
|
Aside related to the two builds: It's not rare to see projects get caught inadvertently breaking either of CJS or ESM in a subtle but impacting change after transitioning to dual builds. While things look good here now, there is always the risk of future discrepancies (or even something we missed here). The current mocha tests seem to be instrumented as |
https://arethetypeswrong.github.io https://arethetypeswrong.github.io/?p=%40metamask%2Feth-sig-util%407.0.3
ts auto-produces them, I don't think it's necessary to have script which
I will be removing crypto export from utils. I also wanted to replace aes with something sync (from noble ciphers), while moving old version to aes-compat or aes-webcrypto, but it's not certain. |
[v3]: Indicate supported Node.js versions; test on Node.js v16
AES has been changed from native (async) to (audited) noble-ciphers (sync). I believe this change should be done, because async methods are a big deal. They force all app code to become async. Native aes is also not available in all environments. Ethers, for example, uses sync AES. |
LGTM! Still curious on what the breaking change(s) beyond
|
that's it. nothing else |
@legobeat do you know why nodejs v14 is failing on linux? The error is weird
|
@paulmillr Looks to be because of node 14 shipping with incompatible npm v6. |
[v3] npm version 9
[v3] npm audit fix
ci: run macOS tests except for Node.js v14
README.md
Outdated
|
||
See [browser usage](#browser-usage) for information on using the package with major Javascript bundlers. It is | ||
tested with **Webpack, Rollup, Parcel and Browserify**. | ||
We support all major platforms and runtimes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Would be nice to list what's explicitly supported (node.js, bun, deno, browsers?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, also would be good to somehow test in bun, deno
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for putting this together, @paulmillr! And @legobeat for also reviewing it :)
aes
: change from native async to noble-ciphers syncbls
module: bls12-381 operationsbn
module: bn254 operationsmath
module: modPow and modInv operationsBackwards-incompatible changes:
crypto
var had been removed