Comparing version 3.0.8 to 4.0.0
@@ -26,3 +26,2 @@ 'use strict'; | ||
} else if(minor !== 'b' && minor !== 'a') { | ||
console.log(minor, typeof minor); | ||
throw new Error('minor must be either "a" or "b"'); | ||
@@ -29,0 +28,0 @@ } |
@@ -0,1 +1,5 @@ | ||
# 4.0.0 (2020-02-17) | ||
* Switch to NAPI bcrypt | ||
# 3.0.8 (2019-12-31) | ||
@@ -21,2 +25,6 @@ | ||
# 3.0.4-napi (2019-03-08) | ||
* Sync N-API bcrypt with NAN bcrypt | ||
# 3.0.4 (2019-02-07) | ||
@@ -50,2 +58,11 @@ | ||
# 1.1.0-napi (2018-01-21) | ||
* Initial support for [N-API](https://nodejs.org/api/n-api.html) | ||
# 1.0.3 (2016-08-23) | ||
* update to nan v2.6.2 for NodeJS 8 support | ||
* Fix: use npm scripts instead of node-gyp directly. | ||
# 1.0.2 (2016-12-31) | ||
@@ -52,0 +69,0 @@ |
@@ -14,6 +14,6 @@ { | ||
"main": "./bcrypt", | ||
"version": "3.0.8", | ||
"version": "4.0.0", | ||
"author": "Nick Campbell (https://github.com/ncb000gt)", | ||
"engines": { | ||
"node": ">= 6.0.0" | ||
"node": ">= 10.0.0" | ||
}, | ||
@@ -33,4 +33,4 @@ "repository": { | ||
"dependencies": { | ||
"nan": "2.14.0", | ||
"node-pre-gyp": "0.14.0" | ||
"node-pre-gyp": "0.14.0", | ||
"node-addon-api": "^2.0.0" | ||
}, | ||
@@ -56,11 +56,15 @@ "devDependencies": { | ||
"Amitosh Swain Mahapatra <amitosh.swain@gmail.com> (https://github.com/Agathver)", | ||
"Corbin Crutchley <crutchcorn@gmail.com> (https://github.com/crutchcorn)" | ||
"Corbin Crutchley <crutchcorn@gmail.com> (https://github.com/crutchcorn)", | ||
"Nicola Del Gobbo <nicoladelgobbo@gmail.com> (https://github.com/NickNaso)" | ||
], | ||
"binary": { | ||
"module_name": "bcrypt_lib", | ||
"module_path": "./lib/binding/", | ||
"package_name": "{module_name}-v{version}-{node_abi}-{platform}-{arch}-{libc}.tar.gz", | ||
"module_path": "./lib/binding/napi-v{napi_build_version}", | ||
"package_name": "{module_name}-v{version}-napi-v{napi_build_version}-{platform}-{arch}-{libc}.tar.gz", | ||
"host": "https://github.com/kelektiv/node.bcrypt.js/releases/download/", | ||
"remote_path": "v{version}" | ||
"remote_path": "v{version}", | ||
"napi_versions": [ | ||
3 | ||
] | ||
} | ||
} |
@@ -19,11 +19,11 @@ # node.bcrypt.js | ||
| Node Version | Bcrypt Version | | ||
| -------------- | -------------- | | ||
| 0.4 | <= 0.4 | | ||
| 0.6, 0.8, 0.10 | >= 0.5 | | ||
| 0.11 | >= 0.8 | | ||
| 4 | <= 2.1.0 | | ||
| 8 | >= 1.0.3 | | ||
| 10, 11 | >= 3 | | ||
| 12 | >= 3.0.6 | | ||
| Node Version | Bcrypt Version | | ||
| -------------- | ------------------| | ||
| 0.4 | <= 0.4 | | ||
| 0.6, 0.8, 0.10 | >= 0.5 | | ||
| 0.11 | >= 0.8 | | ||
| 4 | <= 2.1.0 | | ||
| 8 | >= 1.0.3 <= 4.0.0 | | ||
| 10, 11 | >= 3 | | ||
| 12 | >= 3.0.6 | | ||
@@ -48,3 +48,3 @@ `node-gyp` only works with stable/released versions of node. Since the `bcrypt` module uses `node-gyp` to build and install, you'll need a stable version of node to use bcrypt. If you do not, you'll likely see an error that starts with: | ||
This library supports `$2a$` and `$2b$` prefix bcrypt hashes. `$2x$` and `$2y$` hashes are specific to bcrypt implementation developed for Jon the Ripper. In theory, they should be compatible with `$2b$` prefix. | ||
This library supports `$2a$` and `$2b$` prefix bcrypt hashes. `$2x$` and `$2y$` hashes are specific to bcrypt implementation developed for John the Ripper. In theory, they should be compatible with `$2b$` prefix. | ||
@@ -120,3 +120,3 @@ Compatibility with hashes generated by other languages is not 100% guaranteed due to difference in character encodings. However, it should not be an issue for most cases. | ||
bcrypt.hash(myPlaintextPassword, saltRounds, function(err, hash) { | ||
// Store hash in your password DB. | ||
// Store hash in your password DB. | ||
}); | ||
@@ -135,3 +135,3 @@ ``` | ||
bcrypt.compare(someOtherPlaintextPassword, hash, function(err, result) { | ||
// == false | ||
// result == false | ||
}); | ||
@@ -193,4 +193,4 @@ ``` | ||
```javascript | ||
var salt = bcrypt.genSaltSync(saltRounds); | ||
var hash = bcrypt.hashSync(myPlaintextPassword, salt); | ||
const salt = bcrypt.genSaltSync(saltRounds); | ||
const hash = bcrypt.hashSync(myPlaintextPassword, salt); | ||
// Store hash in your password DB. | ||
@@ -202,3 +202,3 @@ ``` | ||
```javascript | ||
var hash = bcrypt.hashSync(myPlaintextPassword, saltRounds); | ||
const hash = bcrypt.hashSync(myPlaintextPassword, saltRounds); | ||
// Store hash in your password DB. | ||
@@ -327,2 +327,3 @@ ``` | ||
* [Amitosh Swain Mahapatra][agathver] - $2b$ hash support, ES6 Promise support | ||
* [Nicola Del Gobbo][NickNaso] - Initial implementation with N-API | ||
@@ -356,1 +357,2 @@ ## License | ||
[agathver]:https://github.com/Agathver | ||
[NickNaso]: https://github.com/NickNaso |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
113531
351
962
+ Addednode-addon-api@^2.0.0
+ Addednode-addon-api@2.0.2(transitive)
- Removednan@2.14.0
- Removednan@2.14.0(transitive)