node-addon-api
node-addon-api copied to clipboard
Module for using Node-API from C++
Recording this idea so it doesn't slip under the radar: In support of pure finalizers, I'm wondering if it's possible to templetize `napi::Environment` such that one specialization attaches js-execution-capable finalizers...
:robot: I have created a release *beep* *boop* --- ## [8.1.0](https://github.com/nodejs/node-addon-api/compare/node-addon-api-v8.0.0...node-addon-api-v8.1.0) (2024-07-05) ### Features * Expose version property in public API ([#1479](https://github.com/nodejs/node-addon-api/issues/1479)) ([23bb42b](https://github.com/nodejs/node-addon-api/commit/23bb42b5e47630c9082dddbabea555626571926e)) * improve messages on CheckCast ([#1507](https://github.com/nodejs/node-addon-api/issues/1507)) ([bf49519](https://github.com/nodejs/node-addon-api/commit/bf49519a4ce08ee5320327c9a0199cd89d5b87b3))...
The commit to back out based on discussion in the node-api team meeting today is: https://github.com/nodejs/node-addon-api/pull/1340#issuecomment-2192283145
- Introduce `Napi::NogcEnv` class, taking the place of `Napi::Env` in finalizer callbacks. - Introduce `void Napi::NogcEnv::AddPostFinalizer()` and overloads. - Modify tests to support above changes TODO: - [ ] docs...
Following up on our discussion during the meeting, let's jot down the possible names we'd like to use instead of `env` and `nogc_env`. Here are the scenarios I can think...
Some documented methods have the C++ definition before the description: https://github.com/nodejs/node-addon-api/blob/b8525e2f8ca8887c5ec864706c27b8872a5a6256/doc/env.md?plain=1#L87-L104 ... while others have the description before the C++ definition: https://github.com/nodejs/node-addon-api/blob/b8525e2f8ca8887c5ec864706c27b8872a5a6256/doc/addon.md?plain=1#L144-L161 For some rough stats, it seems to be...
Bumps [eslint-plugin-promise](https://github.com/eslint-community/eslint-plugin-promise) from 5.2.0 to 6.4.0. Release notes Sourced from eslint-plugin-promise's releases. v6.4.0 6.4.0 (2024-07-01) Features add support for flat config (#479) (ecbce9f) v6.3.0 6.3.0 (2024-07-01) Features add support for...
The CI job for coverage only runs for files under the `npm test` command. This does not include experimental builds, therefore code coverage reported in pull requests exclude those changes.
Hello, First off, I send my sincere regards for all the time and efforts you put into the project. ## Preface I have a simple C++ class as below: ```cpp...
We discussed in the latest Node-api team meeting that it's time to do a release. # PRs that should land before we do that: None # Volunteer to do the...