Commit Graph
46705 Commits
Author SHA1 Message Date
Antoine du Hamel 5e2b4c4ade stream: fix lint error
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/63598
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Mattias Buelens <mattias@buelens.com>
2026-08-06 11:33:05 +02:00
Trivikram Kamat 74bd0cd35a stream: reject pending reads on iterator throw
Settle reads that are already waiting when a push stream iterator is
returned or thrown. This prevents next() promises from hanging after
consumer cancellation.

Fixes: https://github.com/nodejs/node/issues/63554

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63555
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63554
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2026-08-06 11:33:04 +02:00
Trivikram Kamat 45780df841 stream: wait for push writer end fallback to drain
When endSync() returns -1 after buffered writes, a follow-up end()
should stay pending until the readable side drains the queued data.

Do not make duplex channel close() wait for that drain, since close()
only needs to signal EOF to the peer. Waiting there can deadlock when
the peer starts reading only after close() resolves.

Fixes: https://github.com/nodejs/node/issues/63502

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63503
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63502
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2026-08-06 11:33:03 +02:00
Trivikram Kamat 217b495e0a stream: flush each fused stateless transform
Ensure consecutive stateless stream/iter transforms each receive a
final null flush after upstream flush output has been processed.

Fixes: https://github.com/nodejs/node/issues/63467

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63468
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63467
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2026-08-06 11:33:03 +02:00
Trivikram Kamat 2e8685592e stream: avoid duplicate writes in toWritable
PushWriter can return false after accepting a chunk when block
backpressure is active. Teach the classic Writable adapter to treat
that case as accepted backpressure instead of retrying through the
async write path.

Fixes: https://github.com/nodejs/node/issues/63359

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63360
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63359
Reviewed-By: James M Snell <jasnell@gmail.com>
2026-08-06 11:33:02 +02:00
Trivikram Kamat 88a3392a78 stream: propagate abort reason in share and broadcast
Pass signal.reason to the multi-consumer cancel paths so signal abort
is reported as AbortError instead of clean iterator completion.

Also make detached share consumers rethrow a stored source error when
they resume after cancellation, preserving the abort reason for pending
pulls.

Fixes: https://github.com/nodejs/node/issues/63357

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63358
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63357
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2026-08-06 11:33:02 +02:00
René fce3df74e9 stream: disallow writing string chunk with 'buffer' encoding
Signed-off-by: Renegade334 <contact.9a5d6388@renegade334.me.uk>
PR-URL: https://github.com/nodejs/node/pull/63062
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Refs: https://github.com/nodejs/node/pull/33075
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2026-08-06 11:33:01 +02:00
ikeyan 5658c631fa stream: align Readable.toWeb termination with eos
PR-URL: https://github.com/nodejs/node/pull/62394
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Mattias Buelens <mattias@buelens.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2026-08-06 11:33:01 +02:00
Antoine du Hamel cc425bc659 doc: fix promise nomenclature in stream_iter.md
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/63406
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2026-08-06 11:33:00 +02:00
Trivikram Kamat b022a1419c benchmark: respect stream/iter broadcast backpressure
Only decrement the remaining byte count after a stream/iter broadcast
write is accepted. If writeSync() is blocked by strict backpressure,
fall back to the async write() path for the same chunk.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63314
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2026-08-06 11:33:00 +02:00
Trivikram Kamat 02a51a746b stream: add sync iterable fast path to pipeTo
Avoid normalizing sync iterable sources through from() when pipeTo()
has no transforms or signal and the writer can accept sync writes.
This keeps writes incremental while preserving async fallback for
values that still need it.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63318
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
2026-08-06 11:32:59 +02:00
Trivikram Kamat 4c9f3edb64 stream: fix merge handling for object-like sources
merge() treated any final non-iterable object as an options object.
That dropped valid from() inputs such as ArrayBuffer, ArrayBufferView,
and streamable protocol objects.

Fixes: https://github.com/nodejs/node/issues/63355

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63356
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63355
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
2026-08-06 11:32:59 +02:00
Trivikram Kamat c50d8e49cc stream: limit iter from sync iterable batches
Bound sync iterable normalization in from() and fromSync() to
FROM_BATCH_SIZE. This avoids unbounded batches for from() sync
iterable fallbacks and lets fromSync() coalesce plain Uint8Array
values for writev paths.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63324
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
2026-08-06 11:32:58 +02:00
Trivikram Kamat 1d7c86d577 stream: cache minimum cursor count in broadcast
Track how many broadcast consumers share the cached minimum cursor,
matching the share implementation. This lets buffer trimming avoid
calling getMinCursor() until the last minimum-cursor consumer
advances or detaches. Add coverage for fan-out trimming behavior.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63322
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
2026-08-06 11:32:58 +02:00
Trivikram Kamat ec2666edbe stream: avoid retrying accepted pipeTo writes
PushWriter in block backpressure mode can return false from writeSync()
and writevSync() after accepting data. Treat that false return as
backpressure and wait for drain instead of retrying the same chunks
asynchronously.

Fixes: https://github.com/nodejs/node/issues/63296

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63297
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63296
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
2026-08-06 11:32:57 +02:00
Trivikram Kamat f63143fd83 stream: validate broadcast writer writev chunks
Validate BroadcastWriter writev() and writevSync() inputs before
converting chunks so non-array values throw ERR_INVALID_ARG_TYPE.

Fixes: https://github.com/nodejs/node/issues/63299

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63300
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63299
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
2026-08-06 11:32:57 +02:00
Trivikram Kamat 944470b08a stream: uncork fromWritable writev on chunk error
Ensure fromWritable().writev() uncorks the wrapped Writable when
converting a later chunk throws. This prevents an internal cork from
leaking after ERR_INVALID_ARG_TYPE.

Fixes: https://github.com/nodejs/node/issues/63294

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63295
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63294
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
2026-08-06 11:32:56 +02:00
Trivikram Kamat ae79f2b67a stream: validate fromWritable() options before cache
Validate options before returning a cached fromWritable() adapter so
invalid later options still throw.

Cache adapters by backpressure policy as well as Writable instance,
since the policy changes write behavior.

Fixes: https://github.com/nodejs/node/issues/63277

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63278
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63277
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
2026-08-06 11:32:56 +02:00
Trivikram Kamat c98cc67f33 stream: optimize single-slot push queue drain
Avoid allocating a new result array when PushQueue drains a single
queued slot. Return that slot directly and keep the existing flattening
path for multiple queued slots.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63274
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
2026-08-06 11:32:55 +02:00
Trivikram Kamat 9a45ff5d8f stream: preserve toReadableSync batch after backpressure
Keep the current batch and index across _read() calls so chunks that
remain after push() returns false are emitted on later reads.

Fixes: https://github.com/nodejs/node/issues/63275

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63276
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Fixes: https://github.com/nodejs/node/issues/63275
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2026-08-06 11:32:54 +02:00
Trivikram Kamat eb72fe94fc stream: cache minimum cursor count in share
Track the number of consumers at the cached minimum cursor in share()
so the minimum is only recomputed when the last consumer at that cursor
advances or detaches.

This avoids scanning every consumer on each trim attempt when multiple
consumers advance through a shared buffer.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63262
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
2026-08-06 11:32:54 +02:00
René b57b51eeed stream: minor stream/iter implementation edits
Signed-off-by: Renegade334 <contact.9a5d6388@renegade334.me.uk>
PR-URL: https://github.com/nodejs/node/pull/63132
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2026-08-06 11:32:53 +02:00
René 274b3a2ea1 stream: remove redundant method check from iter.pipeToSync
Signed-off-by: Renegade334 <contact.9a5d6388@renegade334.me.uk>
PR-URL: https://github.com/nodejs/node/pull/63099
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2026-08-06 11:32:53 +02:00
René 859a02da96 doc: minor structural stream/iter edits
Signed-off-by: Renegade334 <contact.9a5d6388@renegade334.me.uk>
PR-URL: https://github.com/nodejs/node/pull/63089
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2026-08-06 11:32:52 +02:00
Daijiro Wachi 630b15eb20 doc: fix doubled word typo in stream_iter.md
PR-URL: https://github.com/nodejs/node/pull/62916
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2026-08-06 11:32:52 +02:00
James M Snell baf98faa06 stream: add stream/iter to classic stream adapters
Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Opencode/Opus 4.6
PR-URL: https://github.com/nodejs/node/pull/62469
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Robert Nagy <ronagy@icloud.com>
2026-08-06 11:32:51 +02:00
James M Snell a290f51f15 benchmark: add benchmarks for experimental stream/iter
Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-By: Claude/Opus 4.6
PR-URL: https://github.com/nodejs/node/pull/62066
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2026-08-06 11:32:51 +02:00
James M Snell 14c547351b test: add tests for experimental stream/iter implementation
Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-By: Claude/Opus 4.6
PR-URL: https://github.com/nodejs/node/pull/62066
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2026-08-06 11:32:50 +02:00
James M Snell 28dc85d8d2 stream: add stream/iter Implementation
Experimental implementation of https://stream-iter.jasnell.me/

Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-By: Claude/Opus 4.6
PR-URL: https://github.com/nodejs/node/pull/62066
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2026-08-06 11:32:50 +02:00
Anna Henningsen fbb3960189 src: show original file name in FileHandle GC close errors
Otherwise, it can be virtually impossible to debug where these types
of errors originate from.

PR-URL: https://github.com/nodejs/node/pull/60593
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2026-08-06 11:32:49 +02:00
SRAVANI GUNDEPALLI 2cc54e1793 test: skip quic tests that IBM i does not support
PR-URL: https://github.com/nodejs/node/pull/60160
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2026-08-06 11:32:49 +02:00
James M Snell 54c094d245 quic: continue working on quic api bits
PR-URL: https://github.com/nodejs/node/pull/60123
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
2026-08-06 11:32:48 +02:00
Node.js GitHub Bot 080c4d7cda deps: update ngtcp2 to 1.22.0
PR-URL: https://github.com/nodejs/node/pull/62595
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
2026-08-06 11:32:47 +02:00
Node.js GitHub Bot 4309e7c82f deps: update ngtcp2 to 1.21.0
PR-URL: https://github.com/nodejs/node/pull/62051
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2026-08-06 11:32:47 +02:00
Node.js GitHub Bot 90cf11cfb5 deps: update nghttp3 to 1.15.0
PR-URL: https://github.com/nodejs/node/pull/61512
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
2026-08-06 11:32:46 +02:00
Node.js GitHub Bot e1f315a554 deps: update ngtcp2 to 1.20.0
PR-URL: https://github.com/nodejs/node/pull/61511
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2026-08-06 11:32:46 +02:00
Node.js GitHub Bot 9a3f690c9d deps: update ngtcp2 to 1.19.0
PR-URL: https://github.com/nodejs/node/pull/61156
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
2026-08-06 11:32:45 +02:00
Aditi ff485a9410 crypto: make --use-system-ca per-env rather than per-process
PR-URL: https://github.com/nodejs/node/pull/60678
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
2026-08-06 11:32:45 +02:00
SRAVANI GUNDEPALLI 91f5003cad build: fix flags for ngtcp2 on IBM i
PR-URL: https://github.com/nodejs/node/pull/60073
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Abdirahim Musse <abdirahim.musse@ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2026-08-06 11:32:44 +02:00
James M Snell 8d97dee696 tests: start adding quic test server utilities
PR-URL: https://github.com/nodejs/node/pull/59946
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
2026-08-06 11:32:44 +02:00
James M Snell fe88f31764 deps: add ngtcp2 test binaries
The goal here is to add the ngtcp2 client and server
samples so that we can use them in CI to test our QUIC
implementation.

PR-URL: https://github.com/nodejs/node/pull/59946
Backport-PR-URL: https://github.com/nodejs/node/pull/64675
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
2026-08-06 11:32:43 +02:00
Antoine du Hamel e68946d95e Working on v24.19.1
PR-URL: https://github.com/nodejs/node/pull/64654
2026-08-03 15:23:00 +02:00
Antoine du Hamel cdc1b38d40 2026-08-03, Version 24.19.0 'Krypton' (LTS)
Notable changes:

buffer:
  * (SEMVER-MINOR) implement `blob.textStream()` (Matthew Aitken) https://github.com/nodejs/node/pull/64036
deps:
  * (SEMVER-MINOR) update OpenSSL build config to support compression (Tim Perry) https://github.com/nodejs/node/pull/62217
doc:
  * (SEMVER-MINOR) update `blockList` stability status to release candidate (alphaleadership) https://github.com/nodejs/node/pull/63050
  * mark `stream.compose` stable (Matteo Collina) https://github.com/nodejs/node/pull/62562
esm:
  * (SEMVER-MINOR) add `--experimental-import-text` flag (Efe) https://github.com/nodejs/node/pull/62300
fs:
  * (SEMVER-MINOR) support caller-supplied `readFile()` buffers (Matteo Collina) https://github.com/nodejs/node/pull/63634
http:
  * (SEMVER-MINOR) add `httpValidation` option to configure header value validation (RajeshKumar11) https://github.com/nodejs/node/pull/61597
net:
  * (SEMVER-MINOR) support `TCP_KEEPINTVL` and `TCP_KEEPCNT` in `setKeepAlive` (Guy Bedford) https://github.com/nodejs/node/pull/63825
perf_hooks:
  * (SEMVER-MINOR) sample delay per event loop iteration (Pablo Erhard) https://github.com/nodejs/node/pull/62935
src:
  * (SEMVER-MINOR) allow empty `--experimental-config-file` (Marco Ippolito) https://github.com/nodejs/node/pull/61610
stream:
  * (SEMVER-MINOR) expose `ReadableStreamTee` (Matteo Collina) https://github.com/nodejs/node/pull/64195
tls:
  * (SEMVER-MINOR) report negotiated TLS groups (Filip Skokan) https://github.com/nodejs/node/pull/64119
  * (SEMVER-MINOR) add `certificateCompression` option (Tim Perry) https://github.com/nodejs/node/pull/62217

PR-URL: https://github.com/nodejs/node/pull/64654
v24.19.0
2026-07-30 13:57:02 +02:00
Marco Ippolito 7428b57a37 src: allow empty --experimental-config-file
PR-URL: https://github.com/nodejs/node/pull/61610
Backport-PR-URL: https://github.com/nodejs/node/pull/63659
Signed-off-by: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2026-07-30 13:51:53 +02:00
Marco Ippolito d7946c9c07 src: add test flag to config file
PR-URL: https://github.com/nodejs/node/pull/60798
Backport-PR-URL: https://github.com/nodejs/node/pull/63659
Signed-off-by: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2026-07-30 13:51:53 +02:00
Marco Ippolito a642657d71 src: rename config file testRunner to test
PR-URL: https://github.com/nodejs/node/pull/60798
Backport-PR-URL: https://github.com/nodejs/node/pull/63659
Signed-off-by: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2026-07-30 13:51:53 +02:00
Joyee Cheung 818b43d09e src: do not enable wasm trap handler if there's not enough vmem
PR-URL: https://github.com/nodejs/node/pull/62132
Backport-PR-URL: https://github.com/nodejs/node/pull/64338
Refs: https://github.com/microsoft/vscode/issues/251777
Refs: https://chromium-review.googlesource.com/c/v8/v8/+/7638233
Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
2026-07-30 13:51:53 +02:00
Joyee CheungandJoyee Cheung 8b37af8b11 deps: V8: backport bef0d9c1bc90
Original commit message:

    [api] Add V8::GetWasmMemoryReservationSizeInBytes()

    When the system does not have enough virtual memory for the wasm
    cage, installing the trap handler would cause any code allocating
    wasm memory to throw. Therefore it's useful for the embedder to
    know when the system doesn't have enough virtual address space
    to allocate enough wasm cages and in that case, skip the
    trap handler installation so that wasm code can at least work
    (even not at the maximal performance).

    Node.js previously has a command line option
    --disable-wasm-trap-handler to fully disable trap-based bound checks,
    this new API would allow it to adapt automatically while keeping the
    optimization in the happy path, since it's not always possible for
    end users to opt-into disabling trap-based bound checks (for example,
    when a VS Code Server is loaded in a remote server for debugging).

    Refs: https://github.com/nodejs/node/pull/62132
    Refs: https://github.com/microsoft/vscode/issues/251777
    Change-Id: I345c076af2b2b47700e5716b49c3133fdf8a0981
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/7638233
    Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
    Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
    Commit-Queue: Joyee Cheung <joyee@igalia.com>
    Reviewed-by: Clemens Backes <clemensb@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#105702}

Refs: https://github.com/v8/v8/commit/bef0d9c1bc90357ef5e654b25fcb4ef9f74b591c
Co-authored-by: Joyee Cheung <joyeec9h3@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/62132
Backport-PR-URL: https://github.com/nodejs/node/pull/64338
Refs: https://github.com/microsoft/vscode/issues/251777
Refs: https://chromium-review.googlesource.com/c/v8/v8/+/7638233
Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
2026-07-30 13:51:53 +02:00
Chengzhong Wu 6e2f7e6013 build: remove redundant intermediate node_aix_shared
With the introduction of always static target `node_base`,
`node_aix_shared` is now redundant.

Signed-off-by: Chengzhong Wu <cwu631@bloomberg.net>
PR-URL: https://github.com/nodejs/node/pull/63747
Backport-PR-URL: https://github.com/nodejs/node/pull/64632
Refs: https://github.com/nodejs/node/pull/63626
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2026-07-30 13:51:53 +02:00
Chengzhong Wu 87e0675f51 build: build codecache and snapshot with libnode
Signed-off-by: Chengzhong Wu <cwu631@bloomberg.net>
PR-URL: https://github.com/nodejs/node/pull/63626
Backport-PR-URL: https://github.com/nodejs/node/pull/64632
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2026-07-30 13:51:53 +02:00