Skip to content

n-api documentation does not list minimum version of typesΒ #27486

@josephg

Description

@josephg

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions