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.
@@ -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
- napi_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);
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 N-API.
11
- // The NAPI_VERSION controls which version will be used by default when
12
- // compilling a native addon. If the addon developer specifically wants to use
13
- // functions available in a new version of N-API that is not yet ported in all
14
- // LTS versions, they can set NAPI_VERSION knowing that they have specifically
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
- // became part of it's API.
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 {
@@ -1461,7 +1461,7 @@ class NODE_EXTERN CallbackScope {
1461
1461
  CallbackScope(CallbackScope&&) = delete;
1462
1462
 
1463
1463
  private:
1464
- void* resource_storage_global_;
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;
@@ -23,7 +23,7 @@
23
23
  #define SRC_NODE_VERSION_H_
24
24
 
25
25
  #define NODE_MAJOR_VERSION 25
26
- #define NODE_MINOR_VERSION 3
26
+ #define NODE_MINOR_VERSION 5
27
27
  #define NODE_PATCH_VERSION 0
28
28
 
29
29
  #define NODE_VERSION_IS_LTS 0
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-linux-arm64",
3
- "version": "25.3.0",
3
+ "version": "25.5.0",
4
4
  "description": "node",
5
5
  "repository": {
6
6
  "url": "git+https://github.com/aredridel/node-bin-gen.git"
@@ -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.