Skip to content

Commit

Permalink
2024-03-26, Version 20.12.0 'Iron' (LTS)
Browse files Browse the repository at this point in the history
Notable changes:

build:
  * (SEMVER-MINOR) build opt to set local location of headers (Michael Dawson) #51525
crypto:
  * (SEMVER-MINOR) implement crypto.hash() (Joyee Cheung) #51044
  * update root certificates to NSS 3.98 (Node.js GitHub Bot) #51794
doc:
  * add lemire to collaborators (Daniel Lemire) #51572
  * add zcbenz to collaborators (Cheng Zhao) #51812
lib:
  * (SEMVER-MINOR) move encodingsMap to internal/util (Joyee Cheung) #51044
sea:
  * (SEMVER-MINOR) support sea.getRawAsset() (Joyee Cheung) #50960
  * (SEMVER-MINOR) support embedding assets (Joyee Cheung) #50960
src:
  * (SEMVER-MINOR) print string content better in BlobDeserializer (Joyee Cheung) #50960
util:
  * (SEMVER-MINOR) add styleText API to text formatting (Rafael Gonzaga) #51850
vm:
  * (SEMVER-MINOR) support using the default loader to handle dynamic import() (Joyee Cheung) #51244

PR-URL: #52212
  • Loading branch information
richardlau committed Mar 26, 2024
1 parent b9dc2a3 commit 6d2d3f1
Show file tree
Hide file tree
Showing 15 changed files with 713 additions and 25 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Expand Up @@ -49,7 +49,8 @@ release.
<a href="doc/changelogs/CHANGELOG_V21.md#21.0.0">21.0.0</a><br/>
</td>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V20.md#20.11.1">20.11.1</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V20.md#20.12.0">20.12.0</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V20.md#20.11.1">20.11.1</a><br/>
<a href="doc/changelogs/CHANGELOG_V20.md#20.11.0">20.11.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V20.md#20.10.0">20.10.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V20.md#20.9.0">20.9.0</a><br/>
Expand Down
12 changes: 9 additions & 3 deletions doc/api/cli.md
Expand Up @@ -106,7 +106,9 @@ If this flag is passed, the behavior can still be set to not abort through
### `--allow-addons`

<!-- YAML
added: v21.6.0
added:
- v21.6.0
- v20.12.0
-->

> Stability: 1.1 - Active development
Expand Down Expand Up @@ -367,7 +369,9 @@ Currently the support for run-time snapshot is experimental in that:
### `--build-snapshot-config`

<!-- YAML
added: v21.6.0
added:
- v21.6.0
- v20.12.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -667,7 +671,9 @@ of `--enable-source-maps`.
<!-- YAML
added: v20.6.0
changes:
- version: v21.7.0
- version:
- v21.7.0
- v20.12.0
pr-url: https://github.com/nodejs/node/pull/51289
description: Add support to multi-line values.
-->
Expand Down
1 change: 1 addition & 0 deletions doc/api/crypto.md
Expand Up @@ -3515,6 +3515,7 @@ Both keys must have the same `asymmetricKeyType`, which must be one of `'dh'`
<!-- YAML
added:
- v21.7.0
- v20.12.0
-->

> Stability: 1.2 - Release candidate
Expand Down
9 changes: 7 additions & 2 deletions doc/api/deprecations.md
Expand Up @@ -3527,7 +3527,9 @@ deprecated. Get them from `fs.constants` or `fs.promises.constants` instead.

<!-- YAML
changes:
- version: v21.7.0
- version:
- v21.7.0
- v20.12.0
pr-url: https://github.com/nodejs/node/pull/51442
description: End-of-Life.
- version:
Expand All @@ -3551,6 +3553,7 @@ Please use `value instanceof WebAssembly.Module` instead.
changes:
- version:
- v21.5.0
- v20.12.0
- v18.20.0
pr-url: https://github.com/nodejs/node/pull/51020
description: Documentation-only deprecation.
Expand All @@ -3568,7 +3571,9 @@ changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/51880
description: Runtime deprecation.
- version: v21.5.0
- version:
- v21.5.0
- v20.12.0
pr-url: https://github.com/nodejs/node/pull/51077
description: Documentation-only deprecation.
-->
Expand Down
8 changes: 6 additions & 2 deletions doc/api/errors.md
Expand Up @@ -2372,7 +2372,9 @@ V8 startup snapshot even though Node.js isn't building one.
### `ERR_NOT_IN_SINGLE_EXECUTABLE_APPLICATION`

<!-- YAML
added: v21.7.0
added:
- v21.7.0
- v20.12.0
-->

The operation cannot be performed when it's not in a single-executable
Expand Down Expand Up @@ -2545,7 +2547,9 @@ and HTTP/2 `Server` instances.
### `ERR_SINGLE_EXECUTABLE_APPLICATION_ASSET_NOT_FOUND`

<!-- YAML
added: v21.7.0
added:
- v21.7.0
- v20.12.0
-->

A key was passed to single executable application APIs to identify an asset,
Expand Down
2 changes: 2 additions & 0 deletions doc/api/fs.md
Expand Up @@ -6743,6 +6743,7 @@ value is determined by the `options.encoding` passed to [`fs.readdir()`][] or
<!-- YAML
added:
- v21.4.0
- v20.12.0
- v18.20.0
-->
Expand All @@ -6760,6 +6761,7 @@ added:
- v18.17.0
deprecated:
- v21.5.0
- v20.12.0
- v18.20.0
-->
Expand Down
8 changes: 6 additions & 2 deletions doc/api/http2.md
Expand Up @@ -2893,7 +2893,9 @@ the given `Buffer` as generated by `http2.getPackedSettings()`.
### `http2.performServerHandshake(socket[, options])`

<!-- YAML
added: v21.7.0
added:
- v21.7.0
- v20.12.0
-->

* `socket` {stream.Duplex}
Expand Down Expand Up @@ -3662,7 +3664,9 @@ will result in a [`TypeError`][] being thrown.
#### `response.appendHeader(name, value)`

<!-- YAML
added: v21.7.0
added:
- v21.7.0
- v20.12.0
-->

* `name` {string}
Expand Down
5 changes: 4 additions & 1 deletion doc/api/n-api.md
Expand Up @@ -796,6 +796,7 @@ handle and/or callback scope inside a `napi_callback` is not necessary.
<!-- YAML
added:
- v21.6.0
- v20.12.0
- v18.20.0
-->

Expand Down Expand Up @@ -3090,7 +3091,9 @@ The JavaScript `string` type is described in
#### `node_api_create_property_key_utf16`

<!-- YAML
added: v21.7.0
added:
- v21.7.0
- v20.12.0
-->

> Stability: 1 - Experimental
Expand Down
12 changes: 9 additions & 3 deletions doc/api/net.md
Expand Up @@ -702,7 +702,9 @@ See [`net.createConnection()`][].
### Event: `'connectionAttempt'`

<!-- YAML
added: v21.6.0
added:
- v21.6.0
- v20.12.0
-->

* `ip` {string} The IP which the socket is attempting to connect to.
Expand All @@ -715,7 +717,9 @@ if the family autoselection algorithm is enabled in [`socket.connect(options)`][
### Event: `'connectionAttemptFailed'`

<!-- YAML
added: v21.6.0
added:
- v21.6.0
- v20.12.0
-->

* `ip` {string} The IP which the socket attempted to connect to.
Expand All @@ -729,7 +733,9 @@ if the family autoselection algorithm is enabled in [`socket.connect(options)`][
### Event: `'connectionAttemptTimeout'`

<!-- YAML
added: v21.6.0
added:
- v21.6.0
- v20.12.0
-->

* `ip` {string} The IP which the socket attempted to connect to.
Expand Down
4 changes: 3 additions & 1 deletion doc/api/process.md
Expand Up @@ -2285,7 +2285,9 @@ debugger. See [Signal Events][].
## `process.loadEnvFile(path)`

<!-- YAML
added: v21.7.0
added:
- v21.7.0
- v20.12.0
-->

> Stability: 1.1 - Active development
Expand Down
16 changes: 12 additions & 4 deletions doc/api/single-executable-applications.md
Expand Up @@ -279,7 +279,9 @@ from the JavaScript main script embedded into the executable.
#### `sea.isSea()`

<!-- YAML
added: v21.7.0
added:
- v21.7.0
- v20.12.0
-->

* Returns: {boolean} Whether this script is running inside a single-executable
Expand All @@ -288,7 +290,9 @@ added: v21.7.0
### `sea.getAsset(key[, encoding])`

<!-- YAML
added: v21.7.0
added:
- v21.7.0
- v20.12.0
-->

This method can be used to retrieve the assets configured to be bundled into the
Expand All @@ -306,7 +310,9 @@ An error is thrown when no matching asset can be found.
### `sea.getAssetAsBlob(key[, options])`

<!-- YAML
added: v21.7.0
added:
- v21.7.0
- v20.12.0
-->

Similar to [`sea.getAsset()`][], but returns the result in a [`Blob`][].
Expand All @@ -321,7 +327,9 @@ An error is thrown when no matching asset can be found.
### `sea.getRawAsset(key)`

<!-- YAML
added: v21.7.0
added:
- v21.7.0
- v20.12.0
-->

This method can be used to retrieve the assets configured to be bundled into the
Expand Down
8 changes: 6 additions & 2 deletions doc/api/util.md
Expand Up @@ -1598,7 +1598,9 @@ $ node negate.js --no-logfile --logfile=test.log --color --no-color
> Stability: 1.1 - Active development

<!-- YAML
added: v21.7.0
added:
- v21.7.0
- v20.12.0
-->

* `content` {string}
Expand Down Expand Up @@ -1797,7 +1799,9 @@ console.log(util.stripVTControlCharacters('\u001B[4mvalue\u001B[0m'));
> Stability: 1.1 - Active development

<!-- YAML
added: v21.7.0
added:
- v21.7.0
- v20.12.0
-->

* `format` {string | Array} A text format or an Array
Expand Down
14 changes: 12 additions & 2 deletions doc/api/vm.md
Expand Up @@ -60,6 +60,7 @@ added: v0.3.1
changes:
- version:
- v21.7.0
- v20.12.0
pr-url: https://github.com/nodejs/node/pull/51244
description: Added support for
`vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER`.
Expand Down Expand Up @@ -972,6 +973,7 @@ added: v10.10.0
changes:
- version:
- v21.7.0
- v20.12.0
pr-url: https://github.com/nodejs/node/pull/51244
description: Added support for
`vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER`.
Expand Down Expand Up @@ -1039,7 +1041,9 @@ function with the given `params`.
## `vm.constants`

<!-- YAML
added: v21.7.0
added:
- v21.7.0
- v20.12.0
-->

* {Object}
Expand All @@ -1049,7 +1053,9 @@ Returns an object containing commonly used constants for VM operations.
### `vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER`

<!-- YAML
added: v21.7.0
added:
- v21.7.0
- v20.12.0
-->

> Stability: 1.1 - Active development
Expand All @@ -1068,6 +1074,7 @@ added: v0.3.1
changes:
- version:
- v21.7.0
- v20.12.0
pr-url: https://github.com/nodejs/node/pull/51244
description: Added support for
`vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER`.
Expand Down Expand Up @@ -1250,6 +1257,7 @@ added: v0.3.1
changes:
- version:
- v21.7.0
- v20.12.0
pr-url: https://github.com/nodejs/node/pull/51244
description: Added support for
`vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER`.
Expand Down Expand Up @@ -1326,6 +1334,7 @@ added: v0.3.1
changes:
- version:
- v21.7.0
- v20.12.0
pr-url: https://github.com/nodejs/node/pull/51244
description: Added support for
`vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER`.
Expand Down Expand Up @@ -1428,6 +1437,7 @@ added: v0.3.1
changes:
- version:
- v21.7.0
- v20.12.0
pr-url: https://github.com/nodejs/node/pull/51244
description: Added support for
`vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER`.
Expand Down
8 changes: 6 additions & 2 deletions doc/api/webstreams.md
Expand Up @@ -1430,7 +1430,9 @@ changes:
<!-- YAML
added: v17.0.0
changes:
- version: v21.2.0
- version:
- v21.2.0
- v20.12.0
pr-url: https://github.com/nodejs/node/pull/50097
description: format now accepts `deflate-raw` value.
-->
Expand Down Expand Up @@ -1468,7 +1470,9 @@ changes:
<!-- YAML
added: v17.0.0
changes:
- version: v21.2.0
- version:
- v21.2.0
- v20.12.0
pr-url: https://github.com/nodejs/node/pull/50097
description: format now accepts `deflate-raw` value.
-->
Expand Down

0 comments on commit 6d2d3f1

Please sign in to comment.