node-aix-ppc64 20.0.0 → 20.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -505,6 +505,9 @@ struct IsolateSettings {
505
505
  // feature during the build step by passing the --disable-shared-readonly-heap
506
506
  // flag to the configure script.
507
507
  //
508
+ // The snapshot *must* be kept alive during the execution of the Isolate
509
+ // that was created using it.
510
+ //
508
511
  // Snapshots are an *experimental* feature. In particular, the embedder API
509
512
  // exposed through this class is subject to change or removal between Node.js
510
513
  // versions, including possible API and ABI breakage.
@@ -722,7 +725,8 @@ NODE_EXTERN ArrayBufferAllocator* GetArrayBufferAllocator(IsolateData* data);
722
725
  // a snapshot and have a main context that was read from that snapshot.
723
726
  NODE_EXTERN v8::Local<v8::Context> GetMainContext(Environment* env);
724
727
 
725
- NODE_EXTERN void OnFatalError(const char* location, const char* message);
728
+ [[noreturn]] NODE_EXTERN void OnFatalError(const char* location,
729
+ const char* message);
726
730
  NODE_EXTERN void PromiseRejectCallback(v8::PromiseRejectMessage message);
727
731
  NODE_EXTERN bool AllowWasmCodeGenerationCallback(v8::Local<v8::Context> context,
728
732
  v8::Local<v8::String>);
@@ -1236,9 +1240,11 @@ NODE_EXTERN void AddLinkedBinding(Environment* env,
1236
1240
  const char* name,
1237
1241
  addon_context_register_func fn,
1238
1242
  void* priv);
1239
- NODE_EXTERN void AddLinkedBinding(Environment* env,
1240
- const char* name,
1241
- napi_addon_register_func fn);
1243
+ NODE_EXTERN void AddLinkedBinding(
1244
+ Environment* env,
1245
+ const char* name,
1246
+ napi_addon_register_func fn,
1247
+ int32_t module_api_version = NODE_API_DEFAULT_MODULE_API_VERSION);
1242
1248
 
1243
1249
  /* Registers a callback with the passed-in Environment instance. The callback
1244
1250
  * is called after the event loop exits, but before the VM is disposed.
@@ -30,6 +30,7 @@ struct uv_loop_s; // Forward declaration.
30
30
 
31
31
  typedef napi_value(NAPI_CDECL* napi_addon_register_func)(napi_env env,
32
32
  napi_value exports);
33
+ typedef int32_t(NAPI_CDECL* node_api_addon_get_api_version_func)();
33
34
 
34
35
  // Used by deprecated registration method napi_module_register.
35
36
  typedef struct napi_module {
@@ -54,11 +55,20 @@ typedef struct napi_module {
54
55
  #define NAPI_MODULE_INITIALIZER_BASE napi_register_module_v
55
56
  #endif
56
57
 
58
+ #define NODE_API_MODULE_GET_API_VERSION_BASE node_api_module_get_api_version_v
59
+
57
60
  #define NAPI_MODULE_INITIALIZER \
58
61
  NAPI_MODULE_INITIALIZER_X(NAPI_MODULE_INITIALIZER_BASE, NAPI_MODULE_VERSION)
59
62
 
63
+ #define NODE_API_MODULE_GET_API_VERSION \
64
+ NAPI_MODULE_INITIALIZER_X(NODE_API_MODULE_GET_API_VERSION_BASE, \
65
+ NAPI_MODULE_VERSION)
66
+
60
67
  #define NAPI_MODULE_INIT() \
61
68
  EXTERN_C_START \
69
+ NAPI_MODULE_EXPORT int32_t NODE_API_MODULE_GET_API_VERSION() { \
70
+ return NAPI_VERSION; \
71
+ } \
62
72
  NAPI_MODULE_EXPORT napi_value NAPI_MODULE_INITIALIZER(napi_env env, \
63
73
  napi_value exports); \
64
74
  EXTERN_C_END \
@@ -23,7 +23,7 @@
23
23
  #define SRC_NODE_VERSION_H_
24
24
 
25
25
  #define NODE_MAJOR_VERSION 20
26
- #define NODE_MINOR_VERSION 0
26
+ #define NODE_MINOR_VERSION 2
27
27
  #define NODE_PATCH_VERSION 0
28
28
 
29
29
  #define NODE_VERSION_IS_LTS 0
@@ -93,6 +93,10 @@
93
93
 
94
94
  // The NAPI_VERSION provided by this version of the runtime. This is the version
95
95
  // which the Node binary being built supports.
96
- #define NAPI_VERSION 8
96
+ #define NAPI_VERSION 8
97
+
98
+ // Node API modules use NAPI_VERSION 8 by default if it is not explicitly
99
+ // specified. It must be always 8.
100
+ #define NODE_API_DEFAULT_MODULE_API_VERSION 8
97
101
 
98
102
  #endif // SRC_NODE_VERSION_H_
@@ -11,7 +11,7 @@
11
11
  #define V8_MAJOR_VERSION 11
12
12
  #define V8_MINOR_VERSION 3
13
13
  #define V8_BUILD_NUMBER 244
14
- #define V8_PATCH_LEVEL 4
14
+ #define V8_PATCH_LEVEL 8
15
15
 
16
16
  // Use 1 for candidates and 0 otherwise.
17
17
  // (Boolean macro values are not supported by all preprocessors.)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-aix-ppc64",
3
- "version": "v20.0.0",
3
+ "version": "v20.2.0",
4
4
  "description": "node",
5
5
  "bin": {
6
6
  "node": "bin/node"