You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each type in n-api is only available from some particular n-api version. But the documentation doesn't list the minimum version from which each API is available.
For example, napi_threadsafe_function is only available from NAPI_VERSION 4 onwards. And thus, it can't be used if you're hoping to support older versions of nodejs. But its impossible to know that from the documentation alone - I had to dig into the napi header files to figure out what APIs I can use.
Edit: It looks like the N-API version is listed for functions, just not for types. So this is a pretty minor issue.
The text was updated successfully, but these errors were encountered:
josephg
changed the title
n-api documentation does not list minimum version of functions
n-api documentation does not list minimum version of types
Apr 30, 2019
Add version info for types in N-API doc.
PR-URL: #27754Fixes: #27486
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Each type in n-api is only available from some particular n-api version. But the documentation doesn't list the minimum version from which each API is available.
For example, napi_threadsafe_function is only available from NAPI_VERSION 4 onwards. And thus, it can't be used if you're hoping to support older versions of nodejs. But its impossible to know that from the documentation alone - I had to dig into the napi header files to figure out what APIs I can use.
Edit: It looks like the N-API version is listed for functions, just not for types. So this is a pretty minor issue.
The text was updated successfully, but these errors were encountered: