Skip to content

Commit b107d3c

Browse files
targosjasnell
authored andcommitted
2018-10-10, Version 10.12.0 (Current)
Notable changes: * assert * The diff output is now a tiny bit improved by sorting object properties when inspecting the values that are compared with each other. #22788 * cli * The options parser now normalizes `_` to `-` in all multi-word command-line flags, e.g. `--no_warnings` has the same effect as `--no-warnings`. #23020 * Added bash completion for the `node` binary. To generate a bash completion script, run `node --completion-bash`. The output can be saved to a file which can be sourced to enable completion. #20713 * crypto * Added support for PEM-level encryption. #23151 * Added an API asymmetric key pair generation. The new methods `crypto.generateKeyPair` and `crypto.generateKeyPairSync` can be used to generate public and private key pairs. The API supports RSA, DSA and EC and a variety of key encodings (both PEM and DER). #22660 * fs * Added a `recursive` option to `fs.mkdir` and `fs.mkdirSync`. If this option is set to true, non-existing parent folders will be automatically created. #21875 * http2 * Added a `'ping'` event to `Http2Session` that is emitted whenever a non-ack `PING` is received. #23009 * Added support for the `ORIGIN` frame. #22956 * Updated nghttp2 to 1.34.0. This adds RFC 8441 extended connect protocol support to allow use of WebSockets over HTTP/2. #23284 * module * Added `module.createRequireFromPath(filename)`. This new method can be used to create a custom require function that will resolve modules relative to the filename path. #19360 * process * Added a `'multipleResolves'` process event that is emitted whenever a `Promise` is attempted to be resolved multiple times, e.g. if the `resolve` and `reject` functions are both called in a `Promise` executor. #22218 * url * Added `url.fileURLToPath(url)` and `url.pathToFileURL(path)`. These methods can be used to correctly convert between file: URLs and absolute paths. #22506 * util * Added the `sorted` option to `util.inspect()`. If set to `true`, all properties of an object and Set and Map entries will be sorted in the returned string. If set to a function, it is used as a compare function. #22788 * The `util.instpect.custom` symbol is now defined in the global symbol registry as `Symbol.for('nodejs.util.inspect.custom')`. #20857 * Added support for `BigInt` numbers in `util.format()`. #22097 * V8 API * A number of V8 C++ APIs have been marked as deprecated since they have been removed in the upstream repository. Replacement APIs are added where necessary. #23159 * Windows * The Windows msi installer now provides an option to automatically install the tools required to build native modules. #22645 * Workers * Debugging support for Workers using the DevTools protocol has been implemented. #21364 * The public `inspector` module is now enabled in Workers. #22769 * Added new collaborators: * digitalinfinity - Hitesh Kanwathirtha PR-URL: #23313
1 parent 992c1d5 commit b107d3c

File tree

10 files changed

+338
-19
lines changed

10 files changed

+338
-19
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ release.
3131
</tr>
3232
<tr>
3333
<td valign="top">
34-
<b><a href="doc/changelogs/CHANGELOG_V10.md#10.11.0">10.11.0</a></b><br/>
34+
<b><a href="doc/changelogs/CHANGELOG_V10.md#10.12.0">10.12.0</a></b><br/>
35+
<a href="doc/changelogs/CHANGELOG_V10.md#10.11.0">10.11.0</a><br/>
3536
<a href="doc/changelogs/CHANGELOG_V10.md#10.10.0">10.10.0</a><br/>
3637
<a href="doc/changelogs/CHANGELOG_V10.md#10.9.0">10.9.0</a><br/>
3738
<a href="doc/changelogs/CHANGELOG_V10.md#10.8.0">10.8.0</a><br/>

doc/api/cli.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ _For more info about `node inspect`, please see the [debugger][] documentation._
2323
## Options
2424
<!-- YAML
2525
changes:
26-
- version: REPLACEME
26+
- version: v10.12.0
2727
pr-url: https://github.com/nodejs/node/pull/23020
2828
description: Underscores instead of dashes are now allowed for
2929
Node.js options as well, in addition to V8 options.
@@ -66,7 +66,7 @@ If this flag is passed, the behavior can still be set to not abort through
6666

6767
### `--completion-bash`
6868
<!-- YAML
69-
added: REPLACEME
69+
added: v10.12.0
7070
-->
7171

7272
Print source-able bash completion script for Node.js.

doc/api/crypto.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1675,7 +1675,7 @@ signing algorithms. Optional `options` argument controls the
16751675

16761676
### crypto.generateKeyPair(type, options, callback)
16771677
<!-- YAML
1678-
added: REPLACEME
1678+
added: v10.12.0
16791679
-->
16801680
* `type`: {string} Must be `'rsa'`, `'dsa'` or `'ec'`.
16811681
* `options`: {Object}
@@ -1736,7 +1736,7 @@ a `Promise` for an `Object` with `publicKey` and `privateKey` properties.
17361736

17371737
### crypto.generateKeyPairSync(type, options)
17381738
<!-- YAML
1739-
added: REPLACEME
1739+
added: v10.12.0
17401740
-->
17411741
* `type`: {string} Must be `'rsa'`, `'dsa'` or `'ec'`.
17421742
* `options`: {Object}

doc/api/errors.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1952,9 +1952,9 @@ The `repl` module was unable to parse data from the REPL history file.
19521952
<a id="ERR_STDERR_CLOSE"></a>
19531953
### ERR_STDERR_CLOSE
19541954
<!-- YAML
1955-
removed: REPLACEME
1955+
removed: v10.12.0
19561956
changes:
1957-
- version: REPLACEME
1957+
- version: v10.12.0
19581958
pr-url: https://github.com/nodejs/node/pull/23053
19591959
description: Rather than emitting an error, `process.stderr.end()` now
19601960
only closes the stream side but not the underlying resource,
@@ -1967,9 +1967,9 @@ does not allow `stdout` or `stderr` streams to be closed by user code.
19671967
<a id="ERR_STDOUT_CLOSE"></a>
19681968
### ERR_STDOUT_CLOSE
19691969
<!-- YAML
1970-
removed: REPLACEME
1970+
removed: v10.12.0
19711971
changes:
1972-
- version: REPLACEME
1972+
- version: v10.12.0
19731973
pr-url: https://github.com/nodejs/node/pull/23053
19741974
description: Rather than emitting an error, `process.stderr.end()` now
19751975
only closes the stream side but not the underlying resource,

doc/api/fs.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2148,7 +2148,7 @@ Synchronous lstat(2).
21482148
<!-- YAML
21492149
added: v0.1.8
21502150
changes:
2151-
- version: REPLACEME
2151+
- version: v10.12.0
21522152
pr-url: https://github.com/nodejs/node/pull/21875
21532153
description: The second argument can now be an `options` object with
21542154
`recursive` and `mode` properties.
@@ -2193,7 +2193,7 @@ See also: mkdir(2).
21932193
<!-- YAML
21942194
added: v0.1.21
21952195
changes:
2196-
- version: REPLACEME
2196+
- version: v10.12.0
21972197
pr-url: https://github.com/nodejs/node/pull/21875
21982198
description: The second argument can now be an `options` object with
21992199
`recursive` and `mode` properties.

doc/api/http2.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ session.on('localSettings', (settings) => {
224224

225225
#### Event: 'ping'
226226
<!-- YAML
227-
added: REPLACEME
227+
added: v10.12.0
228228
-->
229229

230230
* `payload` {Buffer} The `PING` frame 8-byte payload
@@ -684,7 +684,7 @@ are passed through as provided by the user or received from the peer.
684684

685685
#### serverhttp2session.origin(...origins)
686686
<!-- YAML
687-
added: REPLACEME
687+
added: v10.12.0
688688
-->
689689

690690
* `origins` { string | URL | Object } One or more URL Strings passed as
@@ -764,7 +764,7 @@ client.on('altsvc', (alt, origin, streamId) => {
764764

765765
#### Event: 'origin'
766766
<!-- YAML
767-
added: REPLACEME
767+
added: v10.12.0
768768
-->
769769

770770
* `origins` {string[]}
@@ -2000,7 +2000,7 @@ server.listen(80);
20002000
<!-- YAML
20012001
added: v8.4.0
20022002
changes:
2003-
- version: REPLACEME
2003+
- version: v10.12.0
20042004
pr-url: https://github.com/nodejs/node/pull/22956
20052005
description: Added the `origins` option to automatically send an `ORIGIN`
20062006
frame on `Http2Session` startup.

doc/api/modules.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ const builtin = require('module').builtinModules;
891891

892892
### module.createRequireFromPath(filename)
893893
<!-- YAML
894-
added: REPLACEME
894+
added: v10.12.0
895895
-->
896896

897897
* `filename` {string} Filename to be used to construct the relative require

doc/api/process.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ not be the same as what is originally sent.
9999

100100
### Event: 'multipleResolves'
101101
<!-- YAML
102-
added: REPLACEME
102+
added: v10.12.0
103103
-->
104104

105105
* `type` {string} The error type. One of `'resolve'` or `'reject'`.

doc/api/util.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ changes:
368368
- version: REPLACEME
369369
pr-url: https://github.com/nodejs/node/pull/22846
370370
description: The `depth` default changed to `20`.
371-
- version: REPLACEME
371+
- version: v10.12.0
372372
pr-url: https://github.com/nodejs/node/pull/22788
373373
description: The `sorted` option is supported now.
374374
- version: REPLACEME
@@ -684,7 +684,7 @@ util.inspect(obj);
684684
<!-- YAML
685685
added: v6.6.0
686686
changes:
687-
- version: REPLACEME
687+
- version: v10.12.0
688688
pr-url: https://github.com/nodejs/node/pull/20857
689689
description: This is now defined as a shared symbol.
690690
-->

0 commit comments

Comments
 (0)