Commit Graph
49266 Commits
Author SHA1 Message Date
Antoine du Hamel 193c052e40 2026-11-30, Version 26.14.0 'Lithium' (LTS)
Notable changes:

child_process:
  * (SEMVER-MINOR) add subprocess.timedOut (Marco) https://github.com/nodejs/node/pull/66639
doc:
  * add efekrskl to collaborators (Efe Karasakal) https://github.com/nodejs/node/pull/67376
  * add Philipp Dunkel to contributors (Philipp Dunkel) https://github.com/nodejs/node/pull/67378
  * add christianaurichzm to collaborators (Christian Aurich Zanettini Martins) https://github.com/nodejs/node/pull/67377
fs:
  * (SEMVER-MINOR) add mkstemp() (Marco) https://github.com/nodejs/node/pull/66484
http:
  * (SEMVER-MINOR) batch body spans per parser execute (Guilherme Araújo) https://github.com/nodejs/node/pull/67187
lib:
  * (SEMVER-MINOR) speed up AbortSignal (Robert Nagy) https://github.com/nodejs/node/pull/66789
module:
  * (SEMVER-MINOR) add --experimental-strip-private-modules (Marco Ippolito) https://github.com/nodejs/node/pull/63869
process:
  * (SEMVER-MINOR) return unregister fn from finalization (Matteo Collina) https://github.com/nodejs/node/pull/66482
test_runner:
  * use AsyncLocalStorage instead of async_hooks (Matteo Collina) https://github.com/nodejs/node/pull/66795
  * (SEMVER-MINOR) add mockReturnValue and promise helpers (Guilherme Araújo) https://github.com/nodejs/node/pull/66631
worker:
  * (SEMVER-MINOR) preload streams into startup snapshot (Matteo Collina) https://github.com/nodejs/node/pull/66311
zlib:
  * (SEMVER-MINOR) add crc32c (Philipp Dunkel) https://github.com/nodejs/node/pull/66828

PR-URL: https://github.com/nodejs/node/pull/67664
2026-11-21 16:57:39 +01:00
Marcel 5e1d56509d test: fix on zfs build host
Signed-off-by: Marcel <me@m4rc3l.de>
PR-URL: https://github.com/nodejs/node/pull/67517
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2026-11-21 15:16:30 +01:00
Antoine du Hamel 699e37dd0b tools: remove duplicate variables
All our script already define a `BASE_DIR` variable, needed to
load `utils.sh`; computing a similar `ROOT` variable in `utils.sh` is
pure overhead and needlessly complicates reading the source files.

Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67511
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2026-11-21 15:16:30 +01:00
Matteo Collina 1ecb5d3ac6 stream: keep async context of the pipeTo pump
The pipeTo() pump re-enters from the destination's ready hook, which
writableStreamUpdateBackpressure invokes synchronously, and from the
chunk steps of its read request. Both run in the async context of the
code that cleared the backpressure or enqueued the chunk, so the
source's pull() and the writes issued after a resumption observed that
context instead of the one of the pipeTo() call, as they did with the
promise-based pump. Capture the async context frame when the pipe starts
and run the pump in it.

Refs: https://github.com/nodejs/node/issues/66906
Refs: https://github.com/nodejs/node/pull/65138
Signed-off-by: Matteo Collina <hello@matteocollina.com>
PR-URL: https://github.com/nodejs/node/pull/67054
Refs: https://github.com/nodejs/node/pull/67052
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
2026-11-21 15:16:30 +01:00
npm CLI robot 3249978973 deps: upgrade npm to 11.21.3
PR-URL: https://github.com/nodejs/node/pull/67628
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2026-11-21 15:16:30 +01:00
Fatih Güzel b977b28102 meta: add Fatih Güzel to .mailmap
Signed-off-by: Fatih Güzel <fatihguzeldev@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67622
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com>
2026-11-21 15:16:29 +01:00
Yuya Inoue 767fdc82bc build: enable V8 undefined double support
V8 14.6 enables v8_enable_undefined_double by default in its GN
build, but the GYP configuration never set V8_ENABLE_UNDEFINED_DOUBLE,
so the default build ran V8 in a non-default configuration. Enabling
it eliminates the repeated wrong-map deoptimizations in big.js
reported in #66717.

Align the GYP configuration with V8's default, matching the change
made on main in 8394db37d8.

Refs: https://github.com/nodejs/node/commit/8394db37d8004219fa30985675d5e6a4cac63556
Fixes: https://github.com/nodejs/node/issues/66717
Signed-off-by: inoway46 <inoueyuya416@gmail.com>
Assisted-by: Codex
Assisted-by: Claude Code
PR-URL: https://github.com/nodejs/node/pull/66733
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
2026-11-21 15:16:29 +01:00
Matteo Collina a9e2af0aad test: add regression test for worker terminate during TLA parent evaluation
Terminating a worker while it evaluates the parent module of a
top-level-await module used to abort the whole process with a V8 CHECK
failure (Check failed: !is_null()). Add a regression test that reproduces
the scenario from https://github.com/nodejs/node/issues/67550.

Refs: https://github.com/nodejs/node/issues/67550
PR-URL: https://github.com/nodejs/node/pull/67570
Refs: https://github.com/v8/v8/commit/be84cdeee94ee2574352cd6527d9a2f0bc0bea54
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2026-11-21 15:16:29 +01:00
Igor Sheludko fd53482db2 deps: V8: cherry-pick be84cdeee94e
Original commit message:

    [d8] Handle termination exception in async modules

    ... instead of failing a CHECK.

    Fixed: 488754141
    Change-Id: If97aea17887b731434a776bbac3ffba47b422417
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/7653802
    Reviewed-by: Patrick Thier <pthier@chromium.org>
    Auto-Submit: Igor Sheludko <ishell@chromium.org>
    Commit-Queue: Igor Sheludko <ishell@chromium.org>
    Commit-Queue: Patrick Thier <pthier@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#105734}

Refs: https://github.com/v8/v8/commit/be84cdeee94ee2574352cd6527d9a2f0bc0bea54
PR-URL: https://github.com/nodejs/node/pull/67570
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2026-11-21 15:16:29 +01:00
Jakob LinkeandRenegade334 899d01304c deps: V8: backport f607706154ea
Original commit message:

    [regexp] Handle supplementary case equivalents of BMP characters

    Unicode 18 adds U+1DF95, which simple-folds to U+00DF. This creates the
    first case-equivalence class spanning BMP and supplementary characters:
    {U+00DF, U+1E9E, U+1DF95}.

    Discard supplementary characters from the generator's non-unicode
    closures before calling Canonicalize, which requires UTF-16 code units
    and otherwise CHECK-fails with ICU 79. Apply the same filtering in
    runtime non-unicode closure.

    Generate SupplementaryEquivalentsSet and desugar its BMP characters into
    character classes under /iu and /iv, allowing literals to match
    surrogate pairs.

    Backreferences with differing UTF-16 character widths remain unsupported
    and are tracked in crbug.com/571793821.

    IgnoreSet is unchanged with ICU 78 and with ICU 78.2 patched to upstream
    Unicode 18 case data. With the patched data, the generator succeeds,
    SupplementaryEquivalentsSet is {U+00DF, U+1E9E}, and regexp tests pass
    in release and debug.

    Bug: 571232615, 571668686
    Change-Id: I9eacb273a74c66e17f0cfb1b256e863f2718c130
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/8548134
    Reviewed-by: Patrick Thier <pthier@chromium.org>
    Commit-Queue: Jakob Linke <jgruber@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#110522}

Refs: https://github.com/v8/v8/commit/f607706154eabc4a949628a88b38dbe95cd2274c
Co-authored-by: Renegade334 <rene@renegade334.me.uk>
PR-URL: https://github.com/nodejs/node/pull/67527
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2026-11-21 15:16:29 +01:00
pthierandRenegade334 7d0a65d733 deps: V8: backport 35423c16d252
Original commit message:

    [regexp] Do not combine lone surrogates in TextBuilder

    In Unicode mode (/u and /v), valid surrogate pairs are already combined
    into single uc32 code points (> 0xFFFF) by the scanner (ReadNext),
    escape parser (ParseUnicodeEscape), or ICU string iterator (U16_NEXT)
    before TextBuilder is called.

    Remove the obsolete pending_surrogate_ state and
    AddEscapedUnicodeCharacter workaround from TextBuilder/Builder so that
    separate lone lead and trail surrogates (such as in \q{} class strings)
    are never falsely combined into a surrogate pair.

    Fixed: 569770971
    Change-Id: Ic4c45bbd565171dc24c49c60d1c6d25ce6f4c256
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/8529770
    Reviewed-by: Jakob Linke <jgruber@chromium.org>
    Commit-Queue: Patrick Thier <pthier@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#110442}

Refs: https://github.com/v8/v8/commit/35423c16d252663c4b8fad252a6f2aded5d51482
Co-authored-by: Renegade334 <rene@renegade334.me.uk>
PR-URL: https://github.com/nodejs/node/pull/67527
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2026-11-21 15:16:29 +01:00
Jakob Linke 4b2345a19e deps: V8: cherry-pick bb0e798c09e3
Original commit message:

    [regexp] Make generated IgnoreSet independent of the build locale

    gen-regexp-special-case implements Canonicalize (ECMA-262 22.2.2.9.3)
    for non-unicode /i, which is defined in terms of the locale-independent
    String.prototype.toUpperCase. It called icu::UnicodeString::toUpper()
    without a locale, which uses the ICU default locale of the build host.
    Under tr and az, 'i' uppercases to U+0130, so 'i' and 'I' were added to
    IgnoreSet and /i/i no longer matched "I".

    Uppercase in the root locale. The generated tables are unchanged for
    non-tr/az build hosts.

    Change-Id: I49c62a41e8e47abc2e6c84ac091a4533f917ed97
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/8459863
    Auto-Submit: Jakob Linke <jgruber@chromium.org>
    Commit-Queue: Patrick Thier <pthier@chromium.org>
    Commit-Queue: Jakob Linke <jgruber@chromium.org>
    Reviewed-by: Patrick Thier <pthier@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#110086}

Refs: https://github.com/v8/v8/commit/bb0e798c09e30594496fbca013a7d6ebd5e15e4c
PR-URL: https://github.com/nodejs/node/pull/67527
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2026-11-21 15:16:29 +01:00
Jakob LinkeandRenegade334 ef6a738922 deps: V8: backport ee1c92f63568
Original commit message:

    [regexp] Share matcher case equivalence when factoring alternatives

    Alternative sorting and prefix factoring used full case folding, which
    can merge characters that the matcher treats as distinct in legacy /i
    mode, such as U+017F and s.

    Use shared CaseFolding::EquivalenceKey and CloseOver operations for
    comparisons and character expansion. Preserve UTF-16 code-unit handling
    in non-unicode mode and code-point decoding in Unicode backreferences.
    Remove the generated SpecialAddSet while retaining exact Canonicalize
    for IgnoreSet generation.

    Add exhaustive release-only BMP equivalence and closure checks, plus
    coverage for alternatives, literals, ranges, and backreferences. Restore
    the real assertEquals in regress-10573.

    Change-Id: Idbf3866ca99c5446aeab15fd21f841d2f77d4243
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/8456723
    Commit-Queue: Patrick Thier <pthier@chromium.org>
    Reviewed-by: Patrick Thier <pthier@chromium.org>
    Auto-Submit: Jakob Linke <jgruber@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#110082}

Refs: https://github.com/v8/v8/commit/ee1c92f63568592d2362127ff9981e2fc75e9e6d
Co-authored-by: Renegade334 <rene@renegade334.me.uk>
PR-URL: https://github.com/nodejs/node/pull/67527
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2026-11-21 15:16:29 +01:00
Jakob Linke b0f6cf740b deps: V8: cherry-pick 53588faba3ed
Original commit message:

    [regexp] Use simple case folding for /iu backreferences

    Backreference comparison in unicode mode went through
    icu::UnicodeString::caseCompare, which applies full case folding to the
    whole string. Canonicalize (ECMA-262 22.2.2.9.2) instead applies the
    simple case folding of each code point separately, so e.g. U+00DF must
    not fold to "ss". As a result /^(..)\1$/iu matched "ßSsß", since both
    halves full-fold to "sss".

    The rest of the engine already closes character ranges over
    USET_SIMPLE_CASE_INSENSITIVE, so only backreferences were affected, and
    only for two-byte subjects: the one-byte matcher compares code units
    inline.

    Replace caseCompare with a per-code-point loop over u_foldCase. This
    also drops the icu::UnicodeString construction from the matcher's hot
    path.

    Fixed: 562108903
    Change-Id: I277040a7d8c310bf7833f8fbcce2f005f823047c
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/8423859
    Commit-Queue: Patrick Thier <pthier@chromium.org>
    Auto-Submit: Jakob Linke <jgruber@chromium.org>
    Reviewed-by: Patrick Thier <pthier@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#109970}

Refs: https://github.com/v8/v8/commit/53588faba3ed165c7e713d077d6b90fadf795887
PR-URL: https://github.com/nodejs/node/pull/67527
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2026-11-21 15:16:29 +01:00
fatih 4a5604382d test: extend http2 cancellation coverage
Cover session reuse after canceling queued uploads, including partial
sends and destruction from a write callback. Verify that another
stream remains usable after cancellation.

Signed-off-by: Fatih Güzel <fatihguzeldev@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/66784
Backport-PR-URL: https://github.com/nodejs/node/pull/67563
Fixes: https://github.com/nodejs/node/issues/66742
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2026-11-21 15:16:28 +01:00
Filip Skokan 3f6bebde97 tools: sort OpenSSL releases numerically
Select 3.5.10 over 3.5.9 when GitHub returns matching tags in
lexicographic order.

Signed-off-by: Filip Skokan <panva.ip@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67441
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
2026-11-21 15:16:28 +01:00
Renegade334 c87bb324f3 deps: update Rust crates for V8 14.6.202.34-node.40
PR-URL: https://github.com/nodejs/node/pull/67474
Fixes: https://github.com/nodejs/node/issues/67457
Reviewed-By: LiviaMedeiros <livia@cirno.name>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
2026-11-21 15:16:28 +01:00
v8-ci-autoroll-builderandRenegade334 07cb738977 deps: V8: cherry-pick third_party/rust update from cce7146a7a2a
Original commit message:

    Update V8 DEPS (trusted)

    Rolling agents/internal: https://chrome-internal.googlesource.com/chrome/agents-internal/+log/31b193a..d9f3ed2

    Rolling build: https://chromium.googlesource.com/chromium/src/build/+log/6bb98d0..209acdc

    Rolling buildtools/linux64: git_revision:e331ddb6e93389abfc75c611690bb82f5274029e..git_revision:1d86777e7f2562a86ecea77d1809ac4f82bb5bfe

    Rolling buildtools/mac: git_revision:e331ddb6e93389abfc75c611690bb82f5274029e..git_revision:1d86777e7f2562a86ecea77d1809ac4f82bb5bfe

    Rolling buildtools/win: git_revision:e331ddb6e93389abfc75c611690bb82f5274029e..git_revision:1d86777e7f2562a86ecea77d1809ac4f82bb5bfe

    Rolling third_party/libunwind/src: https://chromium.googlesource.com/external/github.com/llvm/llvm-project/libunwind/+log/9fe0a38..6de9f6e

    Rolling third_party/llvm-libc/src: https://chromium.googlesource.com/external/github.com/llvm/llvm-project/libc/+log/265cc6a..9a821f4

    Rolling third_party/perfetto: https://chromium.googlesource.com/external/github.com/google/perfetto/+log/c6375c0..ec4b996

    Rolling third_party/rust: https://chromium.googlesource.com/chromium/src/third_party/rust/+log/403633f..ea940b7

    Rolling third_party/siso/cipd: git_revision:7ea15ed68d4aa12fc4aaa50f5446e8549e8f1ce0..git_revision:24b80aff540b202a88417f9f93b0dc86229eca7a

    Rolling tools/win: https://chromium.googlesource.com/chromium/src/tools/win/+log/faefd1b..45843c2

    Roll created at https://cr-buildbucket.appspot.com/build/8677600804642094433

    Change-Id: I90eeebbecba5a32e5cf90889d3011772361021d0
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/8022503
    Commit-Queue: v8-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com <v8-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
    Bot-Commit: v8-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com <v8-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
    Cr-Commit-Position: refs/heads/main@{#108316}

Refs: https://github.com/v8/v8/commit/cce7146a7a2a2081d8751ce1fd07e3391d842b6f
Co-authored-by: Renegade334 <contact.9a5d6388@renegade334.me.uk>
PR-URL: https://github.com/nodejs/node/pull/67474
Fixes: https://github.com/nodejs/node/issues/67457
Reviewed-By: LiviaMedeiros <livia@cirno.name>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
2026-11-21 15:16:28 +01:00
Ulises Gascon ff84886cfa tools: check notarization status when verifying macOS binaries
Signed-off-by: Ulises Gascon <UlisesGascon@users.noreply.github.com>
PR-URL: https://github.com/nodejs/node/pull/67541
Reviewed-By: Stewart X Addison <sxa@redhat.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
2026-11-21 15:16:28 +01:00
junyup0503 81e2f39b03 http: emit 'drain' after flushing coalesced chunks
Since chunked writes are coalesced while the message is corked,
write() decides backpressure from the byte length of the buffered
chunks and sets kNeedDrain. When uncork() flushes them, net.Socket
accounts string chunks in UTF-16 code units, so with multi-byte text it
can stay below its own highWaterMark. It then never needs to drain and
never emits 'drain'. If the flushed writes complete asynchronously, the
check at the end of uncork() also runs while bytes are still pending,
so the response stalls with writableNeedDrain === true and
writableLength === 0.

Re-check the drain condition once the flushed data has been written,
unless the message or its socket has been destroyed in the meantime.

Fixes: https://github.com/nodejs/node/issues/66781
Refs: https://github.com/nodejs/node/pull/64987
Assisted-by: AI coding agent
Signed-off-by: junyup0503 <97156898+junyup0503@users.noreply.github.com>
PR-URL: https://github.com/nodejs/node/pull/66782
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
2026-11-21 15:16:28 +01:00
Antoine du Hamel fd16b0b1b4 lib: reintroduce _http_ aliases
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67546
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
2026-11-21 15:16:28 +01:00
Antoine du Hamel 26d9982c23 lib: lib: move _http_* to internal/http
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67546
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
2026-11-21 15:16:28 +01:00
Antoine du Hamel 9c0526ed05 build: do not pass vendored headers when building against shared libs
And setup `test-shared.yml` so we can detect regressions.

Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/66844
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
2026-11-21 15:16:27 +01:00
Yao Zi a27bdb71e4 build: do not include vendored simdutf with --shared-simdutf
Do not include the vendored simdutf when compiling merve if shared
simdutf is used to ensure the headers match the linked library.

Signed-off-by: Yao Zi <me@ziyao.cc>
PR-URL: https://github.com/nodejs/node/pull/67410
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
Reviewed-By: James M Snell <jasnell@gmail.com>
2026-11-21 15:16:27 +01:00
Antoine du Hamel b39b22b7e4 tools: add support for multiple-commit PRs in review_backport.sh
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67108
Reviewed-By: James M Snell <jasnell@gmail.com>
2026-11-21 15:16:27 +01:00
Ultron ad53122f3c doc: fix typo in releases.md
Signed-off-by: Ultroncn <82553854+Ultroncn@users.noreply.github.com>
PR-URL: https://github.com/nodejs/node/pull/67463
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com>
Reviewed-By: Jason Zhang <xzha4350@gmail.com>
2026-11-21 15:16:27 +01:00
Chengzhong Wu 4f282b8063 build: enable pie on linux
Signed-off-by: Chengzhong Wu <cwu631@bloomberg.net>
PR-URL: https://github.com/nodejs/node/pull/67386
Refs: https://github.com/nodejs/node/issues/66951
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
2026-11-21 15:16:27 +01:00
Ulises Gascón 8c899b43c7 tools: notarize bin/node in the darwin tarballs
The binary tarball target only codesigns bin/node. Notarization runs
only for the pkg, and tools/osx-notarize.sh only knows how to submit a
pkg, so every darwin tarball binary ships signed but without a ticket.
Gatekeeper then applies a full trust evaluation to each process spawned
through it, which slows down every CLI shim on macOS.

Make tools/osx-notarize.sh take a path instead of a version id. A .pkg
keeps the existing flow. Any other file is treated as a Mach-O binary:
it is zipped with ditto, submitted with notarytool, and the ticket is
verified with `codesign --verify -R=notarized` using the existing retry
helper. spctl cannot be used for that check, it rejects command line
tools as "not an app". The binary itself is not modified, so published
checksums do not change. A bare version id is still accepted and
resolved to node-<version>.pkg for the release branches.

Call the script from the binary target after codesign. It is a no-op
unless the NOTARIZATION_* variables are exported, so the tarball jobs
keep behaving as today until the release job injects them.

Refs: https://github.com/nodejs/node/issues/67140
Refs: https://github.com/nodejs/build/issues/3538
Refs: https://github.com/nodejs/build/issues/4545
Refs: https://github.com/nodejs/node/pull/66855
Assisted-by: Claude
Assisted-by: Codex
Signed-off-by: Ulises Gascon <ulisesgascongonzalez@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67143
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Stewart X Addison <sxa@redhat.com>
2026-11-21 15:16:27 +01:00
Livia Medeiros 86cbf80be2 test: use relative paths within test directory in test-watch-mode.mjs
Signed-off-by: LiviaMedeiros <livia@cirno.name>
PR-URL: https://github.com/nodejs/node/pull/67343
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
2026-11-21 15:16:27 +01:00
Christian Aurich Zanettini Martins fb4695aff8 test: deflake test-tls-resume-servername
The PSK server's pskCallback answered every identity, but OpenSSL also
asks it about the resumption ticket, cut at its first NUL byte. When
that prefix is valid UTF-8, about 1% of the time, the ticket was taken
for an external PSK and the handshake failed with decrypt_error. Only
answer for the identity the client sends.

Signed-off-by: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67450
Refs: https://github.com/nodejs/reliability/issues/1722
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: LiviaMedeiros <livia@cirno.name>
2026-11-21 15:16:27 +01:00
Christian Aurich Zanettini Martins 40410667b5 test: deflake test-fs-stat-cancel-inflight under FIPS
The pbkdf2() call that keeps the only threadpool worker busy used a
6-byte password and a 4-byte salt. OpenSSL 4 FIPS rejects those, so
the derivation failed at once and freed the worker. The queued stat
could then start before req.cancel() ran, and it completed without
ECANCELED.

Use inputs that meet the FIPS minimums and check that the derivation
succeeds.

Signed-off-by: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67449
Refs: https://github.com/nodejs/node/pull/67248
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2026-11-21 15:16:27 +01:00
Antoine du Hamel c69d3f534d doc: add aduh95 as last security release stewards
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67434
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2026-11-21 15:16:26 +01:00
Trevor Burnham a686210bcb meta: update Trevor Burnham's email in .mailmap
Assisted-by: Claude Opus 5.5
Signed-off-by: Trevor Burnham <trevorburnham@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67425
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2026-11-21 15:16:26 +01:00
Trevor Burnham a8cdbb076f doc: explain how sqlite binds numbers and BigInts
A JavaScript number is always bound with sqlite3_bind_double(), so it is
written as REAL even when it has no fractional part. A BigInt is bound
with sqlite3_bind_int64() and is the way to write an INTEGER. The type
conversion table listed number under both INTEGER and REAL without
saying which applies when, so the rule had to be discovered by
experiment.

Column type affinity hides this most of the time, which is why the cases
it does not cover are surprising. Comparing against a TEXT column is the
worst of them: the number 3 compares as '3.0' and silently fails to
match a stored '3', with no error to point at the cause. Document the
rule, the reason for it, and that case, and remove number from the
table's INTEGER row. Point the virtual table section's link at the new
text.

better-sqlite3 binds numbers the same way and has fielded the same
question repeatedly (WiseLibs/better-sqlite3#165, #627, #897, #1144,
#1313), each time closed as working as intended.

Fixes: https://github.com/nodejs/node/issues/63826
Refs: https://github.com/WiseLibs/better-sqlite3/issues/627
Assisted-by: Claude Opus 5.5
Signed-off-by: Trevor Burnham <trevorburnham@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67424
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Guilherme Araújo <arauujogui@gmail.com>
2026-11-21 15:16:26 +01:00
René d8069acf8a deps: V8: backport a05177279022
Original commit message:

    [temporal] Compute zoneinfo64.res length from ResB index table

    ICU4C's offsetTOCLookupFn sets UDataMemory::length = -1 for the last
    entry in a .dat archive (which occurs for zoneinfo64.res in small-icu
    builds where zu.res is excluded), and pointerTOCLookupFn sets length = -1
    for all entries in pointer TOC builds.

    When UDataMemory::length is -1, compute the bundle byte length from the
    ResB header offset (udata_getMemory(memory) - data) and the
    self-describing URES_INDEX_BUNDLE_TOP word in the ResB index table,
    matching ICU4C's res_init() in uresdata.cpp. Also check USING_SYSTEM_ICU
    in addition to V8_ENABLE_TEMPORAL_SYSTEMICU when deciding whether
    internal udatamem.h is available.

    Bug: 576986967
    Change-Id: I7a2c881eb3891a97eafb244f71aa405ff2434b51
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/8642579
    Commit-Queue: Manish Goregaokar <manishearth@google.com>
    Reviewed-by: Rezvan Mahdavi Hezaveh <rezvan@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#111181}

Refs: https://github.com/v8/v8/commit/a0517727902272117b79281998dc0d5d4da0fa49
Co-authored-by: Renegade334 <contact.9a5d6388@renegade334.me.uk>
PR-URL: https://github.com/nodejs/node/pull/67416
Refs: https://issues.chromium.org/issues/576986967
Refs: https://github.com/nodejs/node/issues/62676
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Steven R Loomis <srl295@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2026-11-21 15:16:26 +01:00
Yuya Inoue 6b95ba09de test: deflake test-watch-mode-files_watcher
Some test cases made a single change right after creating a watcher.
On macOS, libuv starts the FSEvents stream asynchronously, so that
change could be missed and the test hung until it timed out.

Keep making the change until the watcher reports it, as the other
cases in the file already do.

Refs: https://github.com/nodejs/reliability/issues/1715
Refs: https://github.com/nodejs/reliability/issues/1644
Signed-off-by: inoway46 <inoueyuya416@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67298
Refs: https://github.com/nodejs/node/actions/runs/42177414954
Reviewed-By: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com>
2026-11-21 15:16:26 +01:00
Sarthak Ahuja e7bc0a94ac doc: document invalid X509Certificate validity times
When a certificate's notBefore or notAfter time cannot be parsed,
validFrom and validTo return the string 'Bad time value', and
validFromDate and validToDate return an invalid Date. Relational
comparisons with an invalid Date are always false, so a naive expiry
check can treat such a certificate as valid. Document the current
behavior and tell callers to reject invalid dates first.

Signed-off-by: Sarthak Ahuja <39986642+SarthakAhuja@users.noreply.github.com>
PR-URL: https://github.com/nodejs/node/pull/67406
Refs: https://github.com/nodejs/node/issues/67285
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
Reviewed-By: Tim Perry <pimterry@gmail.com>
2026-11-21 15:16:26 +01:00
René c5d31ace8c tools: update mk-ca-bundle to 1.35
Adds the facility to ignore root certificates by fingerprint using
mk-ca-bundle's -x parameter.

Signed-off-by: Renegade334 <contact.9a5d6388@renegade334.me.uk>
PR-URL: https://github.com/nodejs/node/pull/67403
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
2026-11-21 15:16:26 +01:00
Farid Zakaria 811b2e460f test: deflake watch mode test for missing env file
The subtest watched all of tmpdir, so files created there by the
subtests running alongside it restarted the child and broke its
output. The fix is to watch a directory of its own instead to not
conflict.

Refs: https://github.com/nodejs/node/pull/66232
Assisted-by: Claude
Signed-off-by: Farid Zakaria <farid.m.zakaria@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67041
Reviewed-By: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com>
2026-11-21 15:16:26 +01:00
Manjeet Singh af95ef04d1 doc: explain fallback arrays in package exports targets
The "exports" field type lists `string[]`, but the packages
documentation never describes how an array of targets is resolved.
Document that items are tried in order, that only invalid targets and
unmatched conditions are skipped, and that a missing file does not
cause the next item to be tried.

Fixes: https://github.com/nodejs/node/issues/58600
Signed-off-by: Manjeet Singh <024manjeetsingh@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67393
Reviewed-By: Jordan Harband <ljharb@gmail.com>
Reviewed-By: Jacob Smith <jacob@frende.me>
2026-11-21 15:16:26 +01:00
Antoine du Hamel 9dd04eb879 tools: enable strict mode for yamllint
Treats warnings as errors, so we can detect regressions.

Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67380
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
2026-11-21 15:16:25 +01:00
Stewart X Addison 363093606d test: increase iterations on histogram test after snapshot changes
Signed-off-by: Stewart X Addison <sxa@ibm.com>
PR-URL: https://github.com/nodejs/node/pull/67379
Reviewed-By: Philipp Dunkel <pip@pipobscure.com>
Reviewed-By: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2026-11-21 15:16:25 +01:00
Robert I Nilsson 891e24c5a9 doc: document this binding in TLS callbacks
Document that `this` is bound to the `tls.TLSSocket` instance
when `SNICallback` and `ALPNCallback` are invoked.

Signed-off-by: Robert I Nilsson <robert.i.nilsson@callclue.com>
PR-URL: https://github.com/nodejs/node/pull/66682
Reviewed-By: Tim Perry <pimterry@gmail.com>
2026-11-21 15:16:25 +01:00
Node.js GitHub Bot 79e5ba48c3 deps: update nghttp3 to 1.19.0
PR-URL: https://github.com/nodejs/node/pull/67333
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tim Perry <pimterry@gmail.com>
2026-11-21 15:16:25 +01:00
Yuya Inoue c5fa6da66f http2: exclude queued data from response memory checks
Allow clients to receive responses when queued request data exceeds
maxSessionMemory, while preserving limits on received headers.

Fixes: https://github.com/nodejs/node/issues/66739
Refs: https://github.com/nodejs/node/pull/67113
Assisted-by: Codex
Signed-off-by: inoway46 <inoueyuya416@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67114
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Tim Perry <pimterry@gmail.com>
2026-11-21 15:16:25 +01:00
Rafael Gonzaga 77925a426d doc: document --allow-fs-vfs in the permission model page
Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com>
PR-URL: https://github.com/nodejs/node/pull/66793
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2026-11-21 15:16:25 +01:00
Antoine du Hamel 01c4a050cd deps: V8: cherry-pick 785a2ea88a90
Original commit message:

    [tracing] do not define legacy tracing classes when using Perfetto

    Otherwise the Windows build of Node.js fails with `undefined symbol`
    errors due to the missing destructor.

    Change-Id: Id0841aed2f0a8f0cfe8889c39150552e31ee5f96
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/8580049
    Reviewed-by: Yang Guo <yangguo@chromium.org>
    Reviewed-by: Chengzhong Wu <cwu631@bloomberg.net>
    Commit-Queue: Chengzhong Wu <cwu631@bloomberg.net>
    Cr-Commit-Position: refs/heads/main@{#110947}

Refs: https://github.com/v8/v8/commit/785a2ea88a903317d72fe40e3fff660267865a69
PR-URL: https://github.com/nodejs/node/pull/66876
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
2026-11-21 15:16:25 +01:00
joao-oliveira-softtor e8066562a0 test_runner: add option to forbid exclusive tests
Add --test-forbid-only and the forbidOnly run() option to detect
accidentally committed exclusive tests. Reject only declarations and
runOnly(true) in both isolation modes, and record a run-level failure
so TODO and expected failures cannot absorb the error.

Document the runtime-only detection and add regression coverage for
filtering, option inheritance, both isolation modes, and disabled
guards.

Refs: https://github.com/nodejs/node/issues/60917
Assisted-by: a coding agent
Signed-off-by: João Victor <joao.oliveira@softtor.com.br>
PR-URL: https://github.com/nodejs/node/pull/66578
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
2026-11-21 15:16:25 +01:00
Rafael Gonzaga b9e4abf4e5 doc: list openssl-store channel and drop field in permissions
The node:permission-model:openssl-store diagnostics channel and the
--allow-openssl-store flag were introduced in
https://github.com/nodejs/node/pull/63949, but the Audit Mode section
of the permissions documentation was not updated to list them.

Refs: https://github.com/nodejs/node/pull/63949
Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com>
PR-URL: https://github.com/nodejs/node/pull/66558
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
2026-11-21 15:16:25 +01:00
Barath Raj 395b870f83 http2: do not reset stream before END_STREAM is sent
When a compat API response finishes and the request had no body,
kMaybeDestroy() takes the graceful-close path and sends
RST_STREAM(NO_ERROR) right away. If the connection flow-control
window is exhausted at that point, the empty END_STREAM DATA frame
is still queued, so the reset goes out first and the END_STREAM
frame is dropped, truncating an otherwise complete response.

Skip the graceful close when the request already ended with its
HEADERS frame, since there is no request body to abort.

Fixes: https://github.com/nodejs/node/issues/66525
Refs: https://github.com/nodejs/node/pull/64265
Refs: https://github.com/nodejs/node/pull/64663
Signed-off-by: Barath <barathraj048@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/66672
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Efe Karasakal <hi@efe.dev>
2026-11-21 15:16:24 +01:00