Skip to content

Commit

Permalink
2022-07-13, Version 18.6.0 (Current)
Browse files Browse the repository at this point in the history
Notable changes:

- esm: add chaining to loaders

PR-URL: #43789
  • Loading branch information
targos committed Jul 13, 2022
1 parent 2f169ad commit d2fe72a
Show file tree
Hide file tree
Showing 7 changed files with 222 additions and 14 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ release.
</tr>
<tr>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V18.md#18.5.0">18.5.0</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V18.md#18.6.0">18.6.0</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V18.md#18.5.0">18.5.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V18.md#18.4.0">18.4.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V18.md#18.3.0">18.3.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V18.md#18.2.0">18.2.0</a><br/>
Expand Down
2 changes: 1 addition & 1 deletion doc/api/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -2104,7 +2104,7 @@ for more information.
### `ERR_LOADER_CHAIN_INCOMPLETE`

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

An ESM loader hook returned without calling `next()` and without explicitly
Expand Down
10 changes: 5 additions & 5 deletions doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
added: v8.5.0
changes:
- version:
- REPLACEME
- v18.6.0
pr-url: https://github.com/nodejs/node/pull/42623
description: Add support for chaining loaders.
- version:
Expand Down Expand Up @@ -681,7 +681,7 @@ of Node.js applications.
added: v8.8.0
changes:
- version:
- REPLACEME
- v18.6.0
pr-url: https://github.com/nodejs/node/pull/42623
description: Add support for chaining loaders.
- version: v16.12.0
Expand Down Expand Up @@ -731,7 +731,7 @@ prevent unintentional breaks in the chain.
<!-- YAML
changes:
- version: REPLACEME
- version: v18.6.0
pr-url: https://github.com/nodejs/node/pull/42623
description: Add support for chaining resolve hooks. Each hook must either
call `nextResolve()` or include a `shortCircuit` property set to `true`
Expand Down Expand Up @@ -823,7 +823,7 @@ export async function resolve(specifier, context, nextResolve) {
<!-- YAML
changes:
- version: REPLACEME
- version: v18.6.0
pr-url: https://github.com/nodejs/node/pull/42623
description: Add support for chaining load hooks. Each hook must either
call `nextLoad()` or include a `shortCircuit` property set to `true` in
Expand Down Expand Up @@ -921,7 +921,7 @@ source to a supported one (see [Examples](#examples) below).
<!-- YAML
changes:
- version: REPLACEME
- version: v18.6.0
pr-url: https://github.com/nodejs/node/pull/42623
description: Add support for chaining globalPreload hooks.
-->
Expand Down
2 changes: 1 addition & 1 deletion doc/api/module.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const siblingModule = require('./sibling-module');
### `module.isBuiltin(moduleName)`
<!-- YAML
added: REPLACEME
added: v18.6.0
-->
* `moduleName` {string} name of the module
Expand Down
2 changes: 1 addition & 1 deletion doc/api/net.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ Emitted when the server has been bound after calling [`server.listen()`][].
### Event: `'drop'`

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

When the number of connections reaches the threshold of `server.maxConnections`,
Expand Down
10 changes: 5 additions & 5 deletions doc/api/v8.md
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ occur synchronously in the case of `Promise.resolve()` or `Promise.reject()`.
## Startup Snapshot API

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

> Stability: 1 - Experimental
Expand Down Expand Up @@ -950,7 +950,7 @@ snapshot cannot use these APIs again.
### `v8.startupSnapshot.addSerializeCallback(callback[, data])`

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

* `callback` {Function} Callback to be invoked before serialization.
Expand All @@ -965,7 +965,7 @@ into a form more suitable for serialization.
### `v8.startupSnapshot.addDeserializeCallback(callback[, data])`

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

* `callback` {Function} Callback to be invoked after the snapshot is
Expand All @@ -982,7 +982,7 @@ when the application is restarted from the snapshot.
### `v8.startupSnapshot.setDeserializeMainFunction(callback[, data])`

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

* `callback` {Function} Callback to be invoked as the entry point after the
Expand All @@ -1000,7 +1000,7 @@ needs to be provided to the deserialized application.
### `v8.startupSnapshot.isBuildingSnapshot()`

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

* Returns: {boolean}
Expand Down
Loading

0 comments on commit d2fe72a

Please sign in to comment.