node-linux-arm64 24.9.0 → 25.0.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.
Files changed (162) hide show
  1. package/CHANGELOG.md +177 -1729
  2. package/README.md +2 -2
  3. package/bin/node +0 -0
  4. package/include/node/common.gypi +1 -13
  5. package/include/node/config.gypi +10 -9
  6. package/include/node/cppgc/allocation.h +3 -3
  7. package/include/node/cppgc/cross-thread-persistent.h +25 -29
  8. package/include/node/cppgc/internal/finalizer-trait.h +1 -1
  9. package/include/node/cppgc/internal/gc-info.h +3 -3
  10. package/include/node/cppgc/internal/logging.h +2 -2
  11. package/include/node/cppgc/internal/name-trait.h +1 -1
  12. package/include/node/cppgc/internal/pointer-policies.h +3 -3
  13. package/include/node/cppgc/member.h +10 -4
  14. package/include/node/cppgc/persistent.h +14 -15
  15. package/include/node/cppgc/platform.h +1 -1
  16. package/include/node/cppgc/trace-trait.h +1 -2
  17. package/include/node/cppgc/visitor.h +14 -9
  18. package/include/node/js_native_api.h +12 -0
  19. package/include/node/node.h +34 -78
  20. package/include/node/node_version.h +3 -3
  21. package/include/node/openssl/archs/BSD-x86/asm/crypto/buildinf.h +1 -1
  22. package/include/node/openssl/archs/BSD-x86/asm/include/openssl/opensslv.h +7 -7
  23. package/include/node/openssl/archs/BSD-x86/asm_avx2/crypto/buildinf.h +1 -1
  24. package/include/node/openssl/archs/BSD-x86/asm_avx2/include/openssl/opensslv.h +7 -7
  25. package/include/node/openssl/archs/BSD-x86/no-asm/crypto/buildinf.h +1 -1
  26. package/include/node/openssl/archs/BSD-x86/no-asm/include/openssl/opensslv.h +7 -7
  27. package/include/node/openssl/archs/BSD-x86_64/asm/crypto/buildinf.h +1 -1
  28. package/include/node/openssl/archs/BSD-x86_64/asm/include/openssl/opensslv.h +7 -7
  29. package/include/node/openssl/archs/BSD-x86_64/asm_avx2/crypto/buildinf.h +1 -1
  30. package/include/node/openssl/archs/BSD-x86_64/asm_avx2/include/openssl/opensslv.h +7 -7
  31. package/include/node/openssl/archs/BSD-x86_64/no-asm/crypto/buildinf.h +1 -1
  32. package/include/node/openssl/archs/BSD-x86_64/no-asm/include/openssl/opensslv.h +7 -7
  33. package/include/node/openssl/archs/VC-WIN32/asm/crypto/buildinf.h +1 -1
  34. package/include/node/openssl/archs/VC-WIN32/asm/include/openssl/opensslv.h +7 -7
  35. package/include/node/openssl/archs/VC-WIN32/asm_avx2/crypto/buildinf.h +1 -1
  36. package/include/node/openssl/archs/VC-WIN32/asm_avx2/include/openssl/opensslv.h +7 -7
  37. package/include/node/openssl/archs/VC-WIN32/no-asm/crypto/buildinf.h +1 -1
  38. package/include/node/openssl/archs/VC-WIN32/no-asm/include/openssl/opensslv.h +7 -7
  39. package/include/node/openssl/archs/VC-WIN64-ARM/no-asm/crypto/buildinf.h +1 -1
  40. package/include/node/openssl/archs/VC-WIN64-ARM/no-asm/include/openssl/opensslv.h +7 -7
  41. package/include/node/openssl/archs/VC-WIN64A/asm/crypto/buildinf.h +1 -1
  42. package/include/node/openssl/archs/VC-WIN64A/asm/include/openssl/opensslv.h +7 -7
  43. package/include/node/openssl/archs/VC-WIN64A/asm_avx2/crypto/buildinf.h +1 -1
  44. package/include/node/openssl/archs/VC-WIN64A/asm_avx2/include/openssl/opensslv.h +7 -7
  45. package/include/node/openssl/archs/VC-WIN64A/no-asm/crypto/buildinf.h +1 -1
  46. package/include/node/openssl/archs/VC-WIN64A/no-asm/include/openssl/opensslv.h +7 -7
  47. package/include/node/openssl/archs/aix64-gcc-as/asm/crypto/buildinf.h +1 -1
  48. package/include/node/openssl/archs/aix64-gcc-as/asm/include/openssl/opensslv.h +7 -7
  49. package/include/node/openssl/archs/aix64-gcc-as/asm_avx2/crypto/buildinf.h +1 -1
  50. package/include/node/openssl/archs/aix64-gcc-as/asm_avx2/include/openssl/opensslv.h +7 -7
  51. package/include/node/openssl/archs/aix64-gcc-as/no-asm/crypto/buildinf.h +1 -1
  52. package/include/node/openssl/archs/aix64-gcc-as/no-asm/include/openssl/opensslv.h +7 -7
  53. package/include/node/openssl/archs/darwin-i386-cc/asm/crypto/buildinf.h +1 -1
  54. package/include/node/openssl/archs/darwin-i386-cc/asm/include/openssl/opensslv.h +7 -7
  55. package/include/node/openssl/archs/darwin-i386-cc/asm_avx2/crypto/buildinf.h +1 -1
  56. package/include/node/openssl/archs/darwin-i386-cc/asm_avx2/include/openssl/opensslv.h +7 -7
  57. package/include/node/openssl/archs/darwin-i386-cc/no-asm/crypto/buildinf.h +1 -1
  58. package/include/node/openssl/archs/darwin-i386-cc/no-asm/include/openssl/opensslv.h +7 -7
  59. package/include/node/openssl/archs/darwin64-arm64-cc/asm/crypto/buildinf.h +1 -1
  60. package/include/node/openssl/archs/darwin64-arm64-cc/asm/include/openssl/opensslv.h +7 -7
  61. package/include/node/openssl/archs/darwin64-arm64-cc/asm_avx2/crypto/buildinf.h +1 -1
  62. package/include/node/openssl/archs/darwin64-arm64-cc/asm_avx2/include/openssl/opensslv.h +7 -7
  63. package/include/node/openssl/archs/darwin64-arm64-cc/no-asm/crypto/buildinf.h +1 -1
  64. package/include/node/openssl/archs/darwin64-arm64-cc/no-asm/include/openssl/opensslv.h +7 -7
  65. package/include/node/openssl/archs/darwin64-x86_64-cc/asm/crypto/buildinf.h +1 -1
  66. package/include/node/openssl/archs/darwin64-x86_64-cc/asm/include/openssl/opensslv.h +7 -7
  67. package/include/node/openssl/archs/darwin64-x86_64-cc/asm_avx2/crypto/buildinf.h +1 -1
  68. package/include/node/openssl/archs/darwin64-x86_64-cc/asm_avx2/include/openssl/opensslv.h +7 -7
  69. package/include/node/openssl/archs/darwin64-x86_64-cc/no-asm/crypto/buildinf.h +1 -1
  70. package/include/node/openssl/archs/darwin64-x86_64-cc/no-asm/include/openssl/opensslv.h +7 -7
  71. package/include/node/openssl/archs/linux-aarch64/asm/crypto/buildinf.h +1 -1
  72. package/include/node/openssl/archs/linux-aarch64/asm/include/openssl/opensslv.h +7 -7
  73. package/include/node/openssl/archs/linux-aarch64/asm_avx2/crypto/buildinf.h +1 -1
  74. package/include/node/openssl/archs/linux-aarch64/asm_avx2/include/openssl/opensslv.h +7 -7
  75. package/include/node/openssl/archs/linux-aarch64/no-asm/crypto/buildinf.h +1 -1
  76. package/include/node/openssl/archs/linux-aarch64/no-asm/include/openssl/opensslv.h +7 -7
  77. package/include/node/openssl/archs/linux-armv4/asm/crypto/buildinf.h +1 -1
  78. package/include/node/openssl/archs/linux-armv4/asm/include/openssl/opensslv.h +7 -7
  79. package/include/node/openssl/archs/linux-armv4/asm_avx2/crypto/buildinf.h +1 -1
  80. package/include/node/openssl/archs/linux-armv4/asm_avx2/include/openssl/opensslv.h +7 -7
  81. package/include/node/openssl/archs/linux-armv4/no-asm/crypto/buildinf.h +1 -1
  82. package/include/node/openssl/archs/linux-armv4/no-asm/include/openssl/opensslv.h +7 -7
  83. package/include/node/openssl/archs/linux-elf/asm/crypto/buildinf.h +1 -1
  84. package/include/node/openssl/archs/linux-elf/asm/include/openssl/opensslv.h +7 -7
  85. package/include/node/openssl/archs/linux-elf/asm_avx2/crypto/buildinf.h +1 -1
  86. package/include/node/openssl/archs/linux-elf/asm_avx2/include/openssl/opensslv.h +7 -7
  87. package/include/node/openssl/archs/linux-elf/no-asm/crypto/buildinf.h +1 -1
  88. package/include/node/openssl/archs/linux-elf/no-asm/include/openssl/opensslv.h +7 -7
  89. package/include/node/openssl/archs/linux-ppc64le/asm/crypto/buildinf.h +1 -1
  90. package/include/node/openssl/archs/linux-ppc64le/asm/include/openssl/opensslv.h +7 -7
  91. package/include/node/openssl/archs/linux-ppc64le/asm_avx2/crypto/buildinf.h +1 -1
  92. package/include/node/openssl/archs/linux-ppc64le/asm_avx2/include/openssl/opensslv.h +7 -7
  93. package/include/node/openssl/archs/linux-ppc64le/no-asm/crypto/buildinf.h +1 -1
  94. package/include/node/openssl/archs/linux-ppc64le/no-asm/include/openssl/opensslv.h +7 -7
  95. package/include/node/openssl/archs/linux-x86_64/asm/crypto/buildinf.h +1 -1
  96. package/include/node/openssl/archs/linux-x86_64/asm/include/openssl/opensslv.h +7 -7
  97. package/include/node/openssl/archs/linux-x86_64/asm_avx2/crypto/buildinf.h +1 -1
  98. package/include/node/openssl/archs/linux-x86_64/asm_avx2/include/openssl/opensslv.h +7 -7
  99. package/include/node/openssl/archs/linux-x86_64/no-asm/crypto/buildinf.h +1 -1
  100. package/include/node/openssl/archs/linux-x86_64/no-asm/include/openssl/opensslv.h +7 -7
  101. package/include/node/openssl/archs/linux32-s390x/asm/crypto/buildinf.h +1 -1
  102. package/include/node/openssl/archs/linux32-s390x/asm/include/openssl/opensslv.h +7 -7
  103. package/include/node/openssl/archs/linux32-s390x/asm_avx2/crypto/buildinf.h +1 -1
  104. package/include/node/openssl/archs/linux32-s390x/asm_avx2/include/openssl/opensslv.h +7 -7
  105. package/include/node/openssl/archs/linux32-s390x/no-asm/crypto/buildinf.h +1 -1
  106. package/include/node/openssl/archs/linux32-s390x/no-asm/include/openssl/opensslv.h +7 -7
  107. package/include/node/openssl/archs/linux64-loongarch64/no-asm/crypto/buildinf.h +1 -1
  108. package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/openssl/opensslv.h +7 -7
  109. package/include/node/openssl/archs/linux64-mips64/asm/crypto/buildinf.h +1 -1
  110. package/include/node/openssl/archs/linux64-mips64/asm/include/openssl/opensslv.h +7 -7
  111. package/include/node/openssl/archs/linux64-mips64/asm_avx2/crypto/buildinf.h +1 -1
  112. package/include/node/openssl/archs/linux64-mips64/asm_avx2/include/openssl/opensslv.h +7 -7
  113. package/include/node/openssl/archs/linux64-mips64/no-asm/crypto/buildinf.h +1 -1
  114. package/include/node/openssl/archs/linux64-mips64/no-asm/include/openssl/opensslv.h +7 -7
  115. package/include/node/openssl/archs/linux64-riscv64/no-asm/crypto/buildinf.h +1 -1
  116. package/include/node/openssl/archs/linux64-riscv64/no-asm/include/openssl/opensslv.h +7 -7
  117. package/include/node/openssl/archs/linux64-s390x/asm/crypto/buildinf.h +1 -1
  118. package/include/node/openssl/archs/linux64-s390x/asm/include/openssl/opensslv.h +7 -7
  119. package/include/node/openssl/archs/linux64-s390x/asm_avx2/crypto/buildinf.h +1 -1
  120. package/include/node/openssl/archs/linux64-s390x/asm_avx2/include/openssl/opensslv.h +7 -7
  121. package/include/node/openssl/archs/linux64-s390x/no-asm/crypto/buildinf.h +1 -1
  122. package/include/node/openssl/archs/linux64-s390x/no-asm/include/openssl/opensslv.h +7 -7
  123. package/include/node/openssl/archs/solaris-x86-gcc/asm/crypto/buildinf.h +1 -1
  124. package/include/node/openssl/archs/solaris-x86-gcc/asm/include/openssl/opensslv.h +7 -7
  125. package/include/node/openssl/archs/solaris-x86-gcc/asm_avx2/crypto/buildinf.h +1 -1
  126. package/include/node/openssl/archs/solaris-x86-gcc/asm_avx2/include/openssl/opensslv.h +7 -7
  127. package/include/node/openssl/archs/solaris-x86-gcc/no-asm/crypto/buildinf.h +1 -1
  128. package/include/node/openssl/archs/solaris-x86-gcc/no-asm/include/openssl/opensslv.h +7 -7
  129. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm/crypto/buildinf.h +1 -1
  130. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm/include/openssl/opensslv.h +7 -7
  131. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm_avx2/crypto/buildinf.h +1 -1
  132. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm_avx2/include/openssl/opensslv.h +7 -7
  133. package/include/node/openssl/archs/solaris64-x86_64-gcc/no-asm/crypto/buildinf.h +1 -1
  134. package/include/node/openssl/archs/solaris64-x86_64-gcc/no-asm/include/openssl/opensslv.h +7 -7
  135. package/include/node/v8-array-buffer.h +1 -1
  136. package/include/node/v8-callbacks.h +3 -4
  137. package/include/node/v8-context.h +15 -5
  138. package/include/node/v8-data.h +5 -0
  139. package/include/node/v8-debug.h +11 -0
  140. package/include/node/v8-function-callback.h +26 -26
  141. package/include/node/v8-internal.h +136 -36
  142. package/include/node/v8-isolate.h +75 -16
  143. package/include/node/v8-json.h +8 -1
  144. package/include/node/v8-local-handle.h +112 -13
  145. package/include/node/v8-maybe.h +34 -10
  146. package/include/node/v8-memory-span.h +9 -4
  147. package/include/node/v8-message.h +3 -0
  148. package/include/node/v8-object.h +87 -24
  149. package/include/node/v8-persistent-handle.h +4 -4
  150. package/include/node/v8-platform.h +92 -28
  151. package/include/node/v8-primitive.h +22 -9
  152. package/include/node/v8-profiler.h +4 -0
  153. package/include/node/v8-sandbox.h +16 -0
  154. package/include/node/v8-source-location.h +19 -26
  155. package/include/node/v8-template.h +37 -15
  156. package/include/node/v8-traced-handle.h +6 -6
  157. package/include/node/v8-unwinder.h +13 -0
  158. package/include/node/v8-version.h +4 -4
  159. package/include/node/v8config.h +65 -5
  160. package/package.json +5 -1
  161. package/share/doc/node/gdbinit +221 -4
  162. package/share/man/man1/node.1 +21 -4
@@ -175,35 +175,6 @@ NODE_DEPRECATED("Use UVException(isolate, ...)",
175
175
  path);
176
176
  })
177
177
 
178
- /*
179
- * These methods need to be called in a HandleScope.
180
- *
181
- * It is preferred that you use the `MakeCallback` overloads taking
182
- * `async_context` arguments.
183
- */
184
-
185
- NODE_DEPRECATED("Use MakeCallback(..., async_context)",
186
- NODE_EXTERN v8::Local<v8::Value> MakeCallback(
187
- v8::Isolate* isolate,
188
- v8::Local<v8::Object> recv,
189
- const char* method,
190
- int argc,
191
- v8::Local<v8::Value>* argv));
192
- NODE_DEPRECATED("Use MakeCallback(..., async_context)",
193
- NODE_EXTERN v8::Local<v8::Value> MakeCallback(
194
- v8::Isolate* isolate,
195
- v8::Local<v8::Object> recv,
196
- v8::Local<v8::String> symbol,
197
- int argc,
198
- v8::Local<v8::Value>* argv));
199
- NODE_DEPRECATED("Use MakeCallback(..., async_context)",
200
- NODE_EXTERN v8::Local<v8::Value> MakeCallback(
201
- v8::Isolate* isolate,
202
- v8::Local<v8::Object> recv,
203
- v8::Local<v8::Function> callback,
204
- int argc,
205
- v8::Local<v8::Value>* argv));
206
-
207
178
  } // namespace node
208
179
 
209
180
  #include <cassert>
@@ -329,22 +300,6 @@ NODE_EXTERN int Start(int argc, char* argv[]);
329
300
  NODE_EXTERN int Stop(Environment* env,
330
301
  StopFlags::Flags flags = StopFlags::kNoFlags);
331
302
 
332
- // Set up per-process state needed to run Node.js. This will consume arguments
333
- // from argv, fill exec_argv, and possibly add errors resulting from parsing
334
- // the arguments to `errors`. The return value is a suggested exit code for the
335
- // program; If it is 0, then initializing Node.js succeeded.
336
- // This runs a subset of the initialization performed by
337
- // InitializeOncePerProcess(), which supersedes this function.
338
- // The subset is roughly equivalent to the one given by
339
- // `ProcessInitializationFlags::kLegacyInitializeNodeWithArgsBehavior`.
340
- NODE_DEPRECATED("Use InitializeOncePerProcess() instead",
341
- NODE_EXTERN int InitializeNodeWithArgs(
342
- std::vector<std::string>* argv,
343
- std::vector<std::string>* exec_argv,
344
- std::vector<std::string>* errors,
345
- ProcessInitializationFlags::Flags flags =
346
- ProcessInitializationFlags::kNoFlags));
347
-
348
303
  // Set up per-process state needed to run Node.js. This will consume arguments
349
304
  // from args, and return information about the initialization success,
350
305
  // including the arguments split into argv/exec_argv, a list of potential
@@ -839,23 +794,23 @@ NODE_EXTERN v8::MaybeLocal<v8::Value> PrepareStackTraceCallback(
839
794
  // is included in the report.
840
795
  // Returns the filename of the written report.
841
796
  NODE_EXTERN std::string TriggerNodeReport(v8::Isolate* isolate,
842
- const char* message,
843
- const char* trigger,
844
- const std::string& filename,
797
+ std::string_view message,
798
+ std::string_view trigger,
799
+ std::string_view filename,
845
800
  v8::Local<v8::Value> error);
846
801
  NODE_EXTERN std::string TriggerNodeReport(Environment* env,
847
- const char* message,
848
- const char* trigger,
849
- const std::string& filename,
802
+ std::string_view message,
803
+ std::string_view trigger,
804
+ std::string_view filename,
850
805
  v8::Local<v8::Value> error);
851
806
  NODE_EXTERN void GetNodeReport(v8::Isolate* isolate,
852
- const char* message,
853
- const char* trigger,
807
+ std::string_view message,
808
+ std::string_view trigger,
854
809
  v8::Local<v8::Value> error,
855
810
  std::ostream& out);
856
811
  NODE_EXTERN void GetNodeReport(Environment* env,
857
- const char* message,
858
- const char* trigger,
812
+ std::string_view message,
813
+ std::string_view trigger,
859
814
  v8::Local<v8::Value> error,
860
815
  std::ostream& out);
861
816
 
@@ -864,32 +819,21 @@ NODE_EXTERN void GetNodeReport(Environment* env,
864
819
  NODE_EXTERN MultiIsolatePlatform* GetMultiIsolatePlatform(Environment* env);
865
820
  NODE_EXTERN MultiIsolatePlatform* GetMultiIsolatePlatform(IsolateData* env);
866
821
 
867
- NODE_DEPRECATED("Use MultiIsolatePlatform::Create() instead",
868
- NODE_EXTERN MultiIsolatePlatform* CreatePlatform(
869
- int thread_pool_size,
870
- v8::TracingController* tracing_controller));
871
- NODE_DEPRECATED("Use MultiIsolatePlatform::Create() instead",
872
- NODE_EXTERN void FreePlatform(MultiIsolatePlatform* platform));
873
-
874
- // Get/set the currently active tracing controller. Using CreatePlatform()
875
- // will implicitly set this by default. This is global and should be initialized
876
- // along with the v8::Platform instance that is being used. `controller`
877
- // is allowed to be `nullptr`.
878
- // This is used for tracing events from Node.js itself. V8 uses the tracing
879
- // controller returned from the active `v8::Platform` instance.
822
+ // Get/set the currently active tracing controller. Using
823
+ // MultiIsolatePlatform::Create() will implicitly set this by default. This is
824
+ // global and should be initialized along with the v8::Platform instance that is
825
+ // being used. `controller` is allowed to be `nullptr`. This is used for tracing
826
+ // events from Node.js itself. V8 uses the tracing controller returned from the
827
+ // active `v8::Platform` instance.
880
828
  NODE_EXTERN v8::TracingController* GetTracingController();
881
829
  NODE_EXTERN void SetTracingController(v8::TracingController* controller);
882
830
 
883
831
  // Run `process.emit('beforeExit')` as it would usually happen when Node.js is
884
832
  // run in standalone mode.
885
833
  NODE_EXTERN v8::Maybe<bool> EmitProcessBeforeExit(Environment* env);
886
- NODE_DEPRECATED("Use Maybe version (EmitProcessBeforeExit) instead",
887
- NODE_EXTERN void EmitBeforeExit(Environment* env));
888
834
  // Run `process.emit('exit')` as it would usually happen when Node.js is run
889
835
  // in standalone mode. The return value corresponds to the exit code.
890
836
  NODE_EXTERN v8::Maybe<int> EmitProcessExit(Environment* env);
891
- NODE_DEPRECATED("Use Maybe version (EmitProcessExit) instead",
892
- NODE_EXTERN int EmitExit(Environment* env));
893
837
 
894
838
  // Runs hooks added through `AtExit()`. This is part of `FreeEnvironment()`,
895
839
  // so calling it manually is typically not necessary.
@@ -1057,7 +1001,7 @@ NODE_DEPRECATED("Use v8::Date::ValueOf() directly",
1057
1001
 
1058
1002
  #define NODE_DEFINE_CONSTANT(target, constant) \
1059
1003
  do { \
1060
- v8::Isolate* isolate = target->GetIsolate(); \
1004
+ v8::Isolate* isolate = v8::Isolate::GetCurrent(); \
1061
1005
  v8::Local<v8::Context> context = isolate->GetCurrentContext(); \
1062
1006
  v8::Local<v8::String> constant_name = v8::String::NewFromUtf8Literal( \
1063
1007
  isolate, #constant, v8::NewStringType::kInternalized); \
@@ -1073,7 +1017,7 @@ NODE_DEPRECATED("Use v8::Date::ValueOf() directly",
1073
1017
 
1074
1018
  #define NODE_DEFINE_HIDDEN_CONSTANT(target, constant) \
1075
1019
  do { \
1076
- v8::Isolate* isolate = target->GetIsolate(); \
1020
+ v8::Isolate* isolate = v8::Isolate::GetCurrent(); \
1077
1021
  v8::Local<v8::Context> context = isolate->GetCurrentContext(); \
1078
1022
  v8::Local<v8::String> constant_name = v8::String::NewFromUtf8Literal( \
1079
1023
  isolate, #constant, v8::NewStringType::kInternalized); \
@@ -1500,6 +1444,12 @@ class NODE_EXTERN CallbackScope {
1500
1444
  CallbackScope(Environment* env,
1501
1445
  v8::Local<v8::Object> resource,
1502
1446
  async_context asyncContext);
1447
+ // `resource` needs to outlive the scope in this case.
1448
+ // This is for the rare situation in which `CallbackScope` cannot be
1449
+ // stack-allocated. `resource` needs to outlive this scope.
1450
+ CallbackScope(Environment* env,
1451
+ v8::Global<v8::Object>* resource,
1452
+ async_context asyncContext);
1503
1453
  ~CallbackScope();
1504
1454
 
1505
1455
  void operator=(const CallbackScope&) = delete;
@@ -1508,6 +1458,11 @@ class NODE_EXTERN CallbackScope {
1508
1458
  CallbackScope(CallbackScope&&) = delete;
1509
1459
 
1510
1460
  private:
1461
+ void* resource_storage_global_;
1462
+ union {
1463
+ v8::Local<v8::Object> local;
1464
+ v8::Global<v8::Object>* global_ptr;
1465
+ } resource_storage_;
1511
1466
  InternalCallbackScope* private_;
1512
1467
  v8::TryCatch try_catch_;
1513
1468
  };
@@ -1610,10 +1565,11 @@ void RegisterSignalHandler(int signal,
1610
1565
  // objects on Node.js versions without v8::Object::Wrap(). Addons created to
1611
1566
  // work with only Node.js versions with v8::Object::Wrap() should use that
1612
1567
  // instead.
1613
- NODE_DEPRECATED("Use v8::Object::Wrap()",
1614
- NODE_EXTERN void SetCppgcReference(v8::Isolate* isolate,
1615
- v8::Local<v8::Object> object,
1616
- void* wrappable));
1568
+ NODE_DEPRECATED(
1569
+ "Use v8::Object::Wrap()",
1570
+ NODE_EXTERN void SetCppgcReference(v8::Isolate* isolate,
1571
+ v8::Local<v8::Object> object,
1572
+ v8::Object::Wrappable* wrappable));
1617
1573
 
1618
1574
  } // namespace node
1619
1575
 
@@ -22,8 +22,8 @@
22
22
  #ifndef SRC_NODE_VERSION_H_
23
23
  #define SRC_NODE_VERSION_H_
24
24
 
25
- #define NODE_MAJOR_VERSION 24
26
- #define NODE_MINOR_VERSION 9
25
+ #define NODE_MAJOR_VERSION 25
26
+ #define NODE_MINOR_VERSION 0
27
27
  #define NODE_PATCH_VERSION 0
28
28
 
29
29
  #define NODE_VERSION_IS_LTS 0
@@ -95,7 +95,7 @@
95
95
  #if defined(NODE_EMBEDDER_MODULE_VERSION)
96
96
  #define NODE_MODULE_VERSION NODE_EMBEDDER_MODULE_VERSION
97
97
  #else
98
- #define NODE_MODULE_VERSION 137
98
+ #define NODE_MODULE_VERSION 141
99
99
  #endif
100
100
 
101
101
  // The NAPI_VERSION supported by the runtime. This is the inclusive range of
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  #define PLATFORM "platform: BSD-x86"
14
- #define DATE "built on: Tue Sep 16 15:42:48 2025 UTC"
14
+ #define DATE "built on: Wed Oct 1 18:52:09 2025 UTC"
15
15
 
16
16
  /*
17
17
  * Generate compiler_flags as an array of individual characters. This is a
@@ -29,7 +29,7 @@ extern "C" {
29
29
  */
30
30
  # define OPENSSL_VERSION_MAJOR 3
31
31
  # define OPENSSL_VERSION_MINOR 5
32
- # define OPENSSL_VERSION_PATCH 3
32
+ # define OPENSSL_VERSION_PATCH 4
33
33
 
34
34
  /*
35
35
  * Additional version information
@@ -74,28 +74,28 @@ extern "C" {
74
74
  * longer variant with OPENSSL_VERSION_PRE_RELEASE_STR and
75
75
  * OPENSSL_VERSION_BUILD_METADATA_STR appended.
76
76
  */
77
- # define OPENSSL_VERSION_STR "3.5.3"
78
- # define OPENSSL_FULL_VERSION_STR "3.5.3"
77
+ # define OPENSSL_VERSION_STR "3.5.4"
78
+ # define OPENSSL_FULL_VERSION_STR "3.5.4"
79
79
 
80
80
  /*
81
81
  * SECTION 3: ADDITIONAL METADATA
82
82
  *
83
83
  * These strings are defined separately to allow them to be parsable.
84
84
  */
85
- # define OPENSSL_RELEASE_DATE "16 Sep 2025"
85
+ # define OPENSSL_RELEASE_DATE "30 Sep 2025"
86
86
 
87
87
  /*
88
88
  * SECTION 4: BACKWARD COMPATIBILITY
89
89
  */
90
90
 
91
- # define OPENSSL_VERSION_TEXT "OpenSSL 3.5.3 16 Sep 2025"
91
+ # define OPENSSL_VERSION_TEXT "OpenSSL 3.5.4 30 Sep 2025"
92
92
 
93
- /* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PPSL */
93
+ /* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PP0L */
94
94
  # define OPENSSL_VERSION_NUMBER \
95
95
  ( (OPENSSL_VERSION_MAJOR<<28) \
96
96
  |(OPENSSL_VERSION_MINOR<<20) \
97
97
  |(OPENSSL_VERSION_PATCH<<4) \
98
- |0xfL )
98
+ |0x0L )
99
99
 
100
100
  # ifdef __cplusplus
101
101
  }
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  #define PLATFORM "platform: BSD-x86"
14
- #define DATE "built on: Tue Sep 16 15:43:04 2025 UTC"
14
+ #define DATE "built on: Wed Oct 1 18:52:26 2025 UTC"
15
15
 
16
16
  /*
17
17
  * Generate compiler_flags as an array of individual characters. This is a
@@ -29,7 +29,7 @@ extern "C" {
29
29
  */
30
30
  # define OPENSSL_VERSION_MAJOR 3
31
31
  # define OPENSSL_VERSION_MINOR 5
32
- # define OPENSSL_VERSION_PATCH 3
32
+ # define OPENSSL_VERSION_PATCH 4
33
33
 
34
34
  /*
35
35
  * Additional version information
@@ -74,28 +74,28 @@ extern "C" {
74
74
  * longer variant with OPENSSL_VERSION_PRE_RELEASE_STR and
75
75
  * OPENSSL_VERSION_BUILD_METADATA_STR appended.
76
76
  */
77
- # define OPENSSL_VERSION_STR "3.5.3"
78
- # define OPENSSL_FULL_VERSION_STR "3.5.3"
77
+ # define OPENSSL_VERSION_STR "3.5.4"
78
+ # define OPENSSL_FULL_VERSION_STR "3.5.4"
79
79
 
80
80
  /*
81
81
  * SECTION 3: ADDITIONAL METADATA
82
82
  *
83
83
  * These strings are defined separately to allow them to be parsable.
84
84
  */
85
- # define OPENSSL_RELEASE_DATE "16 Sep 2025"
85
+ # define OPENSSL_RELEASE_DATE "30 Sep 2025"
86
86
 
87
87
  /*
88
88
  * SECTION 4: BACKWARD COMPATIBILITY
89
89
  */
90
90
 
91
- # define OPENSSL_VERSION_TEXT "OpenSSL 3.5.3 16 Sep 2025"
91
+ # define OPENSSL_VERSION_TEXT "OpenSSL 3.5.4 30 Sep 2025"
92
92
 
93
- /* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PPSL */
93
+ /* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PP0L */
94
94
  # define OPENSSL_VERSION_NUMBER \
95
95
  ( (OPENSSL_VERSION_MAJOR<<28) \
96
96
  |(OPENSSL_VERSION_MINOR<<20) \
97
97
  |(OPENSSL_VERSION_PATCH<<4) \
98
- |0xfL )
98
+ |0x0L )
99
99
 
100
100
  # ifdef __cplusplus
101
101
  }
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  #define PLATFORM "platform: BSD-x86"
14
- #define DATE "built on: Tue Sep 16 15:43:21 2025 UTC"
14
+ #define DATE "built on: Wed Oct 1 18:52:42 2025 UTC"
15
15
 
16
16
  /*
17
17
  * Generate compiler_flags as an array of individual characters. This is a
@@ -29,7 +29,7 @@ extern "C" {
29
29
  */
30
30
  # define OPENSSL_VERSION_MAJOR 3
31
31
  # define OPENSSL_VERSION_MINOR 5
32
- # define OPENSSL_VERSION_PATCH 3
32
+ # define OPENSSL_VERSION_PATCH 4
33
33
 
34
34
  /*
35
35
  * Additional version information
@@ -74,28 +74,28 @@ extern "C" {
74
74
  * longer variant with OPENSSL_VERSION_PRE_RELEASE_STR and
75
75
  * OPENSSL_VERSION_BUILD_METADATA_STR appended.
76
76
  */
77
- # define OPENSSL_VERSION_STR "3.5.3"
78
- # define OPENSSL_FULL_VERSION_STR "3.5.3"
77
+ # define OPENSSL_VERSION_STR "3.5.4"
78
+ # define OPENSSL_FULL_VERSION_STR "3.5.4"
79
79
 
80
80
  /*
81
81
  * SECTION 3: ADDITIONAL METADATA
82
82
  *
83
83
  * These strings are defined separately to allow them to be parsable.
84
84
  */
85
- # define OPENSSL_RELEASE_DATE "16 Sep 2025"
85
+ # define OPENSSL_RELEASE_DATE "30 Sep 2025"
86
86
 
87
87
  /*
88
88
  * SECTION 4: BACKWARD COMPATIBILITY
89
89
  */
90
90
 
91
- # define OPENSSL_VERSION_TEXT "OpenSSL 3.5.3 16 Sep 2025"
91
+ # define OPENSSL_VERSION_TEXT "OpenSSL 3.5.4 30 Sep 2025"
92
92
 
93
- /* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PPSL */
93
+ /* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PP0L */
94
94
  # define OPENSSL_VERSION_NUMBER \
95
95
  ( (OPENSSL_VERSION_MAJOR<<28) \
96
96
  |(OPENSSL_VERSION_MINOR<<20) \
97
97
  |(OPENSSL_VERSION_PATCH<<4) \
98
- |0xfL )
98
+ |0x0L )
99
99
 
100
100
  # ifdef __cplusplus
101
101
  }
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  #define PLATFORM "platform: BSD-x86_64"
14
- #define DATE "built on: Tue Sep 16 15:43:36 2025 UTC"
14
+ #define DATE "built on: Wed Oct 1 18:52:58 2025 UTC"
15
15
 
16
16
  /*
17
17
  * Generate compiler_flags as an array of individual characters. This is a
@@ -29,7 +29,7 @@ extern "C" {
29
29
  */
30
30
  # define OPENSSL_VERSION_MAJOR 3
31
31
  # define OPENSSL_VERSION_MINOR 5
32
- # define OPENSSL_VERSION_PATCH 3
32
+ # define OPENSSL_VERSION_PATCH 4
33
33
 
34
34
  /*
35
35
  * Additional version information
@@ -74,28 +74,28 @@ extern "C" {
74
74
  * longer variant with OPENSSL_VERSION_PRE_RELEASE_STR and
75
75
  * OPENSSL_VERSION_BUILD_METADATA_STR appended.
76
76
  */
77
- # define OPENSSL_VERSION_STR "3.5.3"
78
- # define OPENSSL_FULL_VERSION_STR "3.5.3"
77
+ # define OPENSSL_VERSION_STR "3.5.4"
78
+ # define OPENSSL_FULL_VERSION_STR "3.5.4"
79
79
 
80
80
  /*
81
81
  * SECTION 3: ADDITIONAL METADATA
82
82
  *
83
83
  * These strings are defined separately to allow them to be parsable.
84
84
  */
85
- # define OPENSSL_RELEASE_DATE "16 Sep 2025"
85
+ # define OPENSSL_RELEASE_DATE "30 Sep 2025"
86
86
 
87
87
  /*
88
88
  * SECTION 4: BACKWARD COMPATIBILITY
89
89
  */
90
90
 
91
- # define OPENSSL_VERSION_TEXT "OpenSSL 3.5.3 16 Sep 2025"
91
+ # define OPENSSL_VERSION_TEXT "OpenSSL 3.5.4 30 Sep 2025"
92
92
 
93
- /* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PPSL */
93
+ /* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PP0L */
94
94
  # define OPENSSL_VERSION_NUMBER \
95
95
  ( (OPENSSL_VERSION_MAJOR<<28) \
96
96
  |(OPENSSL_VERSION_MINOR<<20) \
97
97
  |(OPENSSL_VERSION_PATCH<<4) \
98
- |0xfL )
98
+ |0x0L )
99
99
 
100
100
  # ifdef __cplusplus
101
101
  }
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  #define PLATFORM "platform: BSD-x86_64"
14
- #define DATE "built on: Tue Sep 16 15:44:00 2025 UTC"
14
+ #define DATE "built on: Wed Oct 1 18:53:22 2025 UTC"
15
15
 
16
16
  /*
17
17
  * Generate compiler_flags as an array of individual characters. This is a
@@ -29,7 +29,7 @@ extern "C" {
29
29
  */
30
30
  # define OPENSSL_VERSION_MAJOR 3
31
31
  # define OPENSSL_VERSION_MINOR 5
32
- # define OPENSSL_VERSION_PATCH 3
32
+ # define OPENSSL_VERSION_PATCH 4
33
33
 
34
34
  /*
35
35
  * Additional version information
@@ -74,28 +74,28 @@ extern "C" {
74
74
  * longer variant with OPENSSL_VERSION_PRE_RELEASE_STR and
75
75
  * OPENSSL_VERSION_BUILD_METADATA_STR appended.
76
76
  */
77
- # define OPENSSL_VERSION_STR "3.5.3"
78
- # define OPENSSL_FULL_VERSION_STR "3.5.3"
77
+ # define OPENSSL_VERSION_STR "3.5.4"
78
+ # define OPENSSL_FULL_VERSION_STR "3.5.4"
79
79
 
80
80
  /*
81
81
  * SECTION 3: ADDITIONAL METADATA
82
82
  *
83
83
  * These strings are defined separately to allow them to be parsable.
84
84
  */
85
- # define OPENSSL_RELEASE_DATE "16 Sep 2025"
85
+ # define OPENSSL_RELEASE_DATE "30 Sep 2025"
86
86
 
87
87
  /*
88
88
  * SECTION 4: BACKWARD COMPATIBILITY
89
89
  */
90
90
 
91
- # define OPENSSL_VERSION_TEXT "OpenSSL 3.5.3 16 Sep 2025"
91
+ # define OPENSSL_VERSION_TEXT "OpenSSL 3.5.4 30 Sep 2025"
92
92
 
93
- /* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PPSL */
93
+ /* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PP0L */
94
94
  # define OPENSSL_VERSION_NUMBER \
95
95
  ( (OPENSSL_VERSION_MAJOR<<28) \
96
96
  |(OPENSSL_VERSION_MINOR<<20) \
97
97
  |(OPENSSL_VERSION_PATCH<<4) \
98
- |0xfL )
98
+ |0x0L )
99
99
 
100
100
  # ifdef __cplusplus
101
101
  }
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  #define PLATFORM "platform: BSD-x86_64"
14
- #define DATE "built on: Tue Sep 16 15:44:20 2025 UTC"
14
+ #define DATE "built on: Wed Oct 1 18:53:42 2025 UTC"
15
15
 
16
16
  /*
17
17
  * Generate compiler_flags as an array of individual characters. This is a
@@ -29,7 +29,7 @@ extern "C" {
29
29
  */
30
30
  # define OPENSSL_VERSION_MAJOR 3
31
31
  # define OPENSSL_VERSION_MINOR 5
32
- # define OPENSSL_VERSION_PATCH 3
32
+ # define OPENSSL_VERSION_PATCH 4
33
33
 
34
34
  /*
35
35
  * Additional version information
@@ -74,28 +74,28 @@ extern "C" {
74
74
  * longer variant with OPENSSL_VERSION_PRE_RELEASE_STR and
75
75
  * OPENSSL_VERSION_BUILD_METADATA_STR appended.
76
76
  */
77
- # define OPENSSL_VERSION_STR "3.5.3"
78
- # define OPENSSL_FULL_VERSION_STR "3.5.3"
77
+ # define OPENSSL_VERSION_STR "3.5.4"
78
+ # define OPENSSL_FULL_VERSION_STR "3.5.4"
79
79
 
80
80
  /*
81
81
  * SECTION 3: ADDITIONAL METADATA
82
82
  *
83
83
  * These strings are defined separately to allow them to be parsable.
84
84
  */
85
- # define OPENSSL_RELEASE_DATE "16 Sep 2025"
85
+ # define OPENSSL_RELEASE_DATE "30 Sep 2025"
86
86
 
87
87
  /*
88
88
  * SECTION 4: BACKWARD COMPATIBILITY
89
89
  */
90
90
 
91
- # define OPENSSL_VERSION_TEXT "OpenSSL 3.5.3 16 Sep 2025"
91
+ # define OPENSSL_VERSION_TEXT "OpenSSL 3.5.4 30 Sep 2025"
92
92
 
93
- /* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PPSL */
93
+ /* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PP0L */
94
94
  # define OPENSSL_VERSION_NUMBER \
95
95
  ( (OPENSSL_VERSION_MAJOR<<28) \
96
96
  |(OPENSSL_VERSION_MINOR<<20) \
97
97
  |(OPENSSL_VERSION_PATCH<<4) \
98
- |0xfL )
98
+ |0x0L )
99
99
 
100
100
  # ifdef __cplusplus
101
101
  }
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  #define PLATFORM "platform: "
14
- #define DATE "built on: Tue Sep 16 15:56:36 2025 UTC"
14
+ #define DATE "built on: Wed Oct 1 19:05:58 2025 UTC"
15
15
 
16
16
  /*
17
17
  * Generate compiler_flags as an array of individual characters. This is a
@@ -29,7 +29,7 @@ extern "C" {
29
29
  */
30
30
  # define OPENSSL_VERSION_MAJOR 3
31
31
  # define OPENSSL_VERSION_MINOR 5
32
- # define OPENSSL_VERSION_PATCH 3
32
+ # define OPENSSL_VERSION_PATCH 4
33
33
 
34
34
  /*
35
35
  * Additional version information
@@ -74,28 +74,28 @@ extern "C" {
74
74
  * longer variant with OPENSSL_VERSION_PRE_RELEASE_STR and
75
75
  * OPENSSL_VERSION_BUILD_METADATA_STR appended.
76
76
  */
77
- # define OPENSSL_VERSION_STR "3.5.3"
78
- # define OPENSSL_FULL_VERSION_STR "3.5.3"
77
+ # define OPENSSL_VERSION_STR "3.5.4"
78
+ # define OPENSSL_FULL_VERSION_STR "3.5.4"
79
79
 
80
80
  /*
81
81
  * SECTION 3: ADDITIONAL METADATA
82
82
  *
83
83
  * These strings are defined separately to allow them to be parsable.
84
84
  */
85
- # define OPENSSL_RELEASE_DATE "16 Sep 2025"
85
+ # define OPENSSL_RELEASE_DATE "30 Sep 2025"
86
86
 
87
87
  /*
88
88
  * SECTION 4: BACKWARD COMPATIBILITY
89
89
  */
90
90
 
91
- # define OPENSSL_VERSION_TEXT "OpenSSL 3.5.3 16 Sep 2025"
91
+ # define OPENSSL_VERSION_TEXT "OpenSSL 3.5.4 30 Sep 2025"
92
92
 
93
- /* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PPSL */
93
+ /* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PP0L */
94
94
  # define OPENSSL_VERSION_NUMBER \
95
95
  ( (OPENSSL_VERSION_MAJOR<<28) \
96
96
  |(OPENSSL_VERSION_MINOR<<20) \
97
97
  |(OPENSSL_VERSION_PATCH<<4) \
98
- |0xfL )
98
+ |0x0L )
99
99
 
100
100
  # ifdef __cplusplus
101
101
  }
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  #define PLATFORM "platform: "
14
- #define DATE "built on: Tue Sep 16 15:56:51 2025 UTC"
14
+ #define DATE "built on: Wed Oct 1 19:06:12 2025 UTC"
15
15
 
16
16
  /*
17
17
  * Generate compiler_flags as an array of individual characters. This is a
@@ -29,7 +29,7 @@ extern "C" {
29
29
  */
30
30
  # define OPENSSL_VERSION_MAJOR 3
31
31
  # define OPENSSL_VERSION_MINOR 5
32
- # define OPENSSL_VERSION_PATCH 3
32
+ # define OPENSSL_VERSION_PATCH 4
33
33
 
34
34
  /*
35
35
  * Additional version information
@@ -74,28 +74,28 @@ extern "C" {
74
74
  * longer variant with OPENSSL_VERSION_PRE_RELEASE_STR and
75
75
  * OPENSSL_VERSION_BUILD_METADATA_STR appended.
76
76
  */
77
- # define OPENSSL_VERSION_STR "3.5.3"
78
- # define OPENSSL_FULL_VERSION_STR "3.5.3"
77
+ # define OPENSSL_VERSION_STR "3.5.4"
78
+ # define OPENSSL_FULL_VERSION_STR "3.5.4"
79
79
 
80
80
  /*
81
81
  * SECTION 3: ADDITIONAL METADATA
82
82
  *
83
83
  * These strings are defined separately to allow them to be parsable.
84
84
  */
85
- # define OPENSSL_RELEASE_DATE "16 Sep 2025"
85
+ # define OPENSSL_RELEASE_DATE "30 Sep 2025"
86
86
 
87
87
  /*
88
88
  * SECTION 4: BACKWARD COMPATIBILITY
89
89
  */
90
90
 
91
- # define OPENSSL_VERSION_TEXT "OpenSSL 3.5.3 16 Sep 2025"
91
+ # define OPENSSL_VERSION_TEXT "OpenSSL 3.5.4 30 Sep 2025"
92
92
 
93
- /* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PPSL */
93
+ /* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PP0L */
94
94
  # define OPENSSL_VERSION_NUMBER \
95
95
  ( (OPENSSL_VERSION_MAJOR<<28) \
96
96
  |(OPENSSL_VERSION_MINOR<<20) \
97
97
  |(OPENSSL_VERSION_PATCH<<4) \
98
- |0xfL )
98
+ |0x0L )
99
99
 
100
100
  # ifdef __cplusplus
101
101
  }
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  #define PLATFORM "platform: "
14
- #define DATE "built on: Tue Sep 16 15:57:05 2025 UTC"
14
+ #define DATE "built on: Wed Oct 1 19:06:27 2025 UTC"
15
15
 
16
16
  /*
17
17
  * Generate compiler_flags as an array of individual characters. This is a