Trivikram Kamat
2adaeeee9c
test: make Brotli 16GB test wait for backpressure
...
Wait for the Brotli decoder to fill its readable buffer before checking
that decompression stops at the high water mark. This avoids racing the
fixed timeout against libuv worker-pool scheduling.
Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com >
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63389
Refs: https://github.com/nodejs/reliability/blob/main/reports/2026-05-17.md#jstest-failure
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: Tim Perry <pimterry@gmail.com >
2026-06-06 04:45:58 +00:00
Mohamed Akram
be7ea272e3
test: add regression test for using ObjectWrap in worker
...
This content is taken from https://github.com/nodejs/node/pull/63575 .
The original commit message is preserved below:
---
worker: fix premature addon unload
Weak callbacks could run after addons were unloaded, leading to a crash.
Signed-off-by: Mohamed Akram <mohd.akram@outlook.com >
PR-URL: https://github.com/nodejs/node/pull/63642
Fixes: https://github.com/nodejs/node/issues/63540
Refs: https://github.com/nodejs/node/pull/63575
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
2026-06-05 12:53:44 +00:00
Anna Henningsen
215027c8ed
src: add cleanup hooks to node::ObjectWrap
...
Add cleanup hooks to make sure that addons making use
of this legacy API can do so safely in Worker threads
or embedder-controlled Node.js instances.
Refs: https://github.com/nodejs/node/pull/63575
Fixes: https://github.com/nodejs/node/issues/63540
Signed-off-by: Anna Henningsen <anna@addaleax.net >
PR-URL: https://github.com/nodejs/node/pull/63642
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
2026-06-05 12:53:43 +00:00
dependabot[bot]
3518f93c4b
meta: bump github/codeql-action from 4.35.3 to 4.36.1
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 4.35.3 to 4.36.1.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/github/codeql-action/compare/e46ed2cbd01164d986452f91f178727624ae40d7...87557b9c84dde89fdd9b10e88954ac2f4248e463 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-version: 4.36.1
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
PR-URL: https://github.com/nodejs/node/pull/63724
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-06-05 10:48:58 +00:00
dependabot[bot]
35272bd546
meta: bump actions/cache from 5.0.4 to 5.0.5
...
Bumps [actions/cache](https://github.com/actions/cache ) from 5.0.4 to 5.0.5.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/668228422ae6a00e4ad889ee87cd7109ec5666a7...27d5ce7f107fe9357f9df03efb73ab90386fccae )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-version: 5.0.5
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
PR-URL: https://github.com/nodejs/node/pull/62847
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-06-05 10:48:48 +00:00
ndossche
25ffc1a164
sqlite: fix stack-use-after-scope with function callback
...
The `hasIt` block has `Local<Function>`s, but it's capture in the
lambda, yet the lambda is used after the locals go out of scope.
Signed-off-by: ndossche <nora.dossche@ugent.be >
PR-URL: https://github.com/nodejs/node/pull/63640
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2026-06-05 12:15:51 +02:00
Mert Can Altin
4035c57bc6
buffer: use simdutf for two-byte utf8 byteLength
...
Signed-off-by: Mert Can Altin <mertgold60@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63639
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Daniel Lemire <daniel@lemire.me >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2026-06-05 11:41:01 +02:00
dependabot[bot]
f188e9f11d
meta: bump actions/checkout from 6.0.2 to 6.0.3
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 6.0.2 to 6.0.3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/de0fac2e4500dabe0009e67214ff5f5447ce83dd...df4cb1c069e1874edd31b4311f1884172cec0e10 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: 6.0.3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
PR-URL: https://github.com/nodejs/node/pull/63726
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-06-05 11:40:27 +02:00
dependabot[bot]
7fcbb5e1da
meta: bump codecov/codecov-action from 6.0.0 to 6.0.1
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 6.0.0 to 6.0.1.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/57e3a136b779b570ffcdbf80b3bdc90e7fab3de2...e79a6962e0d4c0c17b229090214935d2e33f8354 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-version: 6.0.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
PR-URL: https://github.com/nodejs/node/pull/63725
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-06-05 11:39:50 +02:00
semimikoh
d3a822a947
http: close pre-request sockets in closeIdleConnections
...
Signed-off-by: semimikoh <ejffjeosms@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63470
Fixes: https://github.com/nodejs/node/issues/63452
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day >
Reviewed-By: Tim Perry <pimterry@gmail.com >
2026-06-05 09:27:53 +00:00
dependabot[bot]
26f6c76169
tools: bump the eslint group in /tools/eslint with 7 updates
...
Bumps the eslint group in /tools/eslint with 7 updates:
Updates `@babel/core` from 8.0.0-rc.4 to 8.0.0-rc.6
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
Updates `@babel/eslint-parser` from 8.0.0-rc.4 to 8.0.0-rc.6
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
Updates `@babel/plugin-syntax-import-source` from 8.0.0-rc.4
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
Updates `@eslint/markdown` from 8.0.1 to 8.0.2
- [Release notes](https://github.com/eslint/markdown/releases )
- [Changelog](https://github.com/eslint/markdown/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/markdown/compare/v8.0.1...v8.0.2 )
Updates `eslint` from 10.2.1 to 10.4.0
- [Release notes](https://github.com/eslint/eslint/releases )
- [Commits](https://github.com/eslint/eslint/compare/v10.2.1...v10.4.0 )
Updates `eslint-plugin-jsdoc` from 62.9.0 to 63.0.0
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases )
Updates `globals` from 17.5.0 to 17.6.0
- [Release notes](https://github.com/sindresorhus/globals/releases )
---
updated-dependencies:
- dependency-name: "@babel/core"
dependency-version: 8.0.0-rc.6
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: eslint
- dependency-name: "@babel/eslint-parser"
dependency-version: 8.0.0-rc.6
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: eslint
- dependency-name: "@babel/plugin-syntax-import-source"
dependency-version: 8.0.0-rc.6
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: eslint
- dependency-name: "@eslint/markdown"
dependency-version: 8.0.2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: eslint
- dependency-name: eslint
dependency-version: 10.4.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: eslint
- dependency-name: eslint-plugin-jsdoc
dependency-version: 63.0.0
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: eslint
- dependency-name: globals
dependency-version: 17.6.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: eslint
...
Signed-off-by: dependabot[bot] <support@github.com >
PR-URL: https://github.com/nodejs/node/pull/63730
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-06-05 09:22:10 +02:00
dependabot[bot]
4fbd689361
meta: bump cachix/cachix-action
...
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action ) from 1eb2ef646ac0255473d23a5907ad7b04ce94065c to 5f2d7c5294214f71b873db4b969586b980625e71.
- [Release notes](https://github.com/cachix/cachix-action/releases )
- [Changelog](https://github.com/cachix/cachix-action/blob/master/RELEASE.md )
- [Commits](https://github.com/cachix/cachix-action/compare/1eb2ef646ac0255473d23a5907ad7b04ce94065c...5f2d7c5294214f71b873db4b969586b980625e71 )
---
updated-dependencies:
- dependency-name: cachix/cachix-action
dependency-version: 5f2d7c5294214f71b873db4b969586b980625e71
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
PR-URL: https://github.com/nodejs/node/pull/63729
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-06-05 03:38:38 +00:00
dependabot[bot]
56aca6d3d2
meta: bump actions/stale from 10.2.0 to 10.3.0
...
Bumps [actions/stale](https://github.com/actions/stale ) from 10.2.0 to 10.3.0.
- [Release notes](https://github.com/actions/stale/releases )
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/stale/compare/b5d41d4e1d5dceea10e7104786b73624c18a190f...eb5cf3af3ac0a1aa4c9c45633dd1ae542a27a899 )
---
updated-dependencies:
- dependency-name: actions/stale
dependency-version: 10.3.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
PR-URL: https://github.com/nodejs/node/pull/63728
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-06-05 03:38:26 +00:00
dependabot[bot]
0a25adaa07
meta: bump step-security/harden-runner from 2.19.0 to 2.19.4
...
Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner ) from 2.19.0 to 2.19.4.
- [Release notes](https://github.com/step-security/harden-runner/releases )
- [Commits](https://github.com/step-security/harden-runner/compare/8d3c67de8e2fe68ef647c8db1e6a09f647780f40...9af89fc71515a100421586dfdb3dc9c984fbf411 )
---
updated-dependencies:
- dependency-name: step-security/harden-runner
dependency-version: 2.19.4
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
PR-URL: https://github.com/nodejs/node/pull/63727
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-06-05 03:38:15 +00:00
dependabot[bot]
746bf40741
meta: bump cachix/install-nix-action from 31.10.5 to 31.10.6
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 31.10.5 to 31.10.6.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Changelog](https://github.com/cachix/install-nix-action/blob/master/RELEASE.md )
- [Commits](https://github.com/cachix/install-nix-action/compare/ab739621df7a23f52766f9ccc97f38da6b7af14f...8aa03977d8d733052d78f4e008a241fd1dbf36b3 )
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-version: 31.10.6
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
PR-URL: https://github.com/nodejs/node/pull/63723
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-06-05 03:38:04 +00:00
Trivikram Kamat
cb8eebf218
watch: cancel pending restart on shutdown
...
Cancel any pending FilesWatcher debounce timer when watch mode clears
its watchers. This prevents a queued change event from restarting the
watched process after shutdown has started.
Keep the watched child exit handling attached for the lifetime of the
child so overlapping restart and shutdown paths do not remove each
other's exit listeners.
Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com >
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63383
Reviewed-By: Tim Perry <pimterry@gmail.com >
2026-06-04 23:20:48 +00:00
Anshika Jain
e8cc66efd7
doc: fix AES-OCB IV length in SubtleCrypto.supports example
...
Signed-off-by: anshikakalpana <anshikajain196872@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63717
Fixes: https://github.com/nodejs/node/issues/63713
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
2026-06-04 18:36:54 +00:00
Joyee Cheung
4219808375
module: use file: URL as sourceURL for type-stripped CommonJS
...
The CommonJS loader was passing the bare filesystem path as the
`//# sourceURL` comment of type-stripped TypeScript, this leads to
two problems:
1. It reports hasSourceURL = false if the path contains any
whitespaces as this breaks V8's magic comment parser.
2. The inspector would incorrectly report a file path verbatim as
the script's URL.
Pass the module's file: URL as the sourceURL so the reported URL
is consistent across loaders and won't lead to an issue in
inspector clients that actually except a real URL for the
scripts.
Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63705
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
2026-06-04 12:25:20 +00:00
David Sanders
09c603fb46
doc: add webstreams to args for pipeline from stream/promises
...
Signed-off-by: David Sanders <dsanders11@ucsbalum.com >
PR-URL: https://github.com/nodejs/node/pull/63628
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Mattias Buelens <mattias@buelens.com >
2026-06-04 08:41:43 +00:00
Trivikram Kamat
5f727fdc89
stream: fast-path stateless transform flush results
...
Avoid generator-based normalization for common flush result types in
fused stateless stream/iter transforms. This keeps the corrected flush
ordering while reducing overhead for already-normalized batches and
primitive byte outputs.
Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com >
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63605
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2026-06-04 05:38:18 +00:00
Anna Henningsen
2d0c926907
src: merge CreateEnvironment() overloads
...
API-compatible, but ABI-breaking, so done separately from the
original 3090def635 .
Signed-off-by: Anna Henningsen <anna@addaleax.net >
PR-URL: https://github.com/nodejs/node/pull/63596
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day >
2026-06-04 00:21:26 +00:00
Antoine du Hamel
8346181ad3
tools: fix zlib updater script
...
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63707
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-06-03 22:17:32 +00:00
Daijiro Wachi
af2e68bba5
doc: fix "used to sent" → "used to send" in http2
...
Signed-off-by: Daijiro Wachi <daijiro.wachi@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63700
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
Reviewed-By: Tierney Cyren <hello@bnb.im >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
2026-06-03 17:37:13 +00:00
Tian Teng
f47f941e74
crypto: handle cipher context allocation failures
...
Signed-off-by: Herrtian <70463940+Herrtian@users.noreply.github.com >
PR-URL: https://github.com/nodejs/node/pull/63542
Fixes: https://github.com/nodejs/node/issues/62774
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2026-06-03 15:51:50 +00:00
Antoine du Hamel
b345a17095
doc: mark Node.js 25 as End-of-Life
...
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63692
Reviewed-By: Jithil P Ponnan <jithil@outlook.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Richard Lau <richard.lau@ibm.com >
Reviewed-By: Tierney Cyren <hello@bnb.im >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2026-06-03 09:03:29 +00:00
Trivikram Kamat
3dfd5125ac
test: accept SIGILL aborts in async-hooks tests
...
Use common.nodeProcessAborted() for the intentional abort path so
platform-specific abort signals such as SIGILL are accepted.
Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com >
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63687
Refs: https://github.com/nodejs/reliability/blob/main/reports/2026-06-01.md#jstest-failure
Reviewed-By: Richard Lau <richard.lau@ibm.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-06-03 05:34:34 +00:00
Trivikram Kamat
4d7996fb56
fs: ignore deleted dirs in recursive watch scan
...
A recursively watched directory can be removed after a parent watcher
observes it but before the non-native recursive watcher scans it.
Ignore ENOENT from the directory scan so this deletion race does not
emit an unhandled watcher error.
Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com >
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63686
Refs: https://github.com/nodejs/reliability/blob/main/reports/2026-06-01.md#jstest-failure
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-06-03 05:34:23 +00:00
Muhammad Zeeshan
7b08df713d
doc: clarify tty raw mode applies to input processing only
...
Update the setRawMode documentation to specify that raw mode disables
special processing of input characters only. Output processing, such as
newline translation on Unix terminals, is not affected.
Fixes: https://github.com/nodejs/node/issues/63059
Signed-off-by: zeeshan56656 <zeeshan130710@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63438
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2026-06-02 22:57:15 +00:00
Tobias Nießen
a0423e2e29
crypto: deduplicate X509 subject matching logic
...
Signed-off-by: Tobias Nießen <tniessen@tnie.de >
PR-URL: https://github.com/nodejs/node/pull/63644
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
2026-06-02 22:12:49 +00:00
Matteo Collina
6af90267de
stream: optimize pipeTo promise handling
...
Signed-off-by: Matteo Collina <hello@matteocollina.com >
PR-URL: https://github.com/nodejs/node/pull/63572
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-06-02 15:57:37 +00:00
Bob Put
5972387e0e
doc: add worker_threads history entries
...
PR-URL: https://github.com/nodejs/node/pull/63545
Refs: https://github.com/nodejs/node/issues/55794
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-06-02 16:40:38 +02:00
Joyee Cheung
0401a2d083
src: fix external reference registration for new CFunction lifetime
...
Refs: https://chromium-review.googlesource.com/c/v8/v8/+/7828135
Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63679
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2026-06-02 14:33:56 +00:00
Node.js GitHub Bot
93ab3c72ab
deps: update amaro to 1.1.10
...
PR-URL: https://github.com/nodejs/node/pull/63670
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-06-02 14:33:38 +00:00
Chengzhong Wu
3d35dd86fc
build: build codecache and snapshot with libnode
...
Signed-off-by: Chengzhong Wu <cwu631@bloomberg.net >
PR-URL: https://github.com/nodejs/node/pull/63626
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day >
2026-06-02 14:33:19 +00:00
alphaleadership
60dab8d2e3
doc: update blockList stability status to release candidate
...
Signed-off-by: arbinger <alphaleadershipyt@protonmail.com >
PR-URL: https://github.com/nodejs/node/pull/63050
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev >
2026-06-02 15:24:30 +02:00
Nora Dossche
458c37b019
src: fix edge case when deflateInit2() fails with Z_VERSION_ERROR
...
This function call can fail with `Z_VERSION_ERROR` if the compiled
library vs loaded library mismatched in version number or in
stream structure size.
In those cases, zlib doesn't initialize the `strm_.msg` field to
null. Therefore, when a `CompressionError` object is created via
`ErrorForMessage()`, it can read a stale or uninitialized `strm_.msg`
pointer that will cause a crash.
Example ASAN report:
```
AddressSanitizer: SEGV on unknown address
#0 __strlen_avx2
string/../sysdeps/x86_64/multiarch/strlen-avx2.S:76
#1 strlen (/work/node/out/Debug/node+0x1a42ab7)
#2 v8::(anonymous namespace)::StringLength(char const*)
/work/node/out/../deps/v8/src/api/api.cc:7581:16
#3 v8::(anonymous namespace)::StringLength(unsigned char const*)
/work/node/out/../deps/v8/src/api/api.cc:7587:10
#4 v8::String::NewFromOneByte(v8::Isolate*,
unsigned char const*, v8::NewStringType, int)
/work/node/out/../deps/v8/src/api/api.cc:7677:3
#5 node::OneByteString(v8::Isolate*,
char const*, int, v8::NewStringType)
/work/node/out/../src/util-inl.h:166:10
#6 node::(anonymous namespace)::CompressionStream<
node::(anonymous namespace)::ZlibContext>
::EmitError(node::(anonymous namespace)
::CompressionError const&)
/work/node/out/../src/node_zlib.cc:565:7
#7 node::(anonymous namespace)::CompressionStream<
node::(anonymous namespace)::ZlibContext>
::CheckError()
/work/node/out/../src/node_zlib.cc:519:5
#8 node::(anonymous namespace)::CompressionStream<
node::(anonymous namespace)::ZlibContext>
::AfterThreadPoolWork(int)
/work/node/out/../src/node_zlib.cc:543:10
#9 node::ThreadPoolWork::ScheduleWork()
::'lambda'(uv_work_s*, int)
::operator()(uv_work_s*, int) const
/work/node/out/../src/threadpoolwork-inl.h:57:15
#10 node::ThreadPoolWork::ScheduleWork()
::'lambda'(uv_work_s*, int)
::__invoke(uv_work_s*, int)
/work/node/out/../src/threadpoolwork-inl.h:48:7
#11 uv__work_done /work/libuv-1.51.0/src/threadpool.c:330:5
#12 uv__async_io.part.0
/work/libuv-1.51.0/src/unix/async.c:208:5
```
Signed-off-by: ndossche <nora.dossche@ugent.be >
PR-URL: https://github.com/nodejs/node/pull/63476
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2026-06-02 13:00:09 +00:00
Rafael Gonzaga
fd632cf96e
test: add more test cases for pathToFileURL
...
Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com >
PR-URL: https://github.com/nodejs/node/pull/63293
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-06-02 12:59:55 +00:00
sangwook
75b16f1f4e
test_runner: avoid recompiling coverage globs for every file
...
`shouldSkipFileCoverage()` called `matchGlobPattern()` for each covered
file, and `matchGlobPattern()` builds a fresh Minimatch (a full glob
parse and regexp compile) on every call. The coverage exclude/include
globs never change during a run, so the same patterns were recompiled
once per file, which dominated the coverage report time.
Compile `coverageExcludeGlobs`/`coverageIncludeGlobs` to matchers once
per `TestCoverage` instance and reuse them for every file. Expose
`createMatcher()` from `internal/fs/glob` for this.
On a synthetic 200-test-file project this drops shouldSkipFileCoverage
from ~117ms to ~11ms (cpu-prof, isolation=none); the saving scales with
files * globs.
Refs: https://github.com/nodejs/node/issues/55103
Signed-off-by: sangwook <rewq5991@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63675
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
2026-06-02 14:44:23 +02:00
sangwook
29aad20aa6
test_runner: cache shouldSkipFileCoverage result per URL
...
`shouldSkipFileCoverage(url)` is invoked twice for every covered
script (once during source-map mapping and once during merge), and
the same script URL is typically reported by every worker. The
result depends only on `options.cwd`, `coverageExcludeGlobs`, and
`coverageIncludeGlobs`, all of which are fixed for the lifetime of
a TestCoverage instance, so the URL -> boolean mapping is
deterministic and safe to cache.
Add a private `#skipCache` SafeMap and split the method into a thin
caching wrapper plus a private `#computeShouldSkipFileCoverage`
that holds the original logic. Callers are unchanged.
This eliminates redundant glob and URL parsing work proportional to
the number of workers x scripts in the coverage report.
Refs: https://github.com/nodejs/node/issues/55103
Signed-off-by: sangwook <rewq5991@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63675
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
2026-06-02 14:44:21 +02:00
Mohamed Sayed
ba7e6b3c47
lib: make Navigator#language getter throw on invalid this
...
Signed-off-by: Mohamed Sayed <k@3zrv.com >
PR-URL: https://github.com/nodejs/node/pull/63601
Fixes: https://github.com/nodejs/node/issues/63513
Reviewed-By: LiviaMedeiros <livia@cirno.name >
Reviewed-By: Matthew Aitken <maitken033380023@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-06-02 14:25:47 +02:00
Node.js GitHub Bot
faa413ea58
deps: update googletest to 8736d2cd5c1dcba41170ed2fddca14021d4916c3
...
PR-URL: https://github.com/nodejs/node/pull/63669
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-06-02 10:11:45 +00:00
Node.js GitHub Bot
859ae5522d
test: update test426-fixtures to 2965987bf4c96afa400c9356c8e620cb340aaee
...
PR-URL: https://github.com/nodejs/node/pull/63668
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-06-02 10:11:31 +00:00
Anna Henningsen
fea2263b70
src: remove redundant handle_ field in ffi
...
This was just a copy of the immediately preceding
`handle_` field in `uv_lib_t`.
Signed-off-by: Anna Henningsen <anna@addaleax.net >
PR-URL: https://github.com/nodejs/node/pull/63665
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Paolo Insogna <paolo@cowtech.it >
2026-06-02 08:42:28 +00:00
Maya Lekova
f234f0d165
crypto: fix warnings in test_node_crypto.cc
...
Fix build warnings by casting the number literals to the size_t
constants they are compared against.
Signed-off-by: Maya Lekova <maya@igalia.com >
PR-URL: https://github.com/nodejs/node/pull/63490
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
2026-06-02 08:42:16 +00:00
Node.js GitHub Bot
330f44f29c
tools: update nixpkgs-unstable to e9a7635a57597d9754eccebdfc7045e6c86
...
PR-URL: https://github.com/nodejs/node/pull/63671
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-06-02 01:32:11 +00:00
Trivikram Kamat
37779fdf1c
stream: handle falsy push writer fail reasons
...
Reject reads based on writer state so explicit falsy fail reasons do
not leave reads pending.
Fixes: https://github.com/nodejs/node/issues/63568
Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com >
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63569
Fixes: https://github.com/nodejs/node/issues/63568
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2026-06-01 23:18:12 +00:00
Anna Henningsen
7af433b68e
benchmark: remove old alias usage in ffi benchmarks
...
Follow-up to df09b2a48c .
Refs: https://github.com/nodejs/node/pull/63482
Signed-off-by: Anna Henningsen <anna@addaleax.net >
PR-URL: https://github.com/nodejs/node/pull/63666
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br >
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-06-01 21:49:34 +00:00
Joyee Cheung
f30139e3b9
debugger: add more logs to probe mode
...
Add more log points in the probe mode and enable the debuglog
int the probe mode tests.
Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63663
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Kohei Ueno <kohei.ueno119@gmail.com >
2026-06-01 20:36:47 +00:00
Node.js GitHub Bot
bb3f7e80b2
test: update WPT for WebCryptoAPI to 0c413fb56b
...
PR-URL: https://github.com/nodejs/node/pull/63647
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-06-01 19:03:32 +00:00
Trivikram Kamat
c126cbfd9b
stream: handle sync writev completion in pipeTo
...
Treat writer.writev() returning undefined as synchronous success to
match the existing write() fallback behavior for duck-typed writers.
This avoids calling Promise.prototype.then on undefined after a batch
write has already been accepted.
Fixes: https://github.com/nodejs/node/issues/63560
Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com >
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63561
Fixes: https://github.com/nodejs/node/issues/63560
Reviewed-By: James M Snell <jasnell@gmail.com >
2026-06-01 17:03:09 +00:00