hotpineapple
4ee467905d
lib: use validateString
...
refactor validation code using validate function
PR-URL: https://github.com/nodejs/node/pull/59296
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
2025-08-12 09:19:59 -03:00
Filip Skokan
95e9cabf9d
doc: clarify release candidate stability index
...
PR-URL: https://github.com/nodejs/node/pull/59295
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Jacob Smith <jacob@frende.me >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Ruy Adorno <ruy@vlt.sh >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Beth Griggs <bethanyngriggs@gmail.com >
Reviewed-By: Claudio Wunder <cwunder@gnome.org >
2025-08-12 09:19:59 -03:00
Michaël Zasso
76bc4d659b
typings: improve internal binding types
...
- Add typings for `async_context_frame`, `icu`, and `sea` bindings
- Add a few missing exports on other bindings
- Add a few missing primordials
PR-URL: https://github.com/nodejs/node/pull/59176
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2025-08-12 09:19:59 -03:00
Ethan Arrowood and Luigi Pinca
244d0c38a8
test: deflake stream-readable-to-web test
...
Co-authored-by: Luigi Pinca <luigipinca@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/58948
Fixes: https://github.com/nodejs/node/issues/58949
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Mattias Buelens <mattias@buelens.com >
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com >
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com >
2025-08-12 09:19:59 -03:00
Sebastian Beltran
c144d69efc
lib: docs deprecate _http_*
...
Ref https://github.com/nodejs/node/pull/58535
Signed-off-by: Sebastian Beltran <bjohansebas@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/59293
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Tim Perry <pimterry@gmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com >
2025-08-12 09:19:58 -03:00
Rafael Gonzaga
d69f3ee1e0
meta: add nodejs/path to path files
...
PR-URL: https://github.com/nodejs/node/pull/59289
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
2025-08-12 09:19:58 -03:00
Chengzhong Wu
c89b67e681
lib: add type names in source mapped stack traces
...
The type name is determined by the constructor name of the receiver in a
call site.
PR-URL: https://github.com/nodejs/node/pull/58976
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2025-08-12 09:19:58 -03:00
Chengzhong Wu
1e37eab865
node-api: reword "implementation in an alternative VM" as implementable
...
PR-URL: https://github.com/nodejs/node/pull/59036
Fixes: https://github.com/nodejs/node/issues/58852
Reviewed-By: Vladimir Morozov <vmorozov@microsoft.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2025-08-12 09:19:58 -03:00
Aditi
dab7f6b542
tools: check for std::vector<v8::Local> in lint
...
PR-URL: https://github.com/nodejs/node/pull/58497
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
2025-08-12 09:19:58 -03:00
Sylphy-0xd3ac
2990f178bd
fs: fix glob TypeError on restricted dirs
...
When a directory cannot be read due to permission issues, the async
version of fs.glob() returns null from readdir(), while the sync
version returns an empty array. This causes a TypeError when trying
to access the 'length' property of null.
PR-URL: https://github.com/nodejs/node/pull/58674
Fixes: https://github.com/nodejs/node/issues/58670
Fixes: https://github.com/nodejs/node/issues/58276
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ethan-Arrowood <ethan@arrowood.dev >
Reviewed-By: Juan José <soyjuanarbol@gmail.com >
2025-08-12 09:19:58 -03:00
btea
a056dd36d2
doc: add WDYT to glossary
...
PR-URL: https://github.com/nodejs/node/pull/59280
Reviewed-By: Jason Zhang <xzha4350@gmail.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com >
2025-08-12 09:19:58 -03:00
Joyee Cheung
1e2c52f5c4
doc: add manpage entry for --use-system-ca
...
PR-URL: https://github.com/nodejs/node/pull/59273
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Harshitha K P <harshitha014@gmail.com >
2025-08-12 09:19:58 -03:00
Antoine du Hamel
84c3513ce2
worker: implements nits in Web Locks code
...
PR-URL: https://github.com/nodejs/node/pull/59270
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
2025-08-12 09:19:57 -03:00
F3lixTheCat
22d4683cfe
src: added CHECK_NOT_NULL check for multiple eq_wrap_async
...
PR-URL: https://github.com/nodejs/node/pull/59267
Fixes: https://github.com/nodejs/node/issues/59266
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com >
Reviewed-By: theanarkh <theratliter@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2025-08-12 09:19:57 -03:00
Rafael Gonzaga
31a46fdeb4
doc: add path.join and path.normalize clarification
...
This commit adds explicit clarification to the Node.js threat model
that path manipulation functions such as path.join() and
path.normalize()
trust their input. Issues related to these functions that rely on
unsanitized input are not considered vulnerabilities requiring CVEs.
PR-URL: https://github.com/nodejs/node/pull/59262
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2025-08-12 09:19:57 -03:00
René
5b2363be8d
lib: prefer AsyncIteratorPrototype primordial
...
PR-URL: https://github.com/nodejs/node/pull/59097
Reviewed-By: Jordan Harband <ljharb@gmail.com >
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
2025-08-12 09:19:57 -03:00
Bruno Rodrigues
848e49c20b
benchmark: add fs warmup to writefile-promises
...
PR-URL: https://github.com/nodejs/node/pull/59215
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2025-08-12 09:19:57 -03:00
Alex Yang
e2fb4caf9c
fs: correct error message when FileHandle is transferred
...
PR-URL: https://github.com/nodejs/node/pull/59156
Fixes: https://github.com/nodejs/node/issues/59155
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: LiviaMedeiros <livia@cirno.name >
2025-08-12 09:19:57 -03:00
Rafael Gonzaga
8c609be1b1
benchmark: add calibrate-n script
...
This script should help identify the best N
when creating/updating benchmarks
Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com >
PR-URL: https://github.com/nodejs/node/pull/59186
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br >
Reviewed-By: James M Snell <jasnell@gmail.com >
2025-08-12 09:19:56 -03:00
Chengzhong Wu
41978adb08
deps: V8: backport 493cb53691be
...
Original commit message:
[include] suppress clang cast-function-type-mismatch warning on SetWeak
Suppress clang warning cast-function-type-mismatch in embedder calls
to `SetWeak`.
Change-Id: I6c4eda1b932199a2ea4947fe851ffdf2ae04ad73
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/6689209
Reviewed-by: Camillo Bruni <cbruni@chromium.org >
Commit-Queue: Chengzhong Wu <cwu631@bloomberg.net >
Cr-Commit-Position: refs/heads/main@{#101186}
Ignore `cast-function-type` instead of `cast-function-type-mismatch` for
compatibility with older versions of Clang.
Refs: https://github.com/v8/v8/commit/493cb53691bedf02f5786fe26608199ec5693ba1
PR-URL: https://github.com/nodejs/node/pull/59238
Refs: https://github.com/nodejs/node/issues/58069
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com >
Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com >
2025-08-08 11:57:08 +02:00
Darshan Sen
0fb005a53f
http2: set Http2Stream#sentHeaders for raw headers
...
When https://github.com/nodejs/node/pull/57917 added support for sending
raw header arrays, Http2Stream#sentHeaders was set only for header
objects. This change also sets it for raw headers by lazily
instantiating the property to avoid any performance impact on the fast
path.
Signed-off-by: Darshan Sen <raisinten@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/59244
Reviewed-By: Tim Perry <pimterry@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2025-08-08 11:56:50 +02:00
Darshan Sen
7b94982eb0
tools: allow selecting test subsystems with numbers in their names
...
Previously, selecting subsystems with numbers in their names, like
http2, weren't matched due to a restrictive regex:
```
$ tools/test.py http2
No tests to run.
```
The regex now allows digits, so these tests run as expected:
```
$ tools/test.py http2
[00:17|% 100|+ 286|- 0]: Done
All tests passed.
```
Signed-off-by: Darshan Sen <raisinten@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/59242
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
2025-08-08 11:56:50 +02:00
Chengzhong Wu
6a47ff4943
src: clear all linked module caches once instantiated
...
There are two phases in module linking: link, and instantiate. These
two operations are required to be separated to allow cyclic
dependencies.
`v8::Module::InstantiateModule` is only required to be invoked on the
root module. The global references created by `ModuleWrap::Link` are
only cleared at `ModuleWrap::Instantiate`. So the global references
created for depended modules are usually not cleared because
`ModuleWrap::Instantiate` is not invoked for each of depended modules,
and caused memory leak.
The change references the linked modules in an object internal slot.
This is not an issue for Node.js ESM support as these modules can not be
off-loaded. However, this could be outstanding for `vm.Module`.
PR-URL: https://github.com/nodejs/node/pull/59117
Fixes: https://github.com/nodejs/node/issues/50113
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2025-08-08 11:56:50 +02:00
Alex Yang
713c70c32a
test_runner: remove unused callee convertion
...
PR-URL: https://github.com/nodejs/node/pull/59221
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
2025-08-08 11:56:50 +02:00
James M Snell
aeb4de55a7
fs: port SonicBoom module to fs module as Utf8Stream
...
As a first step to porting portions of the pino structured
logger into the runtime, this commit ports the SonicBoom
module to the fs module as Utf8Stream.
This is a faithful port of the SonicBoom module with some
modern updates, such as converting to a Class and using
Symbol.dispose. The bulk of the implementation is unchanged
from the original.
PR-URL: https://github.com/nodejs/node/pull/58897
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br >
2025-08-08 11:56:50 +02:00
Burkov Egor
33728cb4ca
src: add nullptr checks in StreamPipe::New
...
Fixes: https://github.com/nodejs/node/issues/57612
PR-URL: https://github.com/nodejs/node/pull/57613
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: theanarkh <theratliter@gmail.com >
2025-08-08 11:56:49 +02:00
Yoo
cff3725ff9
doc: fix typo in test/common/README.md
...
Corrects the misspelling of "unmask" to "umask"
PR-URL: https://github.com/nodejs/node/pull/59180
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2025-08-08 11:56:49 +02:00
fengmk2 and Joyee Cheung
31a9283591
doc: add note on process memoryUsage
...
Co-authored-by: Joyee Cheung <joyeec9h3@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/59026
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2025-08-08 11:56:49 +02:00
Aviv Keller
5a98bff6b8
doc: format safely for doc-kit
...
PR-URL: https://github.com/nodejs/node/pull/59229
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
2025-08-08 11:56:49 +02:00
Shima Ryuhei
564e604a1a
test: make test-inspector-network-resource sequential
...
PR-URL: https://github.com/nodejs/node/pull/59104
Refs: https://github.com/nodejs/node/issues/59090
Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com >
Reviewed-By: Kohei Ueno <kohei.ueno119@gmail.com >
2025-08-08 11:56:48 +02:00
theanarkh
bd68fbd753
worker: add cpuUsage for worker
...
PR-URL: https://github.com/nodejs/node/pull/59177
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ilyas Shabi <ilyasshabi94@gmail.com >
2025-08-08 11:56:48 +02:00
Asaf Federman
4a907bdad1
src: add percentage support to --max-old-space-size
...
This commit adds support for specifying --max-old-space-size as a
percentage of system memory, in addition to the existing MB format.
A new HandleMaxOldSpaceSizePercentage method parses percentage values,
validates that they are within the 0-100% range, and provides clear
error messages for invalid input. The heap size is now calculated
based on available system memory when a percentage is used.
Test coverage has been added for both valid and invalid cases.
Documentation and the JSON schema for CLI options have been updated
with examples for both formats.
Refs: https://github.com/nodejs/node/issues/57447
PR-URL: https://github.com/nodejs/node/pull/59082
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: theanarkh <theratliter@gmail.com >
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com >
2025-08-08 11:56:48 +02:00
Meghan Denny
7ab13b7477
test: don't use expose internals in test-http-outgoing-buffer.js
...
PR-URL: https://github.com/nodejs/node/pull/59219
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
2025-08-08 11:56:48 +02:00
Renegade334
05667991ca
deps: V8: backport 1c3e018e7d48
...
Original commit message:
Expose dispose and asyncDispose symbols to C++
Since `Symbol.dispose` has been exposed to JS we need to be able to
access the native v8::Symbol too.
Change-Id: I9111d2806630efdd8bb5f931effa9adad3c85ae5
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/6410112
Commit-Queue: Erik Corry <erikcorry@chromium.org >
Reviewed-by: Erik Corry <erikcorry@chromium.org >
Reviewed-by: Leszek Swirski <leszeks@chromium.org >
Cr-Commit-Position: refs/heads/main@{#99590}
PR-URL: https://github.com/nodejs/node/pull/58818
Refs: https://github.com/v8/v8/commit/1c3e018e7d488d43b97b4e30f77b50070c456473
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
2025-08-08 11:56:03 +02:00
Antoine du Hamel
c37bef1af3
Working on v24.5.1
...
PR-URL: https://github.com/nodejs/node/pull/59257
2025-07-31 23:37:44 +02:00
Antoine du Hamel
931ec10d87
2025-07-31, Version 24.5.0 (Current)
...
Notable changes:
cli:
* (SEMVER-MINOR) support `${pid}` placeholder in `--cpu-prof-name` (Haram Jeong) https://github.com/nodejs/node/pull/59072
crypto:
* (SEMVER-MINOR) add `tls.setDefaultCACertificates()` (Joyee Cheung) https://github.com/nodejs/node/pull/58822
deps:
* upgrade to openssl-3.5.1 (Node.js GitHub Bot) https://github.com/nodejs/node/pull/59234
dns:
* (SEMVER-MINOR) support max timeout (theanarkh) https://github.com/nodejs/node/pull/58440
doc:
* update the instruction on how to verify releases (Antoine du Hamel) https://github.com/nodejs/node/pull/59113
esm:
* (SEMVER-MINOR) unflag `--experimental-wasm-modules` (Guy Bedford) https://github.com/nodejs/node/pull/57038
http,https:
* (SEMVER-MINOR) add built-in proxy support in http/https.request and `Agent` (Joyee Cheung) https://github.com/nodejs/node/pull/58980
net:
* (SEMVER-MINOR) update net.blocklist to allow file save and file management (alphaleadership) https://github.com/nodejs/node/pull/58087
test:
* (SEMVER-MINOR) move http proxy tests to test/client-proxy (Joyee Cheung) https://github.com/nodejs/node/pull/58980
worker:
* (SEMVER-MINOR) add web locks api (ishabi) https://github.com/nodejs/node/pull/58666
PR-URL: https://github.com/nodejs/node/pull/59257
v24.5.0
2025-07-31 10:26:53 +02:00
Node.js GitHub Bot
998cef10e3
deps: update archs files for openssl-3.5.1
...
PR-URL: https://github.com/nodejs/node/pull/59234
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Richard Lau <richard.lau@ibm.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2025-07-29 09:04:08 +02:00
Node.js GitHub Bot
1f06ca956a
deps: upgrade openssl sources to openssl-3.5.1
...
PR-URL: https://github.com/nodejs/node/pull/59234
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Richard Lau <richard.lau@ibm.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2025-07-29 09:04:01 +02:00
Antoine du Hamel
927742b342
doc: update the instruction on how to verify releases
...
PR-URL: https://github.com/nodejs/node/pull/59113
Fixes: https://github.com/nodejs/node/issues/58904
Reviewed-By: Richard Lau <richard.lau@ibm.com >
Reviewed-By: Ruy Adorno <ruy@vlt.sh >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
2025-07-27 23:52:53 +02:00
Ilyas Shabi
1e990866e0
test: mark web lock held test as flaky
...
PR-URL: https://github.com/nodejs/node/pull/59144
Refs: https://github.com/nodejs/node/issues/59142
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2025-07-27 23:52:53 +02:00
Sungwon
ba8e95a785
test: use mustSucceed in test-fs-read
...
This commit refactors the callback in test/parallel/test-fs-read.js
to use common.mustSucceed() instead of common.mustCall().
common.mustSucceed() is the preferred helper for standard error-first
callbacks that are expected to succeed, as it provides an explicit
check that the `err` argument is null. This improves the clarity
and robustness of the test.
PR-URL: https://github.com/nodejs/node/pull/59204
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2025-07-27 23:52:53 +02:00
Richard Lau and Michaël Zasso
dc66422768
build,deps,tools: prepare to update to OpenSSL 3.5
...
Update the updater script and files under `deps/openssl/config` in
preparation for updating `deps/openssl` to OpenSSL 3.5.
Co-Authored-By: Michaël Zasso <targos@protonmail.com >
PR-URL: https://github.com/nodejs/node/pull/58100
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2025-07-27 23:52:53 +02:00
Richard Lau
39978f507f
test: prepare test-crypto-rsa-dsa for newer OpenSSL
...
Update `parallel/test-crypto-rsa-dsa` to prepare for updating
`deps/openssl` to later versions of OpenSSL which support implicit
rejections with `RSA_PKCS1_PADDING`.
PR-URL: https://github.com/nodejs/node/pull/58100
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2025-07-27 23:52:52 +02:00
Joyee Cheung
f5da4947d9
cli: add --use-env-proxy
...
This does the same as NODE_USE_ENV_PROXY. When both are set,
like other options that can be configured from both sides,
the CLI flag takes precedence.
PR-URL: https://github.com/nodejs/node/pull/59151
Fixes: https://github.com/nodejs/node/issues/59100
Reviewed-By: Ilyas Shabi <ilyasshabi94@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2025-07-27 23:52:52 +02:00
Mert Can Altin
f2812723a0
buffer: cache Environment::GetCurrent to avoid repeated calls
...
PR-URL: https://github.com/nodejs/node/pull/59043
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: theanarkh <theratliter@gmail.com >
Reviewed-By: Dario Piotrowicz <dario.piotrowicz@gmail.com >
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2025-07-27 23:52:52 +02:00
Joyee Cheung
fe0195fdcc
module: fix conditions override in synchronous resolve hooks
...
1. Make sure that the conditions are converted into arrays when
being passed into user hooks.
2. Pass the conditions from user hooks into the ESM resolution
so that it takes effect.
PR-URL: https://github.com/nodejs/node/pull/59011
Fixes: https://github.com/nodejs/node/issues/59003
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com >
Reviewed-By: Jacob Smith <jacob@frende.me >
2025-07-27 23:52:52 +02:00
npm CLI robot
55a90eed8d
deps: upgrade npm to 11.5.1
...
PR-URL: https://github.com/nodejs/node/pull/59199
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2025-07-27 23:52:52 +02:00
Alex Yang
1c3aadb9d6
test: fix flaky test-worker-message-port-transfer-filehandle test
...
PR-URL: https://github.com/nodejs/node/pull/59158
Fixes: https://github.com/nodejs/node/issues/59145
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2025-07-27 23:52:52 +02:00
Rich Trott
9a8d2020ad
doc: copyedit SECURITY.md
...
PR-URL: https://github.com/nodejs/node/pull/59190
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2025-07-27 23:52:51 +02:00
Allon Murienik
3d2f919f7c
process: make execve's args argument optional
...
Align the code with the documentation and similar methods used to
execute os commands - the `args` argument should be optional, and if
omitted, treated as an empty array (`[]`).
Fixes: https://github.com/nodejs/node/issues/58411
PR-URL: https://github.com/nodejs/node/pull/58412
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Richard Lau <richard.lau@ibm.com >
2025-07-27 23:52:43 +02:00