Commit Graph
49792 Commits
Author SHA1 Message Date
Yaroslav Chuhai da97d87f9a esm: skip percent-decode copy for unescaped data URLs
stringPercentDecode() UTF-8 encodes its input into a fresh Uint8Array
and then percent-decodes it into a second array of the same size. After
URL parsing, a data: URL body contains '%' only when it has non-ASCII or
control characters or explicit escapes, so plain-text and base64 bodies
were copied byte-for-byte for nothing.

Return the encoded bytes directly when the input contains no '%'. UTF-8
never emits 0x25 inside a multi-byte sequence, so the result is
identical, and each call still returns its own buffer.

When there is a '%', pass its index to percentDecode(), which copies a
long unescaped prefix in bulk and decodes the rest through subarray
views, so the loop still starts at 0 and keeps its bounds checks
eliminated. The string index is used only when every code point encoded
to a single byte, so it is also the byte index.

Signed-off-by: Yaroslav Chuhai <yaroslavchuhai@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67684
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
2026-11-25 20:15:56 +00:00
c08b6c39c5 src: migrate off ArrayBufferView::Buffer()
V8 16.0 removes `ArrayBufferView::Buffer()`. Use `GetBuffer()` instead,
which is already available in V8 15.8.

Refs: https://crrev.com/c/8794471
Co-Authored-By: Clemens Backes <post@clemens-backes.de>
Co-Authored-By: Joyee Cheung <joyeec9h3@gmail.com>
Signed-off-by: Chengzhong Wu <cwu631@bloomberg.net>
PR-URL: https://github.com/nodejs/node/pull/67733
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Guilherme Araújo <arauujogui@gmail.com>
Reviewed-By: Vladimir Morozov <vmorozov@microsoft.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2026-11-25 14:18:25 -05:00
James M Snell 0b41a91f58 lib: fix node --help missing env vars
The help text was dropping the `NODE_ICU_DATA`,
`NODE_OPTIONS`, `OPENSSL_CONF`, `SSL_CERT_DIR`,
and `SSL_CERT_FILE` env vars.

Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Claude
PR-URL: https://github.com/nodejs/node/pull/67719
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2026-11-25 18:30:33 +00:00
Sergio Calderon 24d4db0564 test: converting for each to for..of
Signed-off-by: Sergio Calderon <sergioo.calderonn@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67126
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
2026-11-25 18:10:19 +00:00
Adithya kumar Reddy Gopavaram 1106479d7e zlib: handle close before initialization
Fixes #67485

Signed-off-by: Adithya kumar Reddy Gopavaram <91198686+ADITHYAKUMARREDDY@users.noreply.github.com>
PR-URL: https://github.com/nodejs/node/pull/67507
Fixes: https://github.com/nodejs/node/issues/67485
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2026-11-25 17:19:17 +00:00
Antoine du Hamel 122715e562 tools: pin remaining Cachix version on x86_64_darwin
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67743
Refs: https://github.com/nodejs/node/pull/67738
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
2026-11-25 17:19:04 +00:00
Node.js GitHub Bot 3448133641 deps: update zstd to 1.6.0
PR-URL: https://github.com/nodejs/node/pull/67775
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
2026-11-25 17:18:51 +00:00
Tim Perry 478c2eea87 tls: fix OpenSSL compression leak that breaks tests under ASAN
This is not impactful in any way - it's a fixed leak of the openssl
record compression descriptors, about 24 bytes leaked total, once
per process. Not meaningful.

It is annoying if you want to run with ASAN & leak detection though,
since it's an unambiguous leak we trigger every time crypto is used.

Signed-off-by: Tim Perry <pimterry@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/66600
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
2026-11-25 16:52:56 +00:00
Livia Medeiros 0623b0d4c7 lib: recognize <LS> and <PS> as line terminators
Signed-off-by: LiviaMedeiros <livia@cirno.name>
PR-URL: https://github.com/nodejs/node/pull/67695
Refs: https://tc39.es/ecma262/#sec-line-terminators
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
2026-11-25 14:49:11 +00:00
René Larch 2fd4580d4a src: rethrow linked binding initializer errors
GetLinkedBinding() reads module.exports after it calls the register
function of a linked binding. If the register function threw, that V8
API call clears the pending exception (PrepareForExecutionScope), so
the error never reaches the caller of process._linkedBinding(), which
gets the empty exports object instead. This affects every linked
binding, including Node-API ones, whose module registration already
rethrows the error of the initializer.

Addons loaded with process.dlopen() are not affected, because DLOpen()
does not call into V8 after the register function. Rethrow the error
before reading module.exports.

Signed-off-by: René Larch <renelarch@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67571
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Vladimir Morozov <vmorozov@microsoft.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
2026-11-25 14:28:20 +00:00
Yuya Inoue bf201ef3e3 http2: add writeProcessing to compat response
The HTTP/1 ServerResponse has writeProcessing() to send a 102
Processing response, but Http2ServerResponse does not, so code moving
to the compat API fails with a TypeError when it calls it.

Add writeProcessing([callback]), which sends 102 through
writeInformation() like writeContinue() does.

Refs: https://github.com/nodejs/node/issues/29829
Refs: https://github.com/nodejs/node/pull/67705#issuecomment-7098482431
Signed-off-by: inoway46 <inoueyuya416@gmail.com>
Assisted-by: Claude Code
PR-URL: https://github.com/nodejs/node/pull/67728
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
2026-11-25 14:17:45 +00:00
Christian Aurich Zanettini Martins 18bb2e5e0e sqlite: throw ERR_NO_SQLITE without SQLite support
In builds configured --without-sqlite, passing --experimental-sqlite
exposes node:sqlite, and loading it then fails with
"No such binding: sqlite". Throw ERR_NO_SQLITE instead, like
node:crypto does without OpenSSL.

Signed-off-by: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67727
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Guilherme Araújo <arauujogui@gmail.com>
2026-11-25 12:37:21 +00:00
Jiawen Geng ffc57f007f sqlite: guard re-entrant reset of a virtual table cursor
StatementIterator::Return() and SQLTagStore::ResetAndBindStatement()
called sqlite3_reset() without a SteppingStatementGuard. Resetting a
statement with an open virtual-table cursor runs the generator's
finally block, and that JavaScript can reset the same statement
again. SQLite then halts the VM a second time while the cursor slot
still points at the cursor, so xClose frees the same NodeVTabCursor
twice.

Hold the stepping guard across those resets so the re-entrant call
fails with "statement is already being executed" instead of closing
the cursor again. Ignore a second xClose on a cursor that is already
closing.

Assisted-by: Cursor Grok 4.7
Signed-off-by: gengjiawen <technicalcute@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67540
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2026-11-25 12:23:02 +00:00
Chengzhong Wu 1d069afb53 lib: skip source maps in node_modules by default
Signed-off-by: Chengzhong Wu <cwu631@bloomberg.net>
PR-URL: https://github.com/nodejs/node/pull/67627
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
2026-11-25 10:57:49 +01:00
Matteo CollinaandGuilherme Araújo 5440ac1f66 sqlite: enforce permission model in Database
Database opened database files without consulting the permission
model, so code running with --permission could read and write any
database regardless of --allow-fs-read and --allow-fs-write.

Check read access, and write access unless the database is read-only,
before opening a file-backed database. In-memory databases are exempt.
SQLite also opens journal, WAL and temporary files, and ATTACH and
backup() open further databases, so route every connection through a
VFS shim that checks each path SQLite opens, deletes or probes.

Reject URI filenames that select a VFS, since that would bypass the
shim, and deny ATTACH when SQLite does not pass the filename to the
authorizer.

Refs: https://hackerone.com/reports/3686625
Co-authored-by: Guilherme Araújo <arauujogui@gmail.com>
Assisted-by: Claude Code
Signed-off-by: Guilherme Araújo <arauujogui@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/62957
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2026-11-25 06:43:21 +00:00
Matteo Collina 0230ad37a4 module: keep ESM load cache entries in fast mode
Keep per-URL load cache entries in fast-property mode while
   preserving their null prototype.

Assisted-by: Pi
Signed-off-by: Matteo Collina <hello@matteocollina.com>
PR-URL: https://github.com/nodejs/node/pull/66276
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
2026-11-25 06:43:06 +00:00
Matteo Collina 88c3dbedb6 stream: forward compose tail error after finish
compose() only listened for 'data' and 'end' on the last stream it was
given. When that stream emitted 'error' after its writable side had
already finished, pipeline() had already removed its own error listener,
so the error reached no listener and was raised as an unhandled 'error'
event, crashing the process.

Forward tail errors to the composed Duplex by destroying it whenever the
tail errors before the composition has been destroyed.

Signed-off-by: Matteo Collina <matteo.collina@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67674
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
2026-11-25 05:59:14 +00:00
Guilherme Araújo 36ca6a74f1 sqlite: add statement.columnCount getter
Add a getter to `Statement` that returns the number of columns in the
prepared statement's result set, wrapping `sqlite3_column_count()`.

Fixes: https://github.com/nodejs/node/issues/67352
Assisted-by: Claude Code
Signed-off-by: Guilherme Araújo <arauujogui@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67658
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com>
2026-11-25 03:08:58 +00:00
James M Snell b4e974cc3a src: expand --process-timeout output to include workers
When a process is interrupted using `--process-timeout`, the output
would print the resources and stack of the main thread. If the
thing keeping the process alive was a worker thread, or if the
worker thread was interrupted, there was no diagnostic output.

This adds an additional `--process-timeout-worker-stacks` flag
that includes the worker details. We don't necessarily want to
include workers every time because if there's a large number of
workers the output could become quite noisy.

Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Claude
PR-URL: https://github.com/nodejs/node/pull/67712
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com>
2026-11-25 02:23:27 +00:00
Christian Aurich Zanettini Martins be0f17cfe4 inspector: fix builds without SQLite
dom_storage_agent.h includes node_webstorage.h, which needs sqlite3.h,
so `./configure --without-sqlite` only compiles together with
`--without-inspector`. Forward-declare webstorage::Storage there and
build the agent's web storage fallback only with SQLite. Without it,
getDOMStorageItems reports unregistered storage as unavailable.

Signed-off-by: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67722
Refs: https://github.com/nodejs/node/pull/62145
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2026-11-25 02:03:11 +00:00
Livia Medeiros 5baf5a6d9f test: fix vfs-addon-sequence failing when TMPDIR mounted with noexec
Signed-off-by: LiviaMedeiros <livia@cirno.name>
PR-URL: https://github.com/nodejs/node/pull/67566
Reviewed-By: James M Snell <jasnell@gmail.com>
2026-11-25 01:21:15 +00:00
github-actions[bot] e3fe5630a3 doc: run license-builder
PR-URL: https://github.com/nodejs/node/pull/67718
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2026-11-25 00:37:47 +00:00
Yaroslav Chuhai 506a565695 stream: avoid intermediate Blob in stream/consumers arrayBuffer()
In node:stream/consumers, arrayBuffer() (also used by buffer() and
bytes()) collected stream chunks into a temporary Blob and then read
them back out asynchronously via blob.arrayBuffer(). For binary
streams this copied every chunk twice, allocated an intermediate copy,
and queued a microtask per chunk.

Add a fast path that concatenates chunks directly into a single
ArrayBuffer when all chunks are non-resizable ArrayBuffer-backed
Uint8Arrays (including Buffers) within kMaxLength, falling back to
Blob for all other chunk types. Behavior is unchanged.

Signed-off-by: Yaroslav Chuhai <yaroslavchugai@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67714
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
2026-11-24 23:05:39 +00:00
jakecastelli 7a74c7bbff stream: keep data buffered during synchronous flow
The flowing fast path keeps the prefetched chunk off the buffer and
resets `state.length` before each `_read()`. A chunk put on the buffer
by `unshift()` or `push()` from a 'data' listener while a prefetched
chunk was pending was not accounted for, so it was never delivered and
the stream ended with data still buffered.

Move the prefetched chunk onto the buffer before `unshift()` and
`push()` add to it. That keeps the chunks in order and makes the fast
path fall back to `read()`.

Also leave the fast push mode when `_read()` calls `unshift()`,
`read()` or `setEncoding()`. A following `push()` then adds to the
buffer and goes through the decoder instead of overwriting
`state.length` or delivering an undecoded chunk.

Signed-off-by: jakecastelli <38635403+jakecastelli@users.noreply.github.com>
Assisted-by: claude:fable-5.2
PR-URL: https://github.com/nodejs/node/pull/67599
Fixes: https://github.com/nodejs/node/issues/67598
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
2026-11-24 19:42:34 +00:00
Node.js GitHub Bot 23958d5f83 deps: update timezone to 2026f
PR-URL: https://github.com/nodejs/node/pull/67704
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2026-11-24 17:26:51 +00:00
JuHyeong424 475bed3372 dgram: fix abort on negative zero buffer size
The size check accepts -0, but the binding asserts IsUint32(),
which V8 reports as false for -0, so setRecvBufferSize(-0) and
setSendBufferSize(-0) abort the process. Coerce the value to +0.

Signed-off-by: JuHyeong424 <wkdwngud963@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67662
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
Reviewed-By: Tim Perry <pimterry@gmail.com>
2026-11-24 17:16:18 +00:00
Ved Chaudhari 448888a8d0 stream: reject operators on empty streams with aborted signal
Stream operators given an already-aborted signal resolved instead of
rejecting when the stream was empty, because the signal was only
checked once a chunk arrived. Check it up front in map() and toArray(),
which the other operators are built on.

Signed-off-by: vedchaudhari <vedc2853@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67637
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
2026-11-24 17:01:37 +00:00
James M Snell 7ecb7796be test: make test-doc-api-json more robust
The test hard coded the number of deprecated apis
so whenever one is added or removed it always needs
to be updated. This makes the check more robust by
calculating the values on each run.

Signed-off-by: James M Snell <jasnell@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67701
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: LiviaMedeiros <livia@cirno.name>
2026-11-24 16:52:50 +00:00
Node.js GitHub Bot 9f57d91e42 deps: update histogram to 0.12.1
PR-URL: https://github.com/nodejs/node/pull/66818
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2026-11-24 17:27:06 +01:00
Yohannes DestaandAlberto Moretti a055d9f2cc fs: report EROFS from recursive mkdir()
A recursive mkdir() that hits a read-only file system treated EROFS like
any unknown error: it stat()ed the missing path and reported the ENOENT
from that instead. Return EROFS straight away, as mkdir() already does
for EACCES, ENOSPC, ENOTDIR and EPERM.

The test uses a read-only file system that is already mounted (listed
in /proc/self/mounts on Linux, the system volume on macOS) and skips
when there is none, since mounting one needs root.

Fixes: https://github.com/nodejs/node/issues/47098
Refs: https://github.com/nodejs/node/pull/48105
Refs: https://github.com/nodejs/node/pull/62725
Co-authored-by: Alberto Moretti <moretti919@gmail.com>
Signed-off-by: Yohannes Desta <yohannesdestagebru10@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67500
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jason Zhang <xzha4350@gmail.com>
2026-11-24 12:29:43 +00:00
Node.js GitHub Bot c01b66b9cc test: update test426-fixtures to bc255a703449b2bc10989772d940df5bf37acf4
PR-URL: https://github.com/nodejs/node/pull/67687
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
2026-11-24 10:15:35 +00:00
Roberto Bianchi a33756670d lib: use indexed append in ZIP central directory parser
readCentralDirectory() appends one CentralFileHeader per archive entry
with ArrayPrototypePush, which is listed among primordials with known
performance issues. Assign by the existing loop index instead. The
loop runs once per entry, so its trip count grows with archive size.

The change is limited to this loop. Validation and error behavior are
unchanged.

Assisted-by: Claude Code
Signed-off-by: Roberto Bianchi <roberto.bianchi@spendesk.com>
PR-URL: https://github.com/nodejs/node/pull/67456
Reviewed-By: Jordan Harband <ljharb@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: LiviaMedeiros <livia@cirno.name>
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
2026-11-24 09:41:47 +00:00
Yuya Inoue 82e6b293c7 doc: fix http response.writeProcessing() description
The description of response.writeProcessing() was copied from
response.writeContinue() and said that the request body should be
sent, which is what 100 Continue means, not 102 Processing.

Describe what 102 means, document the callback that both methods
have always accepted, and point to the equivalent
response.writeInformation() call.

Signed-off-by: inoway46 <inoueyuya416@gmail.com>
Assisted-by: Claude Code
PR-URL: https://github.com/nodejs/node/pull/67705
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
Reviewed-By: Tim Perry <pimterry@gmail.com>
2026-11-24 09:32:25 +00:00
Ilyas Shabi e7db48902e src: speed up heap profile serialization
Signed-off-by: ishabi <ilyasshabi94@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67685
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2026-11-24 09:18:59 +00:00
Guy Bedford d2c9ac02cb net: expose peer name of pipe connections
getpeername(2) on a Unix domain socket returns the path the peer is
bound to, but the pipe handle had no getpeername method, so
socket.remoteAddress was always undefined for pipe connections.

Add getpeername to the pipe handle, backed by uv_pipe_getpeername(), so
that socket.remoteAddress reports the listening path on the connecting
side and the path of a bound client on the accepting side. It remains
undefined for an unbound peer, and on Windows, where a named pipe has a
single name rather than one per end.

Signed-off-by: Guy Bedford <guybedford@gmail.com>
Assisted-by: Claude Fable 5.2
PR-URL: https://github.com/nodejs/node/pull/67402
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
Reviewed-By: James M Snell <jasnell@gmail.com>
2026-11-23 19:33:31 -07:00
René 3f899fe324 tools: set GHA cache to readonly in stress-test workflow
Signed-off-by: René <rene@renegade334.me.uk>
PR-URL: https://github.com/nodejs/node/pull/67694
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com>
2026-11-24 02:21:32 +00:00
René aba18d82b6 tools: cache Rust builds in GHA workflows
Signed-off-by: René <rene@renegade334.me.uk>
PR-URL: https://github.com/nodejs/node/pull/67694
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com>
2026-11-24 02:21:31 +00:00
René 8e2561b621 tools: update sccache to 0.19.0
Signed-off-by: René <rene@renegade334.me.uk>
PR-URL: https://github.com/nodejs/node/pull/67694
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com>
2026-11-24 02:21:30 +00:00
Rafael Gonzaga 79ea8db85d src,permission: throw remaining fs errors async
These APIs were missed in https://github.com/nodejs/node/pull/52730.

Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com>
PR-URL: https://github.com/nodejs/node/pull/67037
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
2026-11-24 01:41:49 +00:00
Yohannes DestaandNicholas Paun 85eb0c704b fs: stat src through symlinks in cpSync() when dereference is set
CpSyncCheckPaths() used symlink_status() for src when dereference was
true and status() when it was false, the reverse of what the option
means. #59681 fixed the same swap for dest but left src as it was.
A symlink to a file passed as src with dereference: true was treated
as a directory, so cpSync() threw ERR_FS_EISDIR unless recursive was
set, while fs.cp() copied the file.

Swap the two calls and drop the check that counted a symlink as a
directory, which status() can no longer return.

Refs: https://github.com/nodejs/node/issues/59168
Refs: https://github.com/nodejs/node/pull/60945
Co-authored-by: Nicholas Paun <npaun@cloudflare.com>
Signed-off-by: yohannesjoya <yohannesdestagebru10@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67340
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: LiviaMedeiros <livia@cirno.name>
2026-11-24 00:46:39 +00:00
Node.js GitHub Bot 5e79684c76 test: update WPT for WebCryptoAPI to 4ba9d1b8e4
PR-URL: https://github.com/nodejs/node/pull/67686
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Jason Zhang <xzha4350@gmail.com>
Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Aviv Keller <me@aviv.sh>
2026-11-24 00:46:24 +00:00
Node.js GitHub Bot e34ae17472 deps: update nbytes to 0.1.5
PR-URL: https://github.com/nodejs/node/pull/67688
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
2026-11-24 00:45:58 +00:00
Node.js GitHub Bot 49918c74aa deps: update zlib to 1.4-401d185
PR-URL: https://github.com/nodejs/node/pull/67689
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2026-11-24 00:45:45 +00:00
Node.js GitHub Bot a7fdb03616 deps: update simdjson to 5.2.0
PR-URL: https://github.com/nodejs/node/pull/67690
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2026-11-24 00:45:31 +00:00
Node.js GitHub Bot 66da944983 tools: update nixpkgs-unstable to 93a9ed0a866099a230ed5146a5bb7d16fd5
PR-URL: https://github.com/nodejs/node/pull/67691
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2026-11-24 00:45:16 +00:00
Node.js GitHub Bot 31761388e9 deps: update undici to 8.13.1
PR-URL: https://github.com/nodejs/node/pull/67692
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2026-11-24 00:45:02 +00:00
Node.js GitHub Bot 5ef3988440 deps: patch V8 to 15.8.62.61
Refs: https://github.com/v8/v8/compare/15.8.62.44...15.8.62.61
PR-URL: https://github.com/nodejs/node/pull/67693
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
2026-11-24 00:44:46 +00:00
Antoine du Hamel 12dd0bdee6 tools: pin Cachix version on x86_64_darwin
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67738
Fixes: https://github.com/nodejs/node/issues/67735
Refs: https://github.com/cachix/cachix/commit/e3609f93799354c50e4126d6423ede6dd317e2f2
Refs: https://github.com/cachix/cachix-action/issues/224
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
2026-11-24 01:12:20 +01:00
Gürgün Dayıoğlu dd7bff52ce src: cache trace category lookups on hot paths
The sync fs, fs dir, AsyncWrap and vm.Script tracing guards called
TRACE_EVENT_API_GET_CATEGORY_GROUP_ENABLED directly, which does a
by-name search in the tracing controller on every call. Use
TRACE_EVENT_CATEGORY_ENABLED instead, which caches the category
pointer per call site like the other TRACE_EVENT macros. Perfetto
already provides it; add an equivalent for the legacy tracing build.

Assisted-by: claude:opus-5.5
Signed-off-by: Gürgün Dayıoğlu <hey@gurgun.day>
PR-URL: https://github.com/nodejs/node/pull/67502
Reviewed-By: James M Snell <jasnell@gmail.com>
2026-11-23 20:45:49 +00:00
dennev 642300f7aa http: do not reuse expired free sockets
A free socket with an idle timeout is normally destroyed by its timer.
When the event loop is blocked long enough for that timeout to expire,
the timer cannot run, and `addRequest()` can reuse the socket even
though the server may already have closed the connection. This can
cause the request to fail with `ECONNRESET`.

Record when a socket enters the free pool and, before reuse, remove and
destroy a free socket whose idle timeout has expired according to the
timers' clock.

Refs: https://github.com/nodejs/node/issues/54293
Assisted-by: a closed-source coding agent
Signed-off-by: dennev <dennev13@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67292
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
2026-11-23 20:16:46 +00:00