node-linux-arm64 25.3.0 → 25.5.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 +451 -6
- package/LICENSE +286 -13
- package/README.md +22 -13
- package/bin/node +0 -0
- package/include/node/common.gypi +2 -2
- package/include/node/config.gypi +529 -488
- package/include/node/js_native_api.h +12 -6
- package/include/node/js_native_api_types.h +8 -7
- package/include/node/node.h +1 -1
- package/include/node/node_api_types.h +2 -0
- package/include/node/node_version.h +1 -1
- package/include/node/v8-isolate.h +7 -0
- package/include/node/v8-statistics.h +0 -8
- package/package.json +1 -1
- package/share/man/man1/node.1 +10 -0
|
@@ -53,12 +53,12 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_create_object(napi_env env,
|
|
|
53
53
|
#ifdef NAPI_EXPERIMENTAL
|
|
54
54
|
#define NODE_API_EXPERIMENTAL_HAS_CREATE_OBJECT_WITH_PROPERTIES
|
|
55
55
|
NAPI_EXTERN napi_status NAPI_CDECL
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
node_api_create_object_with_properties(napi_env env,
|
|
57
|
+
napi_value prototype_or_null,
|
|
58
|
+
napi_value* property_names,
|
|
59
|
+
napi_value* property_values,
|
|
60
|
+
size_t property_count,
|
|
61
|
+
napi_value* result);
|
|
62
62
|
#endif // NAPI_EXPERIMENTAL
|
|
63
63
|
|
|
64
64
|
NAPI_EXTERN napi_status NAPI_CDECL napi_create_array(napi_env env,
|
|
@@ -197,6 +197,12 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_coerce_to_string(napi_env env,
|
|
|
197
197
|
napi_value* result);
|
|
198
198
|
|
|
199
199
|
// Methods to work with Objects
|
|
200
|
+
#ifdef NAPI_EXPERIMENTAL
|
|
201
|
+
#define NODE_API_EXPERIMENTAL_HAS_SET_PROTOTYPE
|
|
202
|
+
NAPI_EXTERN napi_status NAPI_CDECL node_api_set_prototype(napi_env env,
|
|
203
|
+
napi_value object,
|
|
204
|
+
napi_value value);
|
|
205
|
+
#endif
|
|
200
206
|
NAPI_EXTERN napi_status NAPI_CDECL napi_get_prototype(napi_env env,
|
|
201
207
|
napi_value object,
|
|
202
208
|
napi_value* result);
|
|
@@ -7,12 +7,11 @@
|
|
|
7
7
|
#ifdef NAPI_EXPERIMENTAL
|
|
8
8
|
#define NAPI_VERSION NAPI_VERSION_EXPERIMENTAL
|
|
9
9
|
#else
|
|
10
|
-
// The baseline version for
|
|
11
|
-
//
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
//
|
|
15
|
-
// depended on that version.
|
|
10
|
+
// The baseline version for Node-API.
|
|
11
|
+
// NAPI_VERSION controls which version is used by default when compiling
|
|
12
|
+
// a native addon. If the addon developer wants to use functions from a
|
|
13
|
+
// newer Node-API version not yet available in all LTS versions, they can
|
|
14
|
+
// set NAPI_VERSION to explicitly depend on that version.
|
|
16
15
|
#define NAPI_VERSION 8
|
|
17
16
|
#endif
|
|
18
17
|
#endif
|
|
@@ -31,7 +30,7 @@
|
|
|
31
30
|
|
|
32
31
|
// This file needs to be compatible with C compilers.
|
|
33
32
|
// This is a public include file, and these includes have essentially
|
|
34
|
-
//
|
|
33
|
+
// become part of its API.
|
|
35
34
|
#include <stddef.h> // NOLINT(modernize-deprecated-headers)
|
|
36
35
|
#include <stdint.h> // NOLINT(modernize-deprecated-headers)
|
|
37
36
|
|
|
@@ -133,6 +132,8 @@ typedef enum {
|
|
|
133
132
|
napi_float64_array,
|
|
134
133
|
napi_bigint64_array,
|
|
135
134
|
napi_biguint64_array,
|
|
135
|
+
#define NODE_API_HAS_FLOAT16_ARRAY
|
|
136
|
+
napi_float16_array,
|
|
136
137
|
} napi_typedarray_type;
|
|
137
138
|
|
|
138
139
|
typedef enum {
|
package/include/node/node.h
CHANGED
|
@@ -1461,7 +1461,7 @@ class NODE_EXTERN CallbackScope {
|
|
|
1461
1461
|
CallbackScope(CallbackScope&&) = delete;
|
|
1462
1462
|
|
|
1463
1463
|
private:
|
|
1464
|
-
void*
|
|
1464
|
+
[[maybe_unused]] void* reserved_;
|
|
1465
1465
|
union {
|
|
1466
1466
|
v8::Local<v8::Object> local;
|
|
1467
1467
|
v8::Global<v8::Object>* global_ptr;
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
typedef napi_value(NAPI_CDECL* napi_addon_register_func)(napi_env env,
|
|
7
7
|
napi_value exports);
|
|
8
|
+
// False positive: https://github.com/cpplint/cpplint/issues/409
|
|
9
|
+
// NOLINTNEXTLINE (readability/casting)
|
|
8
10
|
typedef int32_t(NAPI_CDECL* node_api_addon_get_api_version_func)(void);
|
|
9
11
|
|
|
10
12
|
typedef struct napi_callback_scope__* napi_callback_scope;
|
|
@@ -1001,6 +1001,13 @@ class V8_EXPORT Isolate {
|
|
|
1001
1001
|
*/
|
|
1002
1002
|
void GetHeapStatistics(HeapStatistics* heap_statistics);
|
|
1003
1003
|
|
|
1004
|
+
/**
|
|
1005
|
+
* Get total allocated bytes since isolate creation.
|
|
1006
|
+
* This should be used only by Node.JS, since it's a temporary method
|
|
1007
|
+
* to avoid breaking ABI on HeapStatistics.
|
|
1008
|
+
*/
|
|
1009
|
+
uint64_t GetTotalAllocatedBytes();
|
|
1010
|
+
|
|
1004
1011
|
/**
|
|
1005
1012
|
* Returns the number of spaces in the heap.
|
|
1006
1013
|
*/
|
|
@@ -154,13 +154,6 @@ 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
|
-
|
|
164
157
|
/**
|
|
165
158
|
* Returns a 0/1 boolean, which signifies whether the V8 overwrite heap
|
|
166
159
|
* garbage with a bit pattern.
|
|
@@ -182,7 +175,6 @@ class V8_EXPORT HeapStatistics {
|
|
|
182
175
|
size_t number_of_detached_contexts_;
|
|
183
176
|
size_t total_global_handles_size_;
|
|
184
177
|
size_t used_global_handles_size_;
|
|
185
|
-
uint64_t total_allocated_bytes_;
|
|
186
178
|
|
|
187
179
|
friend class V8;
|
|
188
180
|
friend class Isolate;
|
package/package.json
CHANGED
package/share/man/man1/node.1
CHANGED
|
@@ -97,6 +97,9 @@ Allow execution of WASI when using the permission model.
|
|
|
97
97
|
.It Fl -allow-worker
|
|
98
98
|
Allow creating worker threads when using the permission model.
|
|
99
99
|
.
|
|
100
|
+
.It Fl -build-sea
|
|
101
|
+
Build a Node.js single executable application
|
|
102
|
+
.
|
|
100
103
|
.It Fl -completion-bash
|
|
101
104
|
Print source-able bash completion script for Node.js.
|
|
102
105
|
.
|
|
@@ -216,6 +219,9 @@ Disable top-level await keyword support in REPL.
|
|
|
216
219
|
.It Fl -no-experimental-sqlite
|
|
217
220
|
Disable the experimental node:sqlite module.
|
|
218
221
|
.
|
|
222
|
+
.It Fl -no-require-module
|
|
223
|
+
Disable support for loading ECMAScript modules with require().
|
|
224
|
+
.
|
|
219
225
|
.It Fl -no-strip-types
|
|
220
226
|
Disable type-stripping for TypeScript files.
|
|
221
227
|
.
|
|
@@ -231,6 +237,10 @@ Enable the experimental QUIC support.
|
|
|
231
237
|
.
|
|
232
238
|
.It Fl -experimental-inspector-network-resource
|
|
233
239
|
Enable experimental support for inspector network resources.
|
|
240
|
+
|
|
241
|
+
.It Fl -experimental-storage-inspection
|
|
242
|
+
Enable experimental support for storage inspection.
|
|
243
|
+
|
|
234
244
|
.
|
|
235
245
|
.It Fl -force-context-aware
|
|
236
246
|
Disable loading native addons that are not context-aware.
|