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 10, 2024
1 parent 5a41bcf commit 9a2fbd2
Show file tree
Hide file tree
Showing 7 changed files with 187 additions and 25 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
18 changes: 9 additions & 9 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 @@ -676,7 +676,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 @@ -918,7 +918,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 @@ -1047,7 +1047,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 @@ -1057,7 +1057,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 @@ -1951,10 +1951,10 @@ 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

Check warning on line 1955 in doc/api/cli.md

View workflow job for this annotation

GitHub Actions / lint-pr-url

pr-url doesn't match the URL of the current PR.
description: NODE_RUN_SCRIPT_NAME environment variable is added.
- version: REPLACEME
- version: v22.3.0
pr-url: https://github.com/nodejs/node/pull/53058

Check warning on line 1958 in doc/api/cli.md

View workflow job for this annotation

GitHub Actions / lint-pr-url

pr-url doesn't match the URL of the current PR.
description: NODE_RUN_PACKAGE_JSON_PATH environment variable is added.
- version: REPLACEME
Expand Down Expand Up @@ -2229,7 +2229,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 @@ -3018,7 +3018,7 @@ added:
- v12.16.0
changes:
- version:
- REPLACEME
- v22.3.0
pr-url: https://github.com/nodejs/node/pull/52905

Check warning on line 3022 in doc/api/cli.md

View workflow job for this annotation

GitHub Actions / lint-pr-url

pr-url doesn't match the URL of the current PR.
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

Check warning on line 1025 in doc/api/fs.md

View workflow job for this annotation

GitHub Actions / lint-pr-url

pr-url doesn't match the URL of the current PR.
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

Check warning on line 2434 in doc/api/fs.md

View workflow job for this annotation

GitHub Actions / lint-pr-url

pr-url doesn't match the URL of the current PR.
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

Check warning on line 5474 in doc/api/fs.md

View workflow job for this annotation

GitHub Actions / lint-pr-url

pr-url doesn't match the URL of the current PR.
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 @@ -1920,7 +1920,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 @@ -1670,7 +1670,7 @@ describe('tests', async () => {
## `snapshot`

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

> Stability: 1.0 - Early development
Expand All @@ -1683,7 +1683,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 @@ -1700,7 +1700,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 @@ -1873,7 +1873,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 @@ -1884,7 +1884,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 @@ -2025,7 +2025,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 @@ -3138,7 +3138,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 @@ -3193,7 +3193,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 9a2fbd2

Please sign in to comment.