pkg-fetch/patches
github-actions[bot] 4ae27c5c2a
feat: add v24.10.0 patch (#120)
## Node.js Patch Update to v24.10.0

This PR updates the Node.js patch to version 24.10.0.

The workflow automatically attempts to resolve patch conflicts using AI
when the OpenAI API key is available.
                 
### AI Resolution Details
Processing section 1/1 for ./src/node_contextify.cc...
Found 1 reject files to process
Processing: ./src/node_contextify.cc.rej -> ./src/node_contextify.cc
Prompt for OpenAI API:
I have a Git patch that failed to apply. Here's the specific section
that needs to be fixed:

REJECTED PATCH HUNK:
```
@@ -1118,6 +1134,10 @@
           .IsNothing())
     return;
 
+  if (sourceless && produce_cached_data) {
+    V8::DisableCompilationForSourcelessUse();
+  }
+
   TRACE_EVENT_END0(TRACING_CATEGORY_NODE2(vm, script), "ContextifyScript::New");
 }
 
```

CURRENT FILE SECTION (lines 1113-1128):
```
    return;
  }
  if (StoreCodeCacheResult(env,
                           self,
                           compile_options,
                           source,
                           produce_cached_data,
                           std::move(new_cached_data))
          .IsNothing()) {
    return;
  }
  if (self->Set(env->context(),
                env->source_url_string(),
                v8_script->GetSourceURL())
          .IsNothing()) {
    return;
```

Please apply the intended changes from the rejected hunk to this file
section. Return ONLY the corrected file section content, preserving the
exact line structure and formatting. Do not add explanations or markdown
formatting.
RESOLVED CONTENT for ./src/node_contextify.cc:
```
return;
  }
  if (StoreCodeCacheResult(env,
                           self,
                           compile_options,
                           source,
                           produce_cached_data,
                           std::move(new_cached_data))
          .IsNothing()) {
    return;
  }
  if (sourceless && produce_cached_data) {
    V8::DisableCompilationForSourcelessUse();
  }
  if (self->Set(env->context(),
                env->source_url_string(),
                v8_script->GetSourceURL())
          .IsNothing()) {
    return;
```
 Successfully resolved ./src/node_contextify.cc
CONFLICTS_RESOLVED=1
TOTAL_CONFLICTS=1
HAS_UNRESOLVED=False
Resolution summary: 1/1 conflicts resolved

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Daniel Lando <daniel.sorridi@gmail.com>
2025-10-14 10:02:24 +02:00
..
node.v8.17.0.cpp.patch add v8.17.0 2020-06-28 01:41:17 +03:00
node.v10.24.1.cpp.patch Add applyPatches script and some basic patch documentation (#251) 2023-01-27 20:09:06 -06:00
node.v12.22.11.cpp.patch patches: bump to 12.22.11, 14.19.1, 16.14.2, 17.8.0 2022-03-28 11:17:34 -07:00
node.v14.21.3.cpp.patch patches: bump to 14.21.3, 16.19.1, 18.14.1, and 19.6.1 (#277) 2023-02-17 20:42:45 +01:00
node.v16.20.2.cpp.patch fix: patches for arm64 (#15) 2024-01-03 10:06:50 +01:00
node.v18.20.8.cpp.patch feat: add v18.20.8 patch (#76) 2025-03-28 08:37:51 +01:00
node.v20.19.5.cpp.patch feat: add v20.19.5 patch (#109) 2025-09-04 17:29:39 +02:00
node.v22.20.0.cpp.patch feat: add v22.20.0 patch (#114) 2025-10-14 10:01:30 +02:00
node.v24.10.0.cpp.patch feat: add v24.10.0 patch (#120) 2025-10-14 10:02:24 +02:00
patches.json feat: add v24.10.0 patch (#120) 2025-10-14 10:02:24 +02:00