unstale

npm / node-addon-api

node-addon-api

What changed in node-addon-api 2 to 8, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-03.

6 breaking12 new APIs and options10 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.9 on npm

node-addon-api 813 changes

Breaking changes 1

  • Support for Node.js v16.x is no longer maintained.

    8.0.0release notes

New APIs and options 7

  • Adds a string_view overload for String::New.

    8.8.0release notes

  • Adds a std::string_view overload for Symbol::For.

    8.8.0release notes

  • Adds an overload accepting a std::chrono::system_clock::time_point.

    8.7.0release notes

  • Adds an API to get an object's prototype.

    8.7.0release notes

  • Adds an API to set an object's prototype.

    8.7.0release notes

  • DataViews now support SharedArrayBuffer.

    8.7.0release notes

  • Adds SharedArrayBuffer support to node-addon-api.

    8.6.0release notes

Fixes and other changes 5

  • Resolves overload ambiguity when using Symbol::For.

    8.9.2release notes

  • Fixed compatibility with VS2026 to address an internal compiler error.

    8.9.1release notes

  • Adds a missing const qualifier to the string parameter.

    8.7.0release notes

  • Fixes an issue involving the -Wextra-semi compiler warning.

    8.7.0release notes

  • Silences a legitimate vfptr sanitizer warning enabled by default in Android NDK 29.

    8.6.0release notes

node-addon-api 73 changes

Breaking changes 1

  • Support for Node.js v14.x and v19.x is dropped.

    7.0.0release notes

Fixes and other changes 2

  • Fixes creating Napi::Error instances that wrap primitive values.

    7.0.0release notes

  • A native receiver is ensured when calling instance methods and properties.

    7.0.0release notes

node-addon-api 63 changes

Breaking changes 1

  • The conversion operator for napi_callback_info is explicit.

    6.0.0release notes

New APIs and options 2

  • Adds a method for checking a Napi::Object's type tag.

    6.0.0release notes

  • Adds a method for tagging a Napi::Object with a type tag.

    6.0.0release notes

node-addon-api 55 changes

Breaking changes 2

  • Methods of wrapper classes were marked const, affecting how they can be called on const wrapper objects.

    5.0.0release notes

  • Support for Node.js v12.x was dropped, so projects using this release need a newer Node.js version.

    5.0.0release notes

New APIs and options 2

  • An overload was added to call the function with a C-style array of Napi::Value values.

    5.0.0release notes

  • The namespace can now be wrapped with a custom namespace.

    5.0.0release notes

Fixes and other changes 1

node-addon-api 42 changes

Breaking changes 1

Fixes and other changes 1

node-addon-api 22 changes

New APIs and options 1

  • A new API is available for asynchronous progress workers.

    2.0.0release notes

Fixes and other changes 1

  • The API has been improved; the notes do not specify the details.

    2.0.0release notes