node-linux-arm64 18.12.1 → 18.14.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.
@@ -153,6 +153,7 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_create_buffer(napi_env env,
153
153
  size_t length,
154
154
  void** data,
155
155
  napi_value* result);
156
+ #ifndef NODE_API_NO_EXTERNAL_BUFFERS_ALLOWED
156
157
  NAPI_EXTERN napi_status NAPI_CDECL
157
158
  napi_create_external_buffer(napi_env env,
158
159
  size_t length,
@@ -160,6 +161,7 @@ napi_create_external_buffer(napi_env env,
160
161
  napi_finalize finalize_cb,
161
162
  void* finalize_hint,
162
163
  napi_value* result);
164
+ #endif // NODE_API_NO_EXTERNAL_BUFFERS_ALLOWED
163
165
  NAPI_EXTERN napi_status NAPI_CDECL napi_create_buffer_copy(napi_env env,
164
166
  size_t length,
165
167
  const void* data,
@@ -206,11 +208,11 @@ napi_get_uv_event_loop(napi_env env, struct uv_loop_s** loop);
206
208
  NAPI_EXTERN napi_status NAPI_CDECL napi_fatal_exception(napi_env env,
207
209
  napi_value err);
208
210
 
209
- NAPI_EXTERN napi_status NAPI_CDECL napi_add_env_cleanup_hook(
210
- napi_env env, void(NAPI_CDECL* fun)(void* arg), void* arg);
211
+ NAPI_EXTERN napi_status NAPI_CDECL
212
+ napi_add_env_cleanup_hook(napi_env env, napi_cleanup_hook fun, void* arg);
211
213
 
212
- NAPI_EXTERN napi_status NAPI_CDECL napi_remove_env_cleanup_hook(
213
- napi_env env, void(NAPI_CDECL* fun)(void* arg), void* arg);
214
+ NAPI_EXTERN napi_status NAPI_CDECL
215
+ napi_remove_env_cleanup_hook(napi_env env, napi_cleanup_hook fun, void* arg);
214
216
 
215
217
  NAPI_EXTERN napi_status NAPI_CDECL
216
218
  napi_open_callback_scope(napi_env env,
@@ -6,6 +6,11 @@
6
6
  typedef struct napi_callback_scope__* napi_callback_scope;
7
7
  typedef struct napi_async_context__* napi_async_context;
8
8
  typedef struct napi_async_work__* napi_async_work;
9
+
10
+ #if NAPI_VERSION >= 3
11
+ typedef void(NAPI_CDECL* napi_cleanup_hook)(void* arg);
12
+ #endif // NAPI_VERSION >= 3
13
+
9
14
  #if NAPI_VERSION >= 4
10
15
  typedef struct napi_threadsafe_function__* napi_threadsafe_function;
11
16
  #endif // NAPI_VERSION >= 4
@@ -23,8 +23,8 @@
23
23
  #define SRC_NODE_VERSION_H_
24
24
 
25
25
  #define NODE_MAJOR_VERSION 18
26
- #define NODE_MINOR_VERSION 12
27
- #define NODE_PATCH_VERSION 1
26
+ #define NODE_MINOR_VERSION 14
27
+ #define NODE_PATCH_VERSION 0
28
28
 
29
29
  #define NODE_VERSION_IS_LTS 1
30
30
  #define NODE_VERSION_LTS_CODENAME "Hydrogen"
@@ -31,8 +31,8 @@
31
31
  */
32
32
 
33
33
  #define UV_VERSION_MAJOR 1
34
- #define UV_VERSION_MINOR 43
35
- #define UV_VERSION_PATCH 0
34
+ #define UV_VERSION_MINOR 44
35
+ #define UV_VERSION_PATCH 2
36
36
  #define UV_VERSION_IS_RELEASE 1
37
37
  #define UV_VERSION_SUFFIX ""
38
38
 
@@ -263,21 +263,14 @@ typedef union {
263
263
  } unused_; /* TODO: retained for ABI compatibility; remove me in v2.x. */
264
264
  } uv_cond_t;
265
265
 
266
- typedef union {
267
- struct {
268
- unsigned int num_readers_;
269
- CRITICAL_SECTION num_readers_lock_;
270
- HANDLE write_semaphore_;
271
- } state_;
272
- /* TODO: remove me in v2.x. */
273
- struct {
274
- SRWLOCK unused_;
275
- } unused1_;
276
- /* TODO: remove me in v2.x. */
277
- struct {
278
- uv_mutex_t unused1_;
279
- uv_mutex_t unused2_;
280
- } unused2_;
266
+ typedef struct {
267
+ SRWLOCK read_write_lock_;
268
+ /* TODO: retained for ABI compatibility; remove me in v2.x */
269
+ #ifdef _WIN64
270
+ unsigned char padding_[72];
271
+ #else
272
+ unsigned char padding_[44];
273
+ #endif
281
274
  } uv_rwlock_t;
282
275
 
283
276
  typedef struct {
@@ -384,6 +377,12 @@ typedef struct {
384
377
  OVERLAPPED overlapped; \
385
378
  size_t queued_bytes; \
386
379
  } io; \
380
+ /* in v2, we can move these to the UV_CONNECT_PRIVATE_FIELDS */ \
381
+ struct { \
382
+ ULONG_PTR result; /* overlapped.Internal is reused to hold the result */\
383
+ HANDLE pipeHandle; \
384
+ DWORD duplex_flags; \
385
+ } connect; \
387
386
  } u; \
388
387
  struct uv_req_s* next_req;
389
388
 
package/include/node/uv.h CHANGED
@@ -1133,8 +1133,8 @@ struct uv_interface_address_s {
1133
1133
 
1134
1134
  struct uv_passwd_s {
1135
1135
  char* username;
1136
- long uid;
1137
- long gid;
1136
+ unsigned long uid;
1137
+ unsigned long gid;
1138
1138
  char* shell;
1139
1139
  char* homedir;
1140
1140
  };
@@ -1242,6 +1242,7 @@ UV_EXTERN uv_pid_t uv_os_getppid(void);
1242
1242
  UV_EXTERN int uv_os_getpriority(uv_pid_t pid, int* priority);
1243
1243
  UV_EXTERN int uv_os_setpriority(uv_pid_t pid, int priority);
1244
1244
 
1245
+ UV_EXTERN unsigned int uv_available_parallelism(void);
1245
1246
  UV_EXTERN int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count);
1246
1247
  UV_EXTERN void uv_free_cpu_info(uv_cpu_info_t* cpu_infos, int count);
1247
1248
 
@@ -240,6 +240,11 @@ class V8_EXPORT ArrayBuffer : public Object {
240
240
  */
241
241
  bool IsDetachable() const;
242
242
 
243
+ /**
244
+ * Returns true if this ArrayBuffer has been detached.
245
+ */
246
+ bool WasDetached() const;
247
+
243
248
  /**
244
249
  * Detaches this ArrayBuffer and all its views (typed arrays).
245
250
  * Detaching sets the byte length of the buffer and all typed arrays to zero,
@@ -253,6 +258,9 @@ class V8_EXPORT ArrayBuffer : public Object {
253
258
  * pointer coordinates the lifetime management of the internal storage
254
259
  * with any live ArrayBuffers on the heap, even across isolates. The embedder
255
260
  * should not attempt to manage lifetime of the storage through other means.
261
+ *
262
+ * The returned shared pointer will not be empty, even if the ArrayBuffer has
263
+ * been detached. Use |WasDetached| to tell if it has been detached instead.
256
264
  */
257
265
  std::shared_ptr<BackingStore> GetBackingStore();
258
266
 
@@ -11,7 +11,7 @@
11
11
  #define V8_MAJOR_VERSION 10
12
12
  #define V8_MINOR_VERSION 2
13
13
  #define V8_BUILD_NUMBER 154
14
- #define V8_PATCH_LEVEL 15
14
+ #define V8_PATCH_LEVEL 23
15
15
 
16
16
  // Use 1 for candidates and 0 otherwise.
17
17
  // (Boolean macro values are not supported by all preprocessors.)
@@ -50,6 +50,9 @@
50
50
  # define crc32 z_crc32
51
51
  # define crc32_combine z_crc32_combine
52
52
  # define crc32_combine64 z_crc32_combine64
53
+ # define crc32_combine_gen z_crc32_combine_gen
54
+ # define crc32_combine_gen64 z_crc32_combine_gen64
55
+ # define crc32_combine_op z_crc32_combine_op
53
56
  # define crc32_z z_crc32_z
54
57
  # define deflate z_deflate
55
58
  # define deflateBound z_deflateBound
@@ -361,6 +364,9 @@
361
364
  # ifdef FAR
362
365
  # undef FAR
363
366
  # endif
367
+ # ifndef WIN32_LEAN_AND_MEAN
368
+ # define WIN32_LEAN_AND_MEAN
369
+ # endif
364
370
  # include <windows.h>
365
371
  /* No need for _export, use ZLIB.DEF instead. */
366
372
  /* For complete Windows compatibility, use WINAPI, not __stdcall. */
@@ -482,11 +488,18 @@ typedef uLong FAR uLongf;
482
488
  # undef _LARGEFILE64_SOURCE
483
489
  #endif
484
490
 
485
- #if defined(__WATCOMC__) && !defined(Z_HAVE_UNISTD_H)
486
- # define Z_HAVE_UNISTD_H
491
+ #ifndef Z_HAVE_UNISTD_H
492
+ # ifdef __WATCOMC__
493
+ # define Z_HAVE_UNISTD_H
494
+ # endif
495
+ #endif
496
+ #ifndef Z_HAVE_UNISTD_H
497
+ # if defined(_LARGEFILE64_SOURCE) && !defined(_WIN32)
498
+ # define Z_HAVE_UNISTD_H
499
+ # endif
487
500
  #endif
488
501
  #ifndef Z_SOLO
489
- # if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
502
+ # if defined(Z_HAVE_UNISTD_H)
490
503
  # include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */
491
504
  # ifdef VMS
492
505
  # include <unixio.h> /* for off_t */