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:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"typedoc": "^0.22.17"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 10"
|
||||
"node": ">= 14"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "napi build --platform --release --strip",
|
||||
|
||||
Reference in New Issue
Block a user