Skip to content

Commit 94fb854

Browse files
committed
2024-03-26, Version 20.12.0 'Iron' (LTS)
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
1 parent 16d8cd5 commit 94fb854

16 files changed

+668
-39
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ release.
3535
</tr>
3636
<tr>
3737
<td valign="top">
38-
<b><a href="doc/changelogs/CHANGELOG_V20.md#20.11.1">20.11.1</a></b><br/>
38+
<b><a href="doc/changelogs/CHANGELOG_V20.md#20.12.0">20.12.0</a></b><br/>
39+
<a href="doc/changelogs/CHANGELOG_V20.md#20.11.1">20.11.1</a><br/>
3940
<a href="doc/changelogs/CHANGELOG_V20.md#20.11.0">20.11.0</a><br/>
4041
<a href="doc/changelogs/CHANGELOG_V20.md#20.10.0">20.10.0</a><br/>
4142
<a href="doc/changelogs/CHANGELOG_V20.md#20.9.0">20.9.0</a><br/>

doc/api/cli.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ If this flag is passed, the behavior can still be set to not abort through
106106
### `--allow-addons`
107107

108108
<!-- YAML
109-
added: REPLACEME
109+
added: v20.12.0
110110
-->
111111

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

369369
<!-- YAML
370-
added: REPLACEME
370+
added: v20.12.0
371371
-->
372372

373373
> Stability: 1 - Experimental
@@ -656,7 +656,7 @@ of `--enable-source-maps`.
656656
<!-- YAML
657657
added: v20.6.0
658658
changes:
659-
- version: REPLACEME
659+
- version: v20.12.0
660660
pr-url: https://github.com/nodejs/node/pull/51289
661661
description: Add support to multi-line values.
662662
-->

doc/api/crypto.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3634,7 +3634,7 @@ Both keys must have the same `asymmetricKeyType`, which must be one of `'dh'`
36343634

36353635
<!-- YAML
36363636
added:
3637-
- REPLACEME
3637+
- v20.12.0
36383638
-->
36393639

36403640
> Stability: 1.2 - Release candidate

doc/api/deprecations.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -3432,7 +3432,7 @@ deprecated. Get them from `fs.constants` or `fs.promises.constants` instead.
34323432

34333433
<!-- YAML
34343434
changes:
3435-
- version: REPLACEME
3435+
- version: v20.12.0
34363436
pr-url: https://github.com/nodejs/node/pull/51442
34373437
description: End-of-Life.
34383438
- version:
@@ -3453,7 +3453,7 @@ Please use `value instanceof WebAssembly.Module` instead.
34533453

34543454
<!-- YAML
34553455
changes:
3456-
- version: REPLACEME
3456+
- version: v20.12.0
34573457
pr-url: https://github.com/nodejs/node/pull/51020
34583458
description: Documentation-only deprecation.
34593459
-->
@@ -3467,7 +3467,7 @@ release lines. Please use [`dirent.parentPath`][] instead.
34673467

34683468
<!-- YAML
34693469
changes:
3470-
- version: REPLACEME
3470+
- version: v20.12.0
34713471
pr-url: https://github.com/nodejs/node/pull/51077
34723472
description: Documentation-only deprecation.
34733473
-->

doc/api/errors.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2406,7 +2406,7 @@ V8 startup snapshot even though Node.js isn't building one.
24062406
### `ERR_NOT_IN_SINGLE_EXECUTABLE_APPLICATION`
24072407

24082408
<!-- YAML
2409-
added: REPLACEME
2409+
added: v20.12.0
24102410
-->
24112411

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

25652565
<!-- YAML
2566-
added: REPLACEME
2566+
added: v20.12.0
25672567
-->
25682568

25692569
A key was passed to single executable application APIs to identify an asset,

doc/api/fs.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6585,7 +6585,7 @@ value is determined by the `options.encoding` passed to [`fs.readdir()`][] or
65856585
65866586
<!-- YAML
65876587
added:
6588-
- REPLACEME
6588+
- v20.12.0
65896589
-->
65906590
65916591
> Stability: 1 – Experimental
@@ -6600,7 +6600,7 @@ The path to the parent directory of the file this {fs.Dirent} object refers to.
66006600
added:
66016601
- v20.1.0
66026602
- v18.17.0
6603-
deprecated: REPLACEME
6603+
deprecated: v20.12.0
66046604
-->
66056605
66066606
> Stability: 0 - Deprecated: Use [`dirent.parentPath`][] instead.

doc/api/http2.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2893,7 +2893,7 @@ the given `Buffer` as generated by `http2.getPackedSettings()`.
28932893
### `http2.performServerHandshake(socket[, options])`
28942894

28952895
<!-- YAML
2896-
added: REPLACEME
2896+
added: v20.12.0
28972897
-->
28982898

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

36643664
<!-- YAML
3665-
added: REPLACEME
3665+
added: v20.12.0
36663666
-->
36673667

36683668
* `name` {string}

doc/api/n-api.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ handle and/or callback scope inside a `napi_callback` is not necessary.
794794
#### `node_api_nogc_finalize`
795795

796796
<!-- YAML
797-
added: REPLACEME
797+
added: v20.12.0
798798
-->
799799

800800
> Stability: 1 - Experimental
@@ -3084,7 +3084,7 @@ The JavaScript `string` type is described in
30843084
#### `node_api_create_property_key_utf16`
30853085

30863086
<!-- YAML
3087-
added: REPLACEME
3087+
added: v20.12.0
30883088
-->
30893089

30903090
> Stability: 1 - Experimental

doc/api/net.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ See [`net.createConnection()`][].
687687
### Event: `'connectionAttempt'`
688688

689689
<!-- YAML
690-
added: REPLACEME
690+
added: v20.12.0
691691
-->
692692

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

702702
<!-- YAML
703-
added: REPLACEME
703+
added: v20.12.0
704704
-->
705705

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

716716
<!-- YAML
717-
added: REPLACEME
717+
added: v20.12.0
718718
-->
719719

720720
* `ip` {string} The IP which the socket attempted to connect to.

doc/api/process.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2265,7 +2265,7 @@ debugger. See [Signal Events][].
22652265
## `process.loadEnvFile(path)`
22662266
22672267
<!-- YAML
2268-
added: REPLACEME
2268+
added: v20.12.0
22692269
-->
22702270
22712271
> Stability: 1.1 - Active development

doc/api/single-executable-applications.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ from the JavaScript main script embedded into the executable.
279279
#### `sea.isSea()`
280280
281281
<!-- YAML
282-
added: REPLACEME
282+
added: v20.12.0
283283
-->
284284
285285
* Returns: {boolean} Whether this script is running inside a single-executable
@@ -288,7 +288,7 @@ added: REPLACEME
288288
### `sea.getAsset(key[, encoding])`
289289
290290
<!-- YAML
291-
added: REPLACEME
291+
added: v20.12.0
292292
-->
293293
294294
This method can be used to retrieve the assets configured to be bundled into the
@@ -306,7 +306,7 @@ An error is thrown when no matching asset can be found.
306306
### `sea.getAssetAsBlob(key[, options])`
307307
308308
<!-- YAML
309-
added: REPLACEME
309+
added: v20.12.0
310310
-->
311311
312312
Similar to [`sea.getAsset()`][], but returns the result in a [`Blob`][].
@@ -321,7 +321,7 @@ An error is thrown when no matching asset can be found.
321321
### `sea.getRawAsset(key)`
322322
323323
<!-- YAML
324-
added: REPLACEME
324+
added: v20.12.0
325325
-->
326326
327327
This method can be used to retrieve the assets configured to be bundled into the

doc/api/util.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1598,7 +1598,7 @@ $ node negate.js --no-logfile --logfile=test.log --color --no-color
15981598
> Stability: 1.1 - Active development
15991599

16001600
<!-- YAML
1601-
added: REPLACEME
1601+
added: v20.12.0
16021602
-->
16031603

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

17991799
<!-- YAML
1800-
added: REPLACEME
1800+
added: v20.12.0
18011801
-->
18021802

18031803
* `format` {string} A text format defined in `util.inspect.colors`.

doc/api/vm.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ executed in specific contexts.
5959
added: v0.3.1
6060
changes:
6161
- version:
62-
- REPLACEME
62+
- v20.12.0
6363
pr-url: https://github.com/nodejs/node/pull/51244
6464
description: Added support for
6565
`vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER`.
@@ -968,7 +968,7 @@ const vm = require('node:vm');
968968
added: v10.10.0
969969
changes:
970970
- version:
971-
- REPLACEME
971+
- v20.12.0
972972
pr-url: https://github.com/nodejs/node/pull/51244
973973
description: Added support for
974974
`vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER`.
@@ -1036,7 +1036,7 @@ function with the given `params`.
10361036
## `vm.constants`
10371037

10381038
<!-- YAML
1039-
added: REPLACEME
1039+
added: v20.12.0
10401040
-->
10411041

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

10481048
<!-- YAML
1049-
added: REPLACEME
1049+
added: v20.12.0
10501050
-->
10511051

10521052
> Stability: 1.1 - Active development
@@ -1064,7 +1064,7 @@ For detailed information, see
10641064
added: v0.3.1
10651065
changes:
10661066
- version:
1067-
- REPLACEME
1067+
- v20.12.0
10681068
pr-url: https://github.com/nodejs/node/pull/51244
10691069
description: Added support for
10701070
`vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER`.
@@ -1245,7 +1245,7 @@ vm.measureMemory({ mode: 'detailed', execution: 'eager' })
12451245
added: v0.3.1
12461246
changes:
12471247
- version:
1248-
- REPLACEME
1248+
- v20.12.0
12491249
pr-url: https://github.com/nodejs/node/pull/51244
12501250
description: Added support for
12511251
`vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER`.
@@ -1321,7 +1321,7 @@ console.log(contextObject);
13211321
added: v0.3.1
13221322
changes:
13231323
- version:
1324-
- REPLACEME
1324+
- v20.12.0
13251325
pr-url: https://github.com/nodejs/node/pull/51244
13261326
description: Added support for
13271327
`vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER`.
@@ -1423,7 +1423,7 @@ console.log(contextObject);
14231423
added: v0.3.1
14241424
changes:
14251425
- version:
1426-
- REPLACEME
1426+
- v20.12.0
14271427
pr-url: https://github.com/nodejs/node/pull/51244
14281428
description: Added support for
14291429
`vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER`.

doc/api/webstreams.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,7 @@ changes:
14171417
<!-- YAML
14181418
added: v17.0.0
14191419
changes:
1420-
- version: REPLACEME
1420+
- version: v20.12.0
14211421
pr-url: https://github.com/nodejs/node/pull/50097
14221422
description: format now accepts `deflate-raw` value.
14231423
-->
@@ -1455,7 +1455,7 @@ changes:
14551455
<!-- YAML
14561456
added: v17.0.0
14571457
changes:
1458-
- version: REPLACEME
1458+
- version: v20.12.0
14591459
pr-url: https://github.com/nodejs/node/pull/50097
14601460
description: format now accepts `deflate-raw` value.
14611461
-->

0 commit comments

Comments
 (0)