Skip to content

Releases: nodejs/node-addon-api

v8.0.0

05 Mar 07:03
d1ba547
Compare
Choose a tag to compare

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: v7.1.0...v8.0.0

v7.1.0

19 Jan 08:53
185dda1
Compare
Choose a tag to compare

What's Changed

  • build(deps): bump actions/checkout from 3.5.2 to 3.5.3 by @dependabot in #1329
  • src: add SyntaxError by @KevinEady in #1326
  • build(deps): bump actions/dependency-review-action from 2.5.1 to 3.0.6 by @dependabot in #1331
  • build(deps): bump actions/stale from 5.2.1 to 8.0.0 by @dependabot in #1333
  • build(deps-dev): bump fs-extra from 9.1.0 to 11.1.1 by @dependabot in #1335
  • build(deps): bump step-security/harden-runner from 2.3.0 to 2.4.1 by @dependabot in #1342
  • build(deps): bump github/codeql-action from 2.2.12 to 2.20.1 by @dependabot in #1343
  • build(deps): bump ossf/scorecard-action from 2.0.6 to 2.2.0 by @dependabot in #1344
  • Add Node.js version restrictions by @Apollon77 in #1340
  • build(deps): bump actions/setup-node from 3.6.0 to 3.7.0 by @dependabot in #1348
  • build(deps): bump github/codeql-action from 2.20.1 to 2.20.3 by @dependabot in #1349
  • Doc: fix typo 'Napi::AsyncProgressWorker::ExecutionProcess' to 'Napi::AsyncProgressWorker::ExecutionProgress'. by @JerryZhongJ in #1350
  • doc: add missing title IsBigInt by @MarxJiao in #1352
  • build(deps): bump github/codeql-action from 2.20.3 to 2.21.0 by @dependabot in #1353
  • fix: handle c++ exception in TSFN callback by @legendecas in #1345
  • src: remove duplicate buffer info calls by @legendecas in #1354
  • build(deps): bump step-security/harden-runner from 2.4.1 to 2.5.0 by @dependabot in #1356
  • build(deps): bump github/codeql-action from 2.21.0 to 2.21.1 by @dependabot in #1357
  • build(deps): bump github/codeql-action from 2.21.1 to 2.21.2 by @dependabot in #1358
  • build(deps): bump step-security/harden-runner from 2.5.0 to 2.5.1 by @dependabot in #1364
  • build(deps): bump actions/dependency-review-action from 3.0.6 to 3.0.8 by @dependabot in #1368
  • build(deps): bump actions/setup-node from 3.7.0 to 3.8.1 by @dependabot in #1370
  • build(deps): bump actions/checkout from 3.5.3 to 3.6.0 by @dependabot in #1371
  • build(deps): bump github/codeql-action from 2.21.2 to 2.21.5 by @dependabot in #1372
  • build(deps): bump actions/checkout from 3.6.0 to 4.0.0 by @dependabot in #1375
  • build(deps): bump actions/upload-artifact from 3.1.2 to 3.1.3 by @dependabot in #1376
  • build(deps): bump github/codeql-action from 2.21.5 to 2.21.6 by @dependabot in #1378
  • build(deps): bump github/codeql-action from 2.21.6 to 2.21.7 by @dependabot in #1380
  • build(deps): bump actions/dependency-review-action from 3.0.8 to 3.1.0 by @dependabot in #1377
  • build(deps): bump actions/checkout from 4.0.0 to 4.1.0 by @dependabot in #1383
  • build(deps): bump github/codeql-action from 2.21.7 to 2.21.9 by @dependabot in #1384
  • Update LICENSE.md so GitHub recognizes it by @mhdawson in #1385
  • build(deps): bump step-security/harden-runner from 2.5.1 to 2.6.0 by @dependabot in #1386
  • build(deps): bump ossf/scorecard-action from 2.2.0 to 2.3.0 by @dependabot in #1388
  • build(deps): bump github/codeql-action from 2.21.9 to 2.22.3 by @dependabot in #1393
  • build(deps): bump actions/checkout from 4.1.0 to 4.1.1 by @dependabot in #1394
  • test: remove experimental flag from bigint by @gabrielschulhof in #1395
  • build(deps): bump github/codeql-action from 2.22.3 to 2.22.4 by @dependabot in #1396
  • build(deps): bump ossf/scorecard-action from 2.3.0 to 2.3.1 by @dependabot in #1397
  • build(deps): bump actions/setup-node from 3.8.1 to 4.0.0 by @dependabot in #1398
  • gyp: add common targets by @legendecas in #1389
  • src,test,build: allow NAPI_VERSION env var and templatize AttachData … by @gabrielschulhof in #1402
  • chore: lock python version in actions by @legendecas in #1403
  • doc: fix rendering of code blocks in list by @tniessen in #1401
  • build(deps): bump github/codeql-action from 2.22.4 to 2.22.5 by @dependabot in #1400
  • Fixed Broken Links in Docs and Readme by @tuhalf in #1405
  • build(deps): bump actions/setup-python from 4.7.0 to 4.7.1 by @dependabot in #1406
  • build(deps): bump actions/dependency-review-action from 3.1.0 to 3.1.3 by @dependabot in #1410
  • build(deps): bump step-security/harden-runner from 2.6.0 to 2.6.1 by @dependabot in #1412
  • build(deps): bump github/codeql-action from 2.22.5 to 2.22.7 by @dependabot in #1413
  • build(deps): bump github/codeql-action from 2.22.7 to 2.22.8 by @dependabot in #1414
  • build(deps): bump actions/dependency-review-action from 3.1.3 to 3.1.4 by @dependabot in #1415
  • build(deps): bump actions/setup-python from 4.7.1 to 5.0.0 by @dependabot in #1417
  • build(deps): bump actions/stale from 8.0.0 to 9.0.0 by @dependabot in #1418
  • build(deps): bump github/codeql-action from 2.22.8 to 3.22.11 by @dependabot in #1423
  • build(deps): bump actions/upload-artifact from 3.1.3 to 4.0.0 by @dependabot in #1424
  • build(deps): bump actions/setup-node from 4.0.0 to 4.0.1 by @dependabot in #1425
  • build(deps): bump github/codeql-action from 3.22.11 to 3.22.12 by @dependabot in #1426
  • build(deps): bump actions/dependency-review-action from 3.1.4 to 3.1.5 by @dependabot in #1427
  • build(deps): bump github/codeql-action from 3.22.12 to 3.23.0 by @dependabot in #1428
  • Release v7.1.0 by @legendecas in #1432

New Contributors

Full Changelog: v7.0.0...v7.1.0

v7.0.0

16 Jun 21:19
39a25bf
Compare
Choose a tag to compare

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: v6.1.0...v7.0.0

Release 6.1.0

20 Apr 14:33
Compare
Choose a tag to compare

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: v6.0.0...v6.1.0

Release 6.0.0

10 Feb 17:32
Compare
Choose a tag to compare

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

  • test: Add test covg for Maybe by @JckXia in #1270
  • test: Add tests for ThreadSafeFunction's NonBlock function overloads by @JckXia in #1249

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

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.