-
Notifications
You must be signed in to change notification settings - Fork 813
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
Dependency updates, support node v12 #777
Conversation
It seems NYC takes twice as much time for some tests (mining) and also consumes more memory that sometimes causes out of memory issues. nyc seems to monkey patch child_process.spawn and that causes a lot of issues with our workers. Sometimes workers don't spawn anymore or system runs out of memory. This workaround worked: https://gist.github.com/nodar-chkuaselidze/23b1221cabcb3ac61842d15a4b1fb3ae, but I will be skipping nyc change for now.. |
This comment has been minimized.
This comment has been minimized.
bench: remove chacha that is out of the scope, it was part of the bip151 implementation. test: increase timeouts.
I checked why there was a problem from the workers, so there are couple of things that cause the problems:
Addressing these:
Having NYC back, would be much better in that case, because it also covers workers (with some issues) |
It also looks like some additional changes:
|
Other changes not mentioned:
|
bcrypto has a lot of implementation changes as relating to bcoin, specifically around |
Also a related Node.js v12 change that is relevant nodejs/node#25576 |
Looks good, would be good to have some more review and testing in relation to the |
General time for running the tests is faster. Node.js v12.3.1 (master branch, native build fails):
Node.js v12.3.0 (depupdates branch):
Node.js v10.13.0 (master branch):
Node.js v10.13.0 (depupdates branch):
Node.js v8.11.2 (master branch):
Node.js v8.11.2 (depupdates branch):
|
General test time related to different bcrypto backends with Node.js v12.3.1:
|
There are a few duplicate packages:
This can be easily resolved by running |
In regards to There are minimal changes to And for The methods |
Dependency updates, support node v12
Updates dependencies, dotfiles and other minor updates.
Dotfiles and others.
bdb
is 8.6.0, so bcoin will have the same.Dependency updates
NOTE: even though patch updates does not necessarily need change in package.json, because we allow patch level changes, I still included those.
tl;dr; nothing needs to change in bcoin.
incomplete list of updates
major
update:minor
updates:patch
updates:BFile update:
(when available) or provide wrappers and has more consistent API across nodejs versions.
Bcrypto updates to bcoin related apis:
General:
Diffs
when NODE_BACKEND is js)
v12 fixes only:
No change: