affected files:
- src/node_api.h \nupstream changelog:
- ca981be2b9 node-api: deprecate napi_module_register
affected files:
- src/node_api.h \nupstream changelog:
- 58b1f33bd7 node-api: add wasm32 guards on async works
affected files:
- src/js_native_api.h \nupstream changelog:
- bd98e5baba node-api: disambiguate napi_add_finalizer
affected files:
- src/node_api.h
- src/node_api_types.h \nupstream changelog:
- 4a4f2802ec node-api: declare type napi_cleanup_hook
affected files:
- src/js_native_api.h
- src/js_native_api_types.h
- src/node_api.h \nupstream changelog:
- aaca54c5c0 node-api: handle no support for external buffers
- 472edc775d src: disambiguate terms used to refer to builtins and addons
- fb744749e2 node-api: explicitly set __cdecl for API functions
affected files:
- src/js_native_api.h
- src/js_native_api_types.h
- src/node_api.h
- src/node_api_types.h \nupstream changelog:
- ab73cc8706 src: disambiguate terms used to refer to builtins and addons
- 037ff3da6d node-api: explicitly set __cdecl for API functions
- 44fdf953ba node-api,src: fix module registration in MSVC C++
- 718be08686 node-api: format Node-API related code
- 726711fe4e node-api: add node_api_symbol_for()
- 4265f2769b src,doc: add SyntaxError napi support
affected files:
upstream changelog:
- 88b57bc9d3 src,doc: add SyntaxError napi support
- d15475578a node-api: define version 8
- ad3ebed046 node-api: allow retrieval of add-on file name
affected files:
upstream changelog:
- a86334fbb9 node-api: define version 8
affected files:
upstream changelog:
- 061939d2f6 node-api: allow retrieval of add-on file name
affected files:
upstream changelog:
- 19f14517c7 n-api: support for object freeze/seal
- ff38165820 src: allow N-API addon in
AddLinkedBinding()
- 31b3202d59 n-api: create N-API version 7
- c9506a8f3e n-api: add more property defaults
- 0848f56cb3 n-api: re-implement async env cleanup hooks
- 22cbbcf9d9 n-api,src: provide asynchronous cleanup hooks
- cc7ec889e8 n-api: support type-tagging objects
- b327d335ff n-api: add version to wasm registration
- b4ede54a7d napi: add wasm32 guards
- b18d8dde84 Revert "n-api: detect deadlocks in thread-safe function"
- d26ca06c16 n-api: detect deadlocks in thread-safe function
- d3d5eca657 Revert "n-api: detect deadlocks in thread-safe function"
- aeb7084fe6 n-api: detect deadlocks in thread-safe function
affected files:
upstream changelog:
- c995242068 n-api: support for object freeze/seal
affected files:
upstream changelog:
- 0d8eaa3942 src: allow N-API addon in
AddLinkedBinding()
Node.js v 14.12.0 introduced N-API version 7. So N-API version 7 is the default, but v6 (and v5) may be selected via feature-flag.
affected files:
upstream changelog:
- ca1181615e n-api: create N-API version 7
- 7f3b2b2a1f n-api: add more property defaults
These enums are supposed to be combined using |
, but the "rustified"
enum configuration doesn't allow it. Bindgen has a bitfield enum style
which does allow |
-ing values.
N-API currently includes two enums used as bitfields:
napi_key_filter
and
napi_property_attributes
.
affected files:
upstream changelog:
- 3c32fe09e9 n-api: re-implement async env cleanup hooks
bindgen
switched the default output for parameters with the size_t
C type to u32
/u64
depending on the target platform.
Per rust-lang/rust-bindgen#1671, the old behaviour where
size_t
would just output usize
is not technically correct, because the C standard has a slightly different definition for size_t
.
It should be correct for all platforms that Node.js supports though. bindgen added a toggle to opt back in to the old behaviour. Since bindgen had been doing this for years without issue, I think we're safe.
affected files:
upstream changelog:
- 8630f34776 n-api,src: provide asynchronous cleanup hooks
- 8cc9e5eb52 n-api: support type-tagging objects
affected files:
upstream changelog:
- ac41bf03fa n-api: add version to wasm registration
- 9148e01e76 napi: add wasm32 guards
- f4cfe94d90 Revert "n-api: detect deadlocks in thread-safe function"
affected files:
upstream changelog:
- 861eb39307 n-api: detect deadlocks in thread-safe function