Packages

node-addon-api

8.9.2 · 12 Aug 2026MIT139.4M / weekRepositorynpmAtom feed

Your version

5.0.0

major2 May 2022Where it was published

5.1.0 is the newest release of 5.x.

In short

5 new4 fixed6 changed

Release note

SemVer major release to pull changes since the last release. The main motivations for the release are:

  • Drop the support for Node.js v12.x.

  • Marked methods of wrapper classes const.

  • Enabled wrapping Napi namespace with custom namespace.

  • Added an override to Napi::Function::Call to call it with a c-style array
    of Napi::Value's.

  • Improved the test framework. Added the possibility to run subsets of tests
    more easily.

  • Added test for Napi::AsyncContext class.

  • Fixed ramdom failure on test for Napi::ThreadSafeFunction e
    Napi::TypedThreadSafeFunction class.

  • Fixed compilation problem on debian 8 system.

  • Added test for Napi::Object::Set() method.

  • Added some clarifications for Napi::ClassPropertyDescriptor.

  • Added clarification about weak reference for Napi::ObjectWrap.

  • Some minor fixes all over the documentation.

  • Fixed eslint configuration.

  • Fixed CI configuration for Windows.

  • Enabled pre-commit ClangFormat on Windows.

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.