Skip to content

Releases: nodejs/node-addon-api

Release 5.1.0

13 Jan 11:53
Compare
Choose a tag to compare

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

  • Fix memory leak in Napi::AsyncProgressWorkerBase.
  • Add api to get callback_info from Napi::CallBackInfo.
  • Fix erros and warning in VS 2017.
  • Make Napi::Env::CleanupHook public.
  • Remove Napi::TypedArray::unknown_array_type.
  • Add tests related to Napi::Env.
  • Add tests related to Napi::TypedArray.
  • Add tests related to Napi::AsyncWorker.
  • Add tests related to Napi::TypedThreadSafeFunction.
  • Add tests related to Napi::Value.
  • Add test related to Napi::Promise.
  • Add Napi::HandleScope example.
  • Add documentation about how to run a specific unit test.
  • Add Windows with VS 2022 and Node.JS 19.x to the CI matrix.
  • Fix stale workflow.
  • Update Node.js versions on CI component.
  • Add condition for Windows to find eslint.

What's Changed

New Contributors

Full Changelog: v5.0.0...v5.1.0

Release 5.0.0

02 May 10:56
Compare
Choose a tag to compare

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.

What's Changed

New Contributors

Full Changelog: v4.3.0...v5.0.0

Release 4.3.0

21 Jan 15:11
Compare
Choose a tag to compare

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

  • Added iterator for Napi::Object.
  • Fixed usage of napi_extended_error_info in Napi::Error::New().
  • Added unwrapping logic to handle graceful error handling for primitives.
  • Removed travis config.
  • Updated compiler used for testing.
  • Added BigInt value test.
  • Minor fixes all overt est suite.
  • Documentation of iterator for Napi::Object.
  • Minor fixes all over documentation.

What's Changed

New Contributors

Full Changelog: v4.2.0...v4.3.0

Release 4.2.0

17 Sep 16:59
Compare
Choose a tag to compare

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

  • Allow creating Function with move-only functor.
  • Fixed casts to not be undefined behavior.
  • Fixed the way to enable C++ exceptions.
  • Run tests with options to prefix build root path.
  • Minor fixes all over the documentation.

Release 4.1.0

25 Aug 12:15
Compare
Choose a tag to compare

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_hook and napi_remove_env_cleanup_hook.
  • Added Napi::Maybe class to handle pending exception when cpp exception disabled.
  • Napi::Reference updated the default value to reflect the most possible values when there are any errors occurred on napi_reference_unref.
  • Added the check for nullpointer on Napi::String initialization.
  • Added first set of tests for Napi::Symbol.
  • Updated test suite to avoid parallel running.
  • Updated example for context sensitivity.

Release 4.0.0

15 Jun 13:36
Compare
Choose a tag to compare

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

  • Drop the support for Node.js v10.x.
  • Fix a crashing issue in Napi::Error::ThrowAsJavaScriptException.

Release 3.2.1

28 May 18:30
Compare
Choose a tag to compare

SemVer patch release to fix the documentation about the oldest Node.js version supported.

Release 3.2.0

17 May 17:31
Compare
Choose a tag to compare

SemVer minor release to pull changes since the last release. The main motivations for the release is the addition of a new APIs and a lot of important fixes.

Release 3.1.0

17 Dec 00:47
Compare
Choose a tag to compare

SemVer minor release to pull changes since the last release. The main motivations for the release is the addition of a new APIs and a lot of important fixes.

Release 3.0.2

18 Sep 16:27
Compare
Choose a tag to compare

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

  • Fixed the compilation breakage introduced in the previous release (v3.0.1).
  • Added the new Napi::Addon api to o help handle the loading of a native add-on into multiple
    threads and or multiple times in the same thread.
  • Converted tests that gc into async functions that await 10 ticks after each gc.
  • Refactored test for threasfafe function using async/await.
  • Some minor corrections all over the test suite and documentation.