node-api-headers
Advanced tools
| { | ||
| ".": "1.6.0" | ||
| ".": "1.7.0" | ||
| } |
+8
-0
| # node-api-headers Changelog | ||
| ## [1.7.0](https://github.com/nodejs/node-api-headers/compare/v1.6.0...v1.7.0) (2025-11-28) | ||
| ### Features | ||
| * update headers from nodejs/node tag v25.1.0 ([#65](https://github.com/nodejs/node-api-headers/issues/65)) ([f90f754](https://github.com/nodejs/node-api-headers/commit/f90f75459375cb4725914895aa418efefdde7af2)) | ||
| * update headers from nodejs/node tag v25.2.1 ([#68](https://github.com/nodejs/node-api-headers/issues/68)) ([769031b](https://github.com/nodejs/node-api-headers/commit/769031b208acd820bf3f2c3b2cf9f8b4b2e2bd83)) | ||
| ## [1.6.0](https://github.com/nodejs/node-api-headers/compare/v1.5.0...v1.6.0) (2025-09-26) | ||
@@ -4,0 +12,0 @@ |
| #ifndef SRC_JS_NATIVE_API_TYPES_H_ | ||
| #define SRC_JS_NATIVE_API_TYPES_H_ | ||
| // Use INT_MAX, this should only be consumed by the pre-processor anyway. | ||
| #define NAPI_VERSION_EXPERIMENTAL 2147483647 | ||
| #ifndef NAPI_VERSION | ||
| // The baseline version for N-API. | ||
| // The NAPI_VERSION controls which version will be used by default when | ||
| // compilling a native addon. If the addon developer specifically wants to use | ||
| // functions available in a new version of N-API that is not yet ported in all | ||
| // LTS versions, they can set NAPI_VERSION knowing that they have specifically | ||
| // depended on that version. | ||
| #define NAPI_VERSION 8 | ||
| #endif | ||
| // This file needs to be compatible with C compilers. | ||
@@ -5,0 +18,0 @@ // This is a public include file, and these includes have essentially |
@@ -8,14 +8,2 @@ #ifndef SRC_JS_NATIVE_API_H_ | ||
| // Use INT_MAX, this should only be consumed by the pre-processor anyway. | ||
| #define NAPI_VERSION_EXPERIMENTAL 2147483647 | ||
| #ifndef NAPI_VERSION | ||
| // The baseline version for N-API. | ||
| // The NAPI_VERSION controls which version will be used by default when | ||
| // compilling a native addon. If the addon developer specifically wants to use | ||
| // functions available in a new version of N-API that is not yet ported in all | ||
| // LTS versions, they can set NAPI_VERSION knowing that they have specifically | ||
| // depended on that version. | ||
| #define NAPI_VERSION 8 | ||
| #endif | ||
| #include "js_native_api_types.h" | ||
@@ -66,2 +54,3 @@ | ||
| napi_value* result); | ||
| NAPI_EXTERN napi_status NAPI_CDECL napi_create_array(napi_env env, | ||
@@ -68,0 +57,0 @@ napi_value* result); |
@@ -6,2 +6,6 @@ #ifndef SRC_NODE_API_TYPES_H_ | ||
| typedef napi_value(NAPI_CDECL* napi_addon_register_func)(napi_env env, | ||
| napi_value exports); | ||
| typedef int32_t(NAPI_CDECL* node_api_addon_get_api_version_func)(void); | ||
| typedef struct napi_callback_scope__* napi_callback_scope; | ||
@@ -8,0 +12,0 @@ typedef struct napi_async_context__* napi_async_context; |
@@ -36,6 +36,2 @@ #ifndef SRC_NODE_API_H_ | ||
| typedef napi_value(NAPI_CDECL* napi_addon_register_func)(napi_env env, | ||
| napi_value exports); | ||
| typedef int32_t(NAPI_CDECL* node_api_addon_get_api_version_func)(void); | ||
| // Used by deprecated registration method napi_module_register. | ||
@@ -42,0 +38,0 @@ typedef struct napi_module { |
+1
-1
@@ -57,4 +57,4 @@ { | ||
| }, | ||
| "version": "1.6.0", | ||
| "version": "1.7.0", | ||
| "support": true | ||
| } |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
83885
0.64%