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 25, 2024
1 parent 16d8cd5 commit 94fb854
Show file tree
Hide file tree
Showing 16 changed files with 668 additions and 39 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_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
6 changes: 3 additions & 3 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ If this flag is passed, the behavior can still be set to not abort through
### `--allow-addons`

<!-- YAML
added: REPLACEME
added: v20.12.0
-->

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

<!-- YAML
added: REPLACEME
added: v20.12.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -656,7 +656,7 @@ of `--enable-source-maps`.
<!-- YAML
added: v20.6.0
changes:
- version: REPLACEME
- version: v20.12.0
pr-url: https://github.com/nodejs/node/pull/51289

Check warning on line 660 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: Add support to multi-line values.
-->
Expand Down
2 changes: 1 addition & 1 deletion doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -3634,7 +3634,7 @@ Both keys must have the same `asymmetricKeyType`, which must be one of `'dh'`

<!-- YAML
added:
- REPLACEME
- v20.12.0
-->

> Stability: 1.2 - Release candidate
Expand Down
6 changes: 3 additions & 3 deletions doc/api/deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -3432,7 +3432,7 @@ deprecated. Get them from `fs.constants` or `fs.promises.constants` instead.

<!-- YAML
changes:
- version: REPLACEME
- version: v20.12.0
pr-url: https://github.com/nodejs/node/pull/51442

Check warning on line 3436 in doc/api/deprecations.md

View workflow job for this annotation

GitHub Actions / lint-pr-url

pr-url doesn't match the URL of the current PR.
description: End-of-Life.
- version:
Expand All @@ -3453,7 +3453,7 @@ Please use `value instanceof WebAssembly.Module` instead.

<!-- YAML
changes:
- version: REPLACEME
- version: v20.12.0
pr-url: https://github.com/nodejs/node/pull/51020

Check warning on line 3457 in doc/api/deprecations.md

View workflow job for this annotation

GitHub Actions / lint-pr-url

pr-url doesn't match the URL of the current PR.
description: Documentation-only deprecation.
-->
Expand All @@ -3467,7 +3467,7 @@ release lines. Please use [`dirent.parentPath`][] instead.

<!-- YAML
changes:
- version: REPLACEME
- version: v20.12.0
pr-url: https://github.com/nodejs/node/pull/51077

Check warning on line 3471 in doc/api/deprecations.md

View workflow job for this annotation

GitHub Actions / lint-pr-url

pr-url doesn't match the URL of the current PR.
description: Documentation-only deprecation.
-->
Expand Down
4 changes: 2 additions & 2 deletions doc/api/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -2406,7 +2406,7 @@ V8 startup snapshot even though Node.js isn't building one.
### `ERR_NOT_IN_SINGLE_EXECUTABLE_APPLICATION`

<!-- YAML
added: REPLACEME
added: v20.12.0
-->

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

<!-- YAML
added: REPLACEME
added: v20.12.0
-->

A key was passed to single executable application APIs to identify an asset,
Expand Down
4 changes: 2 additions & 2 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -6585,7 +6585,7 @@ value is determined by the `options.encoding` passed to [`fs.readdir()`][] or
<!-- YAML
added:
- REPLACEME
- v20.12.0
-->
> Stability: 1 – Experimental
Expand All @@ -6600,7 +6600,7 @@ The path to the parent directory of the file this {fs.Dirent} object refers to.
added:
- v20.1.0
- v18.17.0
deprecated: REPLACEME
deprecated: v20.12.0
-->
> Stability: 0 - Deprecated: Use [`dirent.parentPath`][] instead.
Expand Down
4 changes: 2 additions & 2 deletions doc/api/http2.md
Original file line number Diff line number Diff line change
Expand Up @@ -2893,7 +2893,7 @@ the given `Buffer` as generated by `http2.getPackedSettings()`.
### `http2.performServerHandshake(socket[, options])`

<!-- YAML
added: REPLACEME
added: v20.12.0
-->

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

<!-- YAML
added: REPLACEME
added: v20.12.0
-->

* `name` {string}
Expand Down
4 changes: 2 additions & 2 deletions doc/api/n-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ handle and/or callback scope inside a `napi_callback` is not necessary.
#### `node_api_nogc_finalize`

<!-- YAML
added: REPLACEME
added: v20.12.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -3084,7 +3084,7 @@ The JavaScript `string` type is described in
#### `node_api_create_property_key_utf16`

<!-- YAML
added: REPLACEME
added: v20.12.0
-->

> Stability: 1 - Experimental
Expand Down
6 changes: 3 additions & 3 deletions doc/api/net.md
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ See [`net.createConnection()`][].
### Event: `'connectionAttempt'`

<!-- YAML
added: REPLACEME
added: v20.12.0
-->

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

<!-- YAML
added: REPLACEME
added: v20.12.0
-->

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

<!-- YAML
added: REPLACEME
added: v20.12.0
-->

* `ip` {string} The IP which the socket attempted to connect to.
Expand Down
2 changes: 1 addition & 1 deletion doc/api/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -2265,7 +2265,7 @@ debugger. See [Signal Events][].
## `process.loadEnvFile(path)`

<!-- YAML
added: REPLACEME
added: v20.12.0
-->

> Stability: 1.1 - Active development
Expand Down
8 changes: 4 additions & 4 deletions doc/api/single-executable-applications.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ from the JavaScript main script embedded into the executable.
#### `sea.isSea()`
<!-- YAML
added: REPLACEME
added: v20.12.0
-->
* Returns: {boolean} Whether this script is running inside a single-executable
Expand All @@ -288,7 +288,7 @@ added: REPLACEME
### `sea.getAsset(key[, encoding])`
<!-- YAML
added: REPLACEME
added: v20.12.0
-->
This method can be used to retrieve the assets configured to be bundled into the
Expand All @@ -306,7 +306,7 @@ An error is thrown when no matching asset can be found.
### `sea.getAssetAsBlob(key[, options])`
<!-- YAML
added: REPLACEME
added: v20.12.0
-->
Similar to [`sea.getAsset()`][], but returns the result in a [`Blob`][].
Expand All @@ -321,7 +321,7 @@ An error is thrown when no matching asset can be found.
### `sea.getRawAsset(key)`
<!-- YAML
added: REPLACEME
added: v20.12.0
-->
This method can be used to retrieve the assets configured to be bundled into the
Expand Down
4 changes: 2 additions & 2 deletions doc/api/util.md
Original file line number Diff line number Diff line change
Expand Up @@ -1598,7 +1598,7 @@ $ node negate.js --no-logfile --logfile=test.log --color --no-color
> Stability: 1.1 - Active development

<!-- YAML
added: REPLACEME
added: v20.12.0
-->

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

<!-- YAML
added: REPLACEME
added: v20.12.0
-->

* `format` {string} A text format defined in `util.inspect.colors`.
Expand Down
16 changes: 8 additions & 8 deletions doc/api/vm.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ executed in specific contexts.
added: v0.3.1
changes:
- version:
- REPLACEME
- v20.12.0
pr-url: https://github.com/nodejs/node/pull/51244

Check warning on line 63 in doc/api/vm.md

View workflow job for this annotation

GitHub Actions / lint-pr-url

pr-url doesn't match the URL of the current PR.
description: Added support for
`vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER`.
Expand Down Expand Up @@ -968,7 +968,7 @@ const vm = require('node:vm');
added: v10.10.0
changes:
- version:
- REPLACEME
- v20.12.0
pr-url: https://github.com/nodejs/node/pull/51244

Check warning on line 972 in doc/api/vm.md

View workflow job for this annotation

GitHub Actions / lint-pr-url

pr-url doesn't match the URL of the current PR.
description: Added support for
`vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER`.
Expand Down Expand Up @@ -1036,7 +1036,7 @@ function with the given `params`.
## `vm.constants`

<!-- YAML
added: REPLACEME
added: v20.12.0
-->

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

<!-- YAML
added: REPLACEME
added: v20.12.0
-->

> Stability: 1.1 - Active development
Expand All @@ -1064,7 +1064,7 @@ For detailed information, see
added: v0.3.1
changes:
- version:
- REPLACEME
- v20.12.0
pr-url: https://github.com/nodejs/node/pull/51244

Check warning on line 1068 in doc/api/vm.md

View workflow job for this annotation

GitHub Actions / lint-pr-url

pr-url doesn't match the URL of the current PR.
description: Added support for
`vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER`.
Expand Down Expand Up @@ -1245,7 +1245,7 @@ vm.measureMemory({ mode: 'detailed', execution: 'eager' })
added: v0.3.1
changes:
- version:
- REPLACEME
- v20.12.0
pr-url: https://github.com/nodejs/node/pull/51244

Check warning on line 1249 in doc/api/vm.md

View workflow job for this annotation

GitHub Actions / lint-pr-url

pr-url doesn't match the URL of the current PR.
description: Added support for
`vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER`.
Expand Down Expand Up @@ -1321,7 +1321,7 @@ console.log(contextObject);
added: v0.3.1
changes:
- version:
- REPLACEME
- v20.12.0
pr-url: https://github.com/nodejs/node/pull/51244

Check warning on line 1325 in doc/api/vm.md

View workflow job for this annotation

GitHub Actions / lint-pr-url

pr-url doesn't match the URL of the current PR.
description: Added support for
`vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER`.
Expand Down Expand Up @@ -1423,7 +1423,7 @@ console.log(contextObject);
added: v0.3.1
changes:
- version:
- REPLACEME
- 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
4 changes: 2 additions & 2 deletions doc/api/webstreams.md
Original file line number Diff line number Diff line change
Expand Up @@ -1417,7 +1417,7 @@ changes:
<!-- YAML
added: v17.0.0
changes:
- version: REPLACEME
- version: v20.12.0
pr-url: https://github.com/nodejs/node/pull/50097
description: format now accepts `deflate-raw` value.
-->
Expand Down Expand Up @@ -1455,7 +1455,7 @@ changes:
<!-- YAML
added: v17.0.0
changes:
- version: REPLACEME
- version: v20.12.0
pr-url: https://github.com/nodejs/node/pull/50097
description: format now accepts `deflate-raw` value.
-->
Expand Down
Loading

0 comments on commit 94fb854

Please sign in to comment.