node-addon-api
8.9.2 · 12 Aug 2026MIT139.4M / weekRepositorynpmAtom feed
4.3.0 is the newest release of 4.x.
In short
4 new3 changed
Release note
SemVer minor release to pull changes since the last release. The main motivations for the release are:
Added the wraps for
napi_add_env_cleanup_hookandnapi_remove_env_cleanup_hook.Added Napi::Maybe<T> class to handle pending exception when cpp exception disabled.
Napi::Referenceupdated the default value to reflect the most possible values when there are any errors occurred onnapi_reference_unref.Added the check for nullpointer on
Napi::Stringinitialization.Added first set of tests for
Napi::Symbol.Updated test suite to avoid parallel running.
Updated example for context sensitivity.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.