Skip to content

Commit dcc112b

Browse files
committed
2020-05-26, Version 12.17.0 'Erbium' (LTS)
Notable changes: * ECMAScript Modules - `--experimental-modules` flag removal * AsyncLocalStorage API (experimental) * REPL previews * REPL reverse-i-search * REPL substring-based search * Error monitoring * Monitoring `error` events * Monitoring uncaught exceptions * File system APIs * New function: `fs.readv` * Optional parameters in `fs.read` * Console `groupIndentation` option * `maxStringLength` option for `util.inspect()` * Stable N-API release 6 * Stable diagnostic reports * Increase of the default server headers timeout * New `--trace-sigint` CLI flag * Various crypto APIs now support Diffie-Hellman secrets * Added support for the `dns.ALL` flag in `dns.lookup()` * Added a new experimental API to interact with Source Map V3 data * Added support for passing a `transferList` along with `workerData` to the `Worker` constructor PR-URL: nodejs#33197
1 parent 5007611 commit dcc112b

20 files changed

+840
-70
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ release.
5656
<a href="doc/changelogs/CHANGELOG_V13.md#13.0.0">13.0.0</a><br/>
5757
</td>
5858
<td valign="top">
59-
<b><a href="doc/changelogs/CHANGELOG_V12.md#12.16.3">12.16.3</a></b><br/>
59+
<b><a href="doc/changelogs/CHANGELOG_V12.md#12.17.0">12.17.0</a></b><br/>
60+
<a href="doc/changelogs/CHANGELOG_V12.md#12.16.3">12.16.3</a><br/>
6061
<a href="doc/changelogs/CHANGELOG_V12.md#12.16.2">12.16.2</a><br/>
6162
<a href="doc/changelogs/CHANGELOG_V12.md#12.16.1">12.16.1</a><br/>
6263
<a href="doc/changelogs/CHANGELOG_V12.md#12.16.0">12.16.0</a><br/>

doc/api/async_hooks.md

+24-8
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,9 @@ init for PROMISE with id 6, trigger id: 5 # the Promise returned by then()
462462
#### `async_hooks.executionAsyncResource()`
463463

464464
<!-- YAML
465-
added: v13.9.0
465+
added:
466+
- v13.9.0
467+
- v12.17.0
466468
-->
467469

468470
* Returns: {Object} The resource representing the current execution.
@@ -864,7 +866,9 @@ for (let i = 0; i < 10; i++) {
864866

865867
## Class: `AsyncLocalStorage`
866868
<!-- YAML
867-
added: v13.10.0
869+
added:
870+
- v13.10.0
871+
- v12.17.0
868872
-->
869873

870874
This class is used to create asynchronous state within callbacks and promise
@@ -913,15 +917,19 @@ from each other. It is safe to instantiate this class multiple times.
913917

914918
### `new AsyncLocalStorage()`
915919
<!-- YAML
916-
added: v13.10.0
920+
added:
921+
- v13.10.0
922+
- v12.17.0
917923
-->
918924

919925
Creates a new instance of `AsyncLocalStorage`. Store is only provided within a
920926
`run` method call.
921927

922928
### `asyncLocalStorage.disable()`
923929
<!-- YAML
924-
added: v13.10.0
930+
added:
931+
- v13.10.0
932+
- v12.17.0
925933
-->
926934

927935
This method disables the instance of `AsyncLocalStorage`. All subsequent calls
@@ -941,7 +949,9 @@ in the current process.
941949

942950
### `asyncLocalStorage.getStore()`
943951
<!-- YAML
944-
added: v13.10.0
952+
added:
953+
- v13.10.0
954+
- v12.17.0
945955
-->
946956

947957
* Returns: {any}
@@ -952,7 +962,9 @@ calling `asyncLocalStorage.run`, it will return `undefined`.
952962

953963
### `asyncLocalStorage.enterWith(store)`
954964
<!-- YAML
955-
added: v13.11.0
965+
added:
966+
- v13.11.0
967+
- v12.17.0
956968
-->
957969

958970
* `store` {any}
@@ -994,7 +1006,9 @@ asyncLocalStorage.getStore(); // Returns the same object
9941006

9951007
### `asyncLocalStorage.run(store, callback[, ...args])`
9961008
<!-- YAML
997-
added: v13.10.0
1009+
added:
1010+
- v13.10.0
1011+
- v12.17.0
9981012
-->
9991013

10001014
* `store` {any}
@@ -1029,7 +1043,9 @@ try {
10291043

10301044
### `asyncLocalStorage.exit(callback[, ...args])`
10311045
<!-- YAML
1032-
added: v13.10.0
1046+
added:
1047+
- v13.10.0
1048+
- v12.17.0
10331049
-->
10341050

10351051
* `callback` {Function}

doc/api/cli.md

+29-10
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,10 @@ added: v12.0.0
128128
Specify the file name of the CPU profile generated by `--cpu-prof`.
129129

130130
### `--disable-proto=mode`
131-
<!--YAML
132-
added: v13.12.0
131+
<!-- YAML
132+
added:
133+
- v13.12.0
134+
- v12.17.0
133135
-->
134136

135137
Disable the `Object.prototype.__proto__` property. If `mode` is `delete`, the
@@ -628,7 +630,9 @@ warning will be written to stderr instead.
628630

629631
### `--report-compact`
630632
<!-- YAML
631-
added: v13.12.0
633+
added:
634+
- v13.12.0
635+
- v12.17.0
632636
-->
633637

634638
Write reports in a compact format, single-line JSON, more easily consumable
@@ -639,7 +643,9 @@ human consumption.
639643
<!-- YAML
640644
added: v11.8.0
641645
changes:
642-
- version: v13.12.0
646+
- version:
647+
- v13.12.0
648+
- v12.17.0
643649
pr-url: https://github.com/nodejs/node/pull/32242
644650
description: This option is no longer considered experimental.
645651
- version: v12.0.0
@@ -654,7 +660,9 @@ Location at which the report will be generated.
654660
<!-- YAML
655661
added: v11.8.0
656662
changes:
657-
- version: v13.12.0
663+
- version:
664+
- v13.12.0
665+
- v12.17.0
658666
pr-url: https://github.com/nodejs/node/pull/32242
659667
description: This option is no longer considered experimental.
660668
- version: v12.0.0
@@ -672,6 +680,7 @@ changes:
672680
- version:
673681
- v14.0.0
674682
- v13.14.0
683+
- v12.17.0
675684
pr-url: https://github.com/nodejs/node/pull/32496
676685
description: This option is no longer considered experimental.
677686
- version: v12.0.0
@@ -690,7 +699,9 @@ error.
690699
<!-- YAML
691700
added: v11.8.0
692701
changes:
693-
- version: v13.12.0
702+
- version:
703+
- v13.12.0
704+
- v12.17.0
694705
pr-url: https://github.com/nodejs/node/pull/32242
695706
description: This option is no longer considered experimental.
696707
- version: v12.0.0
@@ -707,7 +718,9 @@ specified through `--report-signal`.
707718
<!-- YAML
708719
added: v11.8.0
709720
changes:
710-
- version: v13.12.0
721+
- version:
722+
- v13.12.0
723+
- v12.17.0
711724
pr-url: https://github.com/nodejs/node/pull/32242
712725
description: This option is no longer considered experimental.
713726
- version: v12.0.0
@@ -723,7 +736,9 @@ Default signal is `SIGUSR2`.
723736
<!-- YAML
724737
added: v11.8.0
725738
changes:
726-
- version: v13.12.0
739+
- version:
740+
- v13.12.0
741+
- v12.17.0
727742
pr-url: https://github.com/nodejs/node/pull/32242
728743
description: This option is no longer considered experimental.
729744
- version: v12.0.0
@@ -895,7 +910,9 @@ i.e. invoking `process.exit()`.
895910

896911
### `--trace-sigint`
897912
<!-- YAML
898-
added: v13.9.0
913+
added:
914+
- v13.9.0
915+
- v12.17.0
899916
-->
900917

901918
Prints a stack trace on SIGINT.
@@ -983,7 +1000,9 @@ See `SSL_CERT_DIR` and `SSL_CERT_FILE`.
9831000

9841001
### `--use-largepages=mode`
9851002
<!-- YAML
986-
added: v13.6.0
1003+
added:
1004+
- v13.6.0
1005+
- v12.17.0
9871006
-->
9881007

9891008
Re-map the Node.js static code to large memory pages at startup. If supported on

doc/api/console.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ const { Console } = console;
8181
### `new Console(options)`
8282
<!-- YAML
8383
changes:
84-
- version: v14.2.0
84+
- version:
85+
- v14.2.0
86+
- v12.17.0
8587
pr-url: https://github.com/nodejs/node/pull/32964
8688
description: The `groupIndentation` option was introduced.
8789
- version: v11.7.0

doc/api/crypto.md

+12-4
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,9 @@ passing keys as strings or `Buffer`s due to improved security features.
12331233
<!-- YAML
12341234
added: v11.6.0
12351235
changes:
1236-
- version: v13.9.0
1236+
- version:
1237+
- v13.9.0
1238+
- v12.17.0
12371239
pr-url: https://github.com/nodejs/node/pull/31178
12381240
description: Added support for `'dh'`.
12391241
- version: v12.0.0
@@ -2096,7 +2098,9 @@ algorithm names.
20962098

20972099
### `crypto.diffieHellman(options)`
20982100
<!-- YAML
2099-
added: v13.9.0
2101+
added:
2102+
- v13.9.0
2103+
- v12.17.0
21002104
-->
21012105

21022106
* `options`: {Object}
@@ -2112,7 +2116,9 @@ Both keys must have the same `asymmetricKeyType`, which must be one of `'dh'`
21122116
<!-- YAML
21132117
added: v10.12.0
21142118
changes:
2115-
- version: v13.9.0
2119+
- version:
2120+
- v13.9.0
2121+
- v12.17.0
21162122
pr-url: https://github.com/nodejs/node/pull/31178
21172123
description: Add support for Diffie-Hellman.
21182124
- version: v12.0.0
@@ -2185,7 +2191,9 @@ a `Promise` for an `Object` with `publicKey` and `privateKey` properties.
21852191
<!-- YAML
21862192
added: v10.12.0
21872193
changes:
2188-
- version: v13.9.0
2194+
- version:
2195+
- v13.9.0
2196+
- v12.17.0
21892197
pr-url: https://github.com/nodejs/node/pull/31178
21902198
description: Add support for Diffie-Hellman.
21912199
- version: v12.0.0

doc/api/dns.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,9 @@ is not set to `true`, it returns a `Promise` for an `Object` with `address` and
202202
### Supported getaddrinfo flags
203203
<!-- YAML
204204
changes:
205-
- version: v13.13.0
205+
- version:
206+
- v13.13.0
207+
- v12.17.0
206208
pr-url: https://github.com/nodejs/node/pull/32183
207209
description: Added support for the `dns.ALL` flag.
208210
-->

doc/api/errors.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1905,7 +1905,9 @@ The context must be a `SecureContext`.
19051905
<a id="ERR_TLS_INVALID_STATE"></a>
19061906
### `ERR_TLS_INVALID_STATE`
19071907
<!-- YAML
1908-
added: v13.10.0
1908+
added:
1909+
- v13.10.0
1910+
- v12.17.0
19091911
-->
19101912

19111913
The TLS socket must be connected and securily established. Ensure the 'secure'

doc/api/events.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ Its `name` property is set to `'MaxListenersExceededWarning'`.
366366
<!-- YAML
367367
added:
368368
- v13.6.0
369-
- v12.16.0
369+
- v12.17.0
370370
-->
371371

372372
This symbol shall be used to install a listener for only monitoring `'error'`

0 commit comments

Comments
 (0)