YuSheng Chen
5605f6bca4
doc: update http2's push and trailers events with rawHeaders param
...
Signed-off-by: Yu-Sheng Chen <samuel871211@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63259
Reviewed-By: Tim Perry <pimterry@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-05-20 00:57:05 +02:00
Mike McCready
46e17c728e
build,win: add Rust toolchain automated configuration Windows
...
Signed-off-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com >
PR-URL: https://github.com/nodejs/node/pull/63381
Refs: https://github.com/nodejs/node/issues/63225
Refs: https://github.com/nodejs/node/pull/63367
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
2026-05-19 20:00:55 +00:00
Trivikram Kamat
0b5b189426
test: avoid repeated writes in watch helper
...
Use performFileOperation() for test runner watch updates so the
run() API path schedules a single delayed write instead of rewriting
the file until the second run completes.
Repeated writes can trigger another watch restart while the previous
rerun is still active. The runner then terminates the in-flight child
process with SIGTERM, which can make the captured output include both
a failed file-level subtest and the next successful run.
Also count only root summary duration lines when detecting completed
runs.
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/63386
Refs: https://github.com/nodejs/reliability/blob/main/reports/2026-05-17.md#jstest-failure
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
2026-05-19 19:16:51 +00:00
Daijiro Wachi
b1387e6aed
lib: use Object.freeze to avoid defensive cloning in SourceMap
...
PR-URL: https://github.com/nodejs/node/pull/62830
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2026-05-19 20:30:44 +02:00
Trivikram Kamat
57ee68239c
test: deflake watch mode worker test
...
Trigger watch restarts by appending whitespace instead of rewriting
watched modules. This avoids transient empty or partial ESM dependency
contents while the restarted worker is loading.
Use a separate temporary directory for each subtest so concurrent
subtests do not share worker and dependency file names.
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/63384
Refs: https://github.com/nodejs/reliability/blob/main/reports/2026-05-17.md#jstest-failure
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-05-19 17:49:31 +00:00
Anshika Jain
7acaa0fc91
crypto: align verifyOneShot accepted types
...
Signed-off-by: anshikakalpana <anshikajain196872@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63280
Fixes: https://github.com/nodejs/node/issues/62903
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-05-19 17:49:19 +00:00
Node.js GitHub Bot
21a92e8d86
deps: update undici to 8.3.0
...
PR-URL: https://github.com/nodejs/node/pull/63377
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2026-05-19 16:54:12 +00:00
René
f352556da8
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
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-05-19 15:52:32 +00:00
dependabot[bot]
216718affc
tools: bump the eslint group in /tools/eslint with 4 updates
...
Bumps the eslint group in /tools/eslint with 4 updates:
[@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core ),
[@babel/eslint-parser](https://github.com/babel/babel/tree/HEAD/eslint/babel-eslint-parser ),
[@babel/plugin-syntax-import-source](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-syntax-import-source )
and [eslint](https://github.com/eslint/eslint ).
Updates `@babel/core` from 8.0.0-rc.3 to 8.0.0-rc.4
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v8.0.0-rc.4/packages/babel-core )
Updates `@babel/eslint-parser` from 8.0.0-rc.3 to 8.0.0-rc.4
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v8.0.0-rc.4/eslint/babel-eslint-parser )
Updates `@babel/plugin-syntax-import-source` from 8.0.0-rc.3 to
8.0.0-rc.4
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v8.0.0-rc.4/packages/babel-plugin-syntax-import-source )
Updates `eslint` from 10.2.0 to 10.2.1
- [Release notes](https://github.com/eslint/eslint/releases )
- [Commits](https://github.com/eslint/eslint/compare/v10.2.0...v10.2.1 )
---
updated-dependencies:
- dependency-name: "@babel/core"
dependency-version: 8.0.0-rc.4
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: eslint
- dependency-name: "@babel/eslint-parser"
dependency-version: 8.0.0-rc.4
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: eslint
- dependency-name: "@babel/plugin-syntax-import-source"
dependency-version: 8.0.0-rc.4
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: eslint
- dependency-name: eslint
dependency-version: 10.2.1
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: eslint
...
PR-URL: https://github.com/nodejs/node/pull/63075
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-05-19 16:36:16 +02:00
Node.js GitHub Bot
d2b68406e7
tools: update gyp-next to 0.22.2
...
PR-URL: https://github.com/nodejs/node/pull/63374
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-05-19 14:35:54 +00:00
ikeyan
783b382483
stream: align Readable.toWeb termination with eos
...
PR-URL: https://github.com/nodejs/node/pull/62394
Reviewed-By: Mattias Buelens <mattias@buelens.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2026-05-19 15:38:22 +02:00
Node.js GitHub Bot
2ebf53330d
tools: update nixpkgs-unstable to d233902339c02a9c334e7e593de68855ad2
...
PR-URL: https://github.com/nodejs/node/pull/63376
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-05-19 01:16:42 +00:00
Node.js GitHub Bot
55920df975
deps: update corepack to 0.35.0
...
PR-URL: https://github.com/nodejs/node/pull/63375
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2026-05-19 01:16:32 +00:00
Livia Medeiros
4ee756741b
fs: add Temporal.Instant support to Stats and BigIntStats
...
Signed-off-by: LiviaMedeiros <livia@cirno.name >
PR-URL: https://github.com/nodejs/node/pull/60789
Refs: https://github.com/nodejs/node/issues/57891
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
2026-05-18 22:18:00 +00:00
Mike McCready
155268f786
doc: add Rust toolchain manual installation instructions Windows
...
Signed-off-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com >
PR-URL: https://github.com/nodejs/node/pull/63367
Refs: https://github.com/nodejs/node/issues/63225
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com >
Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com >
2026-05-18 17:46:09 +00:00
Matteo Collina
f2aaf63846
test: fix flaky test-watch-mode-inspect timeout
...
This test randomly times out (~120s) on CI due to a race condition
between child-process restart (triggered by touching the watched file)
and the second inspector-session connection.
The old code used an interval-based restart (write every 500ms) and
a 'gettingDebuggedPid' flag to pause writes during a session. This
still left a race window where getDebuggedPid() would attempt to
connect the inspector via HTTP GET /json/list + WebSocket upgrade
either before the new child was ready (empty target list) or after
the old session was being destroyed, causing the promise to hang.
Fix: Replace the interval with a single write that triggers exactly
one restart, then wait for the restarted child's 'safe to debug now'
stdout line before connecting the second inspector session. This
eliminates the race by ensuring the new child process and its
inspector session are fully ready before any connection attempt.
Removes the now-unused gettingDebuggedPid flag and the pending
setTimeout delay that was needed as a backstop for the interval.
Fixes: https://github.com/nodejs/node/issues/44898
Signed-off-by: Matteo Collina <hello@matteocollina.com >
PR-URL: https://github.com/nodejs/node/pull/63361
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Paolo Insogna <paolo@cowtech.it >
2026-05-18 17:45:55 +00:00
Trivikram Kamat
3b19867caa
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
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-05-18 10:42:45 +00:00
Ali Hassan
debe2ed2ef
test_runner: avoid hanging on incomplete v8 frames
...
Signed-off-by: Ali Hassan <ali-hassan27@outlook.com >
PR-URL: https://github.com/nodejs/node/pull/62704
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
2026-05-18 07:54:35 +00:00
Trivikram Kamat
1f371fcffb
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
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev >
2026-05-17 23:06:55 +00:00
Trivikram Kamat
bc906671a8
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
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-05-17 22:42:17 +00:00
Marco
d6be71567e
test: relax min assertion in test-performance-eventloopdelay
...
Signed-off-by: marcopiraccini <marco.piraccini@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63100
Reviewed-By: Paolo Insogna <paolo@cowtech.it >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2026-05-17 21:34:51 +00:00
Filip Skokan
550f195277
crypto: wire ML-DSA and ML-KEM for use when using BoringSSL
...
Signed-off-by: Filip Skokan <panva.ip@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63255
Refs: https://github.com/electron/electron/issues/36256
Refs: https://github.com/electron/electron/issues/41720
Refs: https://github.com/electron/electron/pull/51127
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2026-05-17 18:18:14 +00:00
Filip Skokan
be9f78f0dc
crypto: wire ChaCha20-Poly1305 in Web Cryptography when using BoringSSL
...
Signed-off-by: Filip Skokan <panva.ip@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63255
Refs: https://github.com/electron/electron/issues/36256
Refs: https://github.com/electron/electron/issues/41720
Refs: https://github.com/electron/electron/pull/51127
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2026-05-17 18:18:13 +00:00
Filip Skokan
07431982bb
crypto: wire AES-KW in Web Cryptography when using BoringSSL
...
Signed-off-by: Filip Skokan <panva.ip@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63255
Refs: https://github.com/electron/electron/issues/36256
Refs: https://github.com/electron/electron/issues/41720
Refs: https://github.com/electron/electron/pull/51127
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2026-05-17 18:18:11 +00:00
Filip Skokan
0ed1d94aff
src: simplify OpenSSL feature gates
...
Add OPENSSL_WITH_* feature macros for crypto capabilities that vary by
OpenSSL version and use those instead of repeating version checks.
Signed-off-by: Filip Skokan <panva.ip@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63255
Refs: https://github.com/electron/electron/issues/36256
Refs: https://github.com/electron/electron/issues/41720
Refs: https://github.com/electron/electron/pull/51127
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2026-05-17 18:18:09 +00:00
Antoine du Hamel
5a8882a375
doc: remove inactive members from Triagers list
...
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63329
Fixes: https://github.com/nodejs/admin/issues/1058
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
2026-05-17 13:42:58 +00:00
LiviaMedeiros
a9b0a83e82
fs: make Date properties on Stats enumerable
...
Signed-off-by: LiviaMedeiros <livia@cirno.name >
PR-URL: https://github.com/nodejs/node/pull/63328
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-05-17 20:45:21 +08:00
Trivikram Kamat
265679b5ac
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
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev >
2026-05-17 08:04:30 +00:00
Trivikram Kamat
f8e8eb8710
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
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-05-17 06:03:20 +00:00
Antoine du Hamel
13c2374d0b
stream: remove unnecessary check
...
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63030
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2026-05-16 19:27:02 +00:00
Yuya Inoue
9de9b9f88e
test: avoid flaky restart sync in debugger exceptions test
...
Signed-off-by: inoway46 <inoueyuya416@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/62055
Refs: https://github.com/nodejs/node/issues/61762
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day >
2026-05-16 15:10:48 +00:00
inoway46
3163d8aaf4
test: avoid initial-break wait in restart-message
...
Signed-off-by: inoway46 <inoueyuya416@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/62060
Refs: https://github.com/nodejs/node/issues/61762
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Kohei Ueno <kohei.ueno119@gmail.com >
2026-05-16 17:03:19 +02:00
Trivikram Kamat
8c6e39e459
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
Fixes: https://github.com/nodejs/node/issues/63296
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev >
2026-05-16 14:44:46 +00:00
Matteo Collina
19dd555e9d
doc: mark stream.compose stable
...
Signed-off-by: Matteo Collina <matteo.collina@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/62562
Reviewed-By: James M Snell <jasnell@gmail.com >
2026-05-16 10:33:55 +00:00
Trivikram Kamat
a6696e280b
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
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-05-16 04:21:29 +00:00
Trivikram Kamat
c0327d3cbb
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
Fixes: https://github.com/nodejs/node/issues/63294
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev >
2026-05-15 23:31:12 +00:00
Node.js GitHub Bot
a91d859506
deps: update sqlite to 3.53.1
...
PR-URL: https://github.com/nodejs/node/pull/63217
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com >
Reviewed-By: Jithil P Ponnan <jithil@outlook.com >
2026-05-15 23:09:28 +00:00
Trivikram Kamat
2d6cbea73a
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
Fixes: https://github.com/nodejs/node/issues/63277
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev >
2026-05-15 20:03:31 +00:00
Trivikram Kamat
be7ded1693
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
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev >
2026-05-15 20:03:17 +00:00
Richard Lau
e5686734ee
doc: fix CHANGELOG
...
Remove Node.js 23 column.
Mark Node.js 20 as End-of-Life and remove the corresponding column.
Signed-off-by: Richard Lau <richard.lau@ibm.com >
PR-URL: https://github.com/nodejs/node/pull/63292
Fixes: https://github.com/nodejs/node/issues/63291
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-05-15 19:26:17 +00:00
Joyee Cheung
ee11c35a3e
debugger: disambiguate probe location binding
...
In probe mode, `--probe utils.js:10` can match multiple scripts
(e.g. `src/utils.js` and `lib/utils.js`) because the matcher uses
a path-separator-anchored URL suffix (similar to how e.g. gdb/lldb
behaves). Previously the report echoed only the user's request in
hit events, so a user seeing two hits at `utils.js:10` could not
tell which script each hit came from. In addition, previously
when the column was omitted we bound to 1 which was technically
different from how CDP binds omitted columns (to the first
executable column on the line).
This patch clarifies the semantics by tracking the scripts via
`Debugger.scriptParsed`, as recommended in the CDP docs, and
reports the actual execution location as `results[i].location`.
The same shape can be reused in the future for source maps or
additional events in attach mode.
This bumps the schema version because `target` is now
`{ suffix, line, column? }` instead of a positional array for
clarity. We picked `suffix` as the field name in case we
introduce other matching modes in the future. `column` is
omitted when the user did not supply one, and the actual
resolved column is reported in the hit event instead.
This patch also adds more tests for column-specific bindings,
multi-location resolution via require(cjs), and late script
binding via dynamic import(cjs) and require(esm).
Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63286
Reviewed-By: Jan Martin <jan.krems@gmail.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
2026-05-15 16:59:19 +00:00
Tim Perry
03f27fef16
http: add writeInformation to send arbitrary 1xx status codes
...
Signed-off-by: Tim Perry <pimterry@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63155
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev >
2026-05-15 16:16:41 +00:00
Node.js GitHub Bot
c8206c8080
deps: update simdjson to 4.6.4
...
PR-URL: https://github.com/nodejs/node/pull/62811
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-05-15 16:16:28 +00:00
Tim Perry
f190a048c3
quic: send correct OpenSSL alert for ALPN mismatches
...
Signed-off-by: Tim Perry <pimterry@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63193
Reviewed-By: James M Snell <jasnell@gmail.com >
2026-05-15 14:37:45 +00:00
Matteo Collina
274d799ad1
http2: validate non-link headers in writeEarlyHints
...
Validate header names and values for non-link hints passed to
writeEarlyHints() in the HTTP/2 compat layer using assertValidHeader()
and checkIsHttpToken(), consistent with the HTTP/1.1 validation added
in https://github.com/nodejs/node/pull/61897 .
Previously, hints were forwarded into the headers object without any
validation, allowing invalid characters in header names/values to
surface as opaque errors deeper in the HTTP/2 stack.
Signed-off-by: Matteo Collina <hello@matteocollina.com >
PR-URL: https://github.com/nodejs/node/pull/62017
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Tim Perry <pimterry@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2026-05-15 14:37:31 +00:00
James M Snell
e9c49ea46f
quic: fixup quic stream variable chunk len
...
Signed-off-by: James M Snell <jasnell@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63230
Fixes: https://github.com/nodejs/node/issues/63216
Reviewed-By: Tim Perry <pimterry@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2026-05-15 06:39:30 -07:00
Moshe Atlow
57508024c3
test_runner: fix hooks test context
...
Signed-off-by: Moshe Atlow <moshe@atlow.co.il >
PR-URL: https://github.com/nodejs/node/pull/63285
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2026-05-15 10:46:21 +00:00
Moshe Atlow
fa1e1f4fd4
test_runner: fix diagnostics channel context tracking
...
Signed-off-by: Moshe Atlow <moshe@atlow.co.il >
PR-URL: https://github.com/nodejs/node/pull/63283
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day >
2026-05-15 10:46:09 +00:00
Daijiro Wachi
676e9da784
repl: fix dedup comparing normalized line against raw history
...
Signed-off-by: Daijiro Wachi <daijiro.wachi@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/62886
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-05-15 18:02:14 +09:00
Trivikram Kamat
6482073897
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
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-05-15 07:00:15 +00:00