From 69af43ead9e964a82a18046b54c284963974d3fa Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Tue, 28 May 2019 16:05:28 -0400 Subject: [PATCH] doc: clarify N-API version Matrix I was asked by a community member if they needed to recompile for v12.x based on the version matrix. Add additional context to help ensure it is clear that this is not the case. PR-URL: https://github.com/nodejs/node/pull/27942 Reviewed-By: Richard Lau Reviewed-By: Beth Griggs Reviewed-By: Rich Trott Reviewed-By: Christopher Hiller Reviewed-By: James M Snell --- doc/api/n-api.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/api/n-api.md b/doc/api/n-api.md index f648ab1d18f752..47d8f79c6780c1 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -145,6 +145,12 @@ available to the module code. ## N-API Version Matrix +N-API versions are additive and versioned independantly from Node.js. +Version 4 is an extension to version 3 in that it has all of the APIs +from version 3 with some additions. This means that you +do not need to recompile for new versions of Node.js which are +listed as supporting a later version. + | | 1 | 2 | 3 | 4 | |:-----:|:-------:|:--------:|:--------:|:--------:| | v6.x | | | v6.14.2* | |