From 4c4f0a1c059f94e6b3253d356ae59ce7da8f3a5f Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Fri, 14 Jul 2023 14:16:16 -0400 Subject: [PATCH 1/2] doc: refactor node-api support matrix - refactor table so that it does not grow for every new version of Node.js - refer to latest version of table as the canonical reference - add info for Node-API v9 Refs: https://github.com/nodejs/node/issues/48277 Signed-off-by: Michael Dawson --- doc/api/n-api.md | 102 ++++++++++++----------------------------------- 1 file changed, 25 insertions(+), 77 deletions(-) diff --git a/doc/api/n-api.md b/doc/api/n-api.md index 873c8bdce4a492..1907b7bb7c4410 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -245,106 +245,54 @@ from version 3 with some additions. This means that it is not necessary to recompile for new versions of Node.js which are listed as supporting a later version. +This table may not be up to date in older streams, the most up to date +information is in the latest API documentation in: +[Node-API version matric](https://nodejs.org/docs/latest/api/n-api.html#node-api-version-matrix) + - - - - - - - - - - - - - - - - + + - - - - + + - - - - + + -
123
v6.xv6.14.2*
v8.xv8.6.0**v8.10.0*v8.11.2Node-API versionSupported In
v9.xv9.0.0*v9.3.0*v9.11.0*9 20.3.0+, 21.0.0 and all later versions
≥ v10.xall releasesall releasesall releases8v12.22.0+, v14.17.0+, v15.12.0+, 16.0.0 and all later versions
- - - - - - - - + + - - - - - - + + - - - - - - + + - - - - - - + + - - - - - - - - - - - - - - + + + - - - - - - + + - - - - - - + +
456787v10.23.0+, v12.19.0+, v14.12.0+, 15.0.0 and all later versions
v10.xv10.16.0v10.17.0v10.20.0v10.23.06v10.20.0+, v12.17.0+, 14.0.0 and all later versions
v11.xv11.8.05v10.17.0+, v12.11.0+, 13.0.0 and all later versions
v12.xv12.0.0v12.11.0v12.17.0v12.19.0v12.22.04v10.16.0+, v11.8.0+, 12.0.0 and all later versions
v13.xv13.0.0v13.0.0
v14.xv14.0.0v14.0.0v14.0.0v14.12.0v14.17.0
3v6.14.2*, 8.11.2+, v9.11.0+*, 10.0.0 and all later versions
v15.xv15.0.0v15.0.0v15.0.0v15.0.0v15.12.02v8.10.0+*, v9.3.0+*, 10.0.0 and all later versions
v16.xv16.0.0v16.0.0v16.0.0v16.0.0v16.0.01v8.6.0+**, v9.0.0+*, 10.0.0 and all later versions
From dcb5d42ab059f8938269e5ec1b6d83e67af2ee9d Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Fri, 14 Jul 2023 14:30:12 -0400 Subject: [PATCH 2/2] Update doc/api/n-api.md --- doc/api/n-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/n-api.md b/doc/api/n-api.md index 1907b7bb7c4410..10f19ee2f8cc65 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -247,7 +247,7 @@ listed as supporting a later version. This table may not be up to date in older streams, the most up to date information is in the latest API documentation in: -[Node-API version matric](https://nodejs.org/docs/latest/api/n-api.html#node-api-version-matrix) +[Node-API version matrix](https://nodejs.org/docs/latest/api/n-api.html#node-api-version-matrix)