node-linux-s390x 20.16.0 → 20.18.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 +570 -0
- package/LICENSE +10 -43
- package/README.md +43 -45
- package/bin/node +0 -0
- package/include/node/common.gypi +8 -6
- package/include/node/config.gypi +8 -0
- package/include/node/js_native_api.h +30 -25
- package/include/node/js_native_api_types.h +13 -9
- package/include/node/node.h +7 -3
- package/include/node/node_api.h +13 -13
- package/include/node/node_version.h +1 -1
- package/package.json +1 -1
- package/share/man/man1/node.1 +6 -6
|
@@ -27,7 +27,7 @@ typedef struct napi_env__* napi_env;
|
|
|
27
27
|
// meaning that they do not affect the state of the JS engine, and can
|
|
28
28
|
// therefore be called synchronously from a finalizer that itself runs
|
|
29
29
|
// synchronously during GC. Such APIs can receive either a `napi_env` or a
|
|
30
|
-
// `
|
|
30
|
+
// `node_api_basic_env` as their first parameter, because we should be able to
|
|
31
31
|
// also call them during normal, non-garbage-collecting operations, whereas
|
|
32
32
|
// APIs that affect the state of the JS engine can only receive a `napi_env` as
|
|
33
33
|
// their first parameter, because we must not call them during GC. In lieu of
|
|
@@ -37,19 +37,21 @@ typedef struct napi_env__* napi_env;
|
|
|
37
37
|
// expecting a non-const value.
|
|
38
38
|
//
|
|
39
39
|
// In conjunction with appropriate CFLAGS to warn us if we're passing a const
|
|
40
|
-
// (
|
|
41
|
-
// definition of
|
|
42
|
-
//
|
|
43
|
-
// (unless the user explicitly casts the environment), we achieve
|
|
44
|
-
// to ensure at compile time that we do not call APIs that affect
|
|
45
|
-
// the JS engine from a synchronous (
|
|
40
|
+
// (basic) environment into an API that expects a non-const environment, and
|
|
41
|
+
// the definition of basic finalizer function pointer types below, which
|
|
42
|
+
// receive a basic environment as their first parameter, and can thus only call
|
|
43
|
+
// basic APIs (unless the user explicitly casts the environment), we achieve
|
|
44
|
+
// the ability to ensure at compile time that we do not call APIs that affect
|
|
45
|
+
// the state of the JS engine from a synchronous (basic) finalizer.
|
|
46
46
|
#if !defined(NAPI_EXPERIMENTAL) || \
|
|
47
47
|
(defined(NAPI_EXPERIMENTAL) && \
|
|
48
|
-
defined(NODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT)
|
|
48
|
+
(defined(NODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT) || \
|
|
49
|
+
defined(NODE_API_EXPERIMENTAL_BASIC_ENV_OPT_OUT)))
|
|
49
50
|
typedef struct napi_env__* node_api_nogc_env;
|
|
50
51
|
#else
|
|
51
52
|
typedef const struct napi_env__* node_api_nogc_env;
|
|
52
53
|
#endif
|
|
54
|
+
typedef node_api_nogc_env node_api_basic_env;
|
|
53
55
|
|
|
54
56
|
typedef struct napi_value__* napi_value;
|
|
55
57
|
typedef struct napi_ref__* napi_ref;
|
|
@@ -147,13 +149,15 @@ typedef void(NAPI_CDECL* napi_finalize)(napi_env env,
|
|
|
147
149
|
|
|
148
150
|
#if !defined(NAPI_EXPERIMENTAL) || \
|
|
149
151
|
(defined(NAPI_EXPERIMENTAL) && \
|
|
150
|
-
defined(NODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT)
|
|
152
|
+
(defined(NODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT) || \
|
|
153
|
+
defined(NODE_API_EXPERIMENTAL_BASIC_ENV_OPT_OUT)))
|
|
151
154
|
typedef napi_finalize node_api_nogc_finalize;
|
|
152
155
|
#else
|
|
153
156
|
typedef void(NAPI_CDECL* node_api_nogc_finalize)(node_api_nogc_env env,
|
|
154
157
|
void* finalize_data,
|
|
155
158
|
void* finalize_hint);
|
|
156
159
|
#endif
|
|
160
|
+
typedef node_api_nogc_finalize node_api_basic_finalize;
|
|
157
161
|
|
|
158
162
|
typedef struct {
|
|
159
163
|
// One of utf8name or name should be NULL.
|
package/include/node/node.h
CHANGED
|
@@ -658,10 +658,14 @@ enum Flags : uint64_t {
|
|
|
658
658
|
// inspector in situations where one has already been created,
|
|
659
659
|
// e.g. Blink's in Chromium.
|
|
660
660
|
kNoCreateInspector = 1 << 9,
|
|
661
|
-
// Controls
|
|
662
|
-
// call StartDebugSignalHandler.
|
|
661
|
+
// Controls whether or not the InspectorAgent for this Environment should
|
|
662
|
+
// call StartDebugSignalHandler. This control is needed by embedders who may
|
|
663
663
|
// not want to allow other processes to start the V8 inspector.
|
|
664
|
-
kNoStartDebugSignalHandler = 1 << 10
|
|
664
|
+
kNoStartDebugSignalHandler = 1 << 10,
|
|
665
|
+
// Controls whether the InspectorAgent created for this Environment waits for
|
|
666
|
+
// Inspector frontend events during the Environment creation. It's used to
|
|
667
|
+
// call node::Stop(env) on a Worker thread that is waiting for the events.
|
|
668
|
+
kNoWaitForInspectorFrontend = 1 << 11
|
|
665
669
|
};
|
|
666
670
|
} // namespace EnvironmentFlags
|
|
667
671
|
|
package/include/node/node_api.h
CHANGED
|
@@ -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
|
-
|
|
134
|
+
node_api_basic_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(
|
|
162
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_queue_async_work(node_api_basic_env env,
|
|
163
163
|
napi_async_work work);
|
|
164
|
-
NAPI_EXTERN napi_status NAPI_CDECL
|
|
165
|
-
|
|
164
|
+
NAPI_EXTERN napi_status NAPI_CDECL
|
|
165
|
+
napi_cancel_async_work(node_api_basic_env env, napi_async_work work);
|
|
166
166
|
|
|
167
167
|
// version management
|
|
168
|
-
NAPI_EXTERN napi_status NAPI_CDECL
|
|
169
|
-
|
|
168
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_get_node_version(
|
|
169
|
+
node_api_basic_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(
|
|
175
|
+
napi_get_uv_event_loop(node_api_basic_env env, struct uv_loop_s** loop);
|
|
176
176
|
|
|
177
177
|
#endif // NAPI_VERSION >= 2
|
|
178
178
|
|
|
@@ -182,10 +182,10 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_fatal_exception(napi_env env,
|
|
|
182
182
|
napi_value err);
|
|
183
183
|
|
|
184
184
|
NAPI_EXTERN napi_status NAPI_CDECL napi_add_env_cleanup_hook(
|
|
185
|
-
|
|
185
|
+
node_api_basic_env env, napi_cleanup_hook fun, void* arg);
|
|
186
186
|
|
|
187
187
|
NAPI_EXTERN napi_status NAPI_CDECL napi_remove_env_cleanup_hook(
|
|
188
|
-
|
|
188
|
+
node_api_basic_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,
|
|
@@ -229,17 +229,17 @@ 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
231
|
NAPI_EXTERN napi_status NAPI_CDECL napi_unref_threadsafe_function(
|
|
232
|
-
|
|
232
|
+
node_api_basic_env env, napi_threadsafe_function func);
|
|
233
233
|
|
|
234
234
|
NAPI_EXTERN napi_status NAPI_CDECL napi_ref_threadsafe_function(
|
|
235
|
-
|
|
235
|
+
node_api_basic_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(
|
|
242
|
+
napi_add_async_cleanup_hook(node_api_basic_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(
|
|
255
|
+
node_api_get_module_file_name(node_api_basic_env env, const char** result);
|
|
256
256
|
|
|
257
257
|
#endif // NAPI_VERSION >= 9
|
|
258
258
|
|
package/package.json
CHANGED
package/share/man/man1/node.1
CHANGED
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
.\" * Language reference:
|
|
5
5
|
.\" https://man.openbsd.org/mdoc.7
|
|
6
6
|
.\"
|
|
7
|
-
.\" * Atom editor support:
|
|
8
|
-
.\" https://atom.io/packages/language-roff
|
|
9
|
-
.\"
|
|
10
7
|
.\" * Linting changes:
|
|
11
8
|
.\" mandoc -Wall -Tlint /path/to/this.file # BSD
|
|
12
9
|
.\" groff -w all -z /path/to/this.file # GNU/Linux, macOS
|
|
@@ -168,9 +165,6 @@ Interpret as either ES modules or CommonJS modules input via --eval or STDIN, wh
|
|
|
168
165
|
.js or extensionless files with no sibling or parent package.json;
|
|
169
166
|
.js or extensionless files whose nearest parent package.json lacks a "type" field, unless under node_modules.
|
|
170
167
|
.
|
|
171
|
-
.It Fl -experimental-global-webcrypto
|
|
172
|
-
Expose the Web Crypto API on the global scope.
|
|
173
|
-
.
|
|
174
168
|
.It Fl -experimental-import-meta-resolve
|
|
175
169
|
Enable experimental ES modules support for import.meta.resolve().
|
|
176
170
|
.
|
|
@@ -194,6 +188,12 @@ Use this flag to enable ShadowRealm support.
|
|
|
194
188
|
.It Fl -experimental-test-coverage
|
|
195
189
|
Enable code coverage in the test runner.
|
|
196
190
|
.
|
|
191
|
+
.It Fl -experimental-test-module-mocks
|
|
192
|
+
Enable module mocking in the test runner.
|
|
193
|
+
.
|
|
194
|
+
.It Fl -experimental-eventsource
|
|
195
|
+
Enable experimental support for the EventSource Web API.
|
|
196
|
+
.
|
|
197
197
|
.It Fl -experimental-websocket
|
|
198
198
|
Enable experimental support for the WebSocket API.
|
|
199
199
|
.
|