Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-addon-api

Package Overview
Dependencies
Maintainers
3
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-addon-api - npm Package Versions

2345

8.2.1

Diff

Changelog

Source

8.2.1 (2024-10-09)

Bug Fixes

  • failed type cast checks in Symbol::WellKnown (#1581) (d8523a7)
  • missing node_api_nogc_env definition (#1585) (6ba3891)
nodejs-foundation
published 8.2.0 •

Changelog

Source

8.2.0 (2024-09-19)

Features

  • add support for nogc types via BasicEnv (#1514) (b4aeecb)
  • add support for requiring basic finalizers (#1568) (7bcb826)

Bug Fixes

legendecas
published 7.1.1 •

nodejs-foundation
published 8.1.0 •

Changelog

Source

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)
legendecas
published 8.0.0 •

Changelog

Source

2024-03-01 Version 8.0.0, @legendecas

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
legendecas
published 7.1.0 •

Changelog

Source

2024-01-18 Version 7.1.0, @legendecas

Notable changes

API
  • Add Env::GetModuleFileName
  • Add SyntaxError
  • Allow NAPI_VERSION env var and templatize AttachData callback
  • Add common gyp dependency targets.

Commits

  • [864fed488c] - build(deps): bump github/codeql-action from 3.22.12 to 3.23.0 (dependabot[bot]) #1428
  • [81a8d43130] - build(deps): bump actions/dependency-review-action from 3.1.4 to 3.1.5 (dependabot[bot]) #1427
  • [e20088941b] - build(deps): bump github/codeql-action from 3.22.11 to 3.22.12 (dependabot[bot]) #1426
  • [76c7b12e4e] - build(deps): bump actions/setup-node from 4.0.0 to 4.0.1 (dependabot[bot]) #1425
  • [cd58edde1d] - build(deps): bump actions/upload-artifact from 3.1.3 to 4.0.0 (dependabot[bot]) #1424
  • [0fd1b9e0e1] - build(deps): bump github/codeql-action from 2.22.8 to 3.22.11 (dependabot[bot]) #1423
  • [c181b19d68] - build(deps): bump actions/stale from 8.0.0 to 9.0.0 (dependabot[bot]) #1418
  • [6fa67791a1] - build(deps): bump actions/setup-python from 4.7.1 to 5.0.0 (dependabot[bot]) #1417
  • [1fff346fa6] - build(deps): bump actions/dependency-review-action from 3.1.3 to 3.1.4 (dependabot[bot]) #1415
  • [ecb9690fe5] - build(deps): bump github/codeql-action from 2.22.7 to 2.22.8 (dependabot[bot]) #1414
  • [969547b871] - build(deps): bump github/codeql-action from 2.22.5 to 2.22.7 (dependabot[bot]) #1413
  • [183d1522a9] - build(deps): bump step-security/harden-runner from 2.6.0 to 2.6.1 (dependabot[bot]) #1412
  • [25f977724a] - build(deps): bump actions/dependency-review-action from 3.1.0 to 3.1.3 (dependabot[bot]) #1410
  • [f6d125a407] - build(deps): bump actions/setup-python from 4.7.0 to 4.7.1 (dependabot[bot]) #1406
  • [ce78a39ec7] - build(deps): bump github/codeql-action from 2.22.4 to 2.22.5 (dependabot[bot]) #1400
  • [dc211ebb48] - build(deps): bump actions/setup-node from 3.8.1 to 4.0.0 (dependabot[bot]) #1398
  • [cab559e3bd] - build(deps): bump ossf/scorecard-action from 2.3.0 to 2.3.1 (dependabot[bot]) #1397
  • [f71ff5582d] - build(deps): bump github/codeql-action from 2.22.3 to 2.22.4 (dependabot[bot]) #1396
  • [21c1d08680] - build(deps): bump actions/checkout from 4.1.0 to 4.1.1 (dependabot[bot]) #1394
  • [e4eec0939c] - build(deps): bump github/codeql-action from 2.21.9 to 2.22.3 (dependabot[bot]) #1393
  • [94f3459474] - build(deps): bump ossf/scorecard-action from 2.2.0 to 2.3.0 (dependabot[bot]) #1388
  • [90a741ef10] - build(deps): bump step-security/harden-runner from 2.5.1 to 2.6.0 (dependabot[bot]) #1386
  • [7e1aa06132] - Update LICENSE.md (Michael Dawson) #1385
  • [0a0612362e] - build(deps): bump github/codeql-action from 2.21.7 to 2.21.9 (dependabot[bot]) #1384
  • [47bd430da2] - build(deps): bump actions/checkout from 4.0.0 to 4.1.0 (dependabot[bot]) #1383
  • [b3f7f73cb9] - build(deps): bump actions/dependency-review-action from 3.0.8 to 3.1.0 (dependabot[bot]) #1377
  • [12c1655387] - build(deps): bump github/codeql-action from 2.21.6 to 2.21.7 (dependabot[bot]) #1380
  • [6abed318e4] - build(deps): bump github/codeql-action from 2.21.5 to 2.21.6 (dependabot[bot]) #1378
  • [89eda59930] - build(deps): bump actions/upload-artifact from 3.1.2 to 3.1.3 (dependabot[bot]) #1376
  • [90870dbffa] - build(deps): bump actions/checkout from 3.6.0 to 4.0.0 (dependabot[bot]) #1375
  • [b860793eff] - build(deps): bump github/codeql-action from 2.21.2 to 2.21.5 (dependabot[bot]) #1372
  • [f9b9974b4a] - build(deps): bump actions/checkout from 3.5.3 to 3.6.0 (dependabot[bot]) #1371
  • [9596e3de2d] - build(deps): bump actions/setup-node from 3.7.0 to 3.8.1 (dependabot[bot]) #1370
  • [e969210747] - build(deps): bump actions/dependency-review-action from 3.0.6 to 3.0.8 (dependabot[bot]) #1368
  • [13ef96a5a9] - build(deps): bump step-security/harden-runner from 2.5.0 to 2.5.1 (dependabot[bot]) #1364
  • [9776d148b3] - build(deps): bump github/codeql-action from 2.21.1 to 2.21.2 (dependabot[bot]) #1358
  • [59dc6be097] - build(deps): bump github/codeql-action from 2.21.0 to 2.21.1 (dependabot[bot]) #1357
  • [5e72796cd5] - build(deps): bump step-security/harden-runner from 2.4.1 to 2.5.0 (dependabot[bot]) #1356
  • [4e62db45e4] - build(deps): bump github/codeql-action from 2.20.3 to 2.21.0 (dependabot[bot]) #1353
  • [0c093a33e8] - build(deps): bump github/codeql-action from 2.20.1 to 2.20.3 (dependabot[bot]) #1349
  • [5523b2d3fa] - build(deps): bump actions/setup-node from 3.6.0 to 3.7.0 (dependabot[bot]) #1348
  • [afa494ef7f] - Add Node.js version restrictions (Ingo Fischer) #1340
  • [ac4c87f660] - build(deps): bump ossf/scorecard-action from 2.0.6 to 2.2.0 (dependabot[bot]) #1344
  • [47aeb6689d] - build(deps): bump github/codeql-action from 2.2.12 to 2.20.1 (dependabot[bot]) #1343
  • [bd45a8fffc] - build(deps): bump step-security/harden-runner from 2.3.0 to 2.4.1 (dependabot[bot]) #1342
  • [343a1e1708] - build(deps-dev): bump fs-extra from 9.1.0 to 11.1.1 (dependabot[bot]) #1335
  • [4168c10182] - build(deps): bump actions/stale from 5.2.1 to 8.0.0 (dependabot[bot]) #1333
  • [1c182abd1f] - build(deps): bump actions/dependency-review-action from 2.5.1 to 3.0.6 (dependabot[bot]) #1331
  • [717a61931d] - build(deps): bump actions/checkout from 3.5.2 to 3.5.3 (dependabot[bot]) #1329
  • [d605d62c89] - chore: lock python version in actions (Chengzhong Wu) #1403
  • [734e3f2509] - doc: fix rendering of code blocks in list (Tobias Nießen) #1401
  • [dfdf6eb6e6] - doc: add missing title IsBigInt (Marx) #1352
  • [8850997f38] - doc: fix typo AsyncProgressWorker::ExecutionProgress (JerryZhongJ) #1350
  • [8192a471a1] - docs: fixed Broken Links (Ömer AKGÜL) #1405
  • [16a18c047a] - fix: handle c++ exception in TSFN callback (Chengzhong Wu) #1345
  • [ab14347080] - gyp: add common targets (Chengzhong Wu) #1389
  • [fa3518bc08] - src: remove duplicate buffer info calls (Chengzhong Wu) #1354
  • [b83e453e6e] - src: add Env::GetModuleFileName (Kevin Eady) #1327
  • [d9828c6264] - src: add SyntaxError (Kevin Eady) #1326
  • [c52e764bb2] - src,test,build: allow NAPI_VERSION env var and templatize AttachData callback (Gabriel Schulhof) #1399
  • [8f028d630a] - test: remove experimental flag from bigint (Gabriel Schulhof) #1395
  • [414be9e000] - test: run interfering tests in their own process (Gabriel Schulhof) #1325
kevineady
published 7.0.0 •

Changelog

Source

2023-06-13 Version 7.0.0, @KevinEady

Notable changes

API
  • 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.
TEST
  • Added tests for Napi::AsyncProgressQueueWorker<T> class.
  • Added tests for Napi::AsyncProgressWorker<T> class.

Documentation

  • Added documentation for Napi::Value::IsBigInt().

Commits

  • [de5c899400] - doc,chore: drop support for Node.js v14, v19 (Kevin Eady) #1324
  • [3083b7f148] - [StepSecurity] Apply security best practices (StepSecurity Bot) #1308
  • [a198e24a15] - [Test] Add tests for async progress queue worker (Jack) #1316
  • [665f4aa845] - doc: add missing Value::IsBigInt (Kevin Eady) #1319
  • [358b2d3b4f] - doc: complete code curly braces in async_worker.md (wanlu) #1317
  • [858942ce31] - src: avoid calling into C++ with a null this (Caleb Hearon) #1313
  • [64f6515331] - src: handle failure during error wrap of primitive (Gabriel Schulhof) #1310
  • [dfad6b45fe] - [test] Add test coverage for AsyncProgressWorker (Jack) #1307
  • [0e34f22839] - release: v6.1.0. (Nicola Del Gobbo)
nicknaso
published 6.1.0 •

Changelog

Source

2023-04-20 Version 6.1.0, @NickNaso

Notable changes

API
  • 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.
TEST
  • Added tests for Napi::Reference<T> class.
  • Added tests for copy/move semantics.
  • Added tests for Napi::RangeError and Napi::TypeError class.
  • Fixed inconsistent failure executing test suite.
  • Added tests for Napi::ObjectReference<T> class.
  • Added tests for Napi::ObjectWrap<T> class.

Documentation

  • Added documentation for Napi::TypeTaggable.
  • Some minor fixes all over the documentation.

Commits

  • [5adb896782] - src: enforce type checks on Napi::Value::As() (#1281) (Chengzhong Wu)
  • [d9faac7ec2] - Fix exits/exists typo in docs for Env::AddCleanupHook() (#1306) (Mathias Stearn)
  • [164459ca03] - doc: update class hierarchy for TypeTaggable (Gabriel Schulhof) #1303
  • [d01304437c] - src: interject class TypeTaggable (Gabriel Schulhof) #1298
  • [d4942ccd4f] - test: Complete test coverage for Reference<T> class (#1277) (Jack)
  • [a8ad7e7a7b] - test: Add tests for copy/move semantics (JckXia) #1295
  • [e484327344] - Add test coverage for typed and range err (#1280) (Jack)
  • [ebc7858593] - test: Update wait with a condition (#1297) (Jack)
  • [0b53d885f5] - src: define NAPI_HAS_THREADS (toyobayashi) #1283
  • [464610babf] - test: complete objectRefs tests (JckXia) #1274
  • [b16c762a19] - src: handle no support for external buffers (legendecas) #1273
  • [61b8e28720] - test: Add test covg for obj wrap (#1269) (Jack)
nicknaso
published 6.0.0 •

Changelog

Source

2023-02-03 Version 6.0.0, @NickNaso

Notable changes

API
  • Added Napi::Object::TypeTag() and Napi::Object::CheckTypeTag() methods.
  • Made operator napi_callback_info explicit.
TEST
  • Some minor fixes all over the test suite.
  • Added tests related to Napi::Object::TypeTag() and Napi::Object::CheckTypeTag() methods.
  • Added tests related to Napi::CallbackScope.
  • Added tests related to Napi::EscapableHandleScope.
  • Added tests related to Napi::Maybe<T>.
  • Added tests related to Napi::ThreadSafeFuntion.
  • Changed some tests related to Napi::AsyncWorker.

Documentation

  • Added documentation for Napi::Object::TypeTag() and Napi::Object::CheckTypeTag() methods.
  • Added documentation about how to run a specific unit test.

TOOL

  • Added x86 architecture to the CI matrix.

Commits

  • [e2726193f1] - src: remove AsyncWorker move and complete tests (JckXia) #1266
  • [ff969485ea] - chore: build node-addon-api against X86 (JckXia) #1276
  • [a70564cdfd] - test: add cov for ThreadSafeFunction new overloads (JckXia) #1251
  • [53f7cf1d48] - src: make operator napi_callback_info explicit (Kevin Eady) #1275
  • [78b5a15533] - test: Add tests for ThreadSafeFunction's NonBlock function overloads (#1249) (Jack)
  • [fdc6263034] - test: Add test covg for Maybe<T> (#1270) (Jack)
  • [35d9d669b3] - test: add test covg for handle and escapehandle scopes (JckXia) #1263
  • [021313409e] - test: add unit test covg for callbackscopes (JckXia) #1262
  • [b11e4de2cf] - src: add Object::TypeTag, Object::CheckTypeTag (Kevin Eady) #1261
nicknaso
published 5.1.0 •

Changelog

Source

2023-01-13 Version 5.1.0, @NickNaso

Notable changes

API
  • Fixed memory leak in Napi::AsyncProgressWorkerBase.
  • Added api to get callback_info from Napi::CallBackInfo.
  • Fixed erros and warning in VS 2017.
  • Made Npi::Env::CleanupHook public.
  • Removed Napi::TypedArray::unknown_array_type.
TEST
  • Some minor fixes all over the test suite.
  • Added tests related to Napi::Env.
  • Added tests related to Napi::TypedArray.
  • Added tests related to Napi::AsyncWorker.
  • Added tests related to Napi::TypedThreadSafeFunction.
  • Added tests related to Napi::Value.
  • Added test related to Napi::Promise.

Documentation

  • Some minor fixes all over the documentation.
  • Added Napi::HandleScope example.
  • Added documentation about how to run a specific unit test.

TOOL

  • Added Windows with VS 2022 and Node.JS 19.x to the CI matrix.
  • Fixed stale workflow.
  • Updated Node.js versions on CI component.
  • Added condition for Window to find eslint.

Commits

  • [79a446fb9c] - Update contributors (#1265) (Kevin Eady)
  • [01c61690c6] - src: napi-inl: Fix a memory leak bug in AsyncProgressWorkerBase (Ammar Faizi) #1264
  • [55bd08ee26] - src: api to get callback_info from CallBackInfo (JckXia) #1253
  • [ad76256714] - test: add tests related to env (JckXia) #1254
  • [5c3937365d] - chore: add Windows with VS 2022 and Node.JS 19.x to the CI matrix (#1252) (Vladimir Morozov)
  • [97736c93f4] - src: fix errors and warnings in VS 2017 (Vladimir Morozov) #1245
  • [ad7ff92c16] - src: refactor call js wrapper (#1242) (Jack)
  • [39267baf1b] - src: make CleanupHook public (Julian Mesa) #1240
  • [edf630cc79] - src: fix implementation of Signal (Kevin Eady) #1216
  • [de5a502f3c] - doc: Napi::Error is caught (Nicola Del Gobbo) #1241
  • [10ad762807] - test: removed the usage of default_configuration. (Nicola Del Gobbo) #1226
  • [e9db2adef2] - test: Add test coverage to TSFN::New() overloads (#1201) (Jack)
  • [c849ad3f6a] - chore: fix stale workflow (#1228) (Richard Lau)
  • [e408804ad8] - test: adding ref for threadsafefunctions (JckXia) #1222
  • [a8afb2d73c] - src: remove TypedArray::unknown_array_type (Kevin Eady) #1209
  • [257a52f823] - test: Add test cased for failed task cancellations (#1214) (Jack)
  • [793268c59f] - test: Add test case for canceling async worker tasks (#1202) (Jack)
  • [1331856ef1] - doc: add HandleScope example (#1210) (Kevin Eady)
  • [d5fc875e5d] - test: remove update to process.config (#1208) (Michael Dawson)
  • [30cd4a37f0] - test: add tests for .Data method (JckXia) #1203
  • [225ca35963] - test: Add test coverage for "TSFN::Ref()" (#1196) (Jack)
  • [5a5a213985] - Update CI component versions (#1200) (Vladimir Morozov)
  • [fb27e72b0c] - doc: Update CONTRIBUTING.md (Saint Gabriel) #1185
  • [e9def3ed72] - doc: Update Readme for filter conditions in unit tests (Deepak Rajamohan) #1199
  • [efd67876e1] - doc: updated npm script for focused tests (Peter Šándor)
  • [134961d853] - test: CallbackInfo NewTarget() basic coverage (#1048) (Peter Šándor)
  • [1dfd03bdd5] - Update README.md (#1187) (Saint Gabriel)
  • [576128fd19] - doc: fix typo in async_operations.md (#1189) (Tobias Nießen)
  • [63d3c30ec1] - test: add tests for TypedArray (Dante Calderon) #1179
  • [358ac2f080] - Fix link to CMake.js documentation (#1180) (Kyle Kovacs)
  • [dc4f2bbe4a] - test: Add promise unit test (#1173) (Jenny)
  • [f3124ae0ed] - doc: fix broken Napi::ThreadSafeFunction link (#1172) (Feng Yu)
  • [10b440fe27] - src: reformat all code (Kevin Eady) #1160
  • [33e402971e] - test: Add condition for window to find eslint (#1176) (Jack)
  • [d53843b83b] - test: add missing value tests (JckXia) #1170
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc