node-aix-ppc64 25.0.0 → 25.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.
- package/CHANGELOG.md +226 -0
- package/README.md +6 -6
- package/bin/node +0 -0
- package/include/node/common.gypi +4 -4
- package/include/node/config.gypi +1 -1
- package/include/node/js_native_api.h +11 -28
- package/include/node/js_native_api_types.h +28 -0
- package/include/node/node.exp +154 -120
- package/include/node/node.h +8 -1
- package/include/node/node_api.h +0 -4
- package/include/node/node_api_types.h +4 -0
- package/include/node/node_version.h +1 -1
- package/include/node/v8-script.h +17 -0
- package/include/node/v8-statistics.h +8 -0
- package/package.json +3 -2
- package/share/man/man1/node.1 +2 -2
package/include/node/node.h
CHANGED
|
@@ -76,7 +76,6 @@
|
|
|
76
76
|
#include "v8-platform.h" // NOLINT(build/include_order)
|
|
77
77
|
#include "node_version.h" // NODE_MODULE_VERSION
|
|
78
78
|
|
|
79
|
-
#define NAPI_EXPERIMENTAL
|
|
80
79
|
#include "node_api.h"
|
|
81
80
|
|
|
82
81
|
#include <functional>
|
|
@@ -1402,6 +1401,10 @@ NODE_EXTERN async_context EmitAsyncInit(v8::Isolate* isolate,
|
|
|
1402
1401
|
v8::Local<v8::Object> resource,
|
|
1403
1402
|
const char* name,
|
|
1404
1403
|
async_id trigger_async_id = -1);
|
|
1404
|
+
NODE_EXTERN async_context EmitAsyncInit(v8::Isolate* isolate,
|
|
1405
|
+
v8::Local<v8::Object> resource,
|
|
1406
|
+
std::string_view name,
|
|
1407
|
+
async_id trigger_async_id = -1);
|
|
1405
1408
|
|
|
1406
1409
|
NODE_EXTERN async_context EmitAsyncInit(v8::Isolate* isolate,
|
|
1407
1410
|
v8::Local<v8::Object> resource,
|
|
@@ -1508,6 +1511,10 @@ class NODE_EXTERN AsyncResource {
|
|
|
1508
1511
|
v8::Local<v8::Object> resource,
|
|
1509
1512
|
const char* name,
|
|
1510
1513
|
async_id trigger_async_id = -1);
|
|
1514
|
+
AsyncResource(v8::Isolate* isolate,
|
|
1515
|
+
v8::Local<v8::Object> resource,
|
|
1516
|
+
std::string_view name,
|
|
1517
|
+
async_id trigger_async_id = -1);
|
|
1511
1518
|
|
|
1512
1519
|
virtual ~AsyncResource();
|
|
1513
1520
|
|
package/include/node/node_api.h
CHANGED
|
@@ -33,10 +33,6 @@ struct uv_loop_s; // Forward declaration.
|
|
|
33
33
|
#define NAPI_NO_RETURN
|
|
34
34
|
#endif
|
|
35
35
|
|
|
36
|
-
typedef napi_value(NAPI_CDECL* napi_addon_register_func)(napi_env env,
|
|
37
|
-
napi_value exports);
|
|
38
|
-
typedef int32_t(NAPI_CDECL* node_api_addon_get_api_version_func)(void);
|
|
39
|
-
|
|
40
36
|
// Used by deprecated registration method napi_module_register.
|
|
41
37
|
typedef struct napi_module {
|
|
42
38
|
int nm_version;
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#include "js_native_api_types.h"
|
|
5
5
|
|
|
6
|
+
typedef napi_value(NAPI_CDECL* napi_addon_register_func)(napi_env env,
|
|
7
|
+
napi_value exports);
|
|
8
|
+
typedef int32_t(NAPI_CDECL* node_api_addon_get_api_version_func)(void);
|
|
9
|
+
|
|
6
10
|
typedef struct napi_callback_scope__* napi_callback_scope;
|
|
7
11
|
typedef struct napi_async_context__* napi_async_context;
|
|
8
12
|
typedef struct napi_async_work__* napi_async_work;
|
package/include/node/v8-script.h
CHANGED
|
@@ -220,6 +220,13 @@ class V8_EXPORT Module : public Data {
|
|
|
220
220
|
Local<Context> context, Local<String> specifier,
|
|
221
221
|
Local<FixedArray> import_attributes, Local<Module> referrer);
|
|
222
222
|
|
|
223
|
+
using ResolveModuleByIndexCallback = MaybeLocal<Module> (*)(
|
|
224
|
+
Local<Context> context, size_t module_request_index,
|
|
225
|
+
Local<Module> referrer);
|
|
226
|
+
using ResolveSourceByIndexCallback = MaybeLocal<Object> (*)(
|
|
227
|
+
Local<Context> context, size_t module_request_index,
|
|
228
|
+
Local<Module> referrer);
|
|
229
|
+
|
|
223
230
|
/**
|
|
224
231
|
* Instantiates the module and its dependencies.
|
|
225
232
|
*
|
|
@@ -231,6 +238,16 @@ class V8_EXPORT Module : public Data {
|
|
|
231
238
|
Local<Context> context, ResolveModuleCallback module_callback,
|
|
232
239
|
ResolveSourceCallback source_callback = nullptr);
|
|
233
240
|
|
|
241
|
+
/**
|
|
242
|
+
* Similar to the variant that takes ResolveModuleCallback and
|
|
243
|
+
* ResolveSourceCallback, but uses the index into the array that is returned
|
|
244
|
+
* by GetModuleRequests() instead of the specifier and import attributes to
|
|
245
|
+
* identify the requests.
|
|
246
|
+
*/
|
|
247
|
+
V8_WARN_UNUSED_RESULT Maybe<bool> InstantiateModule(
|
|
248
|
+
Local<Context> context, ResolveModuleByIndexCallback module_callback,
|
|
249
|
+
ResolveSourceByIndexCallback source_callback = nullptr);
|
|
250
|
+
|
|
234
251
|
/**
|
|
235
252
|
* Evaluates the module and its dependencies.
|
|
236
253
|
*
|
|
@@ -154,6 +154,13 @@ class V8_EXPORT HeapStatistics {
|
|
|
154
154
|
size_t number_of_native_contexts() { return number_of_native_contexts_; }
|
|
155
155
|
size_t number_of_detached_contexts() { return number_of_detached_contexts_; }
|
|
156
156
|
|
|
157
|
+
/**
|
|
158
|
+
* Returns the total number of bytes allocated since the Isolate was created.
|
|
159
|
+
* This includes all heap objects allocated in any space (new, old, code,
|
|
160
|
+
* etc.).
|
|
161
|
+
*/
|
|
162
|
+
uint64_t total_allocated_bytes() { return total_allocated_bytes_; }
|
|
163
|
+
|
|
157
164
|
/**
|
|
158
165
|
* Returns a 0/1 boolean, which signifies whether the V8 overwrite heap
|
|
159
166
|
* garbage with a bit pattern.
|
|
@@ -175,6 +182,7 @@ class V8_EXPORT HeapStatistics {
|
|
|
175
182
|
size_t number_of_detached_contexts_;
|
|
176
183
|
size_t total_global_handles_size_;
|
|
177
184
|
size_t used_global_handles_size_;
|
|
185
|
+
uint64_t total_allocated_bytes_;
|
|
178
186
|
|
|
179
187
|
friend class V8;
|
|
180
188
|
friend class Isolate;
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-aix-ppc64",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "25.2.0",
|
|
4
4
|
"description": "node",
|
|
5
5
|
"repository": {
|
|
6
|
-
"url": "https://github.com/aredridel/node-bin-gen"
|
|
6
|
+
"url": "git+https://github.com/aredridel/node-bin-gen.git"
|
|
7
7
|
},
|
|
8
8
|
"bin": {
|
|
9
9
|
"node": "bin/node"
|
|
10
10
|
},
|
|
11
|
+
"license": "MIT",
|
|
11
12
|
"files": [
|
|
12
13
|
"bin/node",
|
|
13
14
|
"share",
|
package/share/man/man1/node.1
CHANGED
|
@@ -216,8 +216,8 @@ Disable top-level await keyword support in REPL.
|
|
|
216
216
|
.It Fl -no-experimental-sqlite
|
|
217
217
|
Disable the experimental node:sqlite module.
|
|
218
218
|
.
|
|
219
|
-
.It Fl -no-
|
|
220
|
-
Disable
|
|
219
|
+
.It Fl -no-strip-types
|
|
220
|
+
Disable type-stripping for TypeScript files.
|
|
221
221
|
.
|
|
222
222
|
.It Fl -experimental-vm-modules
|
|
223
223
|
Enable experimental ES module support in VM module.
|