2026-04-01, Version 25.9.0 (Current)

Notable changes:

async_hooks:
  * (SEMVER-MINOR) add using scopes to `AsyncLocalStorage` (Stephen Belanger) https://github.com/nodejs/node/pull/61674
cli:
  * (SEMVER-MINOR) add `--max-heap-size` option (tannal) https://github.com/nodejs/node/pull/58708
crypto:
  * (SEMVER-MINOR) add TurboSHAKE and KangarooTwelve Web Cryptography algorithms (Filip Skokan) https://github.com/nodejs/node/pull/62183
repl:
  * (SEMVER-MINOR) add customizable error handling (Anna Henningsen) https://github.com/nodejs/node/pull/62188
  * (SEMVER-MINOR) remove dependency on `node:domain` (Matteo Collina) https://github.com/nodejs/node/pull/61227
sea:
  * (SEMVER-MINOR) support code cache for ESM entrypoint in SEA (Joyee Cheung) https://github.com/nodejs/node/pull/62158
stream:
  * (SEMVER-MINOR) add stream/iter Implementation (James M Snell) https://github.com/nodejs/node/pull/62066
test_runner:
  * add exports option for module mocks (sangwook) https://github.com/nodejs/node/pull/61727

PR-URL: https://github.com/nodejs/node/pull/62522
This commit is contained in:
Antoine du Hamel committed 2026-03-31 23:45:56 +02:00
1 parent 0093863664
commit 9f5a2c9292
15 files changed
+215 -71

No files matched your search

+3 -3
View File
@@ -389,7 +389,7 @@ try {
### `asyncLocalStorage.withScope(store)`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
> Stability: 1 - Experimental
@@ -527,7 +527,7 @@ probably responsible for the context loss.
## Class: `RunScope`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
> Stability: 1 - Experimental
@@ -543,7 +543,7 @@ exits, whether through normal completion or by throwing an error.
### `scope.dispose()`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
Explicitly ends the scope and restores the previous store value. This method
+1 -1
View File
@@ -1272,7 +1272,7 @@ Enable experimental support for storage inspection
### `--experimental-stream-iter`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
> Stability: 1 - Experimental
+3 -3
View File
@@ -4465,7 +4465,7 @@ const server = http2.createSecureServer({
<!-- YAML
changes:
- version: REPLACEME
- version: v25.9.0
pr-url: https://github.com/nodejs/node/pull/62321
description: Documentation-only deprecation.
-->
@@ -4487,7 +4487,7 @@ will throw an error in a future version. This includes
<!-- YAML
changes:
- version: REPLACEME
- version: v25.9.0
pr-url: https://github.com/nodejs/node/pull/62321
description: Documentation-only deprecation.
-->
@@ -4501,7 +4501,7 @@ deprecated and will throw an error in a future version.
<!-- YAML
changes:
- version: REPLACEME
- version: v25.9.0
pr-url: https://github.com/nodejs/node/pull/62395
description: Documentation-only deprecation.
-->
+1 -1
View File
@@ -1452,7 +1452,7 @@ Emitted when [`process.execve()`][] is invoked.
> Stability: 1 - Experimental
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
These channels are emitted for each [`locks.request()`][] call. See
+3 -3
View File
@@ -380,7 +380,7 @@ added: v10.0.0
#### `filehandle.pull([...transforms][, options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
> Stability: 1 - Experimental
@@ -457,7 +457,7 @@ run().catch(console.error);
#### `filehandle.pullSync([...transforms][, options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
> Stability: 1 - Experimental
@@ -1010,7 +1010,7 @@ the end of the file.
#### `filehandle.writer([options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
> Stability: 1 - Experimental
+1 -1
View File
@@ -178,7 +178,7 @@ isBuiltin('wss'); // false
added:
- v20.6.0
- v18.19.0
deprecated: REPLACEME
deprecated: v25.9.0
changes:
- version:
- v23.6.1
+2 -2
View File
@@ -739,7 +739,7 @@ This feature is not available in [`Worker`][] threads.
## `process.addUncaughtExceptionCaptureCallback(fn)`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
> Stability: 1 - Experimental
@@ -4054,7 +4054,7 @@ This implies calling `module.setSourceMapsSupport()` with an option
<!-- YAML
added: v9.3.0
changes:
- version: REPLACEME
- version: v25.9.0
pr-url: https://github.com/nodejs/node/pull/61227
description: Use `process.addUncaughtExceptionCaptureCallback()` to
register multiple callbacks.
+1 -1
View File
@@ -1198,7 +1198,7 @@ True to enable TLS keylogging output.
<!-- YAML
added: v23.8.0
changes:
- version: REPLACEME
- version: v25.9.0
pr-url: https://github.com/nodejs/node/pull/62335
description: CryptoKey is no longer accepted.
-->
+1 -1
View File
@@ -709,7 +709,7 @@ npx codemod@latest @nodejs/repl-builtin-modules
<!-- YAML
added: v0.1.91
changes:
- version: REPLACEME
- version: v25.9.0
pr-url: https://github.com/nodejs/node/pull/62188
description: The `handleError` parameter has been added.
- version: v24.1.0
+27 -27
View File
@@ -1,6 +1,6 @@
# Iterable Streams
<!--introduced_in=REPLACEME-->
<!--introduced_in=v25.9.0-->
> Stability: 1 - Experimental
@@ -521,7 +521,7 @@ Including the `node:` prefix on the module specifier is optional.
### `from(input)`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `input` {string|ArrayBuffer|ArrayBufferView|Iterable|AsyncIterable|Object}
@@ -561,7 +561,7 @@ run().catch(console.error);
### `fromSync(input)`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `input` {string|ArrayBuffer|ArrayBufferView|Iterable|Object}
@@ -591,7 +591,7 @@ console.log(textSync(fromSync('hello'))); // 'hello'
### `pipeTo(source[, ...transforms], writer[, options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `source` {AsyncIterable|Iterable} The data source.
@@ -648,7 +648,7 @@ run().catch(console.error);
### `pipeToSync(source[, ...transforms], writer[, options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `source` {Iterable} The sync data source.
@@ -668,7 +668,7 @@ The `writer` must have the `*Sync` methods (`writeSync`, `writevSync`,
### `pull(source[, ...transforms][, options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `source` {AsyncIterable|Iterable} The data source.
@@ -739,7 +739,7 @@ ac.abort(); // Pipeline throws AbortError on next iteration
### `pullSync(source[, ...transforms])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `source` {Iterable} The sync data source.
@@ -753,7 +753,7 @@ Synchronous version of [`pull()`][]. All transforms must be synchronous.
### `push([...transforms][, options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `...transforms` {Function|Object} Optional transforms applied to the
@@ -817,7 +817,7 @@ The writer returned by `push()` conforms to the \[Writer interface]\[].
### `duplex([options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `options` {Object}
@@ -895,7 +895,7 @@ run().catch(console.error);
### `array(source[, options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `source` {AsyncIterable\<Uint8Array\[]>|Iterable\<Uint8Array\[]>}
@@ -910,7 +910,7 @@ Collect all chunks as an array of `Uint8Array` values (without concatenating).
### `arrayBuffer(source[, options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `source` {AsyncIterable\<Uint8Array\[]>|Iterable\<Uint8Array\[]>}
@@ -925,7 +925,7 @@ Collect all bytes into an `ArrayBuffer`.
### `arrayBufferSync(source[, options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `source` {Iterable\<Uint8Array\[]>}
@@ -939,7 +939,7 @@ Synchronous version of [`arrayBuffer()`][].
### `arraySync(source[, options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `source` {Iterable\<Uint8Array\[]>}
@@ -953,7 +953,7 @@ Synchronous version of [`array()`][].
### `bytes(source[, options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `source` {AsyncIterable\<Uint8Array\[]>|Iterable\<Uint8Array\[]>}
@@ -986,7 +986,7 @@ run().catch(console.error);
### `bytesSync(source[, options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `source` {Iterable\<Uint8Array\[]>}
@@ -1000,7 +1000,7 @@ Synchronous version of [`bytes()`][].
### `text(source[, options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `source` {AsyncIterable\<Uint8Array\[]>|Iterable\<Uint8Array\[]>}
@@ -1032,7 +1032,7 @@ run().catch(console.error);
### `textSync(source[, options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `source` {Iterable\<Uint8Array\[]>}
@@ -1049,7 +1049,7 @@ Synchronous version of [`text()`][].
### `ondrain(drainable)`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `drainable` {Object} An object implementing the drainable protocol.
@@ -1104,7 +1104,7 @@ run().catch(console.error);
### `merge(...sources[, options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `...sources` {AsyncIterable\<Uint8Array\[]>|Iterable\<Uint8Array\[]>} Two or more iterables.
@@ -1137,7 +1137,7 @@ run().catch(console.error);
### `tap(callback)`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `callback` {Function} `(chunks) => void` Called with each batch.
@@ -1176,7 +1176,7 @@ chunks by the tapping callback; but return values are ignored.
### `tapSync(callback)`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `callback` {Function}
@@ -1189,7 +1189,7 @@ Synchronous version of [`tap()`][].
### `broadcast([options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `options` {Object}
@@ -1290,7 +1290,7 @@ Alias for `broadcast.cancel()`.
### `Broadcast.from(input[, options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `input` {AsyncIterable|Iterable|Broadcastable}
@@ -1303,7 +1303,7 @@ automatically and pushed to all subscribers.
### `share(source[, options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `source` {AsyncIterable} The source to share.
@@ -1384,7 +1384,7 @@ Alias for `share.cancel()`.
### `Share.from(input[, options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `input` {AsyncIterable|Shareable}
@@ -1396,7 +1396,7 @@ Create a {Share} from an existing source.
### `shareSync(source[, options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `source` {Iterable} The sync source to share.
@@ -1411,7 +1411,7 @@ Synchronous version of [`share()`][].
### `SyncShare.fromSync(input[, options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `input` {Iterable|SyncShareable}
+15 -15
View File
@@ -2,7 +2,7 @@
<!-- YAML
changes:
- version: REPLACEME
- version: v25.9.0
pr-url: https://github.com/nodejs/node/pull/62183
description: TurboSHAKE and KangarooTwelve algorithms
are now supported.
@@ -1011,7 +1011,7 @@ The algorithms currently supported include:
<!-- YAML
added: v15.0.0
changes:
- version: REPLACEME
- version: v25.9.0
pr-url: https://github.com/nodejs/node/pull/62183
description: TurboSHAKE and KangarooTwelve algorithms
are now supported.
@@ -1280,7 +1280,7 @@ The {CryptoKey} (secret key) generating algorithms supported include:
<!-- YAML
added: v15.0.0
changes:
- version: REPLACEME
- version: v25.9.0
pr-url: https://github.com/nodejs/node/pull/62218
description: Importing ML-DSA and ML-KEM PKCS#8 keys
without a seed is no longer supported.
@@ -1894,7 +1894,7 @@ the message.
<!-- YAML
added: v24.7.0
changes:
- version: REPLACEME
- version: v25.9.0
pr-url: https://github.com/nodejs/node/pull/61875
description: Renamed `cShakeParams.length` to `cShakeParams.outputLength`.
-->
@@ -1910,7 +1910,7 @@ added: v24.7.0
#### `cShakeParams.outputLength`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* Type: {number} represents the requested output length in bits.
@@ -2339,13 +2339,13 @@ added: v15.0.0
### Class: `KangarooTwelveParams`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
#### `kangarooTwelveParams.customization`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* Type: {ArrayBuffer|TypedArray|DataView|Buffer|undefined}
@@ -2355,7 +2355,7 @@ The optional customization string for KangarooTwelve.
#### `kangarooTwelveParams.name`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* Type: {string} Must be `'KT128'`[^modern-algos] or `'KT256'`[^modern-algos]
@@ -2363,7 +2363,7 @@ added: REPLACEME
#### `kangarooTwelveParams.outputLength`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* Type: {number} represents the requested output length in bits.
@@ -2448,7 +2448,7 @@ added: v24.8.0
<!-- YAML
added: v24.8.0
changes:
- version: REPLACEME
- version: v25.9.0
pr-url: https://github.com/nodejs/node/pull/61875
description: Renamed `kmacParams.length` to `kmacParams.outputLength`.
-->
@@ -2464,7 +2464,7 @@ added: v24.8.0
#### `kmacParams.outputLength`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* Type: {number}
@@ -2741,13 +2741,13 @@ The length (in bytes) of the random salt to use.
### Class: `TurboShakeParams`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
#### `turboShakeParams.domainSeparation`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* Type: {number|undefined}
@@ -2757,7 +2757,7 @@ The optional domain separation byte (0x01-0x7f). Defaults to `0x1f`.
#### `turboShakeParams.name`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* Type: {string} Must be `'TurboSHAKE128'`[^modern-algos] or `'TurboSHAKE256'`[^modern-algos]
@@ -2765,7 +2765,7 @@ added: REPLACEME
#### `turboShakeParams.outputLength`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* Type: {number} represents the requested output length in bits.
+9 -9
View File
@@ -1,6 +1,6 @@
# Iterable Compression
<!--introduced_in=REPLACEME-->
<!--introduced_in=v25.9.0-->
> Stability: 1 - Experimental
@@ -74,7 +74,7 @@ console.log(original); // 'hello'
## `compressBrotliSync([options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `options` {Object}
@@ -106,7 +106,7 @@ Create a Brotli compression transform. Output is compatible with
## `compressDeflateSync([options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `options` {Object}
@@ -126,7 +126,7 @@ Create a deflate compression transform. Output is compatible with
## `compressGzipSync([options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `options` {Object}
@@ -146,7 +146,7 @@ and `decompressGzip()`/`decompressGzipSync()`.
## `compressZstdSync([options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `options` {Object}
@@ -173,7 +173,7 @@ Create a Zstandard compression transform. Output is compatible with
## `decompressBrotliSync([options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `options` {Object}
@@ -196,7 +196,7 @@ Create a Brotli decompression transform.
## `decompressDeflateSync([options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `options` {Object}
@@ -212,7 +212,7 @@ Create a deflate decompression transform.
## `decompressGzipSync([options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `options` {Object}
@@ -228,7 +228,7 @@ Create a gzip decompression transform.
## `decompressZstdSync([options])`
<!-- YAML
added: REPLACEME
added: v25.9.0
-->
* `options` {Object}