Skip to content

Commit

Permalink
2020-05-26, Version 12.17.0 'Erbium' (LTS)
Browse files Browse the repository at this point in the history
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: #33197
  • Loading branch information
targos committed May 25, 2020
1 parent ebd9090 commit cd4ae7c
Show file tree
Hide file tree
Showing 21 changed files with 717 additions and 72 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Expand Up @@ -28,7 +28,8 @@ release.
</tr>
<tr>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V12.md#12.16.3">12.16.3</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V12.md#12.17.0">12.17.0</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V12.md#12.16.3">12.16.3</a><br/>
<a href="doc/changelogs/CHANGELOG_V12.md#12.16.2">12.16.2</a><br/>
<a href="doc/changelogs/CHANGELOG_V12.md#12.16.1">12.16.1</a><br/>
<a href="doc/changelogs/CHANGELOG_V12.md#12.16.0">12.16.0</a><br/>
Expand Down
16 changes: 8 additions & 8 deletions doc/api/async_hooks.md
Expand Up @@ -467,7 +467,7 @@ init for PROMISE with id 6, trigger id: 5 # the Promise returned by then()
#### `async_hooks.executionAsyncResource()`

<!-- YAML
added: REPLACEME
added: v12.17.0
-->

* Returns: {Object} The resource representing the current execution.
Expand Down Expand Up @@ -869,7 +869,7 @@ for (let i = 0; i < 10; i++) {

## Class: `AsyncLocalStorage`
<!-- YAML
added: REPLACEME
added: v12.17.0
-->

This class is used to create asynchronous state within callbacks and promise
Expand Down Expand Up @@ -918,15 +918,15 @@ from each other. It is safe to instantiate this class multiple times.

### `new AsyncLocalStorage()`
<!-- YAML
added: REPLACEME
added: v12.17.0
-->

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

### `asyncLocalStorage.disable()`
<!-- YAML
added: REPLACEME
added: v12.17.0
-->

This method disables the instance of `AsyncLocalStorage`. All subsequent calls
Expand All @@ -946,7 +946,7 @@ in the current process.

### `asyncLocalStorage.getStore()`
<!-- YAML
added: REPLACEME
added: v12.17.0
-->

* Returns: {any}
Expand All @@ -957,7 +957,7 @@ calling `asyncLocalStorage.run`, it will return `undefined`.

### `asyncLocalStorage.enterWith(store)`
<!-- YAML
added: REPLACEME
added: v12.17.0
-->

* `store` {any}
Expand Down Expand Up @@ -999,7 +999,7 @@ asyncLocalStorage.getStore(); // Returns the same object

### `asyncLocalStorage.run(store, callback[, ...args])`
<!-- YAML
added: REPLACEME
added: v12.17.0
-->

* `store` {any}
Expand Down Expand Up @@ -1034,7 +1034,7 @@ try {

### `asyncLocalStorage.exit(callback[, ...args])`
<!-- YAML
added: REPLACEME
added: v12.17.0
-->

* `callback` {Function}
Expand Down
20 changes: 10 additions & 10 deletions doc/api/cli.md
Expand Up @@ -129,7 +129,7 @@ Specify the file name of the CPU profile generated by `--cpu-prof`.

### `--disable-proto=mode`
<!--YAML
added: REPLACEME
added: v12.17.0
-->

Disable the `Object.prototype.__proto__` property. If `mode` is `delete`, the
Expand Down Expand Up @@ -625,7 +625,7 @@ warning will be written to stderr instead.

### `--report-compact`
<!-- YAML
added: REPLACEME
added: v12.17.0
-->

Write reports in a compact format, single-line JSON, more easily consumable
Expand All @@ -636,7 +636,7 @@ human consumption.
<!-- YAML
added: v11.8.0
changes:
- version: REPLACEME
- version: v12.17.0
pr-url: https://github.com/nodejs/node/pull/32242
description: This option is no longer considered experimental.
- version: v12.0.0
Expand All @@ -651,7 +651,7 @@ Location at which the report will be generated.
<!-- YAML
added: v11.8.0
changes:
- version: REPLACEME
- version: v12.17.0
pr-url: https://github.com/nodejs/node/pull/32242
description: This option is no longer considered experimental.
- version: v12.0.0
Expand All @@ -666,7 +666,7 @@ Name of the file to which the report will be written.
<!-- YAML
added: v11.8.0
changes:
- version: REPLACEME
- version: v12.17.0
pr-url: https://github.com/nodejs/node/pull/32496
description: This option is no longer considered experimental.
- version: v12.0.0
Expand All @@ -685,7 +685,7 @@ error.
<!-- YAML
added: v11.8.0
changes:
- version: REPLACEME
- version: v12.17.0
pr-url: https://github.com/nodejs/node/pull/32242
description: This option is no longer considered experimental.
- version: v12.0.0
Expand All @@ -702,7 +702,7 @@ specified through `--report-signal`.
<!-- YAML
added: v11.8.0
changes:
- version: REPLACEME
- version: v12.17.0
pr-url: https://github.com/nodejs/node/pull/32242
description: This option is no longer considered experimental.
- version: v12.0.0
Expand All @@ -718,7 +718,7 @@ Default signal is `SIGUSR2`.
<!-- YAML
added: v11.8.0
changes:
- version: REPLACEME
- version: v12.17.0
pr-url: https://github.com/nodejs/node/pull/32242
description: This option is no longer considered experimental.
- version: v12.0.0
Expand Down Expand Up @@ -851,7 +851,7 @@ i.e. invoking `process.exit()`.

### `--trace-sigint`
<!-- YAML
added: REPLACEME
added: v12.17.0
-->

Prints a stack trace on SIGINT.
Expand Down Expand Up @@ -937,7 +937,7 @@ See `SSL_CERT_DIR` and `SSL_CERT_FILE`.

### `--use-largepages=mode`
<!-- YAML
added: REPLACEME
added: v12.17.0
-->

Re-map the Node.js static code to large memory pages at startup. If supported on
Expand Down
2 changes: 1 addition & 1 deletion doc/api/console.md
Expand Up @@ -81,7 +81,7 @@ const { Console } = console;
### `new Console(options)`
<!-- YAML
changes:
- version: REPLACEME
- version: v12.17.0
pr-url: https://github.com/nodejs/node/pull/32964
description: The `groupIndentation` option was introduced.
- version: v11.7.0
Expand Down
8 changes: 4 additions & 4 deletions doc/api/crypto.md
Expand Up @@ -1232,7 +1232,7 @@ passing keys as strings or `Buffer`s due to improved security features.
<!-- YAML
added: v11.6.0
changes:
- version: REPLACEME
- version: v12.17.0
pr-url: https://github.com/nodejs/node/pull/31178
description: Added support for `'dh'`.
- version: v12.0.0
Expand Down Expand Up @@ -2091,7 +2091,7 @@ algorithm names.

### `crypto.diffieHellman(options)`
<!-- YAML
added: REPLACEME
added: v12.17.0
-->

* `options`: {Object}
Expand All @@ -2107,7 +2107,7 @@ Both keys must have the same `asymmetricKeyType`, which must be one of `'dh'`
<!-- YAML
added: v10.12.0
changes:
- version: REPLACEME
- version: v12.17.0
pr-url: https://github.com/nodejs/node/pull/31178
description: Add support for Diffie-Hellman.
- version: v12.0.0
Expand Down Expand Up @@ -2180,7 +2180,7 @@ a `Promise` for an `Object` with `publicKey` and `privateKey` properties.
<!-- YAML
added: v10.12.0
changes:
- version: REPLACEME
- version: v12.17.0
pr-url: https://github.com/nodejs/node/pull/31178
description: Add support for Diffie-Hellman.
- version: v12.0.0
Expand Down
2 changes: 1 addition & 1 deletion doc/api/dns.md
Expand Up @@ -202,7 +202,7 @@ is not set to `true`, it returns a `Promise` for an `Object` with `address` and
### Supported getaddrinfo flags
<!-- YAML
changes:
- version: REPLACEME
- version: v12.17.0
pr-url: https://github.com/nodejs/node/pull/32183
description: Added support for the `dns.ALL` flag.
-->
Expand Down
2 changes: 1 addition & 1 deletion doc/api/errors.md
Expand Up @@ -1868,7 +1868,7 @@ The context must be a `SecureContext`.
<a id="ERR_TLS_INVALID_STATE"></a>
### `ERR_TLS_INVALID_STATE`
<!-- YAML
added: REPLACEME
added: v12.17.0
-->

The TLS socket must be connected and securily established. Ensure the 'secure'
Expand Down
2 changes: 1 addition & 1 deletion doc/api/events.md
Expand Up @@ -362,7 +362,7 @@ Its `name` property is set to `'MaxListenersExceededWarning'`.

### `EventEmitter.errorMonitor`
<!-- YAML
added: REPLACEME
added: v12.17.0
-->

This symbol shall be used to install a listener for only monitoring `'error'`
Expand Down
26 changes: 13 additions & 13 deletions doc/api/fs.md
Expand Up @@ -1675,7 +1675,7 @@ changes:
- version: v2.3.0
pr-url: https://github.com/nodejs/node/pull/1845
description: The passed `options` object can be a string now.
- version: REPLACEME
- version: v12.17.0
pr-url: https://github.com/nodejs/node/pull/29083
description: The `fs` options allow overriding the used `fs`
implementation.
Expand Down Expand Up @@ -1778,8 +1778,8 @@ changes:
- version: v2.3.0
pr-url: https://github.com/nodejs/node/pull/1845
description: The passed `options` object can be a string now.
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/REPLACEME
- version: v12.17.0
pr-url: https://github.com/nodejs/node/pull/v12.17.0
description: The `fs` options allow overriding the used `fs`
implementation.
-->
Expand Down Expand Up @@ -2439,7 +2439,7 @@ Synchronous lstat(2).
<!-- YAML
added: v0.1.8
changes:
- version: REPLACEME
- version: v12.17.0
pr-url: https://github.com/nodejs/node/pull/31530
description: In `recursive` mode, the callback now receives the first
created path as an argument.
Expand Down Expand Up @@ -2501,7 +2501,7 @@ See also: mkdir(2).
<!-- YAML
added: v0.1.21
changes:
- version: REPLACEME
- version: v12.17.0
pr-url: https://github.com/nodejs/node/pull/31530
description: In `recursive` mode, the first created path is returned now.
- version: v10.12.0
Expand Down Expand Up @@ -2785,9 +2785,9 @@ a `Promise` for an `Object` with `bytesRead` and `buffer` properties.

## `fs.read(fd, [options,] callback)`
<!-- YAML
added: REPLACEME
added: v12.17.0
changes:
- version: REPLACEME
- version: v12.17.0
pr-url: https://github.com/nodejs/node/pull/31402
description: Options object can be passed in
to make Buffer, offset, length and position optional
Expand Down Expand Up @@ -3083,9 +3083,9 @@ this API: [`fs.read()`][].

## `fs.readSync(fd, buffer, [options])`
<!-- YAML
added: REPLACEME
added: v12.17.0
changes:
- version: REPLACEME
- version: v12.17.0
pr-url: https://github.com/nodejs/node/pull/32460
description: Options object can be passed in
to make offset, length and position optional
Expand All @@ -3109,7 +3109,7 @@ this API: [`fs.read()`][].

## `fs.readv(fd, buffers[, position], callback)`
<!-- YAML
added: REPLACEME
added: v12.17.0
-->

* `fd` {integer}
Expand All @@ -3132,7 +3132,7 @@ The callback will be given three arguments: `err`, `bytesRead`, and

## `fs.readvSync(fd, buffers[, position])`
<!-- YAML
added: REPLACEME
added: v12.17.0
-->

* `fd` {integer}
Expand Down Expand Up @@ -4460,7 +4460,7 @@ property that is a reference to the passed in `buffer` argument.

#### `filehandle.read(options)`
<!-- YAML
added: REPLACEME
added: v12.17.0
-->
* `options` {Object}
* `buffer` {Buffer|Uint8Array} **Default:** `Buffer.alloc(16384)`
Expand Down Expand Up @@ -4495,7 +4495,7 @@ of the file.

#### `filehandle.readv(buffers[, position])`
<!-- YAML
added: REPLACEME
added: v12.17.0
-->

* `buffers` {ArrayBufferView[]}
Expand Down
6 changes: 3 additions & 3 deletions doc/api/modules.md
Expand Up @@ -1026,7 +1026,7 @@ import('fs').then((esmFS) => {
## Source Map V3 Support
<!-- YAML
added: REPLACEME
added: v12.17.0
-->
> Stability: 1 - Experimental
Expand All @@ -1045,7 +1045,7 @@ const { findSourceMap, SourceMap } = require('module');
### `module.findSourceMap(path[, error])`
<!-- YAML
added: REPLACEME
added: v12.17.0
-->
* `path` {string}
Expand All @@ -1063,7 +1063,7 @@ will be associated with the `error` instance along with the `path`.
### Class: `module.SourceMap`
<!-- YAML
added: REPLACEME
added: v12.17.0
-->
#### `new SourceMap(payload)`
Expand Down

0 comments on commit cd4ae7c

Please sign in to comment.