Skip to content

Commit 5b26dd6

Browse files
authored
2.x final updates (#33)
update readme and set max node version
1 parent ed4afb2 commit 5b26dd6

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ node_js:
33
- '8'
44
- '9'
55
- '10'
6+
- '11'
67

78
sudo: required
89

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ Under the hood, the plugin uses [bcrypt](https://en.wikipedia.org/wiki/Bcrypt) f
1212
### Yarn
1313
`yarn add objection-password`
1414

15+
## Version Compatibility
16+
17+
| Node Version | Plugin Version |
18+
| -------------- | ------------------|
19+
| < 12 | 2.x |
20+
| >= 12 | >= 3.x |
21+
22+
If you're using Node 12 or greater, use version `3.x` of the plugin as it contains `bcrypt 5.x`, which contains important security updates but is only compatible with Node 12+. It's also tested against Objection 2.x.
23+
1524
## Usage
1625

1726
### Hashing your data

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
22
"name": "objection-password",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"description": "Automatic bcrypt hashing for Objection.js",
55
"main": "index.js",
6+
"engines": {
7+
"node": "< 12.0.0"
8+
},
69
"scripts": {
710
"test": "ava"
811
},

0 commit comments

Comments
 (0)