GeezerVison is showing github.com — 2026-08-05, Version 26.7.0 (Current) by github-actions[bot] · Pull Request #65027 · nodejs/node
Conversation
github-actions
Bot
commented
Aug 4, 2026
•
edited by aduh95
Loading
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
bricss reacted with thumbs up emoji
bricss reacted with hooray emoji
bricss reacted with heart emoji
bricss reacted with rocket emoji
All reactions
-
👍
1 reaction
-
🎉
1 reaction
-
❤️
1 reaction
-
🚀
1 reaction
Cut several sources of per-stream/per-request overhead on the hot
path:
- Track 'priority'/'frameError' stream listeners by overriding the
EventEmitter methods on Http2Stream instead of subscribing to
'newListener'/'removeListener', which made every listener add and
remove on every stream emit an extra tracking event.
- Replace the per-call SafeSet and sensitive-header mapping in
buildNgHeaderString with a lazily allocated array and an
empty-array fast path, and skip the HTTP token regex and
connection-specific header checks for well-known single-value
header names.
- Replace per-call closures with shared named handlers in
onStreamClose, afterShutdown and Http2Stream._destroy.
- Skip the pendingStreams Set add/delete for streams that are
created with their native handle already available (all server
streams).
- Hoist the per-request onStreamTimeout closure factories in the
compat layer to module-level handlers, and avoid a once() wrapper
allocation per server stream.
h2load, 1 KiB response payload, -c 4 -m 100, mean of 6 alternating
runs: core API 60.2k -> 69.3k req/s (+15%), compat API 43.6k ->
46.2k req/s (+5.9%).
Signed-off-by: Matteo Collina <[email protected]>
PR-URL: #64265
Backport-PR-URL: #64663
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Tim Perry <[email protected]>
Reviewed-By: Ethan Arrowood <[email protected]>
Every _write()/_writev() on an Http2Stream allocated four closures
and an anonymous nextTick callback to coordinate the write callback
with the end-of-stream check. Since the stream machinery dispatches
at most one write at a time, that coordination state can live on the
stream's kState object instead, with shared named functions for the
end check and completion logic.
When trailers are pending the writable side cannot be shut down
early anyway, so the end-of-stream check tick is now skipped
entirely for those writes.
Also pre-initialize the kState fields that used to be added
dynamically (shutdownWritableCalled, fd) so hot-path stores no
longer transition the object shape.
h2load, 1 KiB response payload, -c 4 -m 100, mean of 6 alternating
runs vs main: core API 61.0k -> 70.7k req/s (+15.9% cumulative),
compat API 43.7k -> 50.4k req/s (+15.3% cumulative).
Signed-off-by: Matteo Collina <[email protected]>
PR-URL: #64265
Backport-PR-URL: #64663
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Tim Perry <[email protected]>
Reviewed-By: Ethan Arrowood <[email protected]>
respond() copied the user-provided options object on every call just
so it could normalize and locally flip options.endStream, and
prepareResponseHeadersObject() then looked the :status and date
fields up again on the dictionary-mode null-prototype headers copy
it had just built. Use a local variable for endStream and pick up
:status/date while copying the headers instead.
No measurable throughput change on its own; this removes an object
clone and several dictionary-mode property lookups per response.
Signed-off-by: Matteo Collina <[email protected]>
PR-URL: #64265
Backport-PR-URL: #64663
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Tim Perry <[email protected]>
Reviewed-By: Ethan Arrowood <[email protected]>
Every string-named JavaScript channel consumed an entry in the fixed
native subscriber array. Creating more than 1,024 channels triggered a
CHECK and terminated the process.
Allocate slots only for native publishers and grow the aliased buffer
when it fills. Refresh the JavaScript view after resizing and preserve
the capacity in snapshots.
Signed-off-by: Stephen Belanger <[email protected]>
PR-URL: #64497
Reviewed-By: Rafael Gonzaga <[email protected]>
Reviewed-By: Gerhard Stöbich <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Validate narrow integer and 64-bit BigInt arguments before entering
the Fast API trampoline. This prevents out-of-range values from being
silently truncated or wrapped and matches the generic FFI path.
Signed-off-by: Kamat, Trivikram <[email protected]>
Assisted-by: openai:gpt-5.6-sol
PR-URL: #64614
Fixes: #64613
Reviewed-By: Paolo Insogna <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Normalize bool to kUint8 when creating Fast API metadata. This keeps
optimized calls consistent with generic FFI behavior, including numeric
return values and rejection of JavaScript Boolean values.
Signed-off-by: Kamat, Trivikram <[email protected]>
Assisted-by: openai:gpt-5.6-sol
PR-URL: #64527
Fixes: #64526
Reviewed-By: Paolo Insogna <[email protected]>
When sqlite3_exec() or sqlite3changeset_apply() call JavaScript
callbacks (user-defined functions, conflict handlers, or filter
callbacks), the DatabaseSync object could be garbage-collected
if the JavaScript code drops all references to it. Both methods
only held a raw DatabaseSync* pointer on the C++ stack, which
V8 GC does not track.
Add a BaseObjectPtr<DatabaseSync> guard that keeps the database
alive for the duration of these SQLite API calls, preventing a
use-after-free when the JavaScript callback triggers GC.
Signed-off-by: Matteo Collina <[email protected]>
PR-URL: #64535
Reviewed-By: Edy Silva <[email protected]>
Reviewed-By: Stephen Belanger <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: René <[email protected]>
Cache temporary string conversion buffers by wrapper and active call
depth. This prevents nested FFI calls from overwriting or replacing
buffers still in use by an outer native call.
Signed-off-by: Kamat, Trivikram <[email protected]>
Assisted-by: openai:gpt-5.6-sol
PR-URL: #64551
Fixes: #64550
Reviewed-By: Paolo Insogna <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
`http.request({ highWaterMark })` passes the value to the TCP socket
via createConnection() but does not set it on the OutgoingMessage
internal kHighWaterMark. OutgoingMessage._writeRaw() has two mutually
exclusive write paths:
Path A (socket connected): conn.write() — uses socket HWM ✓
Path B (no socket yet): outputSize < this[kHighWaterMark] — uses
OutgoingMessage own default (64 KB) ✗
Because the OutgoingMessage constructor already accepts
options.highWaterMark, the fix is to set kHighWaterMark from the
user options after they are parsed in the ClientRequest constructor.
This resolves two symptoms:
1. write() returning the wrong boolean for pre-socket writes (the
user highWaterMark was silently ignored on all Node versions).
2. A deadlock on Node >= 24.16.0 where the incorrect false return
sets kNeedDrain, but drain never fires because the socket was
never backpressured (introduced by the stricter drain gate in
#62936).
Signed-off-by: Naman Trivedi <[email protected]>
Fixes: #64645
Refs: #62936
PR-URL: #64653
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Tim Perry <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
pledgedSrcSize represents an exact byte count. Reject values that are
not non-negative safe integers instead of silently ignoring or coercing
them through IntegerValue().
Apply the same validation to zlib/iter and retain a native validation
check for internal callers.
Signed-off-by: Archkon <[email protected]>
PR-URL: #64604
Fixes: #64603
Reviewed-By: Ethan Arrowood <[email protected]>
Reviewed-By: Jan Martin <[email protected]>
Speed up Interface construction:
- Hoist the history accessor property descriptors to module scope and
define them with a single ObjectDefineProperties call, instead of
allocating six closures and four descriptor objects per instance.
- Stop assigning the history options onto the input stream. This avoids
hidden class transitions on the user provided stream and no longer
mutates it observably.
- Only check process.env.TERM for a dumb terminal when the interface is
in terminal mode. Reading process.env goes through the environment
interceptor and is comparatively expensive, and _ttyWrite is never
called when terminal is false.
Signed-off-by: Matteo Collina <[email protected]>
PR-URL: #64585
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rafael Gonzaga <[email protected]>
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Gürgün Dayıoğlu <[email protected]>
StringBytes::StorageSize had a CHECK that fatal-asserted when a
hex-encoded string with an odd number of characters was written
through Writev (e.g. via HTTP requests which are automatically
corked). Writing the same string via a single Write did not crash
because StringBytes::Write delegates to HexDecode, which silently
drops the trailing incomplete nibble.
Remove the CHECK and let integer division handle odd lengths, which
is consistent with StringBytes::Size and HexDecode.
Fixes: #45150
Signed-off-by: RajeshKumar11 <[email protected]>
PR-URL: #63658
Reviewed-By: Edy Silva <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Gürgün Dayıoğlu <[email protected]>
`TestOptions` as provided to `node:test`'s `test`/`it` supports both
`name` and `fn` as options per its implementation.
I'd like to formalize this as part of the public, documented API.
### Motivation
I have a use-case for consuming both fields. I'd like to be able to
return the result of a function to `test`/`it` without needing to spread
the parameters; e.g.:
```js
const testOptionsFactory = (opts = {}) => {
return {
fn: () => { /* .. */ },
name: opts.name
};
};
test(testOptionsFactory({name: 'foo'}));
```
If I cannot rely on this behavior, then I would need to instead return
an array of parameters and spread them:
```js
const testParamsFactory = (opts = {}) => {
return opts.name !== undefined
? [opts.name, () => { /* .. */ }] : [() => { /* .. */ }];
};
test(...testParamsFactory({name: 'foo'}));
```
I don't think it's too terribly controversial that the former is more
ergonomic than the latter.
### Next Steps
Once this lands, I plan to propose the addition of these fields to
`@types/node`. Since the fields are not currently publicly documented, I
can't justify such a change.
Signed-off-by: Christopher Hiller <[email protected]>
PR-URL: #64946
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ruy Adorno <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Chemi Atlow <[email protected]>
Pass the stream-wide signal reason directly to writer.fail() so valid
non-Error abort reasons are not replaced with an AbortError.
Signed-off-by: Kamat, Trivikram <[email protected]>
Assisted-by: codex:gpt-5.6-sol
PR-URL: #64798
Fixes: #64797
Reviewed-By: Aviv Keller <[email protected]>
Only emit 'finish' and set writableFinished once all data has actually
been flushed successfully. end() callbacks now report the outcome like
stream.Writable: called with null on finish, or with the error that
prevented the flush.
Signed-off-by: Tim Perry <[email protected]>
PR-URL: #64847
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
readableStreamPipeTo allocated, for every chunk written to the
destination, a { promise, resolve, reject } write request record that
it immediately marked as handled, and drove its loop with an async
step()/run() pair whose implicit promises cost one allocation and one
reaction per iteration. The parked-read path additionally allocated a
read request object, a PromiseWithResolvers record, and a microtask
closure per chunk; this is the steady state for pipeThrough, since a
TransformStream's readable side has a high water mark of zero.
Replace the per-write records with a single per-pipe tracker that the
write request queue holds once per pending write and whose
resolve()/reject() methods maintain a pending-write count, drive the
pump loop with plain callbacks instead of async functions, and reuse
one read request and one forwarding function across all chunks, the
same pattern tee uses since c543cfb.
Benchmark results (benchmark/compare.js --runs 20):
webstreams/pipe-to.js +29.9% to +35.8% across all 16 configurations
(all 99.9% confidence); a pipeThrough(TransformStream) passthrough
loop improves ~17%; every other webstreams benchmark is unchanged.
Signed-off-by: Matteo Collina <[email protected]>
PR-URL: #64890
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Yagiz Nizipli <[email protected]>
Notable changes:
crypto:
* (SEMVER-MINOR) support loading private keys through STORE loaders (Filip Skokan) #63949
* update root certificates to NSS 3.125 (Node.js GitHub Bot) #64746
lib:
* (SEMVER-MINOR) add perfetto support (Chengzhong Wu) #64565
module:
* (SEMVER-MINOR) implement `Symbol.dispose` in ModuleHooks (Remco Haszing) #63928
test_runner:
* (SEMVER-MINOR) add support for `--test-coverage-include-all` (avivkeller) #64830
PR-URL: #65027
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| Platform |
Number of requisites |
Proportion of new derivations |
x86_64-linux |
451 -> 455 => +4 |
4 / 455 = 0.8% |
aarch64-linux |
452 -> 456 => +4 |
4 / 456 = 0.8% |
x86_64-darwin |
388 -> 394 => +6 |
6 / 394 = 1.5% |
aarch64-darwin |
390 -> 396 => +6 |
6 / 396 = 1.5% |
| Total |
1681 -> 1701 => +20 |
20 / 1701 = 1.1% |
Changelog
@@ -680,0 +681 @@
+/nix/store/w83dnbrd7w2cvp8pvz5agf228dpkifxg-libtasn1-4.21.0 (aarch64-darwin)
@@ -681,0 +683 @@
+/nix/store/mwk2dssjyq3491nxpwizxnjf41cyjx4q-libtasn1-4.21.0 (x86_64-darwin)
@@ -1006,0 +1009,4 @@
+/nix/store/407rcl1ig0bk39cnk4hfflz2d7mr99dd-node-pkcs11-softhsm (aarch64-darwin)
+/nix/store/4d4lx7dllq1hss55la64lv4bfxlnc42x-node-pkcs11-softhsm (aarch64-linux)
+/nix/store/457f6kv5bgidlmsd0ggf41ggmqi89n6f-node-pkcs11-softhsm (x86_64-darwin)
+/nix/store/97jwl9hn3v9v7zpp033j3lcga7l31p38-node-pkcs11-softhsm (x86_64-linux)
@@ -1162,0 +1169,5 @@
+/nix/store/kcmiw9pa978fxafx91zwaz00cqlp1xsx-openssl-pkcs11.cnf (aarch64-darwin)
+/nix/store/dgjvcxm092jg9vsgfgf6m2i4mv9jln3c-openssl-pkcs11.cnf (aarch64-linux)
+/nix/store/8d925514nm15fw85li0zz0p7xrvj2gdp-openssl-pkcs11.cnf (x86_64-darwin)
+/nix/store/smzplbiai84y5fwgm55s00wh13p24f53-openssl-pkcs11.cnf (x86_64-linux)
+/nix/store/s2ljy8yv2qq563cybsmh5im8bjj0k8w6-p11-kit-0.26.2 (aarch64-darwin)
@@ -1163,0 +1175 @@
+/nix/store/sf6izqsd0wmgp81f1v8rqlfjd9dgz9lg-p11-kit-0.26.2 (x86_64-darwin)
@@ -1342,0 +1355,4 @@
+/nix/store/jhz3vfw8xz0rsmmzrq9i9w7fnvqhk1va-pkcs11-provider-1.2.0 (aarch64-darwin)
+/nix/store/9gwms4rd38922mz4rmn6ifc881381rdc-pkcs11-provider-1.2.0 (aarch64-linux)
+/nix/store/d28w0csy6w0x63bb0xd25rdy1qm0gf72-pkcs11-provider-1.2.0 (x86_64-darwin)
+/nix/store/aqvj16b1lbc8n35shw1yrcna97g2wk7n-pkcs11-provider-1.2.0 (x86_64-linux)
@@ -1516,0 +1533,4 @@
+/nix/store/v1yij4ymgqg86z3n5za11hwsgwamsqmh-softhsm-2.7.0 (aarch64-darwin)
+/nix/store/y9si5nxih0hiv339ab8aj2l04yqhxyzs-softhsm-2.7.0 (aarch64-linux)
+/nix/store/z0gbwg8b52nh3cb2bhfpckrw8d1pq5n6-softhsm-2.7.0 (x86_64-darwin)
+/nix/store/k0qxy12sj3vqissm8xqfgg82zi1rgi78-softhsm-2.7.0 (x86_64-linux)
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Not that it really matters to me, just thought it was interesting that some commits in the PR description use full name (Aviv Keller, for instance), and others use username (avivkeller, for instance)
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
aduh95
commented
Aug 5, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
avivkeller reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
aduh95
added a commit
that referenced
this pull request
Aug 5, 2026
Notable changes:
crypto:
* (SEMVER-MINOR) support loading private keys through STORE loaders (Filip Skokan) #63949
* update root certificates to NSS 3.125 (Node.js GitHub Bot) #64746
lib:
* (SEMVER-MINOR) add perfetto support (Chengzhong Wu) #64565
module:
* (SEMVER-MINOR) implement `Symbol.dispose` in ModuleHooks (Remco Haszing) #63928
test_runner:
* (SEMVER-MINOR) add support for `--test-coverage-include-all` (avivkeller) #64830
PR-URL: #65027
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
2 similar comments
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
Reviewers
aduh95
aduh95 approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Labels
release
Issues and PRs related to Node.js releases.
v26.x
Issues that can be reproduced on v26.x or PRs targeting the v26.x-staging branch.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|