node-addon-api

Module for using Node-API from C++

MIT License

Downloads
76.2M
Stars
2K
Committers
113

Bot releases are visible (Hide)

node-addon-api - node-addon-api: v8.1.0 Latest Release

Published by github-actions[bot] 3 months ago

8.1.0 (2024-07-05)

Features

Bug Fixes

  • fix compilation for Visual Studio 2022 (#1492) (e011720)
  • restore ability to run under NAPI_EXPERIMENTAL (#1409) (40bcb09)
node-addon-api - v8.0.0

Published by legendecas 8 months ago

Notable changes

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

Commits

  • [df2147a2b6] - build(deps): bump github/codeql-action from 3.24.3 to 3.24.5 (dependabot[bot]) #1455
  • [eb4fa9b55a] - build(deps): bump actions/dependency-review-action from 4.1.0 to 4.1.3 (dependabot[bot]) #1452
  • [f85e8146bb] - build(deps): bump github/codeql-action from 3.23.2 to 3.24.3 (dependabot[bot]) #1448
  • [b84deb0d2f] - build(deps): bump actions/dependency-review-action from 4.0.0 to 4.1.0 (dependabot[bot]) #1447
  • [7dcee380cd] - build(deps): bump actions/setup-node from 4.0.1 to 4.0.2 (dependabot[bot]) #1444
  • [a727b629fe] - build(deps): bump actions/upload-artifact from 4.3.0 to 4.3.1 (dependabot[bot]) #1443
  • [ea712094e3] - build(deps): bump step-security/harden-runner from 2.6.1 to 2.7.0 (dependabot[bot]) #1440
  • [898e5006a5] - build(deps): bump github/codeql-action from 3.23.1 to 3.23.2 (dependabot[bot]) #1439
  • [66e6e0e4b6] - build(deps): bump actions/upload-artifact from 4.0.0 to 4.3.0 (dependabot[bot]) #1438
  • [f1ca4ccd7f] - build(deps): bump actions/dependency-review-action from 3.1.5 to 4.0.0 (dependabot[bot]) #1433
  • [c58112d52e] - build(deps): bump github/codeql-action from 3.23.0 to 3.23.1 (dependabot[bot]) #1430
  • [f1b9c0bc24] - chore: remove v16.x regular CI runs (Chengzhong Wu) #1437
  • [c6561d90d6] - chore: reduce dependabot noise (Chengzhong Wu) #1436
  • [42931eeba6] - doc: reorganize readme (Chengzhong Wu) #1441
  • [3b9f3db14e] - doc: update changelog maker commands (Chengzhong Wu) #1431
  • [034c039298] - test: heed npm_config_debug (Gabriel Schulhof) #1445

Full Changelog: https://github.com/nodejs/node-addon-api/compare/v7.1.0...v8.0.0

node-addon-api - v7.1.0

Published by legendecas 9 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/nodejs/node-addon-api/compare/v7.0.0...v7.1.0

node-addon-api - v7.0.0

Published by KevinEady over 1 year ago

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

  • Drop support for Node.js v14.x and v19.x.
  • Ensure native receiver exists when calling instance methods and properties.
  • Fix issue when creating Napi::Error instances that wrap primitives values.

What's Changed

New Contributors

Full Changelog: https://github.com/nodejs/node-addon-api/compare/v6.1.0...v7.0.0

node-addon-api - Release 6.1.0

Published by NickNaso over 1 year ago

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

  • Enforce type checks on Napi::Value::As().
  • Added Napi::TypeTaggable class.
  • Defined NAPI_HAS_THREADS to make TSFN available on Emscripten.
  • Defined NODE_API_NO_EXTERNAL_BUFFERS_ALLOWED and Napi::Buffer::NewOrCopy() to handle the support for external buffers.

What's Changed

New Contributors

Full Changelog: https://github.com/nodejs/node-addon-api/compare/v6.0.0...v6.1.0

node-addon-api - Release 6.0.0

Published by NickNaso over 1 year ago

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

  • Add Napi::Object::TypeTag() and Napi::Object::CheckTypeTag() methods.
  • Set operator napi_callback_info explicit.
  • Some minor fixes all over the test suite.
  • Add tests related to Napi::Object::TypeTag() and Napi::Object::CheckTypeTag() methods.
  • Add tests related to Napi::CallbackScope.
  • Add tests related to Napi::EscapableHandleScope.
  • Add tests related to Napi::Maybe<T>.
  • Add tests related to Napi::ThreadSafeFuntion.
  • Change some tests related to Napi::AsyncWorker.
  • Add documentation for Napi::Object::TypeTag() and Napi::Object::CheckTypeTag() methods.
  • Add documentation about how to run a specific unit test.

What's Changed

Full Changelog: https://github.com/nodejs/node-addon-api/compare/v5.1.0...v6.0.0

node-addon-api - Release 5.1.0

Published by NickNaso almost 2 years ago

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: https://github.com/nodejs/node-addon-api/compare/v5.0.0...v5.1.0

node-addon-api - Release 5.0.0

Published by NickNaso over 2 years ago

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: https://github.com/nodejs/node-addon-api/compare/v4.3.0...v5.0.0

node-addon-api - Release 4.3.0

Published by NickNaso over 2 years ago

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: https://github.com/nodejs/node-addon-api/compare/v4.2.0...v4.3.0

node-addon-api - Release 4.2.0

Published by NickNaso about 3 years ago

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.
node-addon-api - Release 4.1.0

Published by NickNaso about 3 years ago

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.
node-addon-api - Release 4.0.0

Published by NickNaso over 3 years ago

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.
node-addon-api - Release 3.2.1

Published by NickNaso over 3 years ago

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

node-addon-api - Release 3.2.0

Published by NickNaso over 3 years ago

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.

node-addon-api - Release 3.1.0

Published by NickNaso almost 4 years ago

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.

node-addon-api - Release 3.0.2

Published by NickNaso about 4 years ago

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.
node-addon-api - Release 3.0.1

Published by NickNaso over 4 years ago

SemVer patch release to pull changes since the last release. The main motivations for the release are the fix on some api and documentation.

node-addon-api - Release 2.0.2

Published by NickNaso over 4 years ago

SemVer major release to pull changes since the last release. The main motivation for the release is the backport of some changes in the Napi::ObjectWrap.

node-addon-api - Release 2.0.1

Published by NickNaso over 4 years ago

Security release. The main motivation for the release is the fix for memory corruption vulnerability.

node-addon-api - Release 1.7.2

Published by NickNaso over 4 years ago

Security release. The main motivation for the release is the fix for memory corruption vulnerability.

Package Rankings
Top 4.06% on Proxy.golang.org
Top 0.61% on Npmjs.org
Top 13.8% on Repo1.maven.org
Badges
Extracted from project README
codecov NPM NPM