Skip to content

Commit 6d2d3f1

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 b9dc2a3 commit 6d2d3f1

15 files changed

+713
-25
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ release.
4949
<a href="doc/changelogs/CHANGELOG_V21.md#21.0.0">21.0.0</a><br/>
5050
</td>
5151
<td valign="top">
52-
<b><a href="doc/changelogs/CHANGELOG_V20.md#20.11.1">20.11.1</a></b><br/>
52+
<b><a href="doc/changelogs/CHANGELOG_V20.md#20.12.0">20.12.0</a></b><br/>
53+
<a href="doc/changelogs/CHANGELOG_V20.md#20.11.1">20.11.1</a><br/>
5354
<a href="doc/changelogs/CHANGELOG_V20.md#20.11.0">20.11.0</a><br/>
5455
<a href="doc/changelogs/CHANGELOG_V20.md#20.10.0">20.10.0</a><br/>
5556
<a href="doc/changelogs/CHANGELOG_V20.md#20.9.0">20.9.0</a><br/>

doc/api/cli.md

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

108108
<!-- YAML
109-
added: v21.6.0
109+
added:
110+
- v21.6.0
111+
- v20.12.0
110112
-->
111113

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

369371
<!-- YAML
370-
added: v21.6.0
372+
added:
373+
- v21.6.0
374+
- v20.12.0
371375
-->
372376

373377
> Stability: 1 - Experimental
@@ -667,7 +671,9 @@ of `--enable-source-maps`.
667671
<!-- YAML
668672
added: v20.6.0
669673
changes:
670-
- version: v21.7.0
674+
- version:
675+
- v21.7.0
676+
- v20.12.0
671677
pr-url: https://github.com/nodejs/node/pull/51289
672678
description: Add support to multi-line values.
673679
-->

doc/api/crypto.md

+1
Original file line numberDiff line numberDiff line change
@@ -3515,6 +3515,7 @@ Both keys must have the same `asymmetricKeyType`, which must be one of `'dh'`
35153515
<!-- YAML
35163516
added:
35173517
- v21.7.0
3518+
- v20.12.0
35183519
-->
35193520

35203521
> Stability: 1.2 - Release candidate

doc/api/deprecations.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -3527,7 +3527,9 @@ deprecated. Get them from `fs.constants` or `fs.promises.constants` instead.
35273527

35283528
<!-- YAML
35293529
changes:
3530-
- version: v21.7.0
3530+
- version:
3531+
- v21.7.0
3532+
- v20.12.0
35313533
pr-url: https://github.com/nodejs/node/pull/51442
35323534
description: End-of-Life.
35333535
- version:
@@ -3551,6 +3553,7 @@ Please use `value instanceof WebAssembly.Module` instead.
35513553
changes:
35523554
- version:
35533555
- v21.5.0
3556+
- v20.12.0
35543557
- v18.20.0
35553558
pr-url: https://github.com/nodejs/node/pull/51020
35563559
description: Documentation-only deprecation.
@@ -3568,7 +3571,9 @@ changes:
35683571
- version: REPLACEME
35693572
pr-url: https://github.com/nodejs/node/pull/51880
35703573
description: Runtime deprecation.
3571-
- version: v21.5.0
3574+
- version:
3575+
- v21.5.0
3576+
- v20.12.0
35723577
pr-url: https://github.com/nodejs/node/pull/51077
35733578
description: Documentation-only deprecation.
35743579
-->

doc/api/errors.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -2372,7 +2372,9 @@ V8 startup snapshot even though Node.js isn't building one.
23722372
### `ERR_NOT_IN_SINGLE_EXECUTABLE_APPLICATION`
23732373

23742374
<!-- YAML
2375-
added: v21.7.0
2375+
added:
2376+
- v21.7.0
2377+
- v20.12.0
23762378
-->
23772379

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

25472549
<!-- YAML
2548-
added: v21.7.0
2550+
added:
2551+
- v21.7.0
2552+
- v20.12.0
25492553
-->
25502554

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

doc/api/fs.md

+2
Original file line numberDiff line numberDiff line change
@@ -6743,6 +6743,7 @@ value is determined by the `options.encoding` passed to [`fs.readdir()`][] or
67436743
<!-- YAML
67446744
added:
67456745
- v21.4.0
6746+
- v20.12.0
67466747
- v18.20.0
67476748
-->
67486749
@@ -6760,6 +6761,7 @@ added:
67606761
- v18.17.0
67616762
deprecated:
67626763
- v21.5.0
6764+
- v20.12.0
67636765
- v18.20.0
67646766
-->
67656767

doc/api/http2.md

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

28952895
<!-- YAML
2896-
added: v21.7.0
2896+
added:
2897+
- v21.7.0
2898+
- v20.12.0
28972899
-->
28982900

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

36643666
<!-- YAML
3665-
added: v21.7.0
3667+
added:
3668+
- v21.7.0
3669+
- v20.12.0
36663670
-->
36673671

36683672
* `name` {string}

doc/api/n-api.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,7 @@ handle and/or callback scope inside a `napi_callback` is not necessary.
796796
<!-- YAML
797797
added:
798798
- v21.6.0
799+
- v20.12.0
799800
- v18.20.0
800801
-->
801802

@@ -3090,7 +3091,9 @@ The JavaScript `string` type is described in
30903091
#### `node_api_create_property_key_utf16`
30913092

30923093
<!-- YAML
3093-
added: v21.7.0
3094+
added:
3095+
- v21.7.0
3096+
- v20.12.0
30943097
-->
30953098

30963099
> Stability: 1 - Experimental

doc/api/net.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,9 @@ See [`net.createConnection()`][].
702702
### Event: `'connectionAttempt'`
703703

704704
<!-- YAML
705-
added: v21.6.0
705+
added:
706+
- v21.6.0
707+
- v20.12.0
706708
-->
707709

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

717719
<!-- YAML
718-
added: v21.6.0
720+
added:
721+
- v21.6.0
722+
- v20.12.0
719723
-->
720724

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

731735
<!-- YAML
732-
added: v21.6.0
736+
added:
737+
- v21.6.0
738+
- v20.12.0
733739
-->
734740

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

doc/api/process.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -2285,7 +2285,9 @@ debugger. See [Signal Events][].
22852285
## `process.loadEnvFile(path)`
22862286

22872287
<!-- YAML
2288-
added: v21.7.0
2288+
added:
2289+
- v21.7.0
2290+
- v20.12.0
22892291
-->
22902292

22912293
> Stability: 1.1 - Active development

doc/api/single-executable-applications.md

+12-4
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,9 @@ from the JavaScript main script embedded into the executable.
279279
#### `sea.isSea()`
280280
281281
<!-- YAML
282-
added: v21.7.0
282+
added:
283+
- v21.7.0
284+
- v20.12.0
283285
-->
284286
285287
* Returns: {boolean} Whether this script is running inside a single-executable
@@ -288,7 +290,9 @@ added: v21.7.0
288290
### `sea.getAsset(key[, encoding])`
289291
290292
<!-- YAML
291-
added: v21.7.0
293+
added:
294+
- v21.7.0
295+
- v20.12.0
292296
-->
293297
294298
This method can be used to retrieve the assets configured to be bundled into the
@@ -306,7 +310,9 @@ An error is thrown when no matching asset can be found.
306310
### `sea.getAssetAsBlob(key[, options])`
307311
308312
<!-- YAML
309-
added: v21.7.0
313+
added:
314+
- v21.7.0
315+
- v20.12.0
310316
-->
311317
312318
Similar to [`sea.getAsset()`][], but returns the result in a [`Blob`][].
@@ -321,7 +327,9 @@ An error is thrown when no matching asset can be found.
321327
### `sea.getRawAsset(key)`
322328
323329
<!-- YAML
324-
added: v21.7.0
330+
added:
331+
- v21.7.0
332+
- v20.12.0
325333
-->
326334
327335
This method can be used to retrieve the assets configured to be bundled into the

doc/api/util.md

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

16001600
<!-- YAML
1601-
added: v21.7.0
1601+
added:
1602+
- v21.7.0
1603+
- v20.12.0
16021604
-->
16031605

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

17991801
<!-- YAML
1800-
added: v21.7.0
1802+
added:
1803+
- v21.7.0
1804+
- v20.12.0
18011805
-->
18021806

18031807
* `format` {string | Array} A text format or an Array

doc/api/vm.md

+12-2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ added: v0.3.1
6060
changes:
6161
- version:
6262
- v21.7.0
63+
- v20.12.0
6364
pr-url: https://github.com/nodejs/node/pull/51244
6465
description: Added support for
6566
`vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER`.
@@ -972,6 +973,7 @@ added: v10.10.0
972973
changes:
973974
- version:
974975
- v21.7.0
976+
- v20.12.0
975977
pr-url: https://github.com/nodejs/node/pull/51244
976978
description: Added support for
977979
`vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER`.
@@ -1039,7 +1041,9 @@ function with the given `params`.
10391041
## `vm.constants`
10401042

10411043
<!-- YAML
1042-
added: v21.7.0
1044+
added:
1045+
- v21.7.0
1046+
- v20.12.0
10431047
-->
10441048

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

10511055
<!-- YAML
1052-
added: v21.7.0
1056+
added:
1057+
- v21.7.0
1058+
- v20.12.0
10531059
-->
10541060

10551061
> Stability: 1.1 - Active development
@@ -1068,6 +1074,7 @@ added: v0.3.1
10681074
changes:
10691075
- version:
10701076
- v21.7.0
1077+
- v20.12.0
10711078
pr-url: https://github.com/nodejs/node/pull/51244
10721079
description: Added support for
10731080
`vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER`.
@@ -1250,6 +1257,7 @@ added: v0.3.1
12501257
changes:
12511258
- version:
12521259
- v21.7.0
1260+
- v20.12.0
12531261
pr-url: https://github.com/nodejs/node/pull/51244
12541262
description: Added support for
12551263
`vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER`.
@@ -1326,6 +1334,7 @@ added: v0.3.1
13261334
changes:
13271335
- version:
13281336
- v21.7.0
1337+
- v20.12.0
13291338
pr-url: https://github.com/nodejs/node/pull/51244
13301339
description: Added support for
13311340
`vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER`.
@@ -1428,6 +1437,7 @@ added: v0.3.1
14281437
changes:
14291438
- version:
14301439
- v21.7.0
1440+
- v20.12.0
14311441
pr-url: https://github.com/nodejs/node/pull/51244
14321442
description: Added support for
14331443
`vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER`.

doc/api/webstreams.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,9 @@ changes:
14301430
<!-- YAML
14311431
added: v17.0.0
14321432
changes:
1433-
- version: v21.2.0
1433+
- version:
1434+
- v21.2.0
1435+
- v20.12.0
14341436
pr-url: https://github.com/nodejs/node/pull/50097
14351437
description: format now accepts `deflate-raw` value.
14361438
-->
@@ -1468,7 +1470,9 @@ changes:
14681470
<!-- YAML
14691471
added: v17.0.0
14701472
changes:
1471-
- version: v21.2.0
1473+
- version:
1474+
- v21.2.0
1475+
- v20.12.0
14721476
pr-url: https://github.com/nodejs/node/pull/50097
14731477
description: format now accepts `deflate-raw` value.
14741478
-->

0 commit comments

Comments
 (0)