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

Backport updates from the NAN version to N-API #698

Merged
merged 56 commits into from
Feb 5, 2019
Merged

Backport updates from the NAN version to N-API #698

merged 56 commits into from
Feb 5, 2019

Conversation

NickNaso
Copy link
Contributor

@NickNaso NickNaso commented Jan 23, 2019

Hi everyone,
with this PR I ported the updates introduced in the NAN version of the add-on to the N-API version.
Furthermore I added the support for node-pre-gyp as requested here: #513

This first effort on porting the add-on to N-API has the purpose to reduce the maintenance cost for developers as discussed here: #513

bcrypt is one of the most important native add-on and it is tracked by citgm, but in this issue seems that it will not work well in the future version of Node.js (v12) See: nodejs/node#25060

N-API could help to manage this kind of issues. In general using N-API maintainers do not take care of the changes that happens in V8 or node.

Please consider to review this PR and collaborate together to release this new version.

snyk-bot and others added 30 commits March 11, 2018 01:45
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/npm:hoek:20180212

Latest report for kelektiv/node.bcrypt.js:
https://snyk.io/test/github/kelektiv/node.bcrypt.js
[Snyk Update] New fixes for 8 vulnerable dependency paths
Starting with Nan 2.9.0, we have the ability to propagate async context
across async hops. Certain variants of Nan::Callback::Call are now
deprecated to encourage context preserving.

Here's a simple patch that fixes the deprecation warnings and properly
propagates the async context across the async APIs exposed by this
module.

For more information see [1], [2].

[1]: https://github.com/nodejs/nan/blob/HEAD/doc/node_misc.md#nanasyncresource.
[2]: https://nodejs.org/dist/latest-v9.x/docs/api/async_hooks.html#async_hooks_javascript_embedder_api
Allow to choose bcrypt minor version
Only glibc supported as of now.

Closes #559, #530, #528
* export a use function from lib/promises

closes #478

the `use` function can be used to change the promise implementation
that is used by the library
Upgrade node-pre-gyp to fix broken binary downloads
Added node 10 to Travis and Appveyor

* conditional support for node v4 and v5 in travis.yml

* conditional support for node v4 and v5 appveyor.yml
Typo fix in examples
Important proxy issues were fixed
Update node-pre-gyp to 0.11.0
readme: improve readability of version table
Automate release uploading from travis
@recrsn
Copy link
Collaborator

recrsn commented Jan 24, 2019

We need to rework this first. This shows some merge conflicts.

@NickNaso
Copy link
Contributor Author

NickNaso commented Jan 24, 2019

How do you want proceed?

@NickNaso
Copy link
Contributor Author

Hi @agathver,
I provided to solve the conflicts now I have only problem on Node.js v7 where we never backported the actual version of N-API (v3). My work will proceed on trying to solve this problem.

@recrsn
Copy link
Collaborator

recrsn commented Jan 24, 2019

We can skip Node 7. It's EOL

@recrsn recrsn merged commit 4112a7f into kelektiv:napi Feb 5, 2019
fast-facts pushed a commit to fast-facts/node.bcrypt.js that referenced this pull request Jun 17, 2022
Backport updates from the NAN version to N-API
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.