Skip to content

Commit

Permalink
2023-11-29, Version 18.19.0 'Hydrogen' (LTS)
Browse files Browse the repository at this point in the history
Notable changes:

deps:
  * (SEMVER-MINOR) update uvwasi to 0.0.19 (Node.js GitHub Bot) #49908
  * (SEMVER-MINOR) upgrade npm to 10.2.3 (npm team) #50531
doc:
  * move and rename loaders section (Geoffrey Booth) #49261
esm:
  * use import attributes instead of import assertions (Antoine du Hamel) #50140
  * --experimental-default-type flag to flip module defaults (Geoffrey Booth) #49869
  * unflag import.meta.resolve (Guy Bedford) #49028
  * move hook execution to separate thread (Jacob Smith) #44710
  * leverage loaders when resolving subsequent loaders (Maël Nison) #43772
lib:
  * (SEMVER-MINOR) add api to detect whether source-maps are enabled (翠 / green) #46391
  * (SEMVER-MINOR) add tracing channel to diagnostics_channel (Stephen Belanger) #44943
src:
  * (SEMVER-MINOR) add cjs_module_lexer_version base64_version (Jithil P Ponnan) #45629
stream:
  * use bitmap in readable state (Benjamin Gruenbaum) #49745
test_runner:
  * (SEMVER-MINOR) accept `testOnly` in `run` (Moshe Atlow) #49753
  * (SEMVER-MINOR) add junit reporter (Moshe Atlow) #49614
  * (SEMVER-MINOR) expose location of tests (Colin Ihrig) #48975
  * (SEMVER-MINOR) add shards support (Raz Luvaton) #48639
  * (SEMVER-MINOR) add initial draft for fakeTimers (Erick Wendel) #47775
test_runner, cli:
  * (SEMVER-MINOR) add --test-concurrency flag (Colin Ihrig) #49996
tls:
  * (SEMVER-MINOR) add ALPNCallback server option for dynamic ALPN negotiation (Tim Perry) #45190
vm:
  * (SEMVER-MINOR) use import attributes instead of import assertions (Antoine du Hamel) #50141

PR-URL: #50953
  • Loading branch information
targos committed Nov 28, 2023
1 parent a1c9403 commit 9e0c715
Show file tree
Hide file tree
Showing 15 changed files with 505 additions and 43 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ release.
</tr>
<tr>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V18.md#18.18.2">18.18.2</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V18.md#18.19.0">18.19.0</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V18.md#18.18.2">18.18.2</a><br/>
<a href="doc/changelogs/CHANGELOG_V18.md#18.18.1">18.18.1</a><br/>
<a href="doc/changelogs/CHANGELOG_V18.md#18.18.0">18.18.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V18.md#18.17.1">18.17.1</a><br/>
Expand Down
8 changes: 4 additions & 4 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ Expose the [Web Crypto API][] on the global scope.

<!-- YAML
added:
- REPLACEME
- v18.19.0
-->

> Stability: 1.0 - Early development
Expand Down Expand Up @@ -406,7 +406,7 @@ added:
- v13.9.0
- v12.16.2
changes:
- version: REPLACEME
- version: v18.19.0
pr-url: https://github.com/nodejs/node/pull/49028

Check warning on line 410 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: synchronous import.meta.resolve made available by default, with
the flag retained for enabling the experimental second argument
Expand Down Expand Up @@ -1301,7 +1301,7 @@ for more details.
### `--test-concurrency`

<!-- YAML
added: REPLACEME
added: v18.19.0
-->

The maximum number of test files that the test runner CLI will execute
Expand Down Expand Up @@ -1347,7 +1347,7 @@ option set.
### `--test-shard`

<!-- YAML
added: REPLACEME
added: v18.19.0
-->

Test suite shard to execute in a format of `<index>/<total>`, where
Expand Down
20 changes: 10 additions & 10 deletions doc/api/diagnostics_channel.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ diagnostics_channel.unsubscribe('my-channel', onMessage);

<!-- YAML
added:
- REPLACEME
- v18.19.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -457,7 +457,7 @@ channel.unsubscribe(onMessage);

<!-- YAML
added:
- REPLACEME
- v18.19.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -501,7 +501,7 @@ channel.bindStore(store, (data) => {

<!-- YAML
added:
- REPLACEME
- v18.19.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -540,7 +540,7 @@ channel.unbindStore(store);

<!-- YAML
added:
- REPLACEME
- v18.19.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -601,7 +601,7 @@ channel.runStores({ some: 'message' }, () => {

<!-- YAML
added:
- REPLACEME
- v18.19.0
-->

> Stability: 1 - Experimental
Expand All @@ -618,7 +618,7 @@ dynamically.

<!-- YAML
added:
- REPLACEME
- v18.19.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -686,7 +686,7 @@ channels.subscribe({

<!-- YAML
added:
- REPLACEME
- v18.19.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -756,7 +756,7 @@ channels.unsubscribe({

<!-- YAML
added:
- REPLACEME
- v18.19.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -801,7 +801,7 @@ channels.traceSync(() => {

<!-- YAML
added:
- REPLACEME
- v18.19.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -849,7 +849,7 @@ channels.tracePromise(async () => {

<!-- YAML
added:
- REPLACEME
- v18.19.0
-->

> Stability: 1 - Experimental
Expand Down
2 changes: 1 addition & 1 deletion doc/api/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -1794,7 +1794,7 @@ An import attribute is not supported by this version of Node.js.
### `ERR_IMPORT_ATTRIBUTE_UNSUPPORTED`

<!-- YAML
added: REPLACEME
added: v18.19.0
-->

An import attribute is not supported by this version of Node.js.
Expand Down
10 changes: 5 additions & 5 deletions doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<!-- YAML
added: v8.5.0
changes:
- version: REPLACEME
- version: v18.19.0
pr-url: https://github.com/nodejs/node/pull/44710

Check warning on line 11 in doc/api/esm.md

View workflow job for this annotation

GitHub Actions / lint-pr-url

pr-url doesn't match the URL of the current PR.
description: Module customization hooks are executed off the main thread.
- version:
Expand Down Expand Up @@ -243,7 +243,7 @@ added:
- v17.1.0
- v16.14.0
changes:
- version: REPLACEME
- version: v18.19.0
pr-url: https://github.com/nodejs/node/pull/50140

Check warning on line 247 in doc/api/esm.md

View workflow job for this annotation

GitHub Actions / lint-pr-url

pr-url doesn't match the URL of the current PR.
description: Switch from Import Assertions to Import Attributes.
-->
Expand Down Expand Up @@ -340,15 +340,15 @@ added:
- v13.9.0
- v12.16.2
changes:
- version: REPLACEME
- version: v18.19.0
pr-url: https://github.com/nodejs/node/pull/49028

Check warning on line 344 in doc/api/esm.md

View workflow job for this annotation

GitHub Actions / lint-pr-url

pr-url doesn't match the URL of the current PR.
description: Unflag `import.meta.resolve``, with `parentURL` parameter still
flagged.
- version: REPLACEME
- version: v18.19.0
pr-url: https://github.com/nodejs/node/pull/49038

Check warning on line 348 in doc/api/esm.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 no longer throws when targeting `file:` URLs that do
not map to an existing file on the local FS.
- version: REPLACEME
- version: v18.19.0
pr-url: https://github.com/nodejs/node/pull/44710

Check warning on line 352 in doc/api/esm.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 now returns a string synchronously instead of a Promise.
- version:
Expand Down
6 changes: 3 additions & 3 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,7 @@ makeDirectory().catch(console.error);
<!-- YAML
added: v10.0.0
changes:
- version: REPLACEME
- version: v18.19.0
pr-url: https://github.com/nodejs/node/pull/48828

Check warning on line 1158 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: The `prefix` parameter now accepts buffers and URL.
- version:
Expand Down Expand Up @@ -3230,7 +3230,7 @@ See the POSIX mkdir(2) documentation for more details.
<!-- YAML
added: v5.10.0
changes:
- version: REPLACEME
- version: v18.19.0
pr-url: https://github.com/nodejs/node/pull/48828

Check warning on line 3234 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: The `prefix` parameter now accepts buffers and URL.
- version: v18.0.0
Expand Down Expand Up @@ -5487,7 +5487,7 @@ See the POSIX mkdir(2) documentation for more details.
<!-- YAML
added: v5.10.0
changes:
- version: REPLACEME
- version: v18.19.0
pr-url: https://github.com/nodejs/node/pull/48828

Check warning on line 5491 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: The `prefix` parameter now accepts buffers and URL.
- version:
Expand Down
10 changes: 5 additions & 5 deletions doc/api/module.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ isBuiltin('wss'); // false
### `module.register(specifier[, parentURL][, options])`
<!-- YAML
added: REPLACEME
added: v18.19.0
changes:
- version: REPLACEME
- version: v18.19.0
pr-url: https://github.com/nodejs/node/pull/49655

Check warning on line 87 in doc/api/module.md

View workflow job for this annotation

GitHub Actions / lint-pr-url

pr-url doesn't match the URL of the current PR.
description: Add support for WHATWG URL instances.
-->
Expand Down Expand Up @@ -151,7 +151,7 @@ import('node:fs').then((esmFS) => {
<!-- YAML
added: v8.8.0
changes:
- version: REPLACEME
- version: v18.19.0
pr-url: https://github.com/nodejs/node/pull/48842
description: Added `initialize` hook to replace `globalPreload`.
- version:
Expand Down Expand Up @@ -381,7 +381,7 @@ asynchronous operations (like `console.log`) to complete.
#### `initialize()`
<!-- YAML
added: REPLACEME
added: v18.19.0
-->
> Stability: 1.1 - Active development
Expand Down Expand Up @@ -456,7 +456,7 @@ register('./path-to-my-hooks.js', {
<!-- YAML
changes:
- version: REPLACEME
- version: v18.19.0
pr-url: https://github.com/nodejs/node/pull/50140
description: The property `context.importAssertions` is replaced with
`context.importAttributes`. Using the old name is still
Expand Down
2 changes: 1 addition & 1 deletion doc/api/n-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -5423,7 +5423,7 @@ required in order to enable correct disposal of the reference.
#### `node_api_post_finalizer`

<!-- YAML
added: REPLACEME
added: v18.19.0
-->

> Stability: 1 - Experimental
Expand Down
2 changes: 1 addition & 1 deletion doc/api/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -3463,7 +3463,7 @@ Using this function is mutually exclusive with using the deprecated
## `process.sourceMapsEnabled`
<!-- YAML
added: REPLACEME
added: v18.19.0
-->
> Stability: 1 - Experimental
Expand Down
4 changes: 2 additions & 2 deletions doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -2009,7 +2009,7 @@ added:
- v17.4.0
- v16.14.0
changes:
- version: REPLACEME
- version: v18.19.0
pr-url: https://github.com/nodejs/node/pull/49249
description: added `highWaterMark` in options.
-->
Expand Down Expand Up @@ -2062,7 +2062,7 @@ added:
- v17.4.0
- v16.14.0
changes:
- version: REPLACEME
- version: v18.19.0
pr-url: https://github.com/nodejs/node/pull/49249
description: added `highWaterMark` in options.
-->
Expand Down
10 changes: 5 additions & 5 deletions doc/api/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -1515,7 +1515,7 @@ set to `true`.

<!-- YAML
added:
- REPLACEME
- v18.19.0
-->

> Stability: 1 - Experimental
Expand All @@ -1531,7 +1531,7 @@ which is a `MockTimers` instance.

<!-- YAML
added:
- REPLACEME
- v18.19.0
-->

Enables timer mocking for the specified timers.
Expand Down Expand Up @@ -1574,7 +1574,7 @@ and `globalThis` will be mocked.

<!-- YAML
added:
- REPLACEME
- v18.19.0
-->

This function restores the default behavior of all mocks that were previously
Expand Down Expand Up @@ -1602,7 +1602,7 @@ Calls `timers.reset()`.

<!-- YAML
added:
- REPLACEME
- v18.19.0
-->

Advances time for all mocked timers.
Expand Down Expand Up @@ -1876,7 +1876,7 @@ test('should tick five times testing a real use case', async (context) => {

<!-- YAML
added:
- REPLACEME
- v18.19.0
-->

Triggers all pending mocked timers immediately.
Expand Down
2 changes: 1 addition & 1 deletion doc/api/tls.md
Original file line number Diff line number Diff line change
Expand Up @@ -2045,7 +2045,7 @@ where `secureSocket` has the same API as `pair.cleartext`.
<!-- YAML
added: v0.3.2
changes:
- version: REPLACEME
- version: v18.19.0
pr-url: https://github.com/nodejs/node/pull/45190
description: The `options` parameter can now include `ALPNCallback`.
- version: v12.3.0
Expand Down
2 changes: 1 addition & 1 deletion doc/api/vm.md
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ The identifier of the current module, as set in the constructor.

<!-- YAML
changes:
- version: REPLACEME
- version: v18.19.0
pr-url: https://github.com/nodejs/node/pull/50141
description: The option `extra.assert` is renamed to `extra.attributes`. The
former name is still provided for backward compatibility.
Expand Down
Loading

0 comments on commit 9e0c715

Please sign in to comment.