node-aix-ppc64 18.19.1 → 18.20.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.
@@ -131,7 +131,7 @@ NAPI_EXTERN napi_status NAPI_CDECL
131
131
  napi_create_external_buffer(napi_env env,
132
132
  size_t length,
133
133
  void* data,
134
- napi_finalize finalize_cb,
134
+ node_api_nogc_finalize finalize_cb,
135
135
  void* finalize_hint,
136
136
  napi_value* result);
137
137
  #endif // NODE_API_NO_EXTERNAL_BUFFERS_ALLOWED
@@ -159,20 +159,20 @@ napi_create_async_work(napi_env env,
159
159
  napi_async_work* result);
160
160
  NAPI_EXTERN napi_status NAPI_CDECL napi_delete_async_work(napi_env env,
161
161
  napi_async_work work);
162
- NAPI_EXTERN napi_status NAPI_CDECL napi_queue_async_work(napi_env env,
162
+ NAPI_EXTERN napi_status NAPI_CDECL napi_queue_async_work(node_api_nogc_env env,
163
163
  napi_async_work work);
164
- NAPI_EXTERN napi_status NAPI_CDECL napi_cancel_async_work(napi_env env,
164
+ NAPI_EXTERN napi_status NAPI_CDECL napi_cancel_async_work(node_api_nogc_env env,
165
165
  napi_async_work work);
166
166
 
167
167
  // version management
168
168
  NAPI_EXTERN napi_status NAPI_CDECL
169
- napi_get_node_version(napi_env env, const napi_node_version** version);
169
+ napi_get_node_version(node_api_nogc_env env, const napi_node_version** version);
170
170
 
171
171
  #if NAPI_VERSION >= 2
172
172
 
173
173
  // Return the current libuv event loop for a given environment
174
174
  NAPI_EXTERN napi_status NAPI_CDECL
175
- napi_get_uv_event_loop(napi_env env, struct uv_loop_s** loop);
175
+ napi_get_uv_event_loop(node_api_nogc_env env, struct uv_loop_s** loop);
176
176
 
177
177
  #endif // NAPI_VERSION >= 2
178
178
 
@@ -181,11 +181,11 @@ napi_get_uv_event_loop(napi_env env, struct uv_loop_s** loop);
181
181
  NAPI_EXTERN napi_status NAPI_CDECL napi_fatal_exception(napi_env env,
182
182
  napi_value err);
183
183
 
184
- NAPI_EXTERN napi_status NAPI_CDECL
185
- napi_add_env_cleanup_hook(napi_env env, napi_cleanup_hook fun, void* arg);
184
+ NAPI_EXTERN napi_status NAPI_CDECL napi_add_env_cleanup_hook(
185
+ node_api_nogc_env env, napi_cleanup_hook fun, void* arg);
186
186
 
187
- NAPI_EXTERN napi_status NAPI_CDECL
188
- napi_remove_env_cleanup_hook(napi_env env, napi_cleanup_hook fun, void* arg);
187
+ NAPI_EXTERN napi_status NAPI_CDECL napi_remove_env_cleanup_hook(
188
+ node_api_nogc_env env, napi_cleanup_hook fun, void* arg);
189
189
 
190
190
  NAPI_EXTERN napi_status NAPI_CDECL
191
191
  napi_open_callback_scope(napi_env env,
@@ -209,7 +209,7 @@ napi_create_threadsafe_function(napi_env env,
209
209
  size_t max_queue_size,
210
210
  size_t initial_thread_count,
211
211
  void* thread_finalize_data,
212
- napi_finalize thread_finalize_cb,
212
+ node_api_nogc_finalize thread_finalize_cb,
213
213
  void* context,
214
214
  napi_threadsafe_function_call_js call_js_cb,
215
215
  napi_threadsafe_function* result);
@@ -228,18 +228,18 @@ napi_acquire_threadsafe_function(napi_threadsafe_function func);
228
228
  NAPI_EXTERN napi_status NAPI_CDECL napi_release_threadsafe_function(
229
229
  napi_threadsafe_function func, napi_threadsafe_function_release_mode mode);
230
230
 
231
- NAPI_EXTERN napi_status NAPI_CDECL
232
- napi_unref_threadsafe_function(napi_env env, napi_threadsafe_function func);
231
+ NAPI_EXTERN napi_status NAPI_CDECL napi_unref_threadsafe_function(
232
+ node_api_nogc_env env, napi_threadsafe_function func);
233
233
 
234
- NAPI_EXTERN napi_status NAPI_CDECL
235
- napi_ref_threadsafe_function(napi_env env, napi_threadsafe_function func);
234
+ NAPI_EXTERN napi_status NAPI_CDECL napi_ref_threadsafe_function(
235
+ node_api_nogc_env env, napi_threadsafe_function func);
236
236
 
237
237
  #endif // NAPI_VERSION >= 4
238
238
 
239
239
  #if NAPI_VERSION >= 8
240
240
 
241
241
  NAPI_EXTERN napi_status NAPI_CDECL
242
- napi_add_async_cleanup_hook(napi_env env,
242
+ napi_add_async_cleanup_hook(node_api_nogc_env env,
243
243
  napi_async_cleanup_hook hook,
244
244
  void* arg,
245
245
  napi_async_cleanup_hook_handle* remove_handle);
@@ -252,7 +252,7 @@ napi_remove_async_cleanup_hook(napi_async_cleanup_hook_handle remove_handle);
252
252
  #if NAPI_VERSION >= 9
253
253
 
254
254
  NAPI_EXTERN napi_status NAPI_CDECL
255
- node_api_get_module_file_name(napi_env env, const char** result);
255
+ node_api_get_module_file_name(node_api_nogc_env env, const char** result);
256
256
 
257
257
  #endif // NAPI_VERSION >= 9
258
258
 
@@ -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 19
27
- #define NODE_PATCH_VERSION 1
26
+ #define NODE_MINOR_VERSION 20
27
+ #define NODE_PATCH_VERSION 0
28
28
 
29
29
  #define NODE_VERSION_IS_LTS 1
30
30
  #define NODE_VERSION_LTS_CODENAME "Hydrogen"
@@ -20,6 +20,8 @@ class Function;
20
20
  class FunctionTemplate;
21
21
  template <typename T>
22
22
  class PropertyCallbackInfo;
23
+ class Module;
24
+ class UnboundScript;
23
25
 
24
26
  /**
25
27
  * A private symbol
@@ -480,6 +482,21 @@ class V8_EXPORT Object : public Value {
480
482
  /** Sets the value in an internal field. */
481
483
  void SetInternalField(int index, Local<Value> value);
482
484
 
485
+ /**
486
+ * Warning: These are Node.js-specific extentions used to avoid breaking
487
+ * changes in Node.js v18.x. They do not exist in V8 upstream and will
488
+ * not exist in Node.js v21.x. Node.js embedders and addon authors should
489
+ * not use them from v18.x.
490
+ */
491
+ #ifndef NODE_WANT_INTERNALS
492
+ V8_DEPRECATED("This extention should only be used by Node.js core")
493
+ #endif
494
+ void SetInternalFieldForNodeCore(int index, Local<Module> value);
495
+ #ifndef NODE_WANT_INTERNALS
496
+ V8_DEPRECATED("This extention should only be used by Node.js core")
497
+ #endif
498
+ void SetInternalFieldForNodeCore(int index, Local<UnboundScript> value);
499
+
483
500
  /**
484
501
  * Gets a 2-byte-aligned native pointer from an internal field. This field
485
502
  * must have been set by SetAlignedPointerInInternalField, everything else
@@ -128,10 +128,9 @@ class V8_EXPORT ModuleRequest : public Data {
128
128
  *
129
129
  * All assertions present in the module request will be supplied in this
130
130
  * list, regardless of whether they are supported by the host. Per
131
- * https://tc39.es/proposal-import-assertions/#sec-hostgetsupportedimportassertions,
132
- * hosts are expected to ignore assertions that they do not support (as
133
- * opposed to, for example, triggering an error if an unsupported assertion is
134
- * present).
131
+ * https://tc39.es/proposal-import-attributes/#sec-hostgetsupportedimportattributes,
132
+ * hosts are expected to throw for assertions that they do not support (as
133
+ * opposed to, for example, ignoring them).
135
134
  */
136
135
  Local<FixedArray> GetImportAssertions() const;
137
136
 
@@ -1,7 +1,7 @@
1
1
  /* zlib.h -- interface of the 'zlib' general purpose compression library
2
- version 1.2.13.1, October xxth, 2022
2
+ version 1.3.0.1, August xxth, 2023
3
3
 
4
- Copyright (C) 1995-2022 Jean-loup Gailly and Mark Adler
4
+ Copyright (C) 1995-2023 Jean-loup Gailly and Mark Adler
5
5
 
6
6
  This software is provided 'as-is', without any express or implied
7
7
  warranty. In no event will the authors be held liable for any damages
@@ -37,11 +37,11 @@
37
37
  extern "C" {
38
38
  #endif
39
39
 
40
- #define ZLIB_VERSION "1.2.13.1-motley"
41
- #define ZLIB_VERNUM 0x12d1
40
+ #define ZLIB_VERSION "1.3.0.1-motley"
41
+ #define ZLIB_VERNUM 0x1301
42
42
  #define ZLIB_VER_MAJOR 1
43
- #define ZLIB_VER_MINOR 2
44
- #define ZLIB_VER_REVISION 13
43
+ #define ZLIB_VER_MINOR 3
44
+ #define ZLIB_VER_REVISION 0
45
45
  #define ZLIB_VER_SUBREVISION 1
46
46
 
47
47
  /*
@@ -230,7 +230,7 @@ ZEXTERN int ZEXPORT deflateInit(z_streamp strm, int level);
230
230
  Initializes the internal stream state for compression. The fields
231
231
  zalloc, zfree and opaque must be initialized before by the caller. If
232
232
  zalloc and zfree are set to Z_NULL, deflateInit updates them to use default
233
- allocation functions.
233
+ allocation functions. total_in, total_out, adler, and msg are initialized.
234
234
 
235
235
  The compression level must be Z_DEFAULT_COMPRESSION, or between 0 and 9:
236
236
  1 gives best speed, 9 gives best compression, 0 gives no compression at all
@@ -320,8 +320,8 @@ ZEXTERN int ZEXPORT deflate(z_streamp strm, int flush);
320
320
  with the same value of the flush parameter and more output space (updated
321
321
  avail_out), until the flush is complete (deflate returns with non-zero
322
322
  avail_out). In the case of a Z_FULL_FLUSH or Z_SYNC_FLUSH, make sure that
323
- avail_out is greater than six to avoid repeated flush markers due to
324
- avail_out == 0 on return.
323
+ avail_out is greater than six when the flush marker begins, in order to avoid
324
+ repeated flush markers upon calling deflate() again when avail_out == 0.
325
325
 
326
326
  If the parameter flush is set to Z_FINISH, pending input is processed,
327
327
  pending output is flushed and deflate returns with Z_STREAM_END if there was
@@ -382,7 +382,8 @@ ZEXTERN int ZEXPORT inflateInit(z_streamp strm);
382
382
  read or consumed. The allocation of a sliding window will be deferred to
383
383
  the first call of inflate (if the decompression does not complete on the
384
384
  first call). If zalloc and zfree are set to Z_NULL, inflateInit updates
385
- them to use default allocation functions.
385
+ them to use default allocation functions. total_in, total_out, adler, and
386
+ msg are initialized.
386
387
 
387
388
  inflateInit returns Z_OK if success, Z_MEM_ERROR if there was not enough
388
389
  memory, Z_VERSION_ERROR if the zlib library version is incompatible with the
@@ -695,7 +696,7 @@ ZEXTERN int ZEXPORT deflateReset(z_streamp strm);
695
696
  This function is equivalent to deflateEnd followed by deflateInit, but
696
697
  does not free and reallocate the internal compression state. The stream
697
698
  will leave the compression level and any other attributes that may have been
698
- set unchanged.
699
+ set unchanged. total_in, total_out, adler, and msg are initialized.
699
700
 
700
701
  deflateReset returns Z_OK if success, or Z_STREAM_ERROR if the source
701
702
  stream state was inconsistent (such as zalloc or state being Z_NULL).
@@ -820,8 +821,9 @@ ZEXTERN int ZEXPORT deflateSetHeader(z_streamp strm,
820
821
  gzip file" and give up.
821
822
 
822
823
  If deflateSetHeader is not used, the default gzip header has text false,
823
- the time set to zero, and os set to 255, with no extra, name, or comment
824
- fields. The gzip header is returned to the default state by deflateReset().
824
+ the time set to zero, and os set to the current operating system, with no
825
+ extra, name, or comment fields. The gzip header is returned to the default
826
+ state by deflateReset().
825
827
 
826
828
  deflateSetHeader returns Z_OK if success, or Z_STREAM_ERROR if the source
827
829
  stream state was inconsistent.
@@ -960,6 +962,7 @@ ZEXTERN int ZEXPORT inflateReset(z_streamp strm);
960
962
  This function is equivalent to inflateEnd followed by inflateInit,
961
963
  but does not free and reallocate the internal decompression state. The
962
964
  stream will keep attributes that may have been set by inflateInit2.
965
+ total_in, total_out, adler, and msg are initialized.
963
966
 
964
967
  inflateReset returns Z_OK if success, or Z_STREAM_ERROR if the source
965
968
  stream state was inconsistent (such as zalloc or state being Z_NULL).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-aix-ppc64",
3
- "version": "v18.19.1",
3
+ "version": "v18.20.0",
4
4
  "description": "node",
5
5
  "bin": {
6
6
  "node": "bin/node"