Livia Medeiros
1d2be62b5e
util: use internal hexSlice directly in util.inspect()
...
Signed-off-by: LiviaMedeiros <livia@cirno.name >
PR-URL: https://github.com/nodejs/node/pull/66974
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Jordan Harband <ljharb@gmail.com >
2026-11-12 17:45:29 +01:00
Antoine du Hamel
d919a87cdc
tools: remove node.gyp and node.gypi from v8.nix requisites
...
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/66955
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
2026-11-12 17:45:29 +01:00
Ulises Gascón
03d24b0f4d
tls: test the SPKI blocklist with a fixture key
...
Replace the test-only hooks on the crypto binding, and the process-wide
list and mutex they required on every handshake, with a fixture CA
whose public key is a permanent entry on the compiled-in blocklist. The
test now exercises the real list through full handshakes, without
--expose-internals, and the production path is a comparison against a
constant array.
The new fixtures provide two chains that contain the blocked key: a
server certificate issued by blocked-ca, and one issued by ca1 that
reuses the blocked key itself. The private key is checked in like every
other fixture key, so blocking it costs nothing. It is pinned in the
fixtures Makefile, since its digest is compiled in.
Refs: https://github.com/nodejs/node/pull/66871#discussion_r4325672378
Assisted-by: Claude, Codex
Signed-off-by: Ulises Gascon <ulisesgascongonzalez@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/66949
Reviewed-By: Tim Perry <pimterry@gmail.com >
2026-11-12 17:45:29 +01:00
Filip Skokan
4a92e8a862
crypto: reject immutable random fill buffers
...
Prevent randomFillSync(), randomFill(), and getRandomValues() from
modifying immutable ArrayBuffers or their views.
Refs: https://github.com/nodejs/node/issues/66346
Signed-off-by: Filip Skokan <panva.ip@gmail.com >
Assisted-by: Codex
PR-URL: https://github.com/nodejs/node/pull/66944
Reviewed-By: Richard Lau <richard.lau@ibm.com >
2026-11-12 17:45:29 +01:00
David Babenko-Sanders
4d73c14454
build: fix overriding node_path in GN build
...
Signed-off-by: David Babenko-Sanders <dsanders11@ucsbalum.com >
PR-URL: https://github.com/nodejs/node/pull/66805
Reviewed-By: Shelley Vohr <shelley.vohr@gmail.com >
2026-11-12 17:45:29 +01:00
Geoffrey Booth
75ad54c48b
test: use registerHooks() over module.register()
...
Port the tests that registered async module customization hooks, via
`--loader`, `--experimental-loader` or `module.register()`, only as a
means of exercising other features to use `module.registerHooks()`
instead. This keeps the coverage for those features independent of the
async module customization hooks, which are being removed.
Tests that exist only to exercise the async module customization hooks
themselves are left as they are.
Assisted-by: Claude
Signed-off-by: Geoffrey Booth <webadmin@geoffreybooth.com >
PR-URL: https://github.com/nodejs/node/pull/67074
Refs: https://github.com/nodejs/node/pull/62395
Refs: https://github.com/nodejs/node/pull/62401
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
2026-11-12 17:45:29 +01:00
Christian Aurich Zanettini Martins
19cae95c1e
fs: fix readFileSync utf8 overflow on short reads
...
`ReadFileUtf8()` appends reads shorter than 8 KiB to a string and only
moves to a heap buffer at the first full 8 KiB read. That buffer always
started at 64 KiB, but a pipe can deliver more than that in short reads
first, so copying the string into it overflowed the heap. With
`big_len` past `big_cap`, the next read size also underflowed.
Size the heap buffer to at least what was already read. When that is
more than 64 KiB, the buffer is full and the existing growth step
enlarges it before the next read.
Signed-off-by: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/66939
Fixes: https://github.com/nodejs/node/issues/66341
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2026-11-12 17:45:28 +01:00
Rafael Gonzaga
c89f5391f7
doc: note linear history rule on branch-off
...
Pushing new `vN.x` and `vN.x-staging` branches to the repository is
rejected by the "Require linear history" ruleset, because branch
creation evaluates the whole history and `main` still contains merge
commits from 2015. Document that a repository admin must disable the
rule, push the branches, and enable it again, as done for v26.x and
v27.x.
Refs: https://github.com/nodejs/Release/issues/1187
Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com >
PR-URL: https://github.com/nodejs/node/pull/67057
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Richard Lau <richard.lau@ibm.com >
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
2026-11-12 17:45:28 +01:00
yuki motokane
5816401bcd
doc: remove outdated platform note for --watch-path
...
Fixes: https://github.com/nodejs/node/issues/66743
Signed-off-by: Yuki Motokane <216834584+motokaneyuki@users.noreply.github.com >
Assisted-by: Claude
PR-URL: https://github.com/nodejs/node/pull/66749
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com >
2026-11-12 17:45:28 +01:00
Matteo Collina
4f2e200e1b
stream: keep async context of pipeTo watchers
...
The ClosedPromiseHook records that pipeTo() and tee() install as the
[[closedPromise]] of their reader and writer enqueued the watcher from
whoever settled the record. The source-closed, source-errored and
dest-errored steps of pipeTo() therefore ran in the async context of
the code that closed or errored the stream, so the destination's
close() and abort() and the source's cancel() observed the wrong
AsyncLocalStorage store. Capture the async context frame when the
hook is installed and register the reaction in it, as the spec's
promise reaction would.
Add a test that records the context each underlying source, sink and
transformer callback observes across readable, writable, transform,
pipe and tee scenarios, so scheduling shortcuts that drop the context
are caught.
Refs: https://github.com/nodejs/node/issues/66906
Refs: https://github.com/nodejs/node/pull/66424
Signed-off-by: Matteo Collina <hello@matteocollina.com >
PR-URL: https://github.com/nodejs/node/pull/67052
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Paolo Insogna <paolo@cowtech.it >
2026-11-12 17:45:28 +01:00
Marco
3791c7b075
zlib: avoid an extra empty zstd frame
...
Signed-off-by: marcopiraccini <marco.piraccini@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/66161
Fixes: https://github.com/nodejs/node/issues/66078
Reviewed-By: Xuguang Mei <meixuguang@gmail.com >
Reviewed-By: Paolo Insogna <paolo@cowtech.it >
Reviewed-By: James M Snell <jasnell@gmail.com >
2026-11-12 17:45:28 +01:00
Marco
594525ae67
zlib: restart format detection when resetting Unzip
...
Signed-off-by: marcopiraccini <marco.piraccini@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/66169
Fixes: https://github.com/nodejs/node/issues/64619
Reviewed-By: Paolo Insogna <paolo@cowtech.it >
2026-11-12 17:45:28 +01:00
Marco
117f2ecc52
fs: do not swallow exceptions thrown by completion callbacks
...
Since 93644d5126 the TryCatch guarding StringBytes::Encode in the
completion callbacks of mkdtemp, realpath.native, readlink, recursive
mkdir, recursive readdir and dir.read is still active when the JS
callback runs. Exceptions thrown by the callback, or by the nextTick
queue drained after it, are caught by it and never reported.
Leave the TryCatch before calling into JS.
Fixes: https://github.com/nodejs/node/issues/65667
Refs: https://github.com/nodejs/node/pull/57706
Signed-off-by: marcopiraccini <marco.piraccini@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/66308
Reviewed-By: Paolo Insogna <paolo@cowtech.it >
2026-11-12 17:45:28 +01:00
Marco
c1b8f0e971
child_process: add subprocess.timedOut
...
When the timeout option of spawn(), exec(), execFile() or fork()
expires, the child is sent the kill signal and exits with that signal.
Nothing told the caller that the timeout was the reason.
Set subprocess.timedOut to true when the kill signal is sent because of
the timeout, and add the same flag to the error passed to the exec()
and execFile() callback.
Fixes: https://github.com/nodejs/node/issues/51561
Refs: https://github.com/nodejs/node/pull/51608
Signed-off-by: marcopiraccini <marco.piraccini@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/66639
Reviewed-By: Paolo Insogna <paolo@cowtech.it >
2026-11-12 17:45:28 +01:00
Seongeun Lee
04f072c9b1
typings: share Sign and Verify handle methods
...
Extract SignBaseHandle for the shared init and update methods.
Preserve existing signatures and runtime behavior.
Assisted-by: Codex
Signed-off-by: leah-1ee <selee3196@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/66499
Reviewed-By: Tim Perry <pimterry@gmail.com >
2026-11-12 17:45:28 +01:00
Guilherme Araújo
1dd9dbef18
sqlite: cache the SQLTagStore constructor template
...
Store the template on the environment like the other sqlite classes,
so stores no longer get a fresh template and prototype each time.
Signed-off-by: Guilherme Araújo <arauujogui@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/66912
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2026-11-12 17:45:27 +01:00
Guilherme Araújo
2ae36bda76
sqlite: settle BackupJob through a single exit point
...
Route every exit through Settle(), which finalizes, settles the
promise and deletes the job once. This also frees the job when
building the progress object fails.
Signed-off-by: Guilherme Araújo <arauujogui@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/66912
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2026-11-12 17:45:27 +01:00
Guilherme Araújo
8e9fef5321
sqlite: use DeleteFnPtr for all SQLite handles
...
Replace the custom deleter structs and OnScopeLeave cleanups with
DeleteFnPtr aliases, and pass session ownership to Session::Create.
Signed-off-by: Guilherme Araújo <arauujogui@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/66912
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2026-11-12 17:45:27 +01:00
Guilherme Araújo
1fb58b93fc
sqlite: track statements in the Statement constructor
...
Statement::Close() untracks itself, so the constructor should track
itself too, like Session does, instead of relying on every caller.
Signed-off-by: Guilherme Araújo <arauujogui@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/66912
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2026-11-12 17:45:27 +01:00
Donghoon Kang
f69426a7c5
doc: fix sqlite tagged template examples
...
Signed-off-by: HoonDongKang <d159123@naver.com >
PR-URL: https://github.com/nodejs/node/pull/66920
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Guilherme Araújo <arauujogui@gmail.com >
2026-11-12 17:45:27 +01:00
dependabot[bot]
af7b97d574
meta: bump ossf/scorecard-action from 2.4.4 to 2.5.0
...
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action ) from 2.4.4 to 2.5.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases )
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md )
- [Commits](https://github.com/ossf/scorecard-action/compare/2d1146689b8cda280b9bc96326124645441f03bc...fa7117db83c52d787ae5a89f350999701505d78e )
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-version: 2.5.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/67020
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-11-12 17:45:27 +01:00
Harjoth Khara
6a9db450cb
net,tls: fix session reuse with provided sockets
...
Preserve literal IP hosts on net.Socket before connection. This keeps
wrapped TLS sessions bound to the correct peer when tls.connect() uses a
provided socket.
Fixes: https://github.com/nodejs/node/issues/64402
Signed-off-by: harjoth <harjoth.khara@gmail.com >
Assisted-by: Codex
PR-URL: https://github.com/nodejs/node/pull/64430
Reviewed-By: Tim Perry <pimterry@gmail.com >
2026-11-12 17:45:27 +01:00
Antoine du Hamel
c085cec88e
tools: fix number comparison if Nix diff viewer
...
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/66904
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
2026-11-12 17:45:27 +01:00
dependabot[bot]
d2446118fe
meta: bump actions/setup-python from 7.0.0 to 7.1.0
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 7.0.0 to 7.1.0.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/5fda3b95a4ea91299a34e894583c3862153e4b97...6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-version: 7.1.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/67021
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Christian Clauss <cclauss@me.com >
2026-11-12 17:45:27 +01:00
dependabot[bot]
755d919ae7
tools: bump the eslint group in /tools/eslint with 5 updates
...
Bumps the eslint group in /tools/eslint with 5 updates:
| Package | From | To |
| --- | --- | --- |
| [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core ) | `8.0.6` | `8.0.7` |
| [@babel/eslint-parser](https://github.com/babel/babel/tree/HEAD/eslint/babel-eslint-parser ) | `8.0.6` | `8.0.7` |
| [eslint](https://github.com/eslint/eslint ) | `10.11.0` | `10.13.0` |
| [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc ) | `64.5.4` | `65.4.0` |
| [globals](https://github.com/sindresorhus/globals ) | `17.12.0` | `17.13.0` |
Updates `@babel/core` from 8.0.6 to 8.0.7
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v8.0.7/packages/babel-core )
Updates `@babel/eslint-parser` from 8.0.6 to 8.0.7
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v8.0.7/eslint/babel-eslint-parser )
Updates `eslint` from 10.11.0 to 10.13.0
- [Release notes](https://github.com/eslint/eslint/releases )
- [Commits](https://github.com/eslint/eslint/compare/v10.11.0...v10.13.0 )
Updates `eslint-plugin-jsdoc` from 64.5.4 to 65.4.0
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases )
- [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v64.5.4...v65.4.0 )
Updates `globals` from 17.12.0 to 17.13.0
- [Release notes](https://github.com/sindresorhus/globals/releases )
- [Commits](https://github.com/sindresorhus/globals/compare/v17.12.0...v17.13.0 )
---
updated-dependencies:
- dependency-name: "@babel/core"
dependency-version: 8.0.7
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: eslint
- dependency-name: "@babel/eslint-parser"
dependency-version: 8.0.7
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: eslint
- dependency-name: eslint
dependency-version: 10.13.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: eslint
- dependency-name: eslint-plugin-jsdoc
dependency-version: 65.4.0
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: eslint
- dependency-name: globals
dependency-version: 17.13.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/67025
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-11-12 17:45:26 +01:00
dependabot[bot]
0805564c46
meta: bump actions/setup-node from 7.0.0 to 7.1.0
...
Bumps [actions/setup-node](https://github.com/actions/setup-node ) from 7.0.0 to 7.1.0.
- [Release notes](https://github.com/actions/setup-node/releases )
- [Commits](https://github.com/actions/setup-node/compare/820762786026740c76f36085b0efc47a31fe5020...949feb2413d6458794dcd2491c4babbbce0c15c1 )
---
updated-dependencies:
- dependency-name: actions/setup-node
dependency-version: 7.1.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/67032
Reviewed-By: Christian Clauss <cclauss@me.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-11-12 17:45:26 +01:00
dependabot[bot]
e233b55e0d
meta: bump actions/download-artifact from 8.0.1 to 8.0.2
...
Bumps [actions/download-artifact](https://github.com/actions/download-artifact ) from 8.0.1 to 8.0.2.
- [Release notes](https://github.com/actions/download-artifact/releases )
- [Commits](https://github.com/actions/download-artifact/compare/3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c...9000827ccba6bdab643e8b6fd33ac0654aef8333 )
---
updated-dependencies:
- dependency-name: actions/download-artifact
dependency-version: 8.0.2
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/67018
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com >
2026-11-12 17:45:26 +01:00
dependabot[bot]
52ad018f3c
meta: bump actions/upload-artifact from 7.0.1 to 7.0.2
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 7.0.1 to 7.0.2.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/043fb46d1a93c77aae656e7c1c64a875d1fc6a0a...cf430e030ddbb5b0abf93d22962f4752f3646cd9 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-version: 7.0.2
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/67024
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com >
Reviewed-By: Tierney Cyren <hello@bnb.im >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-11-12 17:45:26 +01:00
dependabot[bot]
5dcb9b1d22
tools: bump piscina from 5.2.0 to 5.3.2 in /tools/doc
...
Bumps [piscina](https://github.com/piscinajs/piscina ) from 5.2.0 to 5.3.2.
- [Release notes](https://github.com/piscinajs/piscina/releases )
- [Changelog](https://github.com/piscinajs/piscina/blob/v5.3.2/CHANGELOG.md )
- [Commits](https://github.com/piscinajs/piscina/compare/v5.2.0...v5.3.2 )
---
updated-dependencies:
- dependency-name: piscina
dependency-version: 5.3.2
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
PR-URL: https://github.com/nodejs/node/pull/67026
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-11-12 17:45:26 +01:00
dependabot[bot]
c77f2e339b
tools: bump undici from 6.28.0 to 6.29.1 in /tools/doc
...
Bumps [undici](https://github.com/nodejs/undici ) from 6.28.0 to 6.29.1.
- [Release notes](https://github.com/nodejs/undici/releases )
- [Commits](https://github.com/nodejs/undici/compare/v6.28.0...v6.29.1 )
---
updated-dependencies:
- dependency-name: undici
dependency-version: 6.29.1
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
PR-URL: https://github.com/nodejs/node/pull/67027
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com >
2026-11-12 17:45:26 +01:00
Yagiz Nizipli
ba673eb18b
zlib: grow the output buffer of large async one-shot calls
...
The asynchronous convenience methods hand the whole input to zlib in
one write, but still take one threadpool round trip per `chunkSize`
(16 KiB by default) of output. Decompressing 4 MiB took 257 round
trips.
Only the concatenated result of these calls is observable, so double
the output buffer whenever it fills up, up to 1 MiB. 4 MiB of output
now takes 10 round trips. The buffer never grows past what is needed
to tell that `maxOutputLength` was exceeded, and results that fit in
the first buffer are unchanged.
Signed-off-by: Yagiz Nizipli <yagiz@nizipli.com >
Assisted-by: Grok
PR-URL: https://github.com/nodejs/node/pull/66863
Reviewed-By: Robert Nagy <ronagy@icloud.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2026-11-12 17:45:26 +01:00
Yagiz Nizipli
34134917a3
zlib: finish async convenience calls in one write
...
The asynchronous convenience methods (`zlib.deflate()`,
`zlib.inflate()`, `zlib.gunzip()`, ...) wrote the input to a
Transform stream and then ended it. That took two threadpool round
trips, one for the data and one for the final flush, and ran the
result through the stream machinery.
The whole input is known up front, so unless `info` or a custom
`flush` is requested, process it with the finish flush directly, the
way the synchronous methods already do, and collect the output in the
write callback. A call whose output fits in one buffer now takes a
single threadpool round trip. The output is unchanged: the previous
two-write sequence already produced the same bytes as the synchronous
methods. `zstdCompress()` keeps the separate end-of-frame write,
because a single `ZSTD_e_end` call can produce slightly larger frames.
benchmark/compare.js, 40 runs, n=100000:
confidence improvement
zlib/inflate.js method='inflate' *** +94.91 %
zlib/deflate.js method='deflate' *** +66.27 %
Signed-off-by: Yagiz Nizipli <yagiz@nizipli.com >
Assisted-by: Grok
PR-URL: https://github.com/nodejs/node/pull/66863
Reviewed-By: Robert Nagy <ronagy@icloud.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2026-11-12 17:45:26 +01:00
Yagiz Nizipli
2d64e56faa
zlib: skip the stream in sync convenience calls without options
...
`zlib.inflateSync(buffer)` and the other synchronous convenience
methods constructed a Transform stream for every call, even though
only its native handle is used and, without options, the stream is
never exposed. They also allocated a fresh output chunk for every
call.
When no options are passed, drive a native handle created with the
default settings directly, and decompress into a scratch buffer kept
between calls, copying the result out. Calls with options, including
`info`, keep the existing path. Results and errors are unchanged.
Signed-off-by: Yagiz Nizipli <yagiz@nizipli.com >
Assisted-by: Grok
PR-URL: https://github.com/nodejs/node/pull/66864
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2026-11-12 17:45:25 +01:00
dependabot[bot]
1ab11281a7
meta: bump github/codeql-action/init from 4.38.2 to 4.39.1
...
Bumps [github/codeql-action/init](https://github.com/github/codeql-action ) from 4.38.2 to 4.39.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/2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2...9b3254085494b55a0f7c4c2b3d2d52cc712ce370 )
Bumps [github/codeql-action/upload-sarif](https://github.com/github/codeql-action ) from 4.38.2 to 4.39.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/2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2...9b3254085494b55a0f7c4c2b3d2d52cc712ce370 )
Bumps [github/codeql-action/autobuild](https://github.com/github/codeql-action ) from 4.38.2 to 4.39.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/2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2...9b3254085494b55a0f7c4c2b3d2d52cc712ce370 )
Bumps [github/codeql-action/analyze](https://github.com/github/codeql-action ) from 4.38.2 to 4.39.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/2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2...9b3254085494b55a0f7c4c2b3d2d52cc712ce370 )
---
updated-dependencies:
- dependency-name: github/codeql-action/init
dependency-version: 4.39.1
dependency-type: direct:production
update-type: version-update:semver-minor
- dependency-name: github/codeql-action/upload-sarif
dependency-version: 4.39.1
dependency-type: direct:production
update-type: version-update:semver-minor
- dependency-name: github/codeql-action/autobuild
dependency-version: 4.39.1
dependency-type: direct:production
update-type: version-update:semver-minor
- dependency-name: github/codeql-action/analyze
dependency-version: 4.39.1
dependency-type: direct:production
update-type: version-update:semver-minor
...
PR-URL: https://github.com/nodejs/node/pull/67028
Reviewed-By: Christian Clauss <cclauss@me.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-11-12 17:45:25 +01:00
Huang-404-Q
8d169a89cc
http2: clear the session timeout before marking it destroyed
...
closeSession() set SESSION_FLAGS_DESTROYED and then called
session.setTimeout(0). setStreamTimeout() returns early when the
session is destroyed, so the idle timer stayed armed and retained
the session until the server timeout fired.
Clear the timeout and remove its listeners before setting the
destroyed flag.
Fixes: https://github.com/nodejs/node/issues/66885
Signed-off-by: huang <13165998033@163.com >
PR-URL: https://github.com/nodejs/node/pull/66886
Reviewed-By: Tim Perry <pimterry@gmail.com >
2026-11-12 17:45:25 +01:00
Filip Skokan
04e5a39ebf
crypto,tls: clone X.509 chains across isolates
...
X509Certificate cloning drops issuerCertificate and shares its native
X509 object with the receiving isolate. Snapshot the leaf and supplied
peer chain as DER, then parse separate native certificates in each
isolate.
Construct the JavaScript chain iteratively for TLS inspection,
structuredClone(), MessagePort, and workers. Each supplied position
gets its own object, including repeated certificate encodings.
Refs: https://github.com/nodejs/node/pull/65602
Assisted-by: Codex
Signed-off-by: Filip Skokan <panva.ip@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/66898
Reviewed-By: Tim Perry <pimterry@gmail.com >
2026-11-12 17:45:25 +01:00
Trivikram Kamat
7145dcb47c
ffi: free libuv error message on failed dlopen
...
When uv_dlopen() fails, the error message it allocates is only
released by uv_dlclose(). DynamicLibrary::Close() skips uv_dlclose()
when the handle is null, so each failed ffi.dlopen() leaked the
message. Call uv_dlclose() on the failure path, as DLib::Open() does.
Signed-off-by: Trivikram Kamat <16024985+trivikr@users.noreply.github.com >
Assisted-by: claude:opus-5.5
PR-URL: https://github.com/nodejs/node/pull/67007
Fixes: https://github.com/nodejs/node/issues/67006
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com >
Reviewed-By: Paolo Insogna <paolo@cowtech.it >
2026-11-12 17:45:25 +01:00
Node.js GitHub Bot
62f8c7485e
test: update test426-fixtures to fae1fa49815813088c433e8486e330e8d953a44
...
PR-URL: https://github.com/nodejs/node/pull/66815
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-11-12 17:45:25 +01:00
Node.js GitHub Bot
d14f217a90
tools: update gyp-next to 0.22.4
...
PR-URL: https://github.com/nodejs/node/pull/66988
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-11-12 17:45:25 +01:00
Antoine du Hamel
e68efadc33
tools: do not lint GYP JS files
...
They are not maintained in this repository.
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/66988
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-11-12 17:45:25 +01:00
Philipp Dunkel
91cd10a868
zlib: add raw content read methods to ZipEntry
...
zipEntry.rawContent was a getter that exposed the retained buffer of an
in-memory entry and returned null for a file-backed or streaming one,
so the still-compressed bytes of a member read through ZipFile could
not be obtained at all.
Replace it with rawContent(), rawContentSync() and
rawContentIterator(), which mirror content(), contentSync() and
contentIterator() but return the bytes as stored, without
decompressing or verifying them. They work for every entry that has
readable content, return caller-owned buffers from the buffered
variants, and accept a maxSize bound on the compressed size.
Signed-off-by: Philipp Dunkel <pip@pipobscure.com >
PR-URL: https://github.com/nodejs/node/pull/66801
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2026-11-12 17:45:25 +01:00
dependabot[bot]
92b6c09ed7
tools: bump remark-preset-lint-node
...
Bumps the lint-md group in /tools/lint-md with 1 update: [remark-preset-lint-node](https://github.com/nodejs/remark-preset-lint-node ).
Updates `remark-preset-lint-node` from 5.1.2 to 5.2.0
- [Release notes](https://github.com/nodejs/remark-preset-lint-node/releases )
- [Commits](https://github.com/nodejs/remark-preset-lint-node/compare/v5.1.2...v5.2.0 )
---
updated-dependencies:
- dependency-name: remark-preset-lint-node
dependency-version: 5.2.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: lint-md
...
Signed-off-by: dependabot[bot] <support@github.com >
PR-URL: https://github.com/nodejs/node/pull/67023
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Richard Lau <richard.lau@ibm.com >
2026-11-12 17:45:24 +01:00
Ved Chaudhari
53a5bd6560
events: report original once() listener on removal
...
When a `once()` listener is removed, emit the original user-defined
function in the `removeListener` event instead of the internal wrapper,
matching the behavior of the single-listener path.
Assisted-by: claude:opus-5.5
Signed-off-by: vedchaudhari <vedc2853@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/66621
Refs: https://github.com/nodejs/node/issues/5551
Refs: https://github.com/nodejs/node/pull/6394
Refs: https://github.com/nodejs/node/pull/33596
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
2026-11-12 17:45:24 +01:00
Node.js GitHub Bot
c55e6091eb
deps: update zlib to 1.3.2.1-motley-9f9f52c
...
PR-URL: https://github.com/nodejs/node/pull/66989
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-11-12 17:45:24 +01:00
Richard Lau
a8ae8e6bd7
test: check html and json doc files are generated
...
Signed-off-by: Richard Lau <richard.lau@ibm.com >
PR-URL: https://github.com/nodejs/node/pull/66613
Refs: https://github.com/nodejs/node/issues/66571
Reviewed-By: Claudio Wunder <cwunder@gnome.org >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-11-12 17:45:24 +01:00
Rafael Gonzaga
f87b1d5637
doc: document the alpha release process
...
Document how to prepare, version, tag and promote the Alpha releases
introduced by the new release schedule, starting with Node.js 27, and
how the first Alpha and semver-major releases are prepared with
git node release.
Refs: https://github.com/nodejs/Release/issues/1187
Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com >
PR-URL: https://github.com/nodejs/node/pull/66796
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Richard Lau <richard.lau@ibm.com >
2026-11-12 17:45:24 +01:00
Michał Fox
f033c5aa2c
sqlite: avoid sqlite3_clear_bindings() before every run
...
Since SQLite 3.54, sqlite3_clear_bindings() invalidates the query plan
of the statement, so a statement was re-prepared on every run. Bind NULL
only to the parameters that were not bound in this run instead, and skip
clearing in the tag store, which always binds every parameter.
Refs: https://github.com/nodejs/node/issues/66800
Signed-off-by: dualfroz <me@dualfroz.com >
PR-URL: https://github.com/nodejs/node/pull/66983
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2026-11-12 17:45:24 +01:00
Ravi Arnan Irianto
a2858eaaee
doc: fix grammar and phrasing in typescript.md
...
Fix grammatical issues and heading phrasing in `doc/api/typescript.md`:
- Correct subject-verb agreement ("files that contains" -> "files that
contain").
- Add missing indefinite article ("result in an ... error").
- Change heading from "Paths aliases" to "Path aliases" to match
standard TypeScript terminology.
- Clarify verb parallelism ("won't be transformed and will therefore
produce an error").
Signed-off-by: Ravi Arnan <raviarnankeren@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/66977
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Mike McCready <66998419+MikeMcC399@users.noreply.github.com >
2026-11-12 17:45:24 +01:00
Lazizbek Ergashev
fd7dc863d0
sqlite: retry busy or locked backup steps
...
Signed-off-by: lazerg <lazerg2@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/66769
Fixes: https://github.com/nodejs/node/issues/66760
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2026-11-12 17:45:24 +01:00
Guilherme Araújo
6360b8ab53
sqlite: validate backup() source is a Database
...
backup() only checked that the source argument was a BaseObject before
casting it to Database, so passing a Statement or Session caused a
type confusion. Check against the Database constructor template
instead.
Signed-off-by: Guilherme Araújo <arauujogui@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/66797
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2026-11-12 17:45:24 +01:00