@yao-pkg/pkg-fetch 3.6.5 → 3.6.7

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.
@@ -43,35 +43,35 @@
43
43
  "node-v20.20.2-macos-x64": "2276efd46dc3a30d5524ea60b8cb63afa5c8e45e0f17ad49065bcea7b59b7eeb",
44
44
  "node-v20.20.2-win-arm64": "aebc71a3ebf4774adaac0cd891bfba54f9e5e4340c39b44492127de551a9b5a8",
45
45
  "node-v20.20.2-win-x64": "f9b870a1b20c3bcf729a53112b6a72db65b050e4e6494d33ceab3413c507f01c",
46
- "node-v22.23.2-alpine-arm64": "c5bd55fd1567068eaa9ce56b56cce0d506dec72038929c385b0ead868478f143",
47
- "node-v22.23.2-alpine-x64": "f9bdcd970365584232e6db70eaffd4785ad96f1bded297b31c2fa8be65ea4aad",
48
- "node-v22.23.2-linux-arm64": "389df3e8fbb35e34a6b255fb9846dd7d6bf445d95709c6fd235e6926b10f9d51",
49
- "node-v22.23.2-linux-x64": "6e3f32d02f548cc87d462441666b28fec9beac4278b0831a0929a7b49bac3886",
50
- "node-v22.23.2-linuxstatic-arm64": "d587135cc24c6453c6fb97509c0468209887c0aaf56574f4ffb5e2ddb2c6f0f8",
51
- "node-v22.23.2-linuxstatic-armv7": "bd392f93ae55d0480ee8e66678b16a00eddffeeb0a814e3de02f472c9c875656",
52
- "node-v22.23.2-linuxstatic-x64": "2e60ac3f81558e52f437f831afb0128f5e0e6e63d6608094748cce3043e42378",
53
- "node-v22.23.2-macos-arm64": "31b0f3a7705e2f10a496dbeba1a78f2590b4bfcbe8d026c4ec90cf693c6f02af",
54
- "node-v22.23.2-macos-x64": "aa7517861bab8d3dd0c54a3d1d41becb0b1925a017e662018372dbf875dbfce0",
55
- "node-v22.23.2-win-arm64": "d625fdb98c359a0b234566ff66d50e802c9f48abad732b46d54014e41d9389db",
56
- "node-v22.23.2-win-x64": "555d3dceaaf1c5628ac8fa23d1ebde46a424d2ad6782cc2412be8eed4a7a6b69",
57
- "node-v24.18.1-alpine-arm64": "2754a618f939399a9c21930ed30442adb0d90471bae925fd84118e70c27e7a6f",
58
- "node-v24.18.1-alpine-x64": "21fccbe61f5e94aff761bc80fff204583c4d01255b76cc99dfa7b60dbab8580d",
59
- "node-v24.18.1-linux-arm64": "55674b6978988d24cac7d56e0149a9d52596587e47c8e5f910df9aa9a39389ed",
60
- "node-v24.18.1-linux-x64": "7db3cb2390125d632929fd3ef3925be35cd7c949d55961c4be3f74b374736945",
61
- "node-v24.18.1-linuxstatic-arm64": "07458292bbb60f90d04cbd45459e921a865d4325b43fcc6913ab02a88a1b86e5",
62
- "node-v24.18.1-linuxstatic-x64": "1ec3e0bf407c22ddbe189b7003912de02a2fcab2c97bae88ce0786c34d8f072b",
63
- "node-v24.18.1-macos-arm64": "9e0d0f0c0c1c448c91a77e58cd6ccaab5dd37034cf2f578741fc0f08be4e8dbe",
64
- "node-v24.18.1-macos-x64": "e712a8d6fe64864b2e727debebe5e84db4d0e6e5a10280d9b39aa374e1c3bace",
65
- "node-v24.18.1-win-arm64": "bd714ca63f9eae648bd7f2152c28948bc1bb572bd8d4a3d61502280025aefec8",
66
- "node-v24.18.1-win-x64": "33c93330b42518bf44f23146c6f8f0f74544068ce0f81c6b5e4b0234fd00bd02",
67
- "node-v26.5.1-alpine-arm64": "31d61f13bf9b2425091e434ed84fbe6bfd7a5f1e35732c58bf3c141797fdfce6",
68
- "node-v26.5.1-alpine-x64": "c6d51a2e4b6133852b453ae2b1903068b7e365db44869ea0c022bb3d57da9725",
69
- "node-v26.5.1-linux-arm64": "32b39fa44ac0ca9eb3cd1a8ff6aa5383e2bf2f28c596807fedd949952fdbcb45",
70
- "node-v26.5.1-linux-x64": "02b77b99449f9781b88698a94bdb7dd5e396c75eacc977639591d69a72c9e436",
71
- "node-v26.5.1-linuxstatic-arm64": "c4c22d9be2c16b8b39ad3055271455f978ccfcb26e63ba11713b61adddf876c9",
72
- "node-v26.5.1-linuxstatic-x64": "ba5404a8f9ce8e89ffa1e5690ecd720aaf15ea056289b1ad5db3c20e7b8c323b",
73
- "node-v26.5.1-macos-arm64": "762617a553d10c7a4a9b07f85906a2784a1b16d1bd3c41994c4936390474d0d5",
74
- "node-v26.5.1-macos-x64": "4c2b3c7c41273838c318179253d12aad87253165ba8a2fd590a9a5349a5a2bf7",
75
- "node-v26.5.1-win-arm64": "25355769b98f3105e8c499a954169244737124c516b2efd750030f245abf6ec7",
76
- "node-v26.5.1-win-x64": "c4778a1bb261597113d142c46c13f708b1cb9f24a0f50cf6ef48a00dd3b0dd94"
46
+ "node-v22.23.4-alpine-arm64": "e08b2582c00404cd8630109de68b565b1ee7c8e167a95c925b34e55b34192bfd",
47
+ "node-v22.23.4-alpine-x64": "e3b53d5fc5606016bd914f85e22c0c67e83c01e285fec34f71ceaa412e6186b7",
48
+ "node-v22.23.4-linux-arm64": "4170ef1c350caa99d16ec579d822e2df4cb515041908d81d976634d78577ad4b",
49
+ "node-v22.23.4-linux-x64": "4880a67281fe58ffe11c7c2606efb10654337e27e437e78345c6393326891e00",
50
+ "node-v22.23.4-linuxstatic-arm64": "86eafddb439fd4d1953cff4ce1f988fc2981818ed7c080cc076f74024d108e6a",
51
+ "node-v22.23.4-linuxstatic-armv7": "7903b1cd25789768ec0e0712232a5670a7f242d2e4c01d9e55f5b4e0c3e2be1f",
52
+ "node-v22.23.4-linuxstatic-x64": "23aa7dd74e3262bcc6400b33037356d8e2422a69781042cf245f7fdde9be57f5",
53
+ "node-v22.23.4-macos-arm64": "3fe48378bd4ef71d7f299af7a0c0b6554998c65e7b939187f923814d50a987a1",
54
+ "node-v22.23.4-macos-x64": "d93bc8fd5a80782e278c75409bc4e446c1e4fceec4d087eab37040ec117c0ffa",
55
+ "node-v22.23.4-win-arm64": "3f494a1cb9734280740109d0c26fc536b132cd28c822f80fe3f4b84ee8f9b1e6",
56
+ "node-v22.23.4-win-x64": "8b2f782f1ae0fbc03a406efc086b3c5a5a65039ce12fc6adbe9885986c837bdc",
57
+ "node-v24.22.1-alpine-arm64": "e5deb5ca77d0d42ad0772927797678dd3b2f8c325580e31cab66aabc3f196a2f",
58
+ "node-v24.22.1-alpine-x64": "06a440bb73777e03282f47e906ef2aef59f37271b41e114fb9557b91457f2da4",
59
+ "node-v24.22.1-linux-arm64": "916852a4ee1a7403da8213a439adcb34ade6e0fb82a5225d2b7959b7bcfb9511",
60
+ "node-v24.22.1-linux-x64": "c0a4715edd09277f0e66c780dc16eb40be7c14e823e074e0218dd6c27fdac4c3",
61
+ "node-v24.22.1-linuxstatic-arm64": "f581e7e51b16d9bb1b421065f0dae61d0634db9b200629746f1ea4a3fcd96d48",
62
+ "node-v24.22.1-linuxstatic-x64": "6abbc01b38ac5f39f368b9b6d6e11d6937d357666895d70c3304088c77e2d92c",
63
+ "node-v24.22.1-macos-arm64": "4059ddff5148bc567d3893e29328a08800bb3adf6b6d1ebb3fbaba768425d5dd",
64
+ "node-v24.22.1-macos-x64": "b609a23dfecc192cc59d77e8f46ec000fef4af7e039061c4e9b262be0acffaa1",
65
+ "node-v24.22.1-win-arm64": "6eb9a69e26d980fc1f6a36bb589632da151d5856e245bd55d7eb00f31f6799d1",
66
+ "node-v24.22.1-win-x64": "82b8ca1e6d6925ba08520c45c98d2599ee0e5bbc3c1d7c494f3caec0eaed2cd8",
67
+ "node-v26.12.1-alpine-arm64": "1ed6ec3a69a9c002f1616c0ed28cdd6e86e9d31b90637af3d05dffa73733bddf",
68
+ "node-v26.12.1-alpine-x64": "0c297d4eda68441bbbf6c2264a7b193426226646f1d6e34c997b3bd2e5f47fb8",
69
+ "node-v26.12.1-linux-arm64": "3934cf70e18dd60b7a4e754b40b8a3a46383bc18d55d3c16b669ae043ba54efd",
70
+ "node-v26.12.1-linux-x64": "9a2dcecdbce93a065d495a9185ef734501735a000951dc869543e602918a5e81",
71
+ "node-v26.12.1-linuxstatic-arm64": "062e6450d423f310dcb7b4b378ba319b2ebf65cfe3982b3537baa41859ee18ee",
72
+ "node-v26.12.1-linuxstatic-x64": "e7f4df0bc9df19a640d8f65e66ee1178b6243f8932547e34d0d8a0e1662d01df",
73
+ "node-v26.12.1-macos-arm64": "1de8985653d4c3041a9c6a195c7e4a723031249b592a170027c5e5d753f3a061",
74
+ "node-v26.12.1-macos-x64": "d617039f7fea3bfeaca047fabd3bd40f4a4568881cd86c32a3986d8580d20fec",
75
+ "node-v26.12.1-win-arm64": "9342387d6532197a37ba68741e9b079f42d1e5ec76786bde0ced4170c2955494",
76
+ "node-v26.12.1-win-x64": "2098122150aaaa24043ed9868cbab5e77a436c68fe9efa5611e8dcf5130b1cb2"
77
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yao-pkg/pkg-fetch",
3
- "version": "3.6.5",
3
+ "version": "3.6.7",
4
4
  "description": "Compiles and stores base binaries for pkg",
5
5
  "main": "lib-es5/index.js",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  diff --git node/common.gypi node/common.gypi
2
- index 0ffa5b1371..6f04eb354f 100644
2
+ index 704eacfc18..ce83204875 100644
3
3
  --- node/common.gypi
4
4
  +++ node/common.gypi
5
5
  @@ -192,7 +192,7 @@
@@ -1,5 +1,5 @@
1
1
  diff --git node/deps/ngtcp2/nghttp3/lib/nghttp3_ringbuf.c node/deps/ngtcp2/nghttp3/lib/nghttp3_ringbuf.c
2
- index dac89ef12e..e5cf338ff4 100644
2
+ index f43714d2c2..f714a524e7 100644
3
3
  --- node/deps/ngtcp2/nghttp3/lib/nghttp3_ringbuf.c
4
4
  +++ node/deps/ngtcp2/nghttp3/lib/nghttp3_ringbuf.c
5
5
  @@ -33,10 +33,17 @@
@@ -25,23 +25,26 @@ index dac89ef12e..e5cf338ff4 100644
25
25
  int nghttp3_ringbuf_init(nghttp3_ringbuf *rb, size_t nmemb, size_t size,
26
26
  const nghttp3_mem *mem) {
27
27
  diff --git node/deps/ngtcp2/ngtcp2/lib/ngtcp2_ringbuf.c node/deps/ngtcp2/ngtcp2/lib/ngtcp2_ringbuf.c
28
- index 353afca4d4..dea944aed5 100644
28
+ index 40c25f2a3d..f03b9de0bd 100644
29
29
  --- node/deps/ngtcp2/ngtcp2/lib/ngtcp2_ringbuf.c
30
30
  +++ node/deps/ngtcp2/ngtcp2/lib/ngtcp2_ringbuf.c
31
- @@ -33,10 +33,7 @@
31
+ @@ -33,7 +33,13 @@
32
32
 
33
33
  #ifndef NDEBUG
34
- static int ispow2(size_t n) {
35
- -# if defined(_MSC_VER) && !defined(__clang__) && \
36
- - (defined(_M_ARM) || (defined(_M_ARM64) && _MSC_VER < 1941))
37
- - return n && !(n & (n - 1));
38
- -# elif defined(WIN32)
34
+ /* Power-of-two test; simple portable bit trick. */
35
+ -static int ispow2(size_t n) { return n && !(n & (n - 1)); }
36
+ +static int ispow2(size_t n) {
39
37
  +#if defined(WIN32)
40
- return 1 == __popcnt((unsigned int)n);
41
- # else /* !((defined(_MSC_VER) && !defined(__clang__) && (defined(_M_ARM) || \
42
- (defined(_M_ARM64) && _MSC_VER < 1941))) || defined(WIN32)) */
38
+ + return 1 == __popcnt((unsigned int)n);
39
+ +#else /* !defined(WIN32) */
40
+ + return n && !(n & (n - 1));
41
+ +#endif /* defined(WIN32) */
42
+ +}
43
+ #endif /* !defined(NDEBUG) */
44
+
45
+ int ngtcp2_ringbuf_init(ngtcp2_ringbuf *rb, size_t nmemb, size_t size,
43
46
  diff --git node/deps/v8/include/v8-initialization.h node/deps/v8/include/v8-initialization.h
44
- index 46a21a02cb..fdb0edf42a 100644
47
+ index 406f1d0ba5..fb8eea420d 100644
45
48
  --- node/deps/v8/include/v8-initialization.h
46
49
  +++ node/deps/v8/include/v8-initialization.h
47
50
  @@ -98,6 +98,10 @@ class V8_EXPORT V8 {
@@ -56,10 +59,10 @@ index 46a21a02cb..fdb0edf42a 100644
56
59
  static const char* GetVersion();
57
60
 
58
61
  diff --git node/deps/v8/src/api/api.cc node/deps/v8/src/api/api.cc
59
- index ef4546de27..60bb6a4edc 100644
62
+ index 7dc060bc87..736e9309ed 100644
60
63
  --- node/deps/v8/src/api/api.cc
61
64
  +++ node/deps/v8/src/api/api.cc
62
- @@ -443,6 +443,28 @@ void V8::SetFlagsFromCommandLine(int* argc, char** argv, bool remove_flags) {
65
+ @@ -444,6 +444,28 @@ void V8::SetFlagsFromCommandLine(int* argc, char** argv, bool remove_flags) {
63
66
  HelpOptions(HelpOptions::kDontExit));
64
67
  }
65
68
 
@@ -415,7 +418,7 @@ index 0178607289..88c8c2b852 100644
415
418
  }
416
419
  }
417
420
  diff --git node/lib/child_process.js node/lib/child_process.js
418
- index 17c6b69c11..59f5e241af 100644
421
+ index e72461ea5f..90dd6938a4 100644
419
422
  --- node/lib/child_process.js
420
423
  +++ node/lib/child_process.js
421
424
  @@ -171,7 +171,7 @@ function fork(modulePath, args = [], options) {
@@ -483,10 +486,10 @@ index 0000000000..a697294fdf
483
486
  + }());
484
487
  +}());
485
488
  diff --git node/lib/internal/modules/cjs/loader.js node/lib/internal/modules/cjs/loader.js
486
- index 11a7196698..de729b660b 100644
489
+ index 4bd752be19..d2a7c76d7b 100644
487
490
  --- node/lib/internal/modules/cjs/loader.js
488
491
  +++ node/lib/internal/modules/cjs/loader.js
489
- @@ -267,12 +267,15 @@ function stat(filename) {
492
+ @@ -273,12 +273,15 @@ function stat(filename) {
490
493
  // Guard against internal bugs where a non-string filename is passed in by mistake.
491
494
  assert(typeof filename === 'string');
492
495
 
@@ -504,10 +507,10 @@ index 11a7196698..de729b660b 100644
504
507
  // Only set cache when `internalModuleStat(filename)` succeeds.
505
508
  statCache.set(filename, result);
506
509
  diff --git node/lib/internal/modules/package_json_reader.js node/lib/internal/modules/package_json_reader.js
507
- index 968c3c5701..1c7b01a3f2 100644
510
+ index 9cf3e64e90..99ee29a113 100644
508
511
  --- node/lib/internal/modules/package_json_reader.js
509
512
  +++ node/lib/internal/modules/package_json_reader.js
510
- @@ -120,17 +120,20 @@ const requiresJSONParse = (value) => (value !== undefined && (value[0] === '[' |
513
+ @@ -121,17 +121,20 @@ const requiresJSONParse = (value) => (value !== undefined && (value[0] === '[' |
511
514
  * @returns {PackageConfig}
512
515
  */
513
516
  function read(jsonPath, { base, specifier, isESM } = kEmptyObject) {
@@ -540,7 +543,7 @@ index 968c3c5701..1c7b01a3f2 100644
540
543
  __proto__: null,
541
544
  ...result.data,
542
545
  diff --git node/lib/internal/process/pre_execution.js node/lib/internal/process/pre_execution.js
543
- index e9ab2b2a89..6c74e7cc64 100644
546
+ index d17da5d977..56e0ab7b60 100644
544
547
  --- node/lib/internal/process/pre_execution.js
545
548
  +++ node/lib/internal/process/pre_execution.js
546
549
  @@ -42,7 +42,11 @@ const {
@@ -555,7 +558,7 @@ index e9ab2b2a89..6c74e7cc64 100644
555
558
  return prepareExecution({
556
559
  expandArgv1,
557
560
  initializeModules,
558
- @@ -279,7 +283,8 @@ function patchProcessObject(expandArgv1) {
561
+ @@ -280,7 +284,8 @@ function patchProcessObject(expandArgv1) {
559
562
  let mainEntry;
560
563
  // If requested, update process.argv[1] to replace whatever the user provided with the resolved absolute file path of
561
564
  // the entry point.
@@ -565,7 +568,7 @@ index e9ab2b2a89..6c74e7cc64 100644
565
568
  // Expand process.argv[1] into a full path.
566
569
  const path = require('path');
567
570
  try {
568
- @@ -703,6 +708,7 @@ function loadPreloadModules() {
571
+ @@ -729,6 +734,7 @@ function loadPreloadModules() {
569
572
  // For user code, we preload modules if `-r` is passed
570
573
  const preloadModules = getOptionValue('--require');
571
574
  if (preloadModules && preloadModules.length > 0) {
@@ -596,26 +599,24 @@ index ae71080620..b05638de75 100644
596
599
  throw e; /* node-do-not-add-exception-line */
597
600
  }
598
601
  diff --git node/src/inspector_agent.cc node/src/inspector_agent.cc
599
- index 5e1d9149dc..1426160ac0 100644
602
+ index 31277a74d1..91306400df 100644
600
603
  --- node/src/inspector_agent.cc
601
604
  +++ node/src/inspector_agent.cc
602
- @@ -858,11 +858,6 @@ bool Agent::Start(const std::string& path,
603
- StartIoThreadAsyncCallback));
604
- uv_unref(reinterpret_cast<uv_handle_t*>(&start_io_thread_async));
605
- start_io_thread_async.data = this;
606
- - if (parent_env_->should_start_debug_signal_handler()) {
607
- - // Ignore failure, SIGUSR1 won't work, but that should not block node
608
- - // start.
609
- - StartDebugSignalHandler();
610
- - }
611
-
612
- parent_env_->AddCleanupHook([](void* data) {
613
- Environment* env = static_cast<Environment*>(data);
605
+ @@ -886,9 +886,6 @@ bool Agent::Start(const std::string& path,
606
+ start_io_thread_agents.push_back(this);
607
+ }
608
+ parent_env_->AddCleanupHook(StopAcceptingIoThreadStartsHook, this);
609
+ - // Ignore failure, SIGUSR1 won't work, but that should not block node
610
+ - // start.
611
+ - StartDebugSignalHandler();
612
+ }
613
+
614
+ AtExit(parent_env_, [](void* env) {
614
615
  diff --git node/src/node.cc node/src/node.cc
615
- index 6f899ec062..1777a36383 100644
616
+ index 92c5fd8cb6..f550d2b3cb 100644
616
617
  --- node/src/node.cc
617
618
  +++ node/src/node.cc
618
- @@ -351,6 +351,8 @@ MaybeLocal<Value> StartExecution(Environment* env,
619
+ @@ -356,6 +356,8 @@ MaybeLocal<Value> StartExecution(Environment* env,
619
620
  return env->RunSnapshotDeserializeMain();
620
621
  }
621
622
 
@@ -624,7 +625,7 @@ index 6f899ec062..1777a36383 100644
624
625
  if (env->worker_context() != nullptr) {
625
626
  return StartExecution(env, "internal/main/worker_thread");
626
627
  }
627
- @@ -575,14 +577,6 @@ static void PlatformInit(ProcessInitializationFlags::Flags flags) {
628
+ @@ -580,14 +582,6 @@ static void PlatformInit(ProcessInitializationFlags::Flags flags) {
628
629
  }
629
630
 
630
631
  if (!(flags & ProcessInitializationFlags::kNoDefaultSignalHandling)) {
@@ -834,10 +835,10 @@ index 3295121b87..bfe838b8c1 100644
834
835
  + return adjacent(c, nargv);
835
836
  +}
836
837
  diff --git node/src/node_options.cc node/src/node_options.cc
837
- index b7062241d5..6098847b2a 100644
838
+ index 9ccad939f1..ad49b989f2 100644
838
839
  --- node/src/node_options.cc
839
840
  +++ node/src/node_options.cc
840
- @@ -450,6 +450,7 @@ void Parse(
841
+ @@ -474,6 +474,7 @@ void Parse(
841
842
  // TODO(addaleax): Make that unnecessary.
842
843
 
843
844
  DebugOptionsParser::DebugOptionsParser() {
@@ -846,7 +847,7 @@ index b7062241d5..6098847b2a 100644
846
847
  "set host:port for inspector",
847
848
  &DebugOptions::host_port,
848
849
  diff --git node/tools/icu/icu-generic.gyp node/tools/icu/icu-generic.gyp
849
- index f49b4ddba7..eb1e4c0f9b 100644
850
+ index c4e8c6fbb9..b2cba7b56b 100644
850
851
  --- node/tools/icu/icu-generic.gyp
851
852
  +++ node/tools/icu/icu-generic.gyp
852
853
  @@ -52,7 +52,7 @@
@@ -14,7 +14,7 @@ index 406f1d0ba5..fb8eea420d 100644
14
14
  static const char* GetVersion();
15
15
 
16
16
  diff --git node/deps/v8/src/api/api.cc node/deps/v8/src/api/api.cc
17
- index bdb9f715de..bed9acd14b 100644
17
+ index eb3cd7dee2..f5d289c07b 100644
18
18
  --- node/deps/v8/src/api/api.cc
19
19
  +++ node/deps/v8/src/api/api.cc
20
20
  @@ -469,6 +469,28 @@ void V8::SetFlagsFromCommandLine(int* argc, char** argv, bool remove_flags) {
@@ -364,10 +364,10 @@ index 6732808e85..ebb7938f64 100644
364
364
  }
365
365
  }
366
366
  diff --git node/lib/child_process.js node/lib/child_process.js
367
- index 0e3e04af0d..6efe7cfe78 100644
367
+ index ac7188048b..b5db10168f 100644
368
368
  --- node/lib/child_process.js
369
369
  +++ node/lib/child_process.js
370
- @@ -171,7 +171,7 @@ function fork(modulePath, args = [], options) {
370
+ @@ -174,7 +174,7 @@ function fork(modulePath, args = [], options) {
371
371
  throw new ERR_CHILD_PROCESS_IPC_REQUIRED('options.stdio');
372
372
  }
373
373
 
@@ -432,7 +432,7 @@ index 0000000000..a697294fdf
432
432
  + }());
433
433
  +}());
434
434
  diff --git node/lib/internal/modules/cjs/loader.js node/lib/internal/modules/cjs/loader.js
435
- index e1f8a0eed3..9f6dae2d3b 100644
435
+ index f9c4a62f02..557c1023d7 100644
436
436
  --- node/lib/internal/modules/cjs/loader.js
437
437
  +++ node/lib/internal/modules/cjs/loader.js
438
438
  @@ -273,12 +273,15 @@ function stat(filename) {
@@ -445,7 +445,7 @@ index e1f8a0eed3..9f6dae2d3b 100644
445
445
  const result = statCache.get(filename);
446
446
  if (result !== undefined) { return result; }
447
447
  }
448
- - const result = internalFsBinding.internalModuleStat(filename);
448
+ - const result = loaderMethods.internalModuleStat(filename);
449
449
  + const fs = require('fs');
450
450
  + const result = fs.existsSync(origFilename) ?
451
451
  + (fs.statSync(origFilename).isDirectory() ? 1 : 0) : -1;
@@ -453,16 +453,16 @@ index e1f8a0eed3..9f6dae2d3b 100644
453
453
  // Only set cache when `internalModuleStat(filename)` succeeds.
454
454
  statCache.set(filename, result);
455
455
  diff --git node/lib/internal/modules/package_json_reader.js node/lib/internal/modules/package_json_reader.js
456
- index 6c6bf0383b..25db3d9f43 100644
456
+ index ea6b7d2639..fd8cb1a065 100644
457
457
  --- node/lib/internal/modules/package_json_reader.js
458
458
  +++ node/lib/internal/modules/package_json_reader.js
459
- @@ -120,17 +120,20 @@ const requiresJSONParse = (value) => (value !== undefined && (value[0] === '[' |
459
+ @@ -124,17 +124,20 @@ const requiresJSONParse = (value) => (value !== undefined && (value[0] === '[' |
460
460
  * @returns {PackageConfig}
461
461
  */
462
462
  function read(jsonPath, { base, specifier, isESM } = kEmptyObject) {
463
463
  - // This function will be called by both CJS and ESM, so we need to make sure
464
464
  - // non-null attributes are converted to strings.
465
- - const parsed = modulesBinding.readPackageJSON(
465
+ - const parsed = loaderMethods.readPackageJSON(
466
466
  - jsonPath,
467
467
  - isESM,
468
468
  - base == null ? undefined : `${base}`,
@@ -474,13 +474,13 @@ index 6c6bf0383b..25db3d9f43 100644
474
474
  + const fs = require('fs');
475
475
  + let result;
476
476
  + if (fs.existsSync(jsonPath)) {
477
- + const json = JSONParse(fs.readFileSync(jsonPath, { encoding: "utf8" }).trim());
477
+ + const json = JSONParse(fs.readFileSync(jsonPath, { encoding: 'utf8' }).trim());
478
478
  + result = deserializePackageJSON(jsonPath, [
479
- + json['name'],
480
- + json['main'],
481
- + json['type'],
482
- + json['imports'],
483
- + json['exports'],
479
+ + json.name,
480
+ + json.main,
481
+ + json.type,
482
+ + json.imports,
483
+ + json.exports,
484
484
  + ]);
485
485
  + } else {
486
486
  + result = deserializePackageJSON(jsonPath, undefined);
@@ -489,10 +489,10 @@ index 6c6bf0383b..25db3d9f43 100644
489
489
  __proto__: null,
490
490
  ...result.data,
491
491
  diff --git node/lib/internal/process/pre_execution.js node/lib/internal/process/pre_execution.js
492
- index a9724f1e6b..943d6998d2 100644
492
+ index 96c6a5c757..15ca99fc18 100644
493
493
  --- node/lib/internal/process/pre_execution.js
494
494
  +++ node/lib/internal/process/pre_execution.js
495
- @@ -42,7 +42,11 @@ const {
495
+ @@ -44,7 +44,11 @@ const {
496
496
  runDeserializeCallbacks,
497
497
  } = require('internal/v8/startup_snapshot');
498
498
 
@@ -504,17 +504,17 @@ index a9724f1e6b..943d6998d2 100644
504
504
  return prepareExecution({
505
505
  expandArgv1,
506
506
  initializeModules,
507
- @@ -282,7 +286,8 @@ function patchProcessObject(expandArgv1) {
508
- let mainEntry;
509
- // If requested, update process.argv[1] to replace whatever the user provided with the resolved absolute file path of
510
- // the entry point.
511
- - if (expandArgv1 && process.argv[1] && process.argv[1][0] !== '-') {
512
- + if (expandArgv1 && process.argv[1] && process.argv[1][0] !== '-' &&
513
- + process.argv[1] !== 'PKG_DUMMY_ENTRYPOINT') {
507
+ @@ -358,7 +362,8 @@ function patchProcessObject(expandArgv1) {
508
+ // argument was consumed as one: argv[1] is the program's own first argument
509
+ // and expanding it to a path would corrupt it.
510
+ if (expandArgv1 && !getOptionValue('[vfs_load_set]') &&
511
+ - process.argv[1] && process.argv[1][0] !== '-') {
512
+ + process.argv[1] && process.argv[1][0] !== '-' &&
513
+ + process.argv[1] !== 'PKG_DUMMY_ENTRYPOINT') {
514
514
  // Expand process.argv[1] into a full path.
515
515
  const path = require('path');
516
516
  try {
517
- @@ -766,6 +771,7 @@ function loadPreloadModules() {
517
+ @@ -815,6 +820,7 @@ function loadPreloadModules() {
518
518
  // For user code, we preload modules if `-r` is passed
519
519
  const preloadModules = getOptionValue('--require');
520
520
  if (preloadModules && preloadModules.length > 0) {
@@ -545,26 +545,34 @@ index 2c7446af60..95daf7caa1 100644
545
545
  throw e; /* node-do-not-add-exception-line */
546
546
  }
547
547
  diff --git node/src/inspector_agent.cc node/src/inspector_agent.cc
548
- index 5e1d9149dc..1426160ac0 100644
548
+ index 22506e26b3..9b7b6beb7f 100644
549
549
  --- node/src/inspector_agent.cc
550
550
  +++ node/src/inspector_agent.cc
551
- @@ -858,11 +858,6 @@ bool Agent::Start(const std::string& path,
552
- StartIoThreadAsyncCallback));
553
- uv_unref(reinterpret_cast<uv_handle_t*>(&start_io_thread_async));
554
- start_io_thread_async.data = this;
555
- - if (parent_env_->should_start_debug_signal_handler()) {
556
- - // Ignore failure, SIGUSR1 won't work, but that should not block node
557
- - // start.
558
- - StartDebugSignalHandler();
559
- - }
560
-
561
- parent_env_->AddCleanupHook([](void* data) {
562
- Environment* env = static_cast<Environment*>(data);
551
+ @@ -872,8 +872,7 @@ bool Agent::Start(const std::string& path,
552
+ host_port_ = host_port;
553
+
554
+ client_ = std::make_shared<NodeInspectorClient>(parent_env_, is_main);
555
+ - if (parent_env_->owns_inspector() &&
556
+ - parent_env_->should_start_debug_signal_handler()) {
557
+ + if (parent_env_->owns_inspector()) {
558
+ start_io_thread_async_ = new uv_async_t;
559
+ start_io_thread_async_->data = this;
560
+ CHECK_EQ(0,
561
+ @@ -888,9 +887,6 @@ bool Agent::Start(const std::string& path,
562
+ start_io_thread_agents.push_back(this);
563
+ }
564
+ parent_env_->AddCleanupHook(StopAcceptingIoThreadStartsHook, this);
565
+ - // Ignore failure, SIGUSR1 won't work, but that should not block node
566
+ - // start.
567
+ - StartDebugSignalHandler();
568
+ }
569
+
570
+ AtExit(parent_env_, [](void* env) {
563
571
  diff --git node/src/node.cc node/src/node.cc
564
- index 4ba019ddca..b30d716a41 100644
572
+ index 163070b501..78bc5cf490 100644
565
573
  --- node/src/node.cc
566
574
  +++ node/src/node.cc
567
- @@ -351,6 +351,8 @@ MaybeLocal<Value> StartExecution(Environment* env,
575
+ @@ -357,6 +357,8 @@ MaybeLocal<Value> StartExecution(Environment* env,
568
576
  return env->RunSnapshotDeserializeMain();
569
577
  }
570
578
 
@@ -573,7 +581,7 @@ index 4ba019ddca..b30d716a41 100644
573
581
  if (env->worker_context() != nullptr) {
574
582
  return StartExecution(env, "internal/main/worker_thread");
575
583
  }
576
- @@ -575,14 +577,6 @@ static void PlatformInit(ProcessInitializationFlags::Flags flags) {
584
+ @@ -588,14 +590,6 @@ static void PlatformInit(ProcessInitializationFlags::Flags flags) {
577
585
  }
578
586
 
579
587
  if (!(flags & ProcessInitializationFlags::kNoDefaultSignalHandling)) {
@@ -589,7 +597,7 @@ index 4ba019ddca..b30d716a41 100644
589
597
  }
590
598
 
591
599
  diff --git node/src/node_contextify.cc node/src/node_contextify.cc
592
- index dcfaf02c7e..5d1f63a4a8 100644
600
+ index 2c06a363b1..7b65e6bf9f 100644
593
601
  --- node/src/node_contextify.cc
594
602
  +++ node/src/node_contextify.cc
595
603
  @@ -88,6 +88,7 @@ using v8::String;
@@ -600,7 +608,7 @@ index dcfaf02c7e..5d1f63a4a8 100644
600
608
 
601
609
  // This is a helper function mediates deleted v8::PropertyDescriptor copy/move.
602
610
  // The `Fn` receives a mutable reference of a stack allocated
603
- @@ -983,13 +984,13 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
611
+ @@ -985,13 +986,13 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
604
612
  Local<ArrayBufferView> cached_data_buf;
605
613
  bool produce_cached_data = false;
606
614
  Local<Context> parsing_context = context;
@@ -617,7 +625,7 @@ index dcfaf02c7e..5d1f63a4a8 100644
617
625
  CHECK(args[2]->IsNumber());
618
626
  line_offset = args[2].As<Int32>()->Value();
619
627
  CHECK(args[3]->IsNumber());
620
- @@ -1010,6 +1011,11 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
628
+ @@ -1012,6 +1013,11 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
621
629
  }
622
630
  CHECK(args[7]->IsSymbol());
623
631
  id_symbol = args[7].As<Symbol>();
@@ -629,7 +637,7 @@ index dcfaf02c7e..5d1f63a4a8 100644
629
637
  }
630
638
 
631
639
  ContextifyScript* contextify_script = New(env, args.This());
632
- @@ -1056,6 +1062,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
640
+ @@ -1058,6 +1064,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
633
641
  ShouldNotAbortOnUncaughtScope no_abort_scope(env);
634
642
  Context::Scope scope(parsing_context);
635
643
 
@@ -640,7 +648,7 @@ index dcfaf02c7e..5d1f63a4a8 100644
640
648
  MaybeLocal<UnboundScript> maybe_v8_script =
641
649
  ScriptCompiler::CompileUnboundScript(isolate, &source, compile_options);
642
650
 
643
- @@ -1070,6 +1080,12 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
651
+ @@ -1072,6 +1082,12 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
644
652
  return;
645
653
  }
646
654
 
@@ -653,7 +661,7 @@ index dcfaf02c7e..5d1f63a4a8 100644
653
661
  contextify_script->set_unbound_script(v8_script);
654
662
 
655
663
  std::unique_ptr<ScriptCompiler::CachedData> new_cached_data;
656
- @@ -1082,7 +1098,7 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
664
+ @@ -1084,7 +1100,7 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
657
665
  if (contextify_script->object()
658
666
  ->SetPrivate(context, env->host_defined_option_symbol(), id_symbol)
659
667
  .IsNothing()) {
@@ -662,7 +670,7 @@ index dcfaf02c7e..5d1f63a4a8 100644
662
670
  }
663
671
  if (StoreCodeCacheResult(env,
664
672
  self,
665
- @@ -1093,6 +1109,9 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
673
+ @@ -1095,6 +1111,9 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
666
674
  .IsNothing()) {
667
675
  return;
668
676
  }
@@ -783,10 +791,10 @@ index 3295121b87..bfe838b8c1 100644
783
791
  + return adjacent(c, nargv);
784
792
  +}
785
793
  diff --git node/src/node_options.cc node/src/node_options.cc
786
- index b0ddfb9eb9..9c83f88bf8 100644
794
+ index c80ef56390..7aa858f51c 100644
787
795
  --- node/src/node_options.cc
788
796
  +++ node/src/node_options.cc
789
- @@ -466,6 +466,7 @@ void Parse(
797
+ @@ -631,6 +631,7 @@ void Parse(
790
798
  // TODO(addaleax): Make that unnecessary.
791
799
 
792
800
  DebugOptionsParser::DebugOptionsParser() {
@@ -795,7 +803,7 @@ index b0ddfb9eb9..9c83f88bf8 100644
795
803
  "set host:port for inspector",
796
804
  &DebugOptions::host_port,
797
805
  diff --git node/tools/icu/icu-generic.gyp node/tools/icu/icu-generic.gyp
798
- index f49b4ddba7..eb1e4c0f9b 100644
806
+ index c4e8c6fbb9..b2cba7b56b 100644
799
807
  --- node/tools/icu/icu-generic.gyp
800
808
  +++ node/tools/icu/icu-generic.gyp
801
809
  @@ -52,7 +52,7 @@
@@ -1,7 +1,7 @@
1
1
  {
2
- "v26.5.1": ["node.v26.5.1.cpp.patch"],
3
- "v24.18.1": ["node.v24.18.1.cpp.patch"],
4
- "v22.23.2": ["node.v22.23.2.cpp.patch"],
2
+ "v26.12.1": ["node.v26.12.1.cpp.patch"],
3
+ "v24.22.1": ["node.v24.22.1.cpp.patch"],
4
+ "v22.23.4": ["node.v22.23.4.cpp.patch"],
5
5
  "v20.20.2": ["node.v20.20.2.cpp.patch"],
6
6
  "v18.20.8": ["node.v18.20.8.cpp.patch"],
7
7
  "v16.20.2": ["node.v16.20.2.cpp.patch"],