node-aix-ppc64 14.17.6 → 14.18.3

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.
@@ -336,7 +336,8 @@ class NODE_EXTERN MultiIsolatePlatform : public v8::Platform {
336
336
  enum IsolateSettingsFlags {
337
337
  MESSAGE_LISTENER_WITH_ERROR_LEVEL = 1 << 0,
338
338
  DETAILED_SOURCE_POSITIONS_FOR_PROFILING = 1 << 1,
339
- SHOULD_NOT_SET_PROMISE_REJECTION_CALLBACK = 1 << 2
339
+ SHOULD_NOT_SET_PROMISE_REJECTION_CALLBACK = 1 << 2,
340
+ SHOULD_NOT_SET_PREPARE_STACK_TRACE_CALLBACK = 1 << 3
340
341
  };
341
342
 
342
343
  struct IsolateSettings {
@@ -423,7 +424,11 @@ enum Flags : uint64_t {
423
424
  kNoRegisterESMLoader = 1 << 3,
424
425
  // Set this flag to make Node.js track "raw" file descriptors, i.e. managed
425
426
  // by fs.open() and fs.close(), and close them during FreeEnvironment().
426
- kTrackUnmanagedFds = 1 << 4
427
+ kTrackUnmanagedFds = 1 << 4,
428
+ // Set this flag to force hiding console windows when spawning child
429
+ // processes. This is usually used when embedding Node.js in GUI programs on
430
+ // Windows.
431
+ kHideConsoleWindows = 1 << 5
427
432
  };
428
433
  } // namespace EnvironmentFlags
429
434
 
@@ -499,6 +504,8 @@ NODE_EXTERN void DefaultProcessExitHandler(Environment* env, int exit_code);
499
504
 
500
505
  // This may return nullptr if context is not associated with a Node instance.
501
506
  NODE_EXTERN Environment* GetCurrentEnvironment(v8::Local<v8::Context> context);
507
+ NODE_EXTERN IsolateData* GetEnvironmentIsolateData(Environment* env);
508
+ NODE_EXTERN ArrayBufferAllocator* GetArrayBufferAllocator(IsolateData* data);
502
509
 
503
510
  NODE_EXTERN void OnFatalError(const char* location, const char* message);
504
511
  NODE_EXTERN void PromiseRejectCallback(v8::PromiseRejectMessage message);
@@ -539,8 +546,19 @@ NODE_EXTERN void FreePlatform(MultiIsolatePlatform* platform);
539
546
  NODE_EXTERN v8::TracingController* GetTracingController();
540
547
  NODE_EXTERN void SetTracingController(v8::TracingController* controller);
541
548
 
542
- NODE_EXTERN void EmitBeforeExit(Environment* env);
543
- NODE_EXTERN int EmitExit(Environment* env);
549
+ // Run `process.emit('beforeExit')` as it would usually happen when Node.js is
550
+ // run in standalone mode.
551
+ NODE_EXTERN v8::Maybe<bool> EmitProcessBeforeExit(Environment* env);
552
+ NODE_DEPRECATED("Use Maybe version (EmitProcessBeforeExit) instead",
553
+ NODE_EXTERN void EmitBeforeExit(Environment* env));
554
+ // Run `process.emit('exit')` as it would usually happen when Node.js is run
555
+ // in standalone mode. The return value corresponds to the exit code.
556
+ NODE_EXTERN v8::Maybe<int> EmitProcessExit(Environment* env);
557
+ NODE_DEPRECATED("Use Maybe version (EmitProcessExit) instead",
558
+ NODE_EXTERN int EmitExit(Environment* env));
559
+
560
+ // Runs hooks added through `AtExit()`. This is part of `FreeEnvironment()`,
561
+ // so calling it manually is typically not necessary.
544
562
  NODE_EXTERN void RunAtExit(Environment* env);
545
563
 
546
564
  // This may return nullptr if the current v8::Context is not associated
@@ -650,7 +668,18 @@ inline void NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate> recv,
650
668
  #define NODE_SET_PROTOTYPE_METHOD node::NODE_SET_PROTOTYPE_METHOD
651
669
 
652
670
  // BINARY is a deprecated alias of LATIN1.
653
- enum encoding {ASCII, UTF8, BASE64, UCS2, BINARY, HEX, BUFFER, LATIN1 = BINARY};
671
+ // BASE64URL is not currently exposed to the JavaScript side.
672
+ enum encoding {
673
+ ASCII,
674
+ UTF8,
675
+ BASE64,
676
+ UCS2,
677
+ BINARY,
678
+ HEX,
679
+ BUFFER,
680
+ BASE64URL,
681
+ LATIN1 = BINARY
682
+ };
654
683
 
655
684
  NODE_EXTERN enum encoding ParseEncoding(
656
685
  v8::Isolate* isolate,
@@ -958,6 +987,9 @@ class NODE_EXTERN CallbackScope {
958
987
  CallbackScope(v8::Isolate* isolate,
959
988
  v8::Local<v8::Object> resource,
960
989
  async_context asyncContext);
990
+ CallbackScope(Environment* env,
991
+ v8::Local<v8::Object> resource,
992
+ async_context asyncContext);
961
993
  ~CallbackScope();
962
994
 
963
995
  void operator=(const CallbackScope&) = delete;
@@ -263,6 +263,13 @@ NAPI_EXTERN napi_status napi_remove_async_cleanup_hook(
263
263
 
264
264
  #endif // NAPI_VERSION >= 8
265
265
 
266
+ #ifdef NAPI_EXPERIMENTAL
267
+
268
+ NAPI_EXTERN napi_status
269
+ node_api_get_module_file_name(napi_env env, const char** result);
270
+
271
+ #endif // NAPI_EXPERIMENTAL
272
+
266
273
  EXTERN_C_END
267
274
 
268
275
  #endif // SRC_NODE_API_H_
@@ -23,8 +23,8 @@
23
23
  #define SRC_NODE_VERSION_H_
24
24
 
25
25
  #define NODE_MAJOR_VERSION 14
26
- #define NODE_MINOR_VERSION 17
27
- #define NODE_PATCH_VERSION 6
26
+ #define NODE_MINOR_VERSION 18
27
+ #define NODE_PATCH_VERSION 3
28
28
 
29
29
  #define NODE_VERSION_IS_LTS 1
30
30
  #define NODE_VERSION_LTS_CODENAME "Fermium"
@@ -445,4 +445,16 @@
445
445
  # define UV__EILSEQ (-4027)
446
446
  #endif
447
447
 
448
+ #if defined(EOVERFLOW) && !defined(_WIN32)
449
+ # define UV__EOVERFLOW UV__ERR(EOVERFLOW)
450
+ #else
451
+ # define UV__EOVERFLOW (-4026)
452
+ #endif
453
+
454
+ #if defined(ESOCKTNOSUPPORT) && !defined(_WIN32)
455
+ # define UV__ESOCKTNOSUPPORT UV__ERR(ESOCKTNOSUPPORT)
456
+ #else
457
+ # define UV__ESOCKTNOSUPPORT (-4025)
458
+ #endif
459
+
448
460
  #endif /* UV_ERRNO_H_ */
@@ -251,7 +251,7 @@ void name##_SPLAY_MINMAX(struct name *head, int __comp) \
251
251
  SPLAY_LEFT(&__node, field) = SPLAY_RIGHT(&__node, field) = NULL; \
252
252
  __left = __right = &__node; \
253
253
  \
254
- while (1) { \
254
+ for (;;) { \
255
255
  if (__comp < 0) { \
256
256
  __tmp = SPLAY_LEFT((head)->sph_root, field); \
257
257
  if (__tmp == NULL) \
@@ -31,7 +31,7 @@
31
31
  */
32
32
 
33
33
  #define UV_VERSION_MAJOR 1
34
- #define UV_VERSION_MINOR 41
34
+ #define UV_VERSION_MINOR 42
35
35
  #define UV_VERSION_PATCH 0
36
36
  #define UV_VERSION_IS_RELEASE 1
37
37
  #define UV_VERSION_SUFFIX ""
package/include/node/uv.h CHANGED
@@ -126,6 +126,7 @@ extern "C" {
126
126
  XX(ENOTEMPTY, "directory not empty") \
127
127
  XX(ENOTSOCK, "socket operation on non-socket") \
128
128
  XX(ENOTSUP, "operation not supported on socket") \
129
+ XX(EOVERFLOW, "value too large for defined data type") \
129
130
  XX(EPERM, "operation not permitted") \
130
131
  XX(EPIPE, "broken pipe") \
131
132
  XX(EPROTO, "protocol error") \
@@ -148,6 +149,7 @@ extern "C" {
148
149
  XX(ENOTTY, "inappropriate ioctl for device") \
149
150
  XX(EFTYPE, "inappropriate file type or format") \
150
151
  XX(EILSEQ, "illegal byte sequence") \
152
+ XX(ESOCKTNOSUPPORT, "socket type not supported") \
151
153
 
152
154
  #define UV_HANDLE_TYPE_MAP(XX) \
153
155
  XX(ASYNC, async) \
@@ -526,6 +528,10 @@ UV_EXTERN int uv_write2(uv_write_t* req,
526
528
  UV_EXTERN int uv_try_write(uv_stream_t* handle,
527
529
  const uv_buf_t bufs[],
528
530
  unsigned int nbufs);
531
+ UV_EXTERN int uv_try_write2(uv_stream_t* handle,
532
+ const uv_buf_t bufs[],
533
+ unsigned int nbufs,
534
+ uv_stream_t* send_handle);
529
535
 
530
536
  /* uv_write_t is a subclass of uv_req_t. */
531
537
  struct uv_write_s {
@@ -626,7 +632,14 @@ enum uv_udp_flags {
626
632
  * in uv_udp_recv_cb, nread will always be 0 and addr will always be NULL.
627
633
  */
628
634
  UV_UDP_MMSG_FREE = 16,
629
-
635
+ /*
636
+ * Indicates if IP_RECVERR/IPV6_RECVERR will be set when binding the handle.
637
+ * This sets IP_RECVERR for IPv4 and IPV6_RECVERR for IPv6 UDP sockets on
638
+ * Linux. This stops the Linux kernel from suppressing some ICMP error
639
+ * messages and enables full ICMP error reporting for faster failover.
640
+ * This flag is no-op on platforms other than Linux.
641
+ */
642
+ UV_UDP_LINUX_RECVERR = 32,
630
643
  /*
631
644
  * Indicates that recvmmsg should be used, if available.
632
645
  */
package/include/node/v8.h CHANGED
@@ -10488,6 +10488,18 @@ class V8_EXPORT Context {
10488
10488
  */
10489
10489
  void SetContinuationPreservedEmbedderData(Local<Value> context);
10490
10490
 
10491
+ /**
10492
+ * Set or clear hooks to be invoked for promise lifecycle operations.
10493
+ * To clear a hook, set it to an empty v8::Function. Each function will
10494
+ * receive the observed promise as the first argument. If a chaining
10495
+ * operation is used on a promise, the init will additionally receive
10496
+ * the parent promise as the second argument.
10497
+ */
10498
+ void SetPromiseHooks(Local<Function> init_hook,
10499
+ Local<Function> before_hook,
10500
+ Local<Function> after_hook,
10501
+ Local<Function> resolve_hook);
10502
+
10491
10503
  /**
10492
10504
  * Stack-allocated class which sets the execution context for all
10493
10505
  * operations executed within a local scope.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-aix-ppc64",
3
- "version": "v14.17.6",
3
+ "version": "v14.18.3",
4
4
  "description": "node",
5
5
  "bin": {
6
6
  "node": "bin/node"
@@ -78,7 +78,7 @@ Aborting instead of exiting causes a core file to be generated for analysis.
78
78
  .It Fl -completion-bash
79
79
  Print source-able bash completion script for Node.js.
80
80
  .
81
- .It Fl -conditions Ar string
81
+ .It Fl C , Fl -conditions Ar string
82
82
  Use custom conditional exports conditions.
83
83
  .Ar string
84
84
  .
@@ -185,6 +185,10 @@ Same requirements as
185
185
  .It Fl -frozen-intrinsics
186
186
  Enable experimental frozen intrinsics support.
187
187
  .
188
+ .It Fl -heapsnapshot-near-heap-limit Ns = Ns Ar max_count
189
+ Generate heap snapshot when the V8 heap usage is approaching the heap limit.
190
+ No more than the specified number of snapshots will be generated.
191
+ .
188
192
  .It Fl -heapsnapshot-signal Ns = Ns Ar signal
189
193
  Generate heap snapshot on specified signal.
190
194
  .
@@ -281,6 +285,10 @@ These will still be enabled dynamically when `async_hooks` is enabled.
281
285
  .It Fl -no-warnings
282
286
  Silence all process warnings (including deprecations).
283
287
  .
288
+ .It Fl -node-memory-debug
289
+ Enable extra debug checks for memory leaks in Node.js internals. This is
290
+ usually only useful for developers debugging Node.js itself.
291
+ .
284
292
  .It Fl -openssl-config Ns = Ns Ar file
285
293
  Load an OpenSSL configuration file on startup.
286
294
  Among other uses, this can be used to enable FIPS-compliant crypto if Node.js is built with
@@ -686,7 +694,7 @@ Documentation:
686
694
  .Sy https://nodejs.org/api/
687
695
  .
688
696
  .Pp
689
- GitHub repository & Issue Tracker:
697
+ GitHub repository and issue tracker:
690
698
  .Sy https://github.com/nodejs/node
691
699
  .
692
700
  .Pp