Skip to content

Commit 9a2fbd2

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 5a41bcf commit 9a2fbd2

File tree

7 files changed

+187
-25
lines changed

7 files changed

+187
-25
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

+9-9
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
@@ -676,7 +676,7 @@ code from strings throw an exception instead. This does not affect the Node.js
676676
### `--expose-gc`
677677

678678
<!-- YAML
679-
added: REPLACEME
679+
added: v22.3.0
680680
-->
681681

682682
> Stability: 1 - Experimental. This flag is inherited from V8 and is subject to
@@ -918,7 +918,7 @@ CommonJS. This includes the following:
918918
### `--experimental-eventsource`
919919

920920
<!-- YAML
921-
added: REPLACEME
921+
added: v22.3.0
922922
-->
923923

924924
Enable exposition of [EventSource Web API][] on the global scope.
@@ -1047,7 +1047,7 @@ report is not generated. See the documentation on
10471047
### `--experimental-test-module-mocks`
10481048

10491049
<!-- YAML
1050-
added: REPLACEME
1050+
added: v22.3.0
10511051
-->
10521052

10531053
> Stability: 1.0 - Early development
@@ -1057,7 +1057,7 @@ Enable module mocking in the test runner.
10571057
### `--experimental-test-snapshots`
10581058

10591059
<!-- YAML
1060-
added: REPLACEME
1060+
added: v22.3.0
10611061
-->
10621062

10631063
> Stability: 1.0 - Early development
@@ -1951,10 +1951,10 @@ Modules preloaded with `--require` will run before modules preloaded with `--imp
19511951
<!-- YAML
19521952
added: v22.0.0
19531953
changes:
1954-
- version: REPLACEME
1954+
- version: v22.3.0
19551955
pr-url: https://github.com/nodejs/node/pull/53032
19561956
description: NODE_RUN_SCRIPT_NAME environment variable is added.
1957-
- version: REPLACEME
1957+
- version: v22.3.0
19581958
pr-url: https://github.com/nodejs/node/pull/53058
19591959
description: NODE_RUN_PACKAGE_JSON_PATH environment variable is added.
19601960
- version: REPLACEME
@@ -2229,7 +2229,7 @@ subtests inherit this value from their parent. The default value is `Infinity`.
22292229
### `--test-update-snapshots`
22302230

22312231
<!-- YAML
2232-
added: REPLACEME
2232+
added: v22.3.0
22332233
-->
22342234

22352235
> Stability: 1.0 - Early development
@@ -3018,7 +3018,7 @@ added:
30183018
- v12.16.0
30193019
changes:
30203020
- version:
3021-
- REPLACEME
3021+
- v22.3.0
30223022
pr-url: https://github.com/nodejs/node/pull/52905
30233023
description:
30243024
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
@@ -1920,7 +1920,7 @@ console.log('After:', getActiveResourcesInfo());
19201920
## `process.getBuiltinModule(id)`
19211921
19221922
<!-- YAML
1923-
added: REPLACEME
1923+
added: v22.3.0
19241924
-->
19251925
19261926
* `id` {string} ID of the built-in module being requested.

doc/api/test.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -1670,7 +1670,7 @@ describe('tests', async () => {
16701670
## `snapshot`
16711671

16721672
<!-- YAML
1673-
added: REPLACEME
1673+
added: v22.3.0
16741674
-->
16751675

16761676
> Stability: 1.0 - Early development
@@ -1683,7 +1683,7 @@ placing common configuration code in a module preloaded with `--require` or
16831683
### `snapshot.setDefaultSnapshotSerializers(serializers)`
16841684

16851685
<!-- YAML
1686-
added: REPLACEME
1686+
added: v22.3.0
16871687
-->
16881688

16891689
> Stability: 1.0 - Early development
@@ -1700,7 +1700,7 @@ more robust serialization mechanism is required, this function should be used.
17001700
### `snapshot.setResolveSnapshotPath(fn)`
17011701

17021702
<!-- YAML
1703-
added: REPLACEME
1703+
added: v22.3.0
17041704
-->
17051705

17061706
> Stability: 1.0 - Early development
@@ -1873,7 +1873,7 @@ mock can still be used after calling this function.
18731873
## Class: `MockModuleContext`
18741874

18751875
<!-- YAML
1876-
added: REPLACEME
1876+
added: v22.3.0
18771877
-->
18781878

18791879
> Stability: 1.0 - Early development
@@ -1884,7 +1884,7 @@ created via the [`MockTracker`][] APIs.
18841884
### `ctx.restore()`
18851885

18861886
<!-- YAML
1887-
added: REPLACEME
1887+
added: v22.3.0
18881888
-->
18891889

18901890
Resets the implementation of the mock module.
@@ -2025,7 +2025,7 @@ test('spies on an object method', (t) => {
20252025
### `mock.module(specifier[, options])`
20262026

20272027
<!-- YAML
2028-
added: REPLACEME
2028+
added: v22.3.0
20292029
-->
20302030

20312031
> Stability: 1.0 - Early development
@@ -3138,7 +3138,7 @@ test('test', (t) => {
31383138
#### `context.assert.snapshot(value[, options])`
31393139

31403140
<!-- YAML
3141-
added: REPLACEME
3141+
added: v22.3.0
31423142
-->
31433143

31443144
> Stability: 1.0 - Early development
@@ -3193,7 +3193,7 @@ test('top level test', (t) => {
31933193
### `context.fullName`
31943194

31953195
<!-- YAML
3196-
added: REPLACEME
3196+
added: v22.3.0
31973197
-->
31983198

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

0 commit comments

Comments
 (0)