Skip to content

Commit

Permalink
2024-06-11, Version 22.3.0 (Current)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
RafaelGSS committed Jun 11, 2024
1 parent 0758c9b commit d6c77de
Show file tree
Hide file tree
Showing 6 changed files with 185 additions and 23 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ release.
</tr>
<tr>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V22.md#22.2.0">22.2.0</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V22.md#22.3.0">22.3.0</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V22.md#22.2.0">22.2.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V22.md#22.1.0">22.1.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V22.md#22.0.0">22.0.0</a><br/>
</td>
Expand Down
20 changes: 10 additions & 10 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ Relative paths are NOT supported through the CLI flag.
### `--allow-wasi`

<!-- YAML
added: REPLACEME
added: v22.3.0
-->

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

<!-- YAML
added: REPLACEME
added: v22.3.0
-->

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

<!-- YAML
added: REPLACEME
added: v22.3.0
-->

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

<!-- YAML
added: REPLACEME
added: v22.3.0
-->

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

<!-- YAML
added: REPLACEME
added: v22.3.0
-->

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

<!-- YAML
added: REPLACEME
added: v22.3.0
-->

> Stability: 1.0 - Early development
Expand Down Expand Up @@ -3009,7 +3009,7 @@ added:
- v12.16.0
changes:
- version:
- REPLACEME
- v22.3.0
pr-url: https://github.com/nodejs/node/pull/52905
description:
Remove the possibility to use this env var with
Expand Down
6 changes: 3 additions & 3 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ try {
<!-- YAML
added: v16.7.0
changes:
- version: REPLACEME
- version: v22.3.0
pr-url: https://github.com/nodejs/node/pull/53127
description: This API is no longer experimental.
- version:
Expand Down Expand Up @@ -2430,7 +2430,7 @@ copyFile('source.txt', 'destination.txt', constants.COPYFILE_EXCL, callback);
<!-- YAML
added: v16.7.0
changes:
- version: REPLACEME
- version: v22.3.0
pr-url: https://github.com/nodejs/node/pull/53127
description: This API is no longer experimental.
- version:
Expand Down Expand Up @@ -5470,7 +5470,7 @@ copyFileSync('source.txt', 'destination.txt', constants.COPYFILE_EXCL);
<!-- YAML
added: v16.7.0
changes:
- version: REPLACEME
- version: v22.3.0
pr-url: https://github.com/nodejs/node/pull/53127
description: This API is no longer experimental.
- version:
Expand Down
2 changes: 1 addition & 1 deletion doc/api/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -1924,7 +1924,7 @@ console.log('After:', getActiveResourcesInfo());
## `process.getBuiltinModule(id)`
<!-- YAML
added: REPLACEME
added: v22.3.0
-->
* `id` {string} ID of the built-in module being requested.
Expand Down
16 changes: 8 additions & 8 deletions doc/api/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -1680,7 +1680,7 @@ describe('tests', async () => {
## `snapshot`

<!-- YAML
added: REPLACEME
added: v22.3.0
-->

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

<!-- YAML
added: REPLACEME
added: v22.3.0
-->

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

<!-- YAML
added: REPLACEME
added: v22.3.0
-->

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

<!-- YAML
added: REPLACEME
added: v22.3.0
-->

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

<!-- YAML
added: REPLACEME
added: v22.3.0
-->

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

<!-- YAML
added: REPLACEME
added: v22.3.0
-->

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

<!-- YAML
added: REPLACEME
added: v22.3.0
-->

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

<!-- YAML
added: REPLACEME
added: v22.3.0
-->

The name of the test and each of its ancestors, separated by `>`.
Expand Down
Loading

0 comments on commit d6c77de

Please sign in to comment.