Socket
Socket
Sign inDemoInstall

node-addon-api

Package Overview
Dependencies
0
Maintainers
7
Versions
44
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1345Next

4.0.0

Diff

Changelog

Source

2021-06-15 Version 4.0.0, @NickNaso

Notable changes:

API
  • Fixed a crashing issue in Napi::Error::ThrowAsJavaScriptException introducing the preprocessor directive NODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS.
  • Fixed compilation problem for GCC 11 and C++20.
TEST
  • Added test for function reference call and contructor.

Documentation

  • Updated the oldest Node.js version supported from 10.x to 12.x.

Commits

  • [028107f686] - src: fix Error::ThrowAsJavaScriptException crash (rudolftam) #975
  • [fed13534c5] - src: fix gcc-11 c++20 compilation (Kevin Eady) #1009
  • [b75afc4d29] - test: function reference call & construct (legendecas) #1005
nicknaso
published 3.2.1 •

Changelog

Source

2021-05-28 Version 3.2.1, @NickNaso

Notable changes:

Documentation
  • Fixed documentation about the oldest Node.js version supported.

Commits

  • [6d41ee5a3a] - Fixed readme for new release. (NickNaso)
nicknaso
published 3.2.0 •

Changelog

Source

2021-05-17 Version 3.2.0, @NickNaso

Notable changes:

API
  • Remove unnecessary symbol exposure.
  • Fixed leak in Napi::ObjectWrap instance for getter and setter method.
  • Added Napi::Object::Freeze and Napi::object::Seal methods.
  • Napi::Reference is now copyable.
Documentation
  • Added docuemtnation for Napi::Object::PropertyLValue.
  • Changed all N-API references to Node-API.
  • Some minor corrections all over the documentation.
TEST
  • Added tests relating to fetch property from Global Object.
  • Added addtiona tests for Napi::Object.
  • Added test for Napi::Function contructors.
  • Fixed intermittent failure for Napi::ThreadSafeFunction test.
  • Some minor corrections all over the test suite.

TOOL

  • Added Node.js v16.x to CI.
  • Added CI configuration for Windows.
  • Some fixex on linter command.

Commits

  • [52721312f6] - docs: add napi-rs iin Other Bindings section (#999) (LongYinan)
  • [78a6570a42] - doc: fix typo in code example (#997) (Tobias Nießen)
  • [da3bd5778f] - test: fix undoc assumptions about the timing of tsfn calls (legendecas) #995
  • [410cf6a81e] - src: return bool on object freeze and seal (#991) (legendecas)
  • [93f1898312] - src: return bool on object set and define property (#977) (legendecas)
  • [331c2ee274] - build: add Node.js v16.x to CI (#983) (legendecas)
  • [b6f5eb15e6] - test: run test suites with helpers (legendecas) #976
  • [fbcdf00ea0] - test: rename misspelled parameters (Tobias Nießen) #973
  • [63a6c32e80] - test: fix intermittent TSFN crashes (Kevin Eady) #974
  • [8f120b033f] - fix: key for wapping drawing's system condition (#970) (Kévin VOYER)
  • [1c9d528d66] - doc: correct struct definition (#969) (Darshan Sen)
  • [5e64d1fa61] - Added badges for Node-API v7 and v8. (#954) (Nicola Del Gobbo)
  • [6ce629b3fa] - src: add pull request template (#967) (Michael Dawson)
  • [98126661af] - Update CONTRIBUTING.md (#966) (Michael Dawson)
  • [77350eee98] - src: added Freeze and Seal method to Object class. (NickNaso) #955
  • [bc5147cc4a] - Finished tests relating to fetch property from Global Object (JckXia)
  • [0127813111] - doc: unambiguously mark deprecated signatures (Tobias Nießen) #942
  • [787e216105] - doc: rename N-API with Node-API (Darshan Sen) #951
  • [628023689a] - src: rename N-API with Node-API on comments (NickNaso) #953
  • [5c6391578f] - build: add CI configuration for Windows (NickNaso) #948
  • [8ef07251ec] - doc: added some warnings for buffer and array buffer factory method. (#929) (Nicola Del Gobbo)
  • [6490b1f730] - doc: sync Object::Set value arg with Value::From (#933) (Tobias Nießen)
  • [7319a0d7a2] - Fix tab indent (#938) (Tobias Nießen)
  • [1916cb937e] - chore: fixup linter commands (#940) (legendecas)
  • [fc4585fa23] - test: dd tests for Function constructors (JoseExposito) #937
  • [87b7aae469] - doc: warn about SuppressDestruct() (#926) (Anna Henningsen)
  • [71494a49a3] - src,doc: refactor to replace typedefs with usings (Darshan Sen) #910
  • [298ff8d9d2] - test: add additional tests for Object (JoseExposito) #923
  • [8a1147b430] - revert: src: add additional tests for Function (Michael Dawson)
  • [bb56ffaa6f] - doc: fix documentation for object api (Nicola Del Gobbo) #931
  • [3b8bddab49] - src: add additional tests for Function (José Expósito) #928
  • [74ab50c775] - src: allow references to be copyable in APIs (legendecas) #915
  • [929709d0fe] - doc: add propertylvalue.md (#925) (Gabriel Schulhof)
  • [69d0d98be4] - fixup (Anna Henningsen)
  • [46e41d961b] - fixup (Anna Henningsen)
  • [1af1642fb7] - doc: warn about SuppressDestruct() (Anna Henningsen)
  • [12c548b2ff] - tools: fix error detection (#914) (Darshan Sen)
  • [458d895d5b] - packaging: list files to be published to npm (Lovell Fuller) #889
  • [f7ed2490d4] - test: remove outdated V8 flag (Darshan Sen) #895
  • [a575a6ec60] - src: fix leak in ObjectWrap instance set/getters (Kevin Eady) #899
  • [b6e844e0b0] - doc: fix spelling of "targeted" and "targeting" (#904) (Tobias Nießen)
  • [4d856f6e91] - src: remove unnecessary symbol exposure (Gabriel Schulhof) #896
  • [f35bb7d0d7] - doc: Update GitHub URL references from 'master' to 'HEAD' (#898) (Jim Schlight)
  • [286ae215d1] - Add warning about branch rename (Michael Dawson)
  • [a4a7b28288] - Update branch references from master to main (#886) (Jim Schlight)
  • [a2ad0a107a] - docs: add NAN to N-API resource link (#880) (kidneysolo)
  • [1c040eeb63] - test: load testModules automatically (raisinten) #876
  • [bf478e4496] - src: use NAPI_NOEXCEPT macro instead of noexcept (NickNaso) #864
  • [744705f2eb] - test: refactor remove repeated execution index.js (raisinten) #839
  • [db62e3c811] - Update team members (Michael Dawson)
nicknaso
published 3.1.0 •

Changelog

Source

2020-12-17 Version 3.1.0, @NickNaso

Notable changes:

API
  • Added Napi::TypedThreadSafeFunction class that is a new implementation for thread-safe functions.
  • Fixed leak on Napi::AsyncProgressWorkerBase.
  • Fixed empty data on Napi::AsyncProgressWorker::OnProgress caused by race conditions of Napi::AsyncProgressWorker.
  • Added Napi::ArrayBuffer::Detach() and Napi::ArrayBuffer::IsDetached().
  • Fixed problem on Napi::FinalizeCallback it needs to create a Napi::HandleScope when it calls Napi::ObjectWrap::~ObjectWrap().
Documentation
  • Added documentation for Napi::TypedThreadSafeFunction.
  • Removed unsued Doxygen file.
  • Clarified when to use N-API.
  • Added support information.
  • Some minor corrections all over the documentation.
TEST
  • Added test for Napi::TypedThreadSafeFunction.
  • Fixed testing for specific N-API version.
  • Some minor corrections all over the test suite.

TOOL

  • Setup github actions for tests.
  • Added stale action.
  • Removed sudo tag from Travis CI.
  • Added clang-format.
  • Added pre-commit package for linting.

Commits

  • [ff642c5b85] - doc: fix tsfn docs to reflect true implementation (#860) (Kevin Eady)
  • [86feeebf54] - src: empty data OnProgress in AsyncProgressWorker (legendecas) #853
  • [a7fb5fb31c] - action: add stale action (#856) (Michael Dawson)
  • [fd44609885] - chore: setup github actions for tests (#854) (legendecas) #854
  • [c52ace4813] - script: fix complains that js files are not supported on npm run lint:fix (#852) (legendecas)
  • [b4a3364ad5] - doc: remove unused Doxygen file (#851) (Michael Dawson)
  • [b810466ae2] - doc: clarify when to use N-API (#849) (Michael Dawson)
  • [528b9f6832] - test: remove sudo from travis (#850) (Michael Dawson)
  • [4bb680de4e] - Remove misleading sentence (#847) (Nikolai Vavilov) #847
  • [48e6b584a3] - Merge pull request #742 from KevinEady/contexted-tsfn-api-gcc-4 (Gabriel Schulhof)
  • [d5e37210cc] - tools: print more instructions on clang-format check failed (#846) (legendecas) #846
  • [d9e11ff2c9] - doc: add support info (#843) (Michael Dawson) #843
  • [356e93d69a] - test: fixup testing for specific N-API version (#840) (Michael Dawson) #840
  • [5e5b9ce1b7] - Apply formatting changes (Kevin Eady)
  • [559ad8c0c0] - Merge remote-tracking branch 'upstream/master' into contexted-tsfn-api-gcc-4 (Kevin Eady)
  • [c24c455ced] - Rename to TypedThreadSafeFunction (Kevin Eady)
  • [63b43f4125] - test: fix buildType bug objectwrap_worker_thread (raisinten) #837
  • [6321f2ba1a] - test: fix typos in addon_build/index.js (raisinten) #838
  • [59c6a6aeb0] - fix: git-clang-format doesn't recognize no changes requested on given files (#835) (legendecas)
  • [1427b3ef78] - src: create a HandleScope in FinalizeCallback (blagoev) #832
  • [8fb5820557] - build: add incremental clang-format checks (legendecas) #819
  • [2c02d317e5] - build: add pre-commit package for linting (#823) (Kevin Eady)
  • [1b52c28eb8] - Clean up AsyncProgressWorker documentation (#831) (mastergberry)
  • [4abe7cfe30] - test: rename tsfnex test files (Kevin Eady)
  • [c9563caa25] - src: add ArrayBuffer::Detach() and ::IsDetached() (Tobias Nießen) #659
  • [c79cabaed2] - doc: avoid directing users to HTTP (#828) (Tobias Nießen)
  • [7a13f861ab] - doc: fix additional typo (Kevin Eady)
  • [7ec9741dd2] - Merge remote-tracking branch 'upstream/master' into contexted-tsfn-api-gcc-4 (Kevin Eady)
  • [f5fad239fa] - Update object_reference.md (#827) (kidneysolo)
  • [35b65712c2] - Fix: some typos in documentation (#826) (Helio Frota)
  • [8983383000] - Fix: some typos in the document (#825) (Ziqiu Zhao)
  • [826e466ef6] - Fixed example in addon.md. (#820) (nempoBu4) #820
  • [b54f5eb788] - Additional changes from review (Kevin Eady)
  • [59f27dac9a] - Fix common.gypi (Kevin Eady)
  • [151a914c99] - Apply documentation suggestions from code review (Kevin Eady)
  • [ceb27d4949] - src: fix leak in AsyncProgressWorkerBase<DataType> (Ferdinand Holzer) #795
nicknaso
published 3.0.2 •

Changelog

Source

2020-09-18 Version 3.0.2, @NickNaso

Notable changes:

API
  • Introduced include_dir for use with gyp in a scalar context.
  • Added Napi::Addon to help handle the loading of a native add-on into multiple threads and or multiple times in the same thread.
  • Concentrate callbacks provided to core N-API.
  • Make sure wrapcallback is used.
Documentation
  • Added documentation for Napi::Addon.
  • Added documentation that reports the full class hierarchy.
  • Added link to N-API tutorial website.
  • Some minor corrections all over the documentation.
TEST
  • Added tests to check the build process.
  • Refactored test for threasfafe function using async/await.
  • Converted tests that gc into async functions that await 10 ticks after each gc.
  • Some minor corrections all over the test suite.

Commits

  • [51e25f7c39] - doc: remove a file (#815) (Gabriel Schulhof)
  • [8c9f1809a2] - doc: add inheritance links and other changes (Gabriel Schulhof) #798
  • [6562e6b0ab] - test: added tests to check the build process (NickNaso) #808
  • [a13b36c96e] - test: fix the threasfafe function test (NickNaso) #807
  • [f27623ff61] - build: introduce include_dir (Lovell Fuller) #766
  • [9aceea71fc] - src: concentrate callbacks provided to core N-API (Gabriel Schulhof) #786
  • [2bc45bbffd] - test: refactor test to use async/await (Velmisov) #787
  • [518cfdcdc1] - test: test ObjectWrap destructor - no HandleScope (David Halls) #729
  • [c2cbbd9191] - doc: add link to n-api tutorial website (#794) (Jim Schlight) #794
  • [1c2a8d59b5] - doc: Added required return to example (#793) (pacop) #793
  • [cec2c76941] - src: wrap finalizer callback (Gabriel Schulhof) #762
  • [4ce40d22a6] - test: use assert.strictEqual() (Koki Nishihara) #777
  • [461e3640c6] - test: string tests together (Gabriel Schulhof) #773
  • [5af645f649] - src: add Addon<T> class (Gabriel Schulhof) #749
  • [6148fb4bcc] - Synchronise Node.js versions in Appveyor Windows CI with Travis (#768) (Lovell Fuller)
nicknaso
published 3.0.1 •

Changelog

Source

2020-07-13 Version 3.0.1, @NickNaso

Notable changes:

API
  • Fixed the usage of Napi::Reference with Napi::TypedArray.
  • Fixed Napi::ObjectWrap inheritance.
Documentation
  • Updated the example for Napi::ObjectWrap.
  • Added documentation for instance data APIs.
  • Some minor corrections all over the documentation.
TEST
  • Fixed test for Napi::ArrayBuffer and Napi::Buffer.
  • Some minor corrections all over the test suite.

Commits

  • [40c7926342] - build: ensure paths with spaces can be used (Lovell Fuller) #757
  • [ef16dfb4a2] - doc: update ObjectWrap example (Gabriel Schulhof) #754
  • [48f6762bf6] - src: add __wasm32__ guards (Gus Caplan)
  • [bd2c5ec502] - Fixes issue 745. (#748) (Nicola Del Gobbo)
  • [4c01af2d87] - Fix typo in CHANGELOG (#715) (Kasumi Hanazuki)
  • [36e1af96d5] - src: fix use of Reference with typed arrays (Michael Dawson) #726
  • [d463f02bc7] - src: fix testEnumerables on ObjectWrap (Ferdinand Holzer) #736
  • [ba7ad37d44] - src: fix ObjectWrap inheritance (David Halls) #732
  • [31504c862b] - doc: fix minor typo in object_wrap.md (#741) (Daniel Bevenius) #741
  • [beccf2145d] - test: fix up delays for array buffer test (Michael Dawson) #737
  • [45cb1d9748] - Correct AsyncProgressWorker link in README (#716) (Jeroen Janssen)
  • [381c0da60c] - doc: add instance data APIs (Gabriel Schulhof) #708
nicknaso
published 2.0.2 •

nicknaso
published 2.0.1 •

nicknaso
published 1.7.2 •

nicknaso
published 3.0.0 •

Changelog

Source

2020-04-30 Version 3.0.0, @NickNaso

Notable changes:

API
  • Napi::Object added templated property descriptors.
  • Napi::ObjectWrap added templated methods.
  • Napi::ObjectWrap the wrap is removed only on failure.
  • Napi::ObjectWrap the constructor's exceptions are gracefully handled.
  • Napi::Function added templated factory functions.
  • Added Env::RunScript method to run JavaScript code contained in a string.
  • Added templated version of Napi::Function.
  • Added benchmarking framework.
  • Added support for native addon instance data.
  • Added Napi::AsyncProgressQueueWorker api.
  • Changed the guards to NAPI_VERSION > 5.
  • Removed N-API implementation (v6.x and v8.x support).
  • Napi::AsyncWorker::OnWorkComplete and Napi::AsyncWorker::OnExecute methods are override-able.
  • Removed erroneous finalizer cleanup in Napi::ThreadSafeFunction.
  • Disabled caching in Napi::ArrayBuffer.
  • Explicitly disallow assign and copy operator.
  • Some minor corrections and improvements.
Documentation
  • Updated documentation for Napi::Object.
  • Updated documentation for Napi::Function.
  • Updated documentation for Napi::ObjectWrap.
  • Added documentation on how to add benchmark.
  • Added documentation for Napi::AsyncProgressQueueWorker.
  • Added suggestion about tags to use on NPM.
  • Added reference to N-API badges.
  • Some minor corrections all over the documentation.
TEST
  • Updated test cases for Napi::Object.
  • Updated test cases for Napi::Function.
  • Updated test cases for Napi::ObjectWrap.
  • Updated test cases for Napi::Env.
  • Added test cases for Napi::AsyncProgressQueueWorker.
  • Some minor corrections all over the test suite.

Commits

  • [187318e37f] - doc: Removed references to Node.js lower than 10.x. (#709) (Nicola Del Gobbo)
  • [9c9accfbbe] - src: add support for addon instance data (Gabriel Schulhof) #663
  • [82a96502a4] - src: change guards to NAPI_VERSION > 5 (Gabriel Schulhof) #697
  • [a64e8a5641] - ci: move travis from 13 to 14 (#707) (Gabriel Schulhof)
  • [4de23c9d6b] - doc: fix support bigint64/biguint64 guards (Yulong Wang) #705
  • [fedc8195e3] - doc: fix semicolon missing in async_worker.md (Azlan Mukhtar) #701
  • [cdb662506c] - doc: fix typo in bigint.md (#700) (Kelvin)
  • [e1a827ae29] - src: fix AsyncProgressQueueWorker compilation (#696) (Gabriel Schulhof) #696
  • [2c3d5df463] - Merge pull request #692 from kelvinhammond/patch-1 (Nicola Del Gobbo)
  • [623e876949] - Merge pull request #688 from NickNaso/badges (Nicola Del Gobbo)
  • [6c97913d1f] - Fix minor typo in object_lifetime_management.md (Kelvin)
  • [6b8dd47c55] - Added badge section to documentation. (NickNaso)
  • [89e62a9154] - doc: recommend tags of addon helpers (legendecas) #683
  • [ab018444ae] - src: implement AsyncProgressQueueWorker (legendecas) #585
  • [d43da6ac2b] - doc: add @legendecas to active member list (legendecas)
  • [cb498bbe7f] - doc: Add Napi::BigInt::New() overload for uint64_t (ikokostya)
  • [baaaa8452c] - doc: link threadsafe function from JS function (legendecas)
  • [7f56a78ff7] - objectwrap: remove wrap only on failure (Gabriel Schulhof)
  • [4d816183da] - doc: fix example code (András Timár, Dr) #657
  • [7ac6e21801] - gyp: fix gypfile name in index.js (Anna Henningsen) #658
  • [46484202ca] - test: user data in function property descriptor (Kevin Eady) #652
  • [0f8d730483] - doc: fix syntax error in example (András Timár, Dr) #650
  • [4e885069f1] - src: call napi\_remove\_wrap() in ObjectWrap dtor (Anna Henningsen) #475
  • [2fde5c3ca3] - test: update BigInt test for recent change in core (Michael Dawson) #649
  • [e8935bd8d9] - test: add test for own properties on ObjectWrap (Guenter Sandner) #645
  • [23ff7f0b24] - src: make OnWorkComplete and OnExecute override-able (legendecas) #589
  • [86384f94d3] - objectwrap: gracefully handle constructor exceptions (Gabriel Schulhof)
  • [9af69da01f] - remove N-API implementation, v6.x and v8.x support (Gabriel Schulhof) #643
  • [920d544779] - benchmark: add templated version of Function (Gabriel Schulhof) #637
  • [03759f7759] - ignore benchmark built archives (legendecas) #631
  • [5eeabb0214] - tsfn: Remove erroneous finalizer cleanup (Kevin Eady) #636
  • [9e0e0f31e4] - src: remove unnecessary forward declarations (Gabriel Schulhof) #633
  • [79deefb6f3] - src: explicitly disallow assign and copy (legendecas) #590
  • [af50ac281b] - error: do not replace pending exception (Gabriel Schulhof) #629
  • [b72f1d6978] - Disable caching in ArrayBuffer (Tobias Nießen) #611
  • [0e7483eb7b] - Fix code format in tests (Tobias Nießen) #617
  • [6a0646356d] - add benchmarking framework (Gabriel Schulhof) #623
  • [ffc71edd54] - Add Env::RunScript (Tobias Nießen) #616
  • [a1b106066e] - src: add templated function factories (Gabriel Schulhof) #608
  • [c584343217] - Add GetPropertyNames, HasOwnProperty, Delete (#615) (Tobias Nießen) #615
  • [3acc4b32f5] - Fix std::string encoding (#619) (Tobias Nießen) #619
  • [e71d0eadcc] - [doc] Fixed links to array documentation (#613) (Nicola Del Gobbo)
  • [3dfb1f0591] - Change "WG" to "team" (Tobias Nießen)
  • [ce91e14860] - objectwrap: add template methods (Dmitry Ashkadov) #604
  • [cfa71b60f7] - object: add templated property descriptors (Gabriel Schulhof) #610
  • [734725e971] - Correctly define copy assignment operators. (Rolf Timmermans)
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc