node-aix-ppc64 20.12.2 → 20.13.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 +366 -0
- package/LICENSE +3 -1
- package/README.md +61 -55
- package/bin/node +0 -0
- package/include/node/common.gypi +25 -1
- package/include/node/config.gypi +4 -4
- package/include/node/node.exp +13567 -12815
- package/include/node/node.h +24 -2
- package/include/node/node_api.h +1 -1
- package/include/node/node_version.h +2 -2
- package/package.json +1 -1
package/include/node/node.h
CHANGED
|
@@ -537,6 +537,7 @@ class EmbedderSnapshotData {
|
|
|
537
537
|
// If the snapshot is invalid, this returns an empty pointer.
|
|
538
538
|
static Pointer FromFile(FILE* in);
|
|
539
539
|
static Pointer FromBlob(const std::vector<char>& in);
|
|
540
|
+
static Pointer FromBlob(std::string_view in);
|
|
540
541
|
|
|
541
542
|
// Write this EmbedderSnapshotData object to an output file.
|
|
542
543
|
// Calling this method will not close the FILE* handle.
|
|
@@ -731,12 +732,33 @@ struct StartExecutionCallbackInfo {
|
|
|
731
732
|
|
|
732
733
|
using StartExecutionCallback =
|
|
733
734
|
std::function<v8::MaybeLocal<v8::Value>(const StartExecutionCallbackInfo&)>;
|
|
735
|
+
using EmbedderPreloadCallback =
|
|
736
|
+
std::function<void(Environment* env,
|
|
737
|
+
v8::Local<v8::Value> process,
|
|
738
|
+
v8::Local<v8::Value> require)>;
|
|
734
739
|
|
|
740
|
+
// Run initialization for the environment.
|
|
741
|
+
//
|
|
742
|
+
// The |preload| function, usually used by embedders to inject scripts,
|
|
743
|
+
// will be run by Node.js before Node.js executes the entry point.
|
|
744
|
+
// The function is guaranteed to run before the user land module loader running
|
|
745
|
+
// any user code, so it is safe to assume that at this point, no user code has
|
|
746
|
+
// been run yet.
|
|
747
|
+
// The function will be executed with preload(process, require), and the passed
|
|
748
|
+
// require function has access to internal Node.js modules. There is no
|
|
749
|
+
// stability guarantee about the internals exposed to the internal require
|
|
750
|
+
// function. Expect breakages when updating Node.js versions if the embedder
|
|
751
|
+
// imports internal modules with the internal require function.
|
|
752
|
+
// Worker threads created in the environment will also respect The |preload|
|
|
753
|
+
// function, so make sure the function is thread-safe.
|
|
735
754
|
NODE_EXTERN v8::MaybeLocal<v8::Value> LoadEnvironment(
|
|
736
755
|
Environment* env,
|
|
737
|
-
StartExecutionCallback cb
|
|
756
|
+
StartExecutionCallback cb,
|
|
757
|
+
EmbedderPreloadCallback preload = nullptr);
|
|
738
758
|
NODE_EXTERN v8::MaybeLocal<v8::Value> LoadEnvironment(
|
|
739
|
-
Environment* env,
|
|
759
|
+
Environment* env,
|
|
760
|
+
std::string_view main_script_source_utf8,
|
|
761
|
+
EmbedderPreloadCallback preload = nullptr);
|
|
740
762
|
NODE_EXTERN void FreeEnvironment(Environment* env);
|
|
741
763
|
|
|
742
764
|
// Set a callback that is called when process.exit() is called from JS,
|
package/include/node/node_api.h
CHANGED
|
@@ -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
|
-
|
|
212
|
+
napi_finalize thread_finalize_cb,
|
|
213
213
|
void* context,
|
|
214
214
|
napi_threadsafe_function_call_js call_js_cb,
|
|
215
215
|
napi_threadsafe_function* result);
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
#define SRC_NODE_VERSION_H_
|
|
24
24
|
|
|
25
25
|
#define NODE_MAJOR_VERSION 20
|
|
26
|
-
#define NODE_MINOR_VERSION
|
|
27
|
-
#define NODE_PATCH_VERSION
|
|
26
|
+
#define NODE_MINOR_VERSION 13
|
|
27
|
+
#define NODE_PATCH_VERSION 0
|
|
28
28
|
|
|
29
29
|
#define NODE_VERSION_IS_LTS 1
|
|
30
30
|
#define NODE_VERSION_LTS_CODENAME "Iron"
|