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 29, 2023
1 parent fe98734 commit 8787acb
Show file tree
Hide file tree
Showing 14 changed files with 536 additions and 18 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ release.
<a href="doc/changelogs/CHANGELOG_V20.md#20.0.0">20.0.0</a><br/>
</td>
<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
10 changes: 8 additions & 2 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,7 @@ and `"` are usable.
added:
- v21.0.0
- v20.10.0
- v18.19.0
-->

> Stability: 1.0 - Early development
Expand Down Expand Up @@ -706,7 +707,9 @@ added:
- v13.9.0
- v12.16.2
changes:
- version: v20.6.0
- version:
- v20.6.0
- v18.19.0
pr-url: https://github.com/nodejs/node/pull/49028
description: synchronous import.meta.resolve made available by default, with
the flag retained for enabling the experimental second argument
Expand Down Expand Up @@ -1753,6 +1756,7 @@ for more details.
added:
- v21.0.0
- v20.10.0
- v18.19.0
-->

The maximum number of test files that the test runner CLI will execute
Expand Down Expand Up @@ -1820,7 +1824,9 @@ The destination for the corresponding test reporter. See the documentation on
### `--test-shard`

<!-- YAML
added: v20.5.0
added:
- v20.5.0
- v18.19.0
-->

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

> Stability: 1 - Experimental
Expand Down Expand Up @@ -466,6 +467,7 @@ channel.unsubscribe(onMessage);
<!-- YAML
added:
- v19.9.0
- v18.19.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -510,6 +512,7 @@ channel.bindStore(store, (data) => {
<!-- YAML
added:
- v19.9.0
- v18.19.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -549,6 +552,7 @@ channel.unbindStore(store);
<!-- YAML
added:
- v19.9.0
- v18.19.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -610,6 +614,7 @@ channel.runStores({ some: 'message' }, () => {
<!-- YAML
added:
- v19.9.0
- v18.19.0
-->

> Stability: 1 - Experimental
Expand All @@ -627,6 +632,7 @@ dynamically.
<!-- YAML
added:
- v19.9.0
- v18.19.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -695,6 +701,7 @@ channels.subscribe({
<!-- YAML
added:
- v19.9.0
- v18.19.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -765,6 +772,7 @@ channels.unsubscribe({
<!-- YAML
added:
- v19.9.0
- v18.19.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -810,6 +818,7 @@ channels.traceSync(() => {
<!-- YAML
added:
- v19.9.0
- v18.19.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -858,6 +867,7 @@ channels.tracePromise(async () => {
<!-- YAML
added:
- v19.9.0
- v18.19.0
-->

> Stability: 1 - Experimental
Expand Down
1 change: 1 addition & 0 deletions doc/api/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -1780,6 +1780,7 @@ An import attribute is missing, preventing the specified module to be imported.
added:
- v21.0.0
- v20.10.0
- v18.19.0
-->

An import attribute is not supported by this version of Node.js.
Expand Down
17 changes: 13 additions & 4 deletions doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ changes:
- v20.10.0
pr-url: https://github.com/nodejs/node/pull/50140
description: Add experimental support for import attributes.
- version: v20.0.0
- version:
- v20.0.0
- v18.19.0
pr-url: https://github.com/nodejs/node/pull/44710
description: Module customization hooks are executed off the main thread.
- version:
Expand Down Expand Up @@ -262,6 +264,7 @@ changes:
- version:
- v21.0.0
- v20.10.0
- v18.19.0
pr-url: https://github.com/nodejs/node/pull/50140
description: Switch from Import Assertions to Import Attributes.
-->
Expand Down Expand Up @@ -386,15 +389,21 @@ added:
- v13.9.0
- v12.16.2
changes:
- version: v20.6.0
- version:
- v20.6.0
- v18.19.0
pr-url: https://github.com/nodejs/node/pull/49028
description: Unflag `import.meta.resolve``, with `parentURL` parameter still
flagged.
- version: v20.6.0
- version:
- v20.6.0
- v18.19.0
pr-url: https://github.com/nodejs/node/pull/49038
description: This API no longer throws when targeting `file:` URLs that do
not map to an existing file on the local FS.
- version: v20.0.0
- version:
- v20.0.0
- v18.19.0
pr-url: https://github.com/nodejs/node/pull/44710
description: This API now returns a string synchronously instead of a Promise.
- version:
Expand Down
12 changes: 9 additions & 3 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,9 @@ makeDirectory().catch(console.error);
<!-- YAML
added: v10.0.0
changes:
- version: v20.6.0
- version:
- v20.6.0
- v18.19.0
pr-url: https://github.com/nodejs/node/pull/48828
description: The `prefix` parameter now accepts buffers and URL.
- version:
Expand Down Expand Up @@ -3328,7 +3330,9 @@ See the POSIX mkdir(2) documentation for more details.
<!-- YAML
added: v5.10.0
changes:
- version: v20.6.0
- version:
- v20.6.0
- v18.19.0
pr-url: https://github.com/nodejs/node/pull/48828
description: The `prefix` parameter now accepts buffers and URL.
- version: v18.0.0
Expand Down Expand Up @@ -5661,7 +5665,9 @@ See the POSIX mkdir(2) documentation for more details.
<!-- YAML
added: v5.10.0
changes:
- version: v20.6.0
- version:
- v20.6.0
- v18.19.0
pr-url: https://github.com/nodejs/node/pull/48828
description: The `prefix` parameter now accepts buffers and URL.
- version:
Expand Down
17 changes: 13 additions & 4 deletions doc/api/module.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,13 @@ isBuiltin('wss'); // false
### `module.register(specifier[, parentURL][, options])`
<!-- YAML
added: v20.6.0
added:
- v20.6.0
- v18.19.0
changes:
- version: v20.8.0
- version:
- v20.8.0
- v18.19.0
pr-url: https://github.com/nodejs/node/pull/49655
description: Add support for WHATWG URL instances.
-->
Expand Down Expand Up @@ -153,7 +157,9 @@ import('node:fs').then((esmFS) => {
<!-- YAML
added: v8.8.0
changes:
- version: v20.6.0
- version:
- v20.6.0
- v18.19.0
pr-url: https://github.com/nodejs/node/pull/48842
description: Added `initialize` hook to replace `globalPreload`.
- version:
Expand Down Expand Up @@ -383,7 +389,9 @@ asynchronous operations (like `console.log`) to complete.
#### `initialize()`
<!-- YAML
added: v20.6.0
added:
- v20.6.0
- v18.19.0
-->
> Stability: 1.2 - Release candidate
Expand Down Expand Up @@ -461,6 +469,7 @@ changes:
- version:
- v21.0.0
- v20.10.0
- 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
1 change: 1 addition & 0 deletions doc/api/n-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -5455,6 +5455,7 @@ required in order to enable correct disposal of the reference.
added:
- v21.0.0
- v20.10.0
- v18.19.0
-->

> Stability: 1 - Experimental
Expand Down
4 changes: 3 additions & 1 deletion doc/api/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -3523,7 +3523,9 @@ Using this function is mutually exclusive with using the deprecated
## `process.sourceMapsEnabled`
<!-- YAML
added: v20.7.0
added:
- v20.7.0
- v18.19.0
-->
> Stability: 1 - Experimental
Expand Down
8 changes: 6 additions & 2 deletions doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -2015,7 +2015,9 @@ added:
- v17.4.0
- v16.14.0
changes:
- version: v20.7.0
- version:
- v20.7.0
- v18.19.0
pr-url: https://github.com/nodejs/node/pull/49249
description: added `highWaterMark` in options.
-->
Expand Down Expand Up @@ -2068,7 +2070,9 @@ added:
- v17.4.0
- v16.14.0
changes:
- version: v20.7.0
- version:
- v20.7.0
- v18.19.0
pr-url: https://github.com/nodejs/node/pull/49249
description: added `highWaterMark` in options.
-->
Expand Down
5 changes: 5 additions & 0 deletions doc/api/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -1803,6 +1803,7 @@ set to `true`.
<!-- YAML
added:
- v20.4.0
- v18.19.0
-->

> Stability: 1 - Experimental
Expand All @@ -1821,6 +1822,7 @@ which is a `MockTimers` instance.
<!-- YAML
added:
- v20.4.0
- v18.19.0
changes:
- version: v21.2.0
pr-url: https://github.com/nodejs/node/pull/48638
Expand Down Expand Up @@ -1901,6 +1903,7 @@ and `globalThis` will be mocked. As well as the global `Date` object.
<!-- YAML
added:
- v20.4.0
- v18.19.0
-->

This function restores the default behavior of all mocks that were previously
Expand Down Expand Up @@ -1929,6 +1932,7 @@ Calls `timers.reset()`.
<!-- YAML
added:
- v20.4.0
- v18.19.0
-->

Advances time for all mocked timers.
Expand Down Expand Up @@ -2245,6 +2249,7 @@ test('should tick five times testing a real use case', async (context) => {
<!-- YAML
added:
- v20.4.0
- v18.19.0
-->

Triggers all pending mocked timers immediately. If the `Date` object is also
Expand Down
4 changes: 3 additions & 1 deletion doc/api/tls.md
Original file line number Diff line number Diff line change
Expand Up @@ -2047,7 +2047,9 @@ where `secureSocket` has the same API as `pair.cleartext`.
<!-- YAML
added: v0.3.2
changes:
- version: v20.4.0
- version:
- v20.4.0
- v18.19.0
pr-url: https://github.com/nodejs/node/pull/45190
description: The `options` parameter can now include `ALPNCallback`.
- version: v19.0.0
Expand Down
1 change: 1 addition & 0 deletions doc/api/vm.md
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,7 @@ changes:
- version:
- v21.1.0
- v20.10.0
- 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 8787acb

Please sign in to comment.