Antoine du Hamel
9e201e61fd
tools: copyedit Nix files
...
PR-URL: https://github.com/nodejs/node/pull/61447
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
2026-01-22 00:00:53 +00:00
Nikita Skovoroda and Gürgün Dayıoğlu
77e8d443ac
src: improve StringBytes::Encode perf on UTF8
...
Co-authored-by: Gürgün Dayıoğlu <hey@gurgun.day >
PR-URL: https://github.com/nodejs/node/pull/61131
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day >
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Daniel Lemire <daniel@lemire.me >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
2026-01-21 18:40:17 +00:00
Ilyas Shabi
98d23317f0
test: add implicit test for fs dispose handling with using
...
PR-URL: https://github.com/nodejs/node/pull/61140
Reviewed-By: LiviaMedeiros <livia@cirno.name >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-01-21 18:23:08 +00:00
Matteo Collina
853277a9e2
quic: move quic behind compile time flag
...
Move node:quic behind a compile-time flag, disabled by default.
Use --experimental-quic at configure time to enable.
- Add --experimental-quic flag to configure.py
- Add node_use_quic variable and HAVE_QUIC define
- Make QUIC sources conditional in node.gyp
- Move ngtcp2/nghttp3 deps under QUIC condition in node.gypi
- Update C++ guards to check HAVE_QUIC
- Update process.features.quic to check node_use_quic
PR-URL: https://github.com/nodejs/node/pull/61444
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Aviv Keller <me@aviv.sh >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-01-21 17:39:28 +00:00
Antoine du Hamel
f254bcbdc5
tools: validate release commit diff as part of lint-release-proposal
...
PR-URL: https://github.com/nodejs/node/pull/61440
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Tierney Cyren <hello@bnb.im >
Reviewed-By: Richard Lau <richard.lau@ibm.com >
Reviewed-By: Aviv Keller <me@aviv.sh >
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com >
2026-01-21 17:39:17 +00:00
Tobias Nießen
32ed3cc44a
src: add missing override specifier to Clean()
...
The `CallbackInfo::Clean()` method overrides `Cleanable::Clean()` and
should be marked as `override`, both because it is good practice to do
so and for consistency with the rest of the code base.
PR-URL: https://github.com/nodejs/node/pull/61429
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Aviv Keller <me@aviv.sh >
2026-01-21 15:02:37 +00:00
Neal Beeken
dc04bf6761
buffer: make methods work on Uint8Array instances
...
Removes the reliance on prototype bound methods internally
so that Uint8Arrays can be set as the bound `this` value when calling
the various Buffer methods. Introduces some additional tamper protection
by removing internal reliance on writable properties.
Fixes: https://github.com/nodejs/node/issues/56577
PR-URL: https://github.com/nodejs/node/pull/56578
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2026-01-21 14:51:10 +00:00
Mo Luo
16188998e2
build: update android-patches/trap-handler.h.patch
...
PR-URL: https://github.com/nodejs/node/pull/60369
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
2026-01-21 11:14:23 +00:00
Jeevankumar S
7d0417f997
doc: clarify process.argv[1] behavior for -e/--eval
...
Signed-off-by: Jeevankumar-S <jeevenkumar2003@email.com >
PR-URL: https://github.com/nodejs/node/pull/61366
Fixes: https://github.com/nodejs/node/issues/61363
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-01-21 09:25:36 +00:00
Robert Nagy
fadb214d95
stream: readable read one buffer at a time
...
Instead of wasting cycles concatenating buffers, just return each
one by one.
Similar (but not exact) old behavior can be achieved by using
`readable.read(readable.readableLength)` instead of
`readable.read()`. In some edge cases it might be necessary
to do a `readable.read(0)` first.
PR: https://github.com/nodejs/node/pull/60441
PR-URL: https://github.com/nodejs/node/pull/60441
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2026-01-21 08:29:40 +00:00
Mike McCready
a5ae2b2879
doc: remove Windows Dev Home instructions from BUILDING
...
PR-URL: https://github.com/nodejs/node/pull/61434
Fixes: https://github.com/nodejs/node/issues/61424
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-01-21 07:19:17 +00:00
silverwind
42d94e0623
doc: clarify TypedArray properties on Buffer
...
"properties" is a more generic wording which also includes non-method
properties like `byteLength`.
Fixes: https://github.com/nodejs/node/issues/34946
PR-URL: https://github.com/nodejs/node/pull/61355
Refs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteLength
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
2026-01-20 21:42:19 +00:00
Mert Can Altin
488aaee51f
src: cache context lookup in vectored io loops
...
PR-URL: https://github.com/nodejs/node/pull/61387
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2026-01-20 21:21:15 +00:00
Mert Can Altin
2cc10dafa0
fs: remove duplicate getValidatedPath calls
...
PR-URL: https://github.com/nodejs/node/pull/61359
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
Reviewed-By: Xuguang Mei <meixuguang@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2026-01-20 21:21:04 +00:00
Mike McCready
33ea43eff3
build,win: update WinGet configurations to Python 3.14
...
PR-URL: https://github.com/nodejs/node/pull/61431
Refs: https://github.com/nodejs/node/issues/61427
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-01-20 16:13:23 +00:00
Mike McCready
be44179658
doc: update Python 3.14 manual install instructions (Windows)
...
PR-URL: https://github.com/nodejs/node/pull/61428
Refs: https://github.com/nodejs/node/issues/61427
Refs: https://github.com/nodejs/node-gyp/issues/3264
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com >
Reviewed-By: Aviv Keller <me@aviv.sh >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-01-20 15:07:42 +00:00
Node.js GitHub Bot
87d7db1918
deps: patch V8 to 14.3.127.18
...
Refs: https://github.com/v8/v8/compare/14.3.127.17...14.3.127.18
PR-URL: https://github.com/nodejs/node/pull/61421
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Richard Lau <richard.lau@ibm.com >
2026-01-20 13:02:36 +00:00
Michael Smith
91a99786ae
src: cache missing package.json files in the C++ package config cache
...
PR-URL: https://github.com/nodejs/node/pull/60425
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2026-01-20 13:02:25 +00:00
Tobias Nießen
805673a0c8
src: use starts_with instead of rfind/find
...
PR-URL: https://github.com/nodejs/node/pull/61426
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-01-20 11:44:25 +00:00
Node.js GitHub Bot
f5b312bb01
deps: update googletest to 85087857ad10bd407cd6ed2f52f7ea9752db621f
...
PR-URL: https://github.com/nodejs/node/pull/61417
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-01-20 11:11:03 +00:00
Bart Louwers
f475aea034
sqlite: enable defensive mode by default
...
PR-URL: https://github.com/nodejs/node/pull/61266
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com >
2026-01-20 11:10:53 +00:00
Taejin Kim
93eaba8e1d
lib: fix typo in util.js comment
...
Fix typo: 'explictly' -> 'explicitly' in getCallSites function comment.
PR-URL: https://github.com/nodejs/node/pull/61365
Reviewed-By: Qingyu Deng <i@ayase-lab.com >
Reviewed-By: Aviv Keller <me@aviv.sh >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
2026-01-20 12:05:26 +01:00
Node.js GitHub Bot
3ecd33944f
crypto: update root certificates to NSS 3.119
...
This is the `certdata.txt` from NSS 3.119.
This is the version of NSS that shipped in Firefox 147.0.1 on 2026-01-16.
Certificates removed:
- CommScope Public Trust ECC Root-01
- CommScope Public Trust ECC Root-02
- CommScope Public Trust RSA Root-01
- CommScope Public Trust RSA Root-02
Refs: https://raw.githubusercontent.com/nss-dev/nss/refs/tags/NSS_3_119_RTM/lib/ckfw/builtins/certdata.txt
PR-URL: https://github.com/nodejs/node/pull/61419
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-01-20 12:01:26 +01:00
Node.js GitHub Bot
ba05a66774
tools: update nixpkgs-unstable to be5afa0fcb31f0a96bf9ecba05a516c66fc
...
PR-URL: https://github.com/nodejs/node/pull/61420
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-01-20 01:08:00 +00:00
Tobias Nießen
a35944685a
src: use C++ nullptr in sqlite
...
Refs: https://github.com/nodejs/node/pull/61407
PR-URL: https://github.com/nodejs/node/pull/61416
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2026-01-19 23:57:12 +00:00
Guilherme Araújo
59eb2ad491
sqlite: add some tests
...
PR-URL: https://github.com/nodejs/node/pull/61410
Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-01-19 23:27:12 +00:00
Guilherme Araújo
efa7621132
sqlite: add sqlite prepare options args
...
PR-URL: https://github.com/nodejs/node/pull/61311
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day >
Reviewed-By: Claudio Wunder <cwunder@gnome.org >
2026-01-19 23:27:03 +00:00
Joyee Cheung
bc9ffc32bd
build: update devcontainer.json to use paired nix env
...
Refs: https://github.com/nodejs/devcontainer/pull/22
PR-URL: https://github.com/nodejs/node/pull/61414
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Tierney Cyren <hello@bnb.im >
2026-01-19 22:34:55 +00:00
Chengzhong Wu
d1e26f60ab
build: infer cargo mode with gyp var build_type directly
...
PR-URL: https://github.com/nodejs/node/pull/61354
Refs: https://github.com/nodejs/gyp-next/blob/main/docs/InputFormatReference.md#processing-order
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-01-19 18:15:35 +00:00
Chengzhong Wu
13acafb282
test: reveal wpt evaluation errors in status files
...
PR-URL: https://github.com/nodejs/node/pull/61358
Reviewed-By: Mattias Buelens <mattias@buelens.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Jason Zhang <xzha4350@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-01-19 18:01:44 +00:00
Node.js GitHub Bot
973e119d22
2026-01-19, Version 25.4.0 (Current)
...
Notable changes:
cli:
* add --require-module/--no-require-module (Joyee Cheung) https://github.com/nodejs/node/pull/60959
* mark --heapsnapshot-near-heap-limit as stable (Joyee Cheung) https://github.com/nodejs/node/pull/60956
crypto:
* update root certificates to NSS 3.117 (Node.js GitHub Bot) https://github.com/nodejs/node/pull/60741
doc:
* add @avivkeller to collaborators (Aviv Keller) https://github.com/nodejs/node/pull/61115
* add gurgunday to collaborators (Gürgün Dayıoğlu) https://github.com/nodejs/node/pull/61094
* mark --build-snapshot and --build-snapshot-config as stable (Joyee Cheung) https://github.com/nodejs/node/pull/60954
events:
* (SEMVER-MINOR) repurpose `events.listenerCount()` to accept EventTargets (René) https://github.com/nodejs/node/pull/60214
http:
* (SEMVER-MINOR) add http.setGlobalProxyFromEnv() (Joyee Cheung) https://github.com/nodejs/node/pull/60953
meta:
* add Renegade334 to collaborators (Renegade334) https://github.com/nodejs/node/pull/60714
module:
* mark require(esm) as stable (Joyee Cheung) https://github.com/nodejs/node/pull/60959
* mark module compile cache as stable (Joyee Cheung) https://github.com/nodejs/node/pull/60971
* (SEMVER-MINOR) allow subpath imports that start with `#/` (Jan Martin) https://github.com/nodejs/node/pull/60864
process:
* (SEMVER-MINOR) preserve AsyncLocalStorage in queueMicrotask only when needed (Gürgün Dayıoğlu) https://github.com/nodejs/node/pull/60913
stream:
* (SEMVER-MINOR) do not pass `readable.compose()` output via `Readable.from()` (René) https://github.com/nodejs/node/pull/60907
util:
* (SEMVER-MINOR) add convertProcessSignalToExitCode utility (Erick Wendel) https://github.com/nodejs/node/pull/60963
v8:
* mark v8.queryObjects() as stable (Joyee Cheung) https://github.com/nodejs/node/pull/60957
PR-URL: https://github.com/nodejs/node/pull/61400
2026-01-19 14:00:39 -03:00
Tobias Nießen
58f5da2223
src: use C++ nullptr in webstorage
...
Using the C-style constant `0` to represent a null pointer is less type
safe than the C++-style constant `nullptr`, so we should always be using
`nullptr` instead of `0`.
PR-URL: https://github.com/nodejs/node/pull/61407
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
2026-01-19 13:25:16 +00:00
Stewart X Addison
c158785911
doc: note resume build should not be done on node-test-commit
...
Signed-off-by: Stewart X Addison <sxa@ibm.com >
PR-URL: https://github.com/nodejs/node/pull/61373
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
2026-01-19 11:53:08 +00:00
Filip Skokan
70093c7572
test: check new WebCryptoAPI enum values
...
PR-URL: https://github.com/nodejs/node/pull/61406
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2026-01-19 11:04:04 +00:00
Antoine du Hamel
7cbda54d5e
tools: use ad-hoc flag to lint Nix files
...
Here's what `treefmt --help` documents:
`--ci`: Runs `treefmt` in a CI mode, enabling `--no-cache`,
`--fail-on-change` and adjusting some other settings best suited
to a CI use case.
PR-URL: https://github.com/nodejs/node/pull/61405
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-01-19 10:44:12 +00:00
Gürgün Dayıoğlu
5f7c3a6d1c
events: remove redundant todo
...
PR-URL: https://github.com/nodejs/node/pull/60595
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com >
2026-01-19 10:43:59 +00:00
Matteo Collina
57a71cd50d
http2: validate initialWindowSize per HTTP/2 spec
...
The HTTP/2 spec (RFC 7540) defines SETTINGS_INITIAL_WINDOW_SIZE
maximum as 2^31-1. Values above this must be treated as a
FLOW_CONTROL_ERROR. Previously, Node.js allowed values up to
2^32-1 which caused nghttp2_submit_settings() to return
NGHTTP2_ERR_INVALID_ARGUMENT, triggering an uncatchable
assertion failure and crashing the process.
This change adds proper validation to reject values >= 2^31
with a catchable RangeError before they reach nghttp2.
PR-URL: https://github.com/nodejs/node/pull/61402
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: Tim Perry <pimterry@gmail.com >
2026-01-19 07:35:13 +00:00
Ryuhei Shima
5f982e2879
child_process: treat ipc length header as unsigned uint32
...
Fixes: https://github.com/nodejs/node/issues/61312
PR-URL: https://github.com/nodejs/node/pull/61344
Reviewed-By: Aviv Keller <me@aviv.sh >
2026-01-19 01:16:25 +00:00
Jurj Andrei George
637bda0238
sqlite: enable Percentile extension
...
PR-URL: https://github.com/nodejs/node/pull/61295
Refs: https://github.com/nodejs/node/issues/60618
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
2026-01-18 13:07:14 +00:00
sangwook and Marco Ippolito
9bcfbeb236
doc: refine WebAssembly error documentation
...
Co-authored-by: Marco Ippolito <marcoippolito54@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/61382
Fixes: https://github.com/nodejs/node/issues/61353
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
2026-01-17 21:00:39 +00:00
sangwook
04c8828863
lib: fix TypeScript support check in jitless mode
...
WebAssembly is disabled when Node.js is run with --jitless. The
internal TypeScript stripper relies on WebAssembly, and previously
failed obscurely with a ReferenceError in this mode.
This commit adds an explicit check for WebAssembly support when
loading the TypeScript parser. If WebAssembly is unavailable,
it now throws a descriptive ERR_WEBASSEMBLY_NOT_SUPPORTED error.
Fixes: https://github.com/nodejs/node/issues/61353
PR-URL: https://github.com/nodejs/node/pull/61382
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
2026-01-17 21:00:38 +00:00
Abhishek Kv. Savani
79ddd1ba10
test_runner: fix memory leaks in runner
...
- Close readline interface after child process exits
Prevents accumulation of event listeners on stderr stream
- Extract watch mode event handler to named function
Allows proper cleanup when watch mode is aborted
These changes prevent unbounded memory growth in long-running
test suites and watch mode sessions.
PR-URL: https://github.com/nodejs/node/pull/60860
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
2026-01-17 20:15:02 +02:00
Nicholas Paun
24b16509d4
fs: fix errorOnExist behavior for directory copy in fs.cp
...
PR-URL: https://github.com/nodejs/node/pull/60946
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Dario Piotrowicz <dario.piotrowicz@gmail.com >
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
Reviewed-By: Beth Griggs <bethanyngriggs@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day >
Reviewed-By: James M Snell <jasnell@gmail.com >
2026-01-17 17:52:38 +00:00
Heath Dutton🕴️
a00f5fea70
test_runner: fix coverage report when a directory is named file
...
The coverage tree traversal checked `tree[key].file` to detect file
entries. When a directory named "file" contained a file also named
"file", this check incorrectly matched the child entry instead of
file metadata, causing a TypeError when accessing `.path`.
Check for `.file?.path` instead to correctly identify file metadata.
Fixes: https://github.com/nodejs/node/issues/61080
PR-URL: https://github.com/nodejs/node/pull/61169
Reviewed-By: Aviv Keller <me@aviv.sh >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com >
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
2026-01-17 17:34:06 +00:00
Xavier Stouder
a3ddfbe191
test_runner: print info when test restarts
...
When using spec reporter and running test in watch mode, print an info
message containing the current datetime when tests restart.
Fixes: https://github.com/nodejs/node/issues/57206
PR-URL: https://github.com/nodejs/node/pull/61160
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
2026-01-17 17:33:57 +00:00
Moshe Atlow
8365edcbd0
test_runner: fix rerun ambiguous test failures
...
PR-URL: https://github.com/nodejs/node/pull/61392
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: Jacob Smith <jacob@frende.me >
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com >
2026-01-17 14:02:35 +00:00
sangwook
13a662f559
fs: fix ENOTDIR in globSync when file is treated as dir
...
`fs.globSync` failed with `ENOTDIR` when a path component in a glob
pattern was a file but used as a directory (e.g., 'foo{,/bar}' when
'foo' is a file).
This change aligns `getDirentSync` with the asynchronous `getDirent`
by wrapping the `lstatSync` call in a `try-catch` block to safely
return `null` on such errors.
Fixes: https://github.com/nodejs/node/issues/61257
PR-URL: https://github.com/nodejs/node/pull/61259
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
2026-01-17 13:33:55 +00:00
Daijiro Wachi
70ec5c009d
meta: fix typos in issue template config
...
PR-URL: https://github.com/nodejs/node/pull/61399
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com >
Reviewed-By: Richard Lau <richard.lau@ibm.com >
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2026-01-17 11:14:31 +01:00
Eng Zer Jun
4f6759b738
doc: add deprecation history for url.parse
...
url.parse should document its deprecation history, following DEP0169,
for consistency.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/61389
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Aviv Keller <me@aviv.sh >
2026-01-17 05:03:49 +00:00
Ruben Bridgewater
955d347884
assert,util: fix deep comparison for sets and maps with mixed types
...
When comparing a Set or a Map and they contain primitives as keys
as well as objects, the primitives would always be skipped. That
is not correct, since that may only be skipped in case all keys
are objects.
Fixes: https://github.com/nodejs/node/issues/61386
PR-URL: https://github.com/nodejs/node/pull/61388
Reviewed-By: Aviv Keller <me@aviv.sh >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Jordan Harband <ljharb@gmail.com >
2026-01-17 01:12:45 +00:00