-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Closed
Description
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.
Metadata
Metadata
Assignees
Labels
No labels