Releases: venables/bookshelf-secure-password
Releases · venables/bookshelf-secure-password
v5.0.0
v4.0.0
v3.1.0
v3.0.1
v3.0.0
Breaking changes from v2:
- Removes the ability to hash passwords immediately upon setting them on the model. This method used blocking
Sync
methods, which are against Node standards and would lead to scalability issues. Instead, this library only uses Async methods for password hashing.
If you prefer to use the blocking setter
methods (not recommended), please use the v2.x releases.
v2.0.0
Breaking changes from v1:
- Updates
authenticate
method to return a Promise. The Promise resolves to the authenticated Model, otherwise it rejects with aPasswordMismatchError
New features:
- Adds optional "save-time" hashing method to allow performing password hashing as the model is saved to the database. This allows us to use
async
calls within BCrypt.
Other changes:
- Updates bcrypt dependency to ^1.0.2
- Drops
lodash
dependency - Adds 100% coverage test suite