Antoine du Hamel
42b261bbdc
doc: fix methods being documented as properties in process.md
...
PR-URL: https://github.com/nodejs/node/pull/61765
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-02-10 22:05:56 +00:00
Lu Yahan
4dc0d20b12
doc: add riscv64 info into platform list
...
PR-URL: https://github.com/nodejs/node/pull/42251
Reviewed-By: Stewart X Addison <sxa@redhat.com >
2026-02-10 14:50:13 +00:00
Antoine du Hamel
44289fdd0e
2026-02-10, Version 25.6.1 (Current)
...
Notable changes:
build,deps:
* replace `cjs-module-lexer` with `merve` (Yagiz Nizipli) https://github.com/nodejs/node/pull/61456
PR-URL: https://github.com/nodejs/node/pull/61739
2026-02-10 14:16:58 +01:00
Antoine du Hamel
beb7fd9d10
2026-02-10, Version 24.13.1 'Krypton' (LTS)
...
Notable changes:
build:
* add support for Python 3.14 (Christian Clauss) https://github.com/nodejs/node/pull/59983
cli:
* mark `--heapsnapshot-near-heap-limit` as stable (Joyee Cheung) https://github.com/nodejs/node/pull/60956
crypto:
* update root certificates to NSS 3.119 (Node.js GitHub Bot) https://github.com/nodejs/node/pull/61419
doc:
* mark `--build-snapshot` and `--build-snapshot-config` as stable (Joyee Cheung) https://github.com/nodejs/node/pull/60954
meta:
* 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
* add Renegade334 to collaborators (Renegade334) https://github.com/nodejs/node/pull/60714
url:
* update ada to v3.4.2 and support unicode 17 (Yagiz Nizipli) https://github.com/nodejs/node/pull/61593
v8:
* mark `v8.queryObjects()` as stable (Joyee Cheung) https://github.com/nodejs/node/pull/60957
PR-URL: https://github.com/nodejs/node/pull/61661
2026-02-10 14:16:51 +01:00
Jeff
4fca20c10b
doc: fix dropdown menu being obscured at <600px due to stacking context
...
PR-URL: https://github.com/nodejs/node/pull/61735
Fixes: https://github.com/nodejs/node/issues/59282
Reviewed-By: Aviv Keller <me@aviv.sh >
Reviewed-By: Claudio Wunder <cwunder@gnome.org >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-02-10 11:08:47 +00:00
Antoine du Hamel
9f6f3c1f0e
tools: use ubuntu-slim runner in GHA
...
PR-URL: https://github.com/nodejs/node/pull/61734
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
2026-02-10 09:12:09 +00:00
Aviv Keller
617f8321f5
doc: fix spacing in process message event
...
PR-URL: https://github.com/nodejs/node/pull/61756
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-02-10 07:15:36 +00:00
Node.js GitHub Bot
ecd979c95a
tools: update nixpkgs-unstable to ae67888ff7ef9dff69b3cf0cc0fbfbcd3a7
...
PR-URL: https://github.com/nodejs/node/pull/61733
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-02-10 01:42:39 +00:00
Node.js GitHub Bot
f3b3bb8f24
deps: update googletest to 5a9c3f9e8d9b90bbbe8feb32902146cb8f7c1757
...
PR-URL: https://github.com/nodejs/node/pull/61731
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-02-10 01:42:28 +00:00
Node.js GitHub Bot
3819c7f6ae
test: update WPT for WebCryptoAPI to 7cbe7e8ed9
...
PR-URL: https://github.com/nodejs/node/pull/61729
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-02-10 01:01:10 +00:00
Node.js GitHub Bot
38eed48dee
test: update WPT for url to efb889eb4c
...
PR-URL: https://github.com/nodejs/node/pull/61728
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-02-10 01:00:58 +00:00
Alex Schwartz
30adc7c2f3
src: fix --build-sea default executable path
...
PR-URL: https://github.com/nodejs/node/pull/61708
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
2026-02-09 23:27:02 +00:00
Joyee Cheung
551f605ffe
build: build with v8 gdbjit support on supported platform
...
Build it with gdbjit support on supported platforms by default
allows debugging JIT-compiled code in gdb when it's also enabled
at run time (via --gdbjit). Simply building it in should not
incur an overhead if it's not also enabled at run time.
PR-URL: https://github.com/nodejs/node/pull/61010
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
2026-02-09 23:26:50 +00:00
Antoine du Hamel
f003f46019
tools: fix small inconsistencies in JSON doc output
...
PR-URL: https://github.com/nodejs/node/pull/61757
Reviewed-By: Claudio Wunder <cwunder@gnome.org >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Aviv Keller <me@aviv.sh >
2026-02-09 22:58:43 +00:00
Anna Henningsen
8ba4d727a8
src: track allocations made by zstd streams
...
This is both valuable as a diagnostic tool and as a way to inform
the JS runtime about external allocations.
Currently, this is a feature only enabled in the statically linked
builds of zstd, so with `--shared-zstd`, we fall back to the
non-tracking variant.
PR-URL: https://github.com/nodejs/node/pull/61717
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
2026-02-09 20:42:56 +00:00
Anna Henningsen
e8b5fb6129
src: do not store compression methods on Brotli classes
...
This addresses a long-standing TODO comment, referencing the fact
that these values are either known at compile time or can be
inferred from the `this` value in the context class.
PR-URL: https://github.com/nodejs/node/pull/61717
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
2026-02-09 20:42:55 +00:00
Anna Henningsen
fb4154902f
src: extract zlib allocation tracking into its own class
...
This makes it a bit easier to separate concerns, and results in
reduced code duplication when compiling since this code does not
depend on template parameters.
PR-URL: https://github.com/nodejs/node/pull/61717
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
2026-02-09 20:42:53 +00:00
Anna Henningsen
6df454be70
src: release memory for zstd contexts in Close()
...
This aligns zstd streams with other compression libraries in this
regard, and enables releasing memory early when the stream ends in
JS instead of waiting for GC to clean up the wrapper object (which
is a problem that is exacerbated in the zstd context because we
do not track memory and report memory pressure to V8 yet).
PR-URL: https://github.com/nodejs/node/pull/61717
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
2026-02-09 20:42:53 +00:00
Luca Raveri
5dfb1a2e31
doc: move describe/it aliases section before expectFailure
...
PR-URL: https://github.com/nodejs/node/pull/61567
Reviewed-By: Tierney Cyren <hello@bnb.im >
Reviewed-By: Jacob Smith <jacob@frende.me >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com >
2026-02-09 20:26:12 +00:00
Joyee Cheung
2c8517e3da
src: add more checks and clarify docs for external references
...
To help catch unregistered bindings.
PR-URL: https://github.com/nodejs/node/pull/61719
Refs: https://github.com/nodejs/node/pull/61718
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2026-02-09 16:16:23 +00:00
YuSheng Chen
d0e75fd65b
doc: fix broken links of net.md
...
PR-URL: https://github.com/nodejs/node/pull/61673
Reviewed-By: Richard Lau <richard.lau@ibm.com >
Reviewed-By: Tim Perry <pimterry@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev >
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-02-09 15:32:50 +00:00
Joyee Cheung
b864049f02
src: fix cjs_lexer external reference registration
...
It needs to be added to the list to actually get registered.
PR-URL: https://github.com/nodejs/node/pull/61718
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2026-02-09 14:21:34 +00:00
Chengzhong Wu
a8479a219d
test: restraint version replacement pattern in snapshots
...
PR-URL: https://github.com/nodejs/node/pull/61748
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-02-09 12:59:45 +00:00
npm CLI robot
287eb492a6
deps: upgrade npm to 11.9.0
...
PR-URL: https://github.com/nodejs/node/pull/61685
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 >
2026-02-09 12:59:32 +00:00
Joyee Cheung
911b158d1d
src: support import() and import.meta in embedder-run modules
...
This adds a embedder_module_hdo for identifying embedder-run
modules in the dynamic import handler and import.meta initializer,
and a SourceTextModuleTypes for customizing source text module
compilation in the JS land via compileSourceTextModule().
Also, refactors the existing embedder module compilation code
to reuse the builtin resolution logic.
PR-URL: https://github.com/nodejs/node/pull/61654
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Aditi Singh <aditisingh1400@gmail.com >
2026-02-09 12:31:24 +00:00
sangwook
71b36ee68a
repl: fix FileHandle leak in history initialization
...
Ensure that the history file handle is closed if initialization fails or
flushing throws an error. This prevents ERR_INVALID_STATE errors where
a FileHandle object is closed during garbage collection.
PR-URL: https://github.com/nodejs/node/pull/61706
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2026-02-09 10:46:26 +00:00
Karan Mangtani
aa3e649ca1
esm: update outdated FIXME comment in translators.js
...
PR-URL: https://github.com/nodejs/node/pull/61715
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
2026-02-09 09:11:35 +00:00
sangwook
f0be1c00da
http2: fix FileHandle leak in respondWithFile
...
Ensure that the file handle is closed if header validation fails in
respondWithFile. This prevents ERR_INVALID_STATE errors where a
FileHandle object is closed during garbage collection.
PR-URL: https://github.com/nodejs/node/pull/61707
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Tim Perry <pimterry@gmail.com >
2026-02-08 23:46:52 +00:00
Chengzhong Wu
286828be01
build: show cc outputs when version detection failed
...
PR-URL: https://github.com/nodejs/node/pull/61700
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
Reviewed-By: Richard Lau <richard.lau@ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-02-08 16:18:19 -05:00
Antoine du Hamel
8cf1adf782
tools: use ubuntu-latest runner in notify-on-push workflow
...
PR-URL: https://github.com/nodejs/node/pull/61742
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Richard Lau <richard.lau@ibm.com >
2026-02-08 18:22:54 +00:00
Node.js GitHub Bot
1e8a63950a
deps: update amaro to 1.1.7
...
PR-URL: https://github.com/nodejs/node/pull/61730
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-02-08 15:46:52 +00:00
Vivian Wang and kxxt
b220fbe455
deps: V8: backport 6a0a25abaed3
...
Original commit message:
[riscv] Fix sp handling in MacroAssembler::LeaveFrame
Keep sp <= fp to ensure that data right above fp doesn't get clobbered
by an inopportune signal and its handler.
Such clobbering can happen in e.g. Node.js when JIT-compiled code is
interrupted by a SIGCHLD handler.
Bug: None
Change-Id: Ief0836032ada7942e89f081f7605f61632c4d414
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/7540554
Reviewed-by: Ji Qiu <qiuji@iscas.ac.cn >
Commit-Queue: Yahan Lu (LuYahan) <yahan@iscas.ac.cn >
Reviewed-by: Rezvan Mahdavi Hezaveh <rezvan@chromium.org >
Cr-Commit-Position: refs/heads/main@{#105069}
Refs: https://github.com/v8/v8/commit/6a0a25abaed397f83eb0d92e4b33a5e18204f8bc
Co-authored-by: kxxt <rsworktech@outlook.com >
PR-URL: https://github.com/nodejs/node/pull/61666
Reviewed-By: Richard Lau <richard.lau@ibm.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-02-08 14:23:33 +01:00
Joyee Cheung
a879b39778
test: split test-embedding.js and run tests in parallel
...
Split the tests so that it's easier to isolate and debug issues,
and we can run the test cases in parallel to speed up. Also
add more comments about what they are testing.
PR-URL: https://github.com/nodejs/node/pull/61571
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-02-08 13:18:27 +00:00
reillylm
99cfb34cee
doc: clean up Windows code snippet in child_process.md
...
PR-URL: https://github.com/nodejs/node/pull/61422
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-02-08 12:36:08 +01:00
Node.js GitHub Bot
aab12df670
deps: update minimatch to 10.1.2
...
PR-URL: https://github.com/nodejs/node/pull/61732
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2026-02-08 11:25:37 +00:00
Anna Henningsen
0777dcccc7
src: elide heap allocation in structured clone implementation
...
Small perf improvement:
$ node benchmark/compare.js --runs 100 \
> --old ./node-0da120f879 --new ./node \
> --filter structured-clone misc > comparison.csv && \
> npx node-benchmark-compare comparison.csv
[00:02:15|% 100| 1/1 files | 200/200 runs | 3/3 configs]: Done
confidence improvement accuracy (*) (**) (***)
misc/structured-clone.js n=10000 type='arraybuffer' ** 1.81 % ±1.28% ±1.68% ±2.16%
misc/structured-clone.js n=10000 type='object' * 0.62 % ±0.55% ±0.73% ±0.93%
misc/structured-clone.js n=10000 type='string' *** 8.30 % ±1.46% ±1.92% ±2.47%
Be aware that when doing many comparisons the risk of a false-positive result increases.
In this case, there are 3 comparisons, you can thus expect the following amount of false-positive results:
0.15 false positives, when considering a 5% risk acceptance (*, **, ***),
0.03 false positives, when considering a 1% risk acceptance (**, ***),
0.00 false positives, when considering a 0.1% risk acceptance (***)
PR-URL: https://github.com/nodejs/node/pull/61703
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2026-02-08 07:10:46 +00:00
Matteo Collina
6aa465c962
doc: clarify EventEmitter error handling in threat model
...
Add documentation explaining that applications are expected to attach
'error' event handlers to EventEmitters that can emit errors, including
HTTP streams. Crashes resulting from missing error handlers are not
considered denial-of-service vulnerabilities in Node.js.
PR-URL: https://github.com/nodejs/node/pull/61701
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2026-02-07 23:03:34 +00:00
Chengzhong Wu
c2a035332f
test: print stack immediately avoiding GC interleaving
...
`require(mod)` does not keep the mod in require cache if
mod throws synchronously. This fixes the tests to print
the stack immediately in case that source map cache could
be cleaned up when the CJS module is reclaimed by GC in
the next event loop tick.
PR-URL: https://github.com/nodejs/node/pull/61699
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-02-07 22:14:40 +00:00
Steven
88760f9e8b
doc: mention default option for test runner env
...
PR-URL: https://github.com/nodejs/node/pull/61659
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev >
Reviewed-By: Jacob Smith <jacob@frende.me >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Tierney Cyren <hello@bnb.im >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-02-07 20:50:17 +00:00
Mert Can Altin
28979fb595
src: use simdutf for one-byte string UTF-8 write in stringBytes
...
PR-URL: https://github.com/nodejs/node/pull/61696
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
Reviewed-By: Daniel Lemire <daniel@lemire.me >
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br >
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com >
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
2026-02-07 21:04:29 +01:00
Ali Hassan
346ad95c3c
sqlite: avoid extra copy for large text binds
...
When binding UTF-8 strings to prepared statements, transfer ownership of
malloc-backed Utf8Value buffers to SQLite to avoid an extra copy for
large strings. Use sqlite3_bind_blob64() when binding BLOB parameters.
PR-URL: https://github.com/nodejs/node/pull/61580
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com >
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com >
2026-02-07 18:52:38 +00:00
Chengzhong Wu
f212aee483
build: enable temporal on GHA macOS build
...
PR-URL: https://github.com/nodejs/node/pull/61691
Refs: https://github.com/nodejs/node/pull/60942
Refs: https://github.com/nodejs/node/issues/58730
Reviewed-By: Richard Lau <richard.lau@ibm.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-02-07 16:48:53 +00:00
Joyee Cheung
3ab9dd86e7
src: consolidate C++ ReadFileSync/WriteFileSync utilities
...
This patch moves `ReadFileSync` and `WriteFileSync` from
`src/util.cc` to `src/node_file_utils.cc`, consolidates
the implementation to reuse code, and adds a few more
enhancements:
For `ReadFileSync`:
- Use fstat-based pre-allocation to minimize buffer resizing
and repeated reads for bigger files.
- Handle various potential overflows in size conversions.
- Handle fallback for 0-byte special files.
For `WriteFileSync`:
- Handle potential partial writes for big enough files and
support non-seekable files (with -1 as offset).
- Handle 0-byte writes correctly.
In both cases, this now avoids hard aborts and return error code
for the caller to handle as much as possible, except
`std::vector<char> ReadFileSync(FILE* fp)` which is part of the
embedder API.
This patch uses the new `ReadFileSync` to address a TODO in
node_sea.bin.cc.
PR-URL: https://github.com/nodejs/node/pull/61662
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2026-02-07 02:38:56 +00:00
Tim Perry
9bc369f2b4
doc: fix --inspect security warning section
...
PR-URL: https://github.com/nodejs/node/pull/61675
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Tierney Cyren <hello@bnb.im >
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com >
2026-02-06 22:37:55 +00:00
Node.js GitHub Bot
9afa802892
deps: update undici to 7.21.0
...
PR-URL: https://github.com/nodejs/node/pull/61683
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Matthew Aitken <maitken033380023@gmail.com >
2026-02-06 18:05:17 +00:00
Matteo Collina
102cdfe36b
test: fix case-insensitive path matching on Windows
...
On Windows, file paths are case-insensitive but string comparison is
case-sensitive. When the drive letter case differs between the computed
project root and the actual output (e.g., 'C:/' vs 'c:/'), the path
replacement in transformProjectRoot() would fail.
This fix uses case-insensitive regex replacement on Windows to ensure
paths are correctly normalized in snapshot tests regardless of drive
letter casing.
Refs: https://github.com/nodejs/reliability/issues/1453
PR-URL: https://github.com/nodejs/node/pull/61682
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com >
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
2026-02-06 16:54:15 +00:00
RajeshKumar11
d8c00ad316
net: defer synchronous destroy calls in internalConnect
...
Defer socket.destroy() calls in internalConnect and
internalConnectMultiple to the next tick. This ensures that error
handlers have a chance to be set up before errors are emitted,
particularly important when using http.request with a custom
lookup function that returns synchronously.
Previously, if a synchronous lookup function returned an IP that
triggered an immediate error (e.g., via blockList), the error would
be emitted before the HTTP client had set up its error handler
(which happens via process.nextTick in onSocket). This caused
unhandled 'error' events.
Fixes: https://github.com/nodejs/node/issues/48771
PR-URL: https://github.com/nodejs/node/pull/61658
Refs: https://github.com/nodejs/node/pull/51038
Reviewed-By: Tim Perry <pimterry@gmail.com >
Reviewed-By: Jason Zhang <xzha4350@gmail.com >
2026-02-06 14:30:07 +00:00
Antoine du Hamel
413dffc691
tools: enforce removal of lts-watch-* labels on release proposals
...
PR-URL: https://github.com/nodejs/node/pull/61672
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Richard Lau <richard.lau@ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Tierney Cyren <hello@bnb.im >
2026-02-06 10:40:11 +00:00
Tierney Cyren
ec88813758
tools: use ubuntu-slim runner in meta GitHub Actions
...
Signed-off-by: Tierney Cyren <hello@bnb.im >
PR-URL: https://github.com/nodejs/node/pull/61663
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Richard Lau <richard.lau@ibm.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-02-06 09:37:00 +01:00
René
0da120f879
doc: document url.format(urlString) as deprecated under DEP0169
...
Refs: https://github.com/nodejs/node/pull/55017
PR-URL: https://github.com/nodejs/node/pull/61644
Reviewed-By: Jacob Smith <jacob@frende.me >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-02-05 23:28:18 +00:00