feat(crypto-nodejs): Define Node.js versions policy.

We now support only “current”, “active” or “maintenance” versions
according to https://nodejs.org/en/about/releases/, which are
compatible with NAPI v6.
This commit is contained in:
Ivan Enderlin
2022-06-14 09:41:03 +02:00
parent 3833d35348
commit 073fb45580
3 changed files with 11 additions and 8 deletions
+2 -2
View File
@@ -128,9 +128,9 @@ jobs:
strategy:
fail-fast: true
matrix:
node-version: [14.0, 15.0, 16.0]
node-version: [14.0, 16.0, 18.0]
include:
- node-version: 16.0
- node-version: 18.0
build-doc: true
steps:
+8 -5
View File
@@ -18,11 +18,14 @@ pretty classical by using [npm], see [the Downloading and installing
Node.js and npm
Page](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm).
The binding is using NAPI 6 (Node API version 6), which means that is
compatible with Node.js versions 14.0.0, 15.0.0 and 16.0.0 (see [the
full Node API version
matrix](https://nodejs.org/api/n-api.html#node-api-version-matrix))
(we do not support the versions 10.20 and 12.17.0).
The binding is compatible with, and tested against, the Node.js
versions that are in “current”, “active” or “maintenance” states,
according to [the Node.js Releases
Page](https://nodejs.org/en/about/releases/), _and_ which are
compatible with [NAPI v6 (Node.js
API)](https://nodejs.org/api/n-api.html#node-api-version-matrix). It
means that this binding will work with the following versions: 14.0.0,
16.0.0 and 18.0.0.
Once the Rust compiler, Node.js and npm are installed, you can run the
following commands:
+1 -1
View File
@@ -18,7 +18,7 @@
"typedoc": "^0.22.17"
},
"engines": {
"node": ">= 10"
"node": ">= 14"
},
"scripts": {
"build": "napi build --platform --release --strip",