Skip to content

Commit d6c77de

Browse files
committed
2024-06-11, Version 22.3.0 (Current)
Notable changes: buffer: * (SEMVER-MINOR) add .bytes() method to Blob (Matthew Aitken) #53221 cli: * (SEMVER-MINOR) add `NODE_RUN_PACKAGE_JSON_PATH` env (Yagiz Nizipli) #53058 * (SEMVER-MINOR) add `NODE_RUN_SCRIPT_NAME` env to `node --run` (Yagiz Nizipli) #53032 doc: * (SEMVER-MINOR) add context.assert docs (Colin Ihrig) #53169 * (SEMVER-MINOR) improve explanation about built-in modules (Joyee Cheung) #52762 * add StefanStojanovic to collaborators (StefanStojanovic) #53118 * add Marco Ippolito to TSC (Rafael Gonzaga) #53008 fs: * mark recursive cp methods as stable (Théo LUDWIG) #53127 lib: * (SEMVER-MINOR) add EventSource Client (Aras Abbasi) #51575 * (SEMVER-MINOR) replace MessageEvent with undici's (Matthew Aitken) #52370 module: * (SEMVER-MINOR) print amount of load time of a cjs module (Vinicius Lourenço) #52213 net: * (SEMVER-MINOR) add new net.server.listen tracing channel (Paolo Insogna) #53136 process: * (SEMVER-MINOR) add process.getBuiltinModule(id) (Joyee Cheung) #52762 src: * (SEMVER-MINOR) traverse parent folders while running `--run` (Yagiz Nizipli) #53154 src,permission: * (SEMVER-MINOR) --allow-wasi & prevent WASI exec (Rafael Gonzaga) #53124 test_runner: * (SEMVER-MINOR) add snapshot testing (Colin Ihrig) #53169 * (SEMVER-MINOR) add context.fullName (Colin Ihrig) #53169 * (SEMVER-MINOR) support module mocking (Colin Ihrig) #52848 PR-URL: #53379
1 parent 0758c9b commit d6c77de

File tree

6 files changed

+185
-23
lines changed

6 files changed

+185
-23
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ release.
3838
</tr>
3939
<tr>
4040
<td valign="top">
41-
<b><a href="doc/changelogs/CHANGELOG_V22.md#22.2.0">22.2.0</a></b><br/>
41+
<b><a href="doc/changelogs/CHANGELOG_V22.md#22.3.0">22.3.0</a></b><br/>
42+
<a href="doc/changelogs/CHANGELOG_V22.md#22.2.0">22.2.0</a><br/>
4243
<a href="doc/changelogs/CHANGELOG_V22.md#22.1.0">22.1.0</a><br/>
4344
<a href="doc/changelogs/CHANGELOG_V22.md#22.0.0">22.0.0</a><br/>
4445
</td>

doc/api/cli.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ Relative paths are NOT supported through the CLI flag.
272272
### `--allow-wasi`
273273

274274
<!-- YAML
275-
added: REPLACEME
275+
added: v22.3.0
276276
-->
277277

278278
> Stability: 1.1 - Active development
@@ -696,7 +696,7 @@ code from strings throw an exception instead. This does not affect the Node.js
696696
### `--expose-gc`
697697

698698
<!-- YAML
699-
added: REPLACEME
699+
added: v22.3.0
700700
-->
701701

702702
> Stability: 1 - Experimental. This flag is inherited from V8 and is subject to
@@ -940,7 +940,7 @@ CommonJS. This includes the following:
940940
### `--experimental-eventsource`
941941

942942
<!-- YAML
943-
added: REPLACEME
943+
added: v22.3.0
944944
-->
945945

946946
Enable exposition of [EventSource Web API][] on the global scope.
@@ -1069,7 +1069,7 @@ report is not generated. See the documentation on
10691069
### `--experimental-test-module-mocks`
10701070

10711071
<!-- YAML
1072-
added: REPLACEME
1072+
added: v22.3.0
10731073
-->
10741074

10751075
> Stability: 1.0 - Early development
@@ -1079,7 +1079,7 @@ Enable module mocking in the test runner.
10791079
### `--experimental-test-snapshots`
10801080

10811081
<!-- YAML
1082-
added: REPLACEME
1082+
added: v22.3.0
10831083
-->
10841084

10851085
> Stability: 1.0 - Early development
@@ -1973,13 +1973,13 @@ Modules preloaded with `--require` will run before modules preloaded with `--imp
19731973
<!-- YAML
19741974
added: v22.0.0
19751975
changes:
1976-
- version: REPLACEME
1976+
- version: v22.3.0
19771977
pr-url: https://github.com/nodejs/node/pull/53032
19781978
description: NODE_RUN_SCRIPT_NAME environment variable is added.
1979-
- version: REPLACEME
1979+
- version: v22.3.0
19801980
pr-url: https://github.com/nodejs/node/pull/53058
19811981
description: NODE_RUN_PACKAGE_JSON_PATH environment variable is added.
1982-
- version: REPLACEME
1982+
- version: v22.3.0
19831983
pr-url: https://github.com/nodejs/node/pull/53154
19841984
description: Traverses up to the root directory and finds
19851985
a `package.json` file to run the command from, and updates
@@ -2253,7 +2253,7 @@ subtests inherit this value from their parent. The default value is `Infinity`.
22532253
### `--test-update-snapshots`
22542254

22552255
<!-- YAML
2256-
added: REPLACEME
2256+
added: v22.3.0
22572257
-->
22582258

22592259
> Stability: 1.0 - Early development
@@ -3009,7 +3009,7 @@ added:
30093009
- v12.16.0
30103010
changes:
30113011
- version:
3012-
- REPLACEME
3012+
- v22.3.0
30133013
pr-url: https://github.com/nodejs/node/pull/52905
30143014
description:
30153015
Remove the possibility to use this env var with

doc/api/fs.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ try {
10211021
<!-- YAML
10221022
added: v16.7.0
10231023
changes:
1024-
- version: REPLACEME
1024+
- version: v22.3.0
10251025
pr-url: https://github.com/nodejs/node/pull/53127
10261026
description: This API is no longer experimental.
10271027
- version:
@@ -2430,7 +2430,7 @@ copyFile('source.txt', 'destination.txt', constants.COPYFILE_EXCL, callback);
24302430
<!-- YAML
24312431
added: v16.7.0
24322432
changes:
2433-
- version: REPLACEME
2433+
- version: v22.3.0
24342434
pr-url: https://github.com/nodejs/node/pull/53127
24352435
description: This API is no longer experimental.
24362436
- version:
@@ -5470,7 +5470,7 @@ copyFileSync('source.txt', 'destination.txt', constants.COPYFILE_EXCL);
54705470
<!-- YAML
54715471
added: v16.7.0
54725472
changes:
5473-
- version: REPLACEME
5473+
- version: v22.3.0
54745474
pr-url: https://github.com/nodejs/node/pull/53127
54755475
description: This API is no longer experimental.
54765476
- version:

doc/api/process.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1924,7 +1924,7 @@ console.log('After:', getActiveResourcesInfo());
19241924
## `process.getBuiltinModule(id)`
19251925
19261926
<!-- YAML
1927-
added: REPLACEME
1927+
added: v22.3.0
19281928
-->
19291929
19301930
* `id` {string} ID of the built-in module being requested.

doc/api/test.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -1680,7 +1680,7 @@ describe('tests', async () => {
16801680
## `snapshot`
16811681

16821682
<!-- YAML
1683-
added: REPLACEME
1683+
added: v22.3.0
16841684
-->
16851685

16861686
> Stability: 1.0 - Early development
@@ -1693,7 +1693,7 @@ placing common configuration code in a module preloaded with `--require` or
16931693
### `snapshot.setDefaultSnapshotSerializers(serializers)`
16941694

16951695
<!-- YAML
1696-
added: REPLACEME
1696+
added: v22.3.0
16971697
-->
16981698

16991699
> Stability: 1.0 - Early development
@@ -1710,7 +1710,7 @@ more robust serialization mechanism is required, this function should be used.
17101710
### `snapshot.setResolveSnapshotPath(fn)`
17111711

17121712
<!-- YAML
1713-
added: REPLACEME
1713+
added: v22.3.0
17141714
-->
17151715

17161716
> Stability: 1.0 - Early development
@@ -1883,7 +1883,7 @@ mock can still be used after calling this function.
18831883
## Class: `MockModuleContext`
18841884

18851885
<!-- YAML
1886-
added: REPLACEME
1886+
added: v22.3.0
18871887
-->
18881888

18891889
> Stability: 1.0 - Early development
@@ -1894,7 +1894,7 @@ created via the [`MockTracker`][] APIs.
18941894
### `ctx.restore()`
18951895

18961896
<!-- YAML
1897-
added: REPLACEME
1897+
added: v22.3.0
18981898
-->
18991899

19001900
Resets the implementation of the mock module.
@@ -2035,7 +2035,7 @@ test('spies on an object method', (t) => {
20352035
### `mock.module(specifier[, options])`
20362036

20372037
<!-- YAML
2038-
added: REPLACEME
2038+
added: v22.3.0
20392039
-->
20402040

20412041
> Stability: 1.0 - Early development
@@ -3148,7 +3148,7 @@ test('test', (t) => {
31483148
#### `context.assert.snapshot(value[, options])`
31493149

31503150
<!-- YAML
3151-
added: REPLACEME
3151+
added: v22.3.0
31523152
-->
31533153

31543154
> Stability: 1.0 - Early development
@@ -3203,7 +3203,7 @@ test('top level test', (t) => {
32033203
### `context.fullName`
32043204

32053205
<!-- YAML
3206-
added: REPLACEME
3206+
added: v22.3.0
32073207
-->
32083208

32093209
The name of the test and each of its ancestors, separated by `>`.

0 commit comments

Comments
 (0)