Skip to content

Commit 814a5cb

Browse files
authored
Update supported Node.js versions (#105)
* Update Node.js versions in CI workflow Current and LTS releases: v14, v16, v18 * Add `engines` field to package.json * Add 'Requirements' section to the README
1 parent c3d9657 commit 814a5cb

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
node-version: [10.x, 12.x, 14.x, 15.x, 16.x]
18+
node-version: [14.x, 16.x, 18.x]
1919

2020
steps:
2121
- uses: actions/checkout@v2

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ requests against JSON schemas.
1818
- **Error Messaging** - Ajv provides you with rich error objects that can easily be transformed into human-readable format.
1919
- **Documentation** - Creating a JSON Schema is another way of documenting your application.
2020

21-
## Install
21+
## Requirements
22+
23+
- [Node.js](https://nodejs.org/en/download/) >= v14
24+
25+
## Installation
2226

2327
```sh
2428
npm install express-json-validator-middleware

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@
4545
"@types/json-schema": "^7.0.4",
4646
"ajv": "^8.8.2"
4747
},
48+
"engines": {
49+
"node": ">=14"
50+
},
4851
"husky": {
4952
"hooks": {
5053
"pre-commit": "lint-staged"

0 commit comments

Comments
 (0)