Skip to content

Commit d896f03

Browse files
committed
2019-04-23, Version 12.0.0 (Current)
Notable changes: * assert: * validate required arguments (Ruben Bridgewater) [#26641](#26641) * adjust loose assertions (Ruben Bridgewater) [#25008](#25008) * async_hooks: * remove deprecated `emitBefore` and `emitAfter` (Matteo Collina) [#26530](#26530) * remove promise object from resource (Andreas Madsen) [#23443](#23443) * bootstrap: make Buffer and process non-enumerable (Ruben Bridgewater) [#24874](#24874) * buffer: * use stricter range checks (Ruben Bridgewater) [#27045](#27045) * harden `SlowBuffer` creation (ZYSzys) [#26272](#26272) * harden validation of buffer allocation size (ZYSzys) [#26162](#26162) * do proper error propagation in addon methods (Anna Henningsen) [#23939](#23939) * child_process: * remove `options.customFds` (cjihrig) [#25279](#25279) * harden fork arguments validation (ZYSzys) [#27039](#27039) * use non-infinite `maxBuffer` defaults (kohta ito) [#23027](#23027) * console: * don't use ANSI escape codes when `TERM=dumb` (Vladislav Kaminsky) [#26261](#26261) * crypto: * remove legacy native handles (Tobias Nießen) [#27011](#27011) * decode missing passphrase errors (Tobias Nießen) [#25208](#25208) * remove `Cipher.setAuthTag()` and `Decipher.getAuthTag()` (Tobias Nießen) [#26249](#26249) * remove deprecated `crypto._toBuf()` (Tobias Nießen) [#25338](#25338) * set `DEFAULT\_ENCODING` property to non-enumerable (Antoine du Hamel) [#23222](#23222) * deps: * update V8 to 7.4.288.13 (Michaël Zasso, cjihrig, Refael Ackermann) (Anna Henningsen, Ujjwal Sharma) [#26685](#26685) * bump minimum icu version to 63 (Ujjwal Sharma) [#25852](#25852) * update OpenSSL to 1.1.1b (Sam Roberts, Shigeki Ohtsu) [#26327](#26327) * errors: * update error name (Ruben Bridgewater) [#26738](#26738) * fs: * use proper .destroy() implementation for SyncWriteStream (Matteo Collina) [#26690](#26690) * improve mode validation (Ruben Bridgewater) [#26575](#26575) * harden validation of start option in `createWriteStream()` (ZYSzys) [#25579](#25579) * make writeFile consistent with readFile wrt fd (Sakthipriyan Vairamani (thefourtheye)) [#23709](#23709) * http: * validate timeout in `ClientRequest()` (cjihrig) [#26214](#26214) * return HTTP 431 on `HPE_HEADER_OVERFLOW` error (Albert Still) [#25605](#25605) * switch default parser to llhttp (Anna Henningsen) [#24870](#24870) * Runtime-deprecate `outgoingMessage._headers` and `outgoingMessage._headerNames` (Morgan Roderick) [#24167](#24167) * lib: * remove `Atomics.wake()` (Gus Caplan) [#27033](#27033) * move DTRACE\_\* probes out of global scope (James M Snell) [#26541](#26541) * deprecate `_stream_wrap` (Sam Roberts) [#26245](#26245) * use ES6 class inheritance style (Ruben Bridgewater) [#24755](#24755) * module: * remove unintended access to deps/ (Anna Henningsen) [#25138](#25138) * improve error message for MODULE\_NOT\_FOUND (Ali Ijaz Sheikh) [#25690](#25690) * requireStack property for MODULE\_NOT\_FOUND (Ali Ijaz Sheikh) [#25690](#25690) * remove dead code (Ruben Bridgewater) [#26983](#26983) * make `require('.')` never resolve outside the current directory (Ruben Bridgewater) [#26973](#26973) * throw an error for invalid package.json main entries (Ruben Bridgewater) [#26823](#26823) * don't search in `require.resolve.paths` (cjihrig) [#23683](#23683) * net: * remove `Server.listenFD()` (cjihrig) [#27127](#27127) * do not add `.host` and `.port` properties to DNS error (Ruben Bridgewater) [#26751](#26751) * emit "write after end" errors in the next tick (Ouyang Yadong) [#24457](#24457) * deprecate `_setSimultaneousAccepts()` undocumented function (James M Snell) [#23760](#23760) * os: * implement `os.type()` using `uv_os_uname()` (cjihrig) [#25659](#25659) * remove `os.getNetworkInterfaces()` (cjihrig) [#25280](#25280) * process: * make global.process, global.Buffer getters (Guy Bedford) [#26882](#26882) * move DEP0062 (node --debug) to end-of-life (Joyee Cheung) [#25828](#25828) * exit on --debug and --debug-brk after option parsing (Joyee Cheung) [#25828](#25828) * improve `--redirect-warnings` handling (Ruben Bridgewater) [#24965](#24965) * readline: * support TERM=dumb (Vladislav Kaminsky) [#26261](#26261) * repl: * add welcome message (gengjiawen) [#25947](#25947) * fix terminal default setting (Ruben Bridgewater) [#26518](#26518) * check colors with `.getColorDepth()` (Vladislav Kaminsky) [#26261](#26261) * deprecate REPLServer.rli (Ruben Bridgewater) [#26260](#26260) * src: * remove unused `INT_MAX` constant (Sam Roberts) [#27078](#27078) * update `NODE_MODULE_VERSION` to 72 (Ujjwal Sharma) [#26685](#26685) * remove `AddPromiseHook()` (Anna Henningsen) [#26574](#26574) * clean up `MultiIsolatePlatform` interface (Anna Henningsen) [#26384](#26384) * properly configure default heap limits (Ali Ijaz Sheikh) [#25576](#25576) * remove `icuDataDir` from node config (GauthamBanasandra) [#24780](#24780) * tls: * support TLSv1.3 (Sam Roberts) [#26209](#26209) * return correct version from `getCipher()` (Sam Roberts) [#26625](#26625) * check arg types of renegotiate() (Sam Roberts) [#25876](#25876) * add code for `ERR_TLS_INVALID_PROTOCOL_METHOD` (Sam Roberts) [#24729](#24729) * emit a warning when servername is an IP address (Rodger Combs) [#23329](#23329) * disable TLS v1.0 and v1.1 by default (Ben Noordhuis) [#23814](#23814) * remove unused arg to createSecureContext() (Sam Roberts) [#24241](#24241) * deprecate `Server.prototype.setOptions()` (cjihrig) [#23820](#23820) * load `NODE_EXTRA_CA_CERTS` at startup (Ouyang Yadong) [#23354](#23354) * util: * remove `util.print()`, `util.puts()`, `util.debug()` and `util.error()` (cjihrig) [#25377](#25377) * change inspect compact and breakLength default (Ruben Bridgewater) [#27109](#27109) * improve inspect edge cases (Ruben Bridgewater) [#27109](#27109) * only the first line of the error message (Simon Zünd) [#26685](#26685) * don't set the prototype of callbackified functions (Ruben Bridgewater) [#26893](#26893) * rename callbackified function (Ruben Bridgewater) [#26893](#26893) * increase function length when using `callbackify()` (Ruben Bridgewater) [#26893](#26893) * prevent tampering with internals in `inspect()` (Ruben Bridgewater) [#26577](#26577) * prevent Proxy traps being triggered by `.inspect()` (Ruben Bridgewater) [#26241](#26241) * prevent leaking internal properties (Ruben Bridgewater) [#24971](#24971) * protect against monkeypatched Object prototype for inspect() (Rich Trott) [#25953](#25953) * treat format arguments equally (Roman Reiss) [#23162](#23162) * win, fs: * detect if symlink target is a directory (Bartosz Sosnowski) [#23724](#23724) * zlib: * throw TypeError if callback is missing (Anna Henningsen) [#24929](#24929) * make “bare” constants un-enumerable (Anna Henningsen) [#24824](#24824) PR-URL: #26930
1 parent fcb98bb commit d896f03

28 files changed

+666
-76
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,17 @@ release.
2121
<!--lint disable maximum-line-length-->
2222
<table>
2323
<tr>
24+
<th title="Current"><a href="doc/changelogs/CHANGELOG_V12.md">12</a><sup>Current</sup></th>
2425
<th title="Current"><a href="doc/changelogs/CHANGELOG_V11.md">11</a><sup>Current</sup></th>
2526
<th title="LTS Until 2021-04"><a href="doc/changelogs/CHANGELOG_V10.md">10</a><sup>LTS</sup></th>
2627
<th title="LTS Until 2019-12"><a href="doc/changelogs/CHANGELOG_V8.md">8</a><sup>LTS</sup></th>
2728
<th title="LTS Until 2019-04"><a href="doc/changelogs/CHANGELOG_V6.md">6</a><sup>LTS</sup></th>
2829
</tr>
2930
<tr>
3031
<td valign="top">
32+
<b><a href="doc/changelogs/CHANGELOG_V12.md#12.0.0">12.0.0</a></b><br/>
33+
</td>
34+
<td valign="top">
3135
<b><a href="doc/changelogs/CHANGELOG_V11.md#11.14.0">11.14.0</a></b><br/>
3236
<a href="doc/changelogs/CHANGELOG_V11.md#11.13.0">11.13.0</a><br/>
3337
<a href="doc/changelogs/CHANGELOG_V11.md#11.12.0">11.12.0</a><br/>

doc/api/assert.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ An alias of [`assert.ok()`][].
163163
<!-- YAML
164164
added: v0.1.21
165165
changes:
166-
- version: REPLACEME
166+
- version: v12.0.0
167167
pr-url: https://github.com/nodejs/node/pull/25008
168168
description: The type tags are now properly compared and there are a couple
169169
minor comparison adjustments to make the check less surprising.

doc/api/buffer.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1549,7 +1549,7 @@ The `buf.parent` property is a deprecated alias for `buf.buffer`.
15491549
### buf.readBigInt64BE([offset])
15501550
### buf.readBigInt64LE([offset])
15511551
<!-- YAML
1552-
added: REPLACEME
1552+
added: v12.0.0
15531553
-->
15541554

15551555
* `offset` {integer} Number of bytes to skip before starting to read. Must
@@ -1565,7 +1565,7 @@ Integers read from a `Buffer` are interpreted as two's complement signed values.
15651565
### buf.readBigUInt64BE([offset])
15661566
### buf.readBigUInt64LE([offset])
15671567
<!-- YAML
1568-
added: REPLACEME
1568+
added: v12.0.0
15691569
-->
15701570

15711571
* `offset` {integer} Number of bytes to skip before starting to read. Must
@@ -2192,7 +2192,7 @@ console.log(`${len} bytes: ${buf.toString('utf8', 0, len)}`);
21922192
### buf.writeBigInt64BE(value[, offset])
21932193
### buf.writeBigInt64LE(value[, offset])
21942194
<!-- YAML
2195-
added: REPLACEME
2195+
added: v12.0.0
21962196
-->
21972197

21982198
* `value` {bigint} Number to be written to `buf`.
@@ -2218,7 +2218,7 @@ console.log(buf);
22182218
### buf.writeBigUInt64BE(value[, offset])
22192219
### buf.writeBigUInt64LE(value[, offset])
22202220
<!-- YAML
2221-
added: REPLACEME
2221+
added: v12.0.0
22222222
-->
22232223

22242224
* `value` {bigint} Number to be written to `buf`.

doc/api/cli.md

+19-19
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ $ source node_bash_completion
7777

7878
### `--cpu-prof`
7979
<!-- YAML
80-
added: REPLACEME
80+
added: v12.0.0
8181
-->
8282

8383
> Stability: 1 - Experimental
@@ -99,7 +99,7 @@ CPU.20190409.202950.15293.0.0.cpuprofile
9999

100100
### `--cpu-prof-dir`
101101
<!-- YAML
102-
added: REPLACEME
102+
added: v12.0.0
103103
-->
104104

105105
> Stability: 1 - Experimental
@@ -109,7 +109,7 @@ be placed.
109109

110110
### `--cpu-prof-name`
111111
<!-- YAML
112-
added: REPLACEME
112+
added: v12.0.0
113113
-->
114114

115115
> Stability: 1 - Experimental
@@ -126,7 +126,7 @@ Enable FIPS-compliant crypto at startup. (Requires Node.js to be built with
126126

127127
### `--es-module-specifier-resolution=mode`
128128
<!-- YAML
129-
added: REPLACEME
129+
added: v12.0.0
130130
-->
131131

132132
To be used in conjunction with `--experimental-modules`. Sets the resolution
@@ -140,7 +140,7 @@ Please see [customizing esm specifier resolution][] for example usage.
140140

141141
### `--experimental-json-modules`
142142
<!-- YAML
143-
added: REPLACEME
143+
added: v12.0.0
144144
-->
145145

146146
Enable experimental JSON support for the ES Module loader.
@@ -209,7 +209,7 @@ Both of the above may change in future updates, which will be breaking changes.
209209

210210
### `--heapsnapshot-signal=signal`
211211
<!-- YAML
212-
added: REPLACEME
212+
added: v12.0.0
213213
-->
214214

215215
Generates a heap snapshot each time the process receives the specified signal.
@@ -240,7 +240,7 @@ Specify ICU data load path. (Overrides `NODE_ICU_DATA`.)
240240

241241
### `--input-type=type`
242242
<!-- YAML
243-
added: REPLACEME
243+
added: v12.0.0
244244
-->
245245

246246
Used with `--experimental-modules`, this configures Node.js to interpret string
@@ -455,7 +455,7 @@ warning will be written to stderr instead.
455455
<!-- YAML
456456
added: v11.8.0
457457
changes:
458-
- version: REPLACEME
458+
- version: v12.0.0
459459
pr-url: https://github.com/nodejs/node/pull/27312
460460
description: Changed from `--diagnostic-report-directory` to
461461
`--report-directory`
@@ -467,7 +467,7 @@ Location at which the report will be generated.
467467
<!-- YAML
468468
added: v11.8.0
469469
changes:
470-
- version: REPLACEME
470+
- version: v12.0.0
471471
pr-url: https://github.com/nodejs/node/pull/27312
472472
description: changed from `--diagnostic-report-filename` to
473473
`--report-filename`
@@ -479,7 +479,7 @@ Name of the file to which the report will be written.
479479
<!-- YAML
480480
added: v11.8.0
481481
changes:
482-
- version: REPLACEME
482+
- version: v12.0.0
483483
pr-url: https://github.com/nodejs/node/pull/27312
484484
description: changed from `--diagnostic-report-on-fatalerror` to
485485
`--report-on-fatalerror`
@@ -495,7 +495,7 @@ consumption etc. to reason about the fatal error.
495495
<!-- YAML
496496
added: v11.8.0
497497
changes:
498-
- version: REPLACEME
498+
- version: v12.0.0
499499
pr-url: https://github.com/nodejs/node/pull/27312
500500
description: changed from `--diagnostic-report-on-signal` to
501501
`--report-on-signal`
@@ -509,7 +509,7 @@ The signal to trigger the report is specified through `--report-signal`.
509509
<!-- YAML
510510
added: v11.8.0
511511
changes:
512-
- version: REPLACEME
512+
- version: v12.0.0
513513
pr-url: https://github.com/nodejs/node/pull/27312
514514
description: changed from `--diagnostic-report-signal` to
515515
`--report-signal`
@@ -522,7 +522,7 @@ Default signal is `SIGUSR2`.
522522
<!-- YAML
523523
added: v11.8.0
524524
changes:
525-
- version: REPLACEME
525+
- version: v12.0.0
526526
pr-url: https://github.com/nodejs/node/pull/27312
527527
description: changed from `--diagnostic-report-uncaught-exception` to
528528
`--report-uncaught-exception`
@@ -556,39 +556,39 @@ with crypto support (default).
556556

557557
### `--tls-max-v1.2`
558558
<!-- YAML
559-
added: REPLACEME
559+
added: v12.0.0
560560
-->
561561

562562
Set [`tls.DEFAULT_MAX_VERSION`][] to 'TLSv1.2'. Use to disable support for
563563
TLSv1.3.
564564

565565
### `--tls-max-v1.3`
566566
<!-- YAML
567-
added: REPLACEME
567+
added: v12.0.0
568568
-->
569569

570570
Set default [`tls.DEFAULT_MAX_VERSION`][] to 'TLSv1.3'. Use to enable support
571571
for TLSv1.3.
572572

573573
### `--tls-min-v1.0`
574574
<!-- YAML
575-
added: REPLACEME
575+
added: v12.0.0
576576
-->
577577

578578
Set default [`tls.DEFAULT_MIN_VERSION`][] to 'TLSv1'. Use for compatibility with
579579
old TLS clients or servers.
580580

581581
### `--tls-min-v1.1`
582582
<!-- YAML
583-
added: REPLACEME
583+
added: v12.0.0
584584
-->
585585

586586
Set default [`tls.DEFAULT_MIN_VERSION`][] to 'TLSv1.1'. Use for compatibility
587587
with old TLS clients or servers.
588588

589589
### `--tls-min-v1.3`
590590
<!-- YAML
591-
added: REPLACEME
591+
added: v12.0.0
592592
-->
593593

594594
Set default [`tls.DEFAULT_MIN_VERSION`][] to 'TLSv1.3'. Use to disable support
@@ -648,7 +648,7 @@ Track heap object allocations for heap snapshots.
648648

649649
### `--unhandled-rejections=mode`
650650
<!-- YAML
651-
added: REPLACEME
651+
added: v12.0.0
652652
-->
653653

654654
By default all unhandled rejections trigger a warning plus a deprecation warning

doc/api/crypto.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -1129,17 +1129,17 @@ passing keys as strings or `Buffer`s due to improved security features.
11291129
<!-- YAML
11301130
added: v11.6.0
11311131
changes:
1132-
- version: REPLACEME
1132+
- version: v12.0.0
11331133
pr-url: https://github.com/nodejs/node/pull/26960
11341134
description: Added support for `'rsa-pss'`
1135-
- version: REPLACEME
1135+
- version: v12.0.0
11361136
pr-url: https://github.com/nodejs/node/pull/26786
11371137
description: This property now returns `undefined` for KeyObject
11381138
instances of unrecognized type instead of aborting.
1139-
- version: REPLACEME
1139+
- version: v12.0.0
11401140
pr-url: https://github.com/nodejs/node/pull/26774
11411141
description: Added support for `'x25519'` and `'x448'`
1142-
- version: REPLACEME
1142+
- version: v12.0.0
11431143
pr-url: https://github.com/nodejs/node/pull/26319
11441144
description: Added support for `'ed25519'` and `'ed448'`.
11451145
-->
@@ -1284,7 +1284,7 @@ console.log(verify.verify(publicKey, signature));
12841284
<!-- YAML
12851285
added: v0.1.92
12861286
changes:
1287-
- version: REPLACEME
1287+
- version: v12.0.0
12881288
pr-url: https://github.com/nodejs/node/pull/26960
12891289
description: This function now supports RSA-PSS keys.
12901290
- version: v11.6.0
@@ -1387,7 +1387,7 @@ This can be called many times with new data as it is streamed.
13871387
<!-- YAML
13881388
added: v0.1.92
13891389
changes:
1390-
- version: REPLACEME
1390+
- version: v12.0.0
13911391
pr-url: https://github.com/nodejs/node/pull/26960
13921392
description: This function now supports RSA-PSS keys.
13931393
- version: v11.7.0
@@ -1937,10 +1937,10 @@ algorithm names.
19371937
<!-- YAML
19381938
added: v10.12.0
19391939
changes:
1940-
- version: REPLACEME
1940+
- version: v12.0.0
19411941
pr-url: https://github.com/nodejs/node/pull/26774
19421942
description: Add ability to generate X25519 and X448 key pairs.
1943-
- version: REPLACEME
1943+
- version: v12.0.0
19441944
pr-url: https://github.com/nodejs/node/pull/26554
19451945
description: Add ability to generate Ed25519 and Ed448 key pairs.
19461946
- version: v11.6.0
@@ -2001,7 +2001,7 @@ a `Promise` for an `Object` with `publicKey` and `privateKey` properties.
20012001
<!-- YAML
20022002
added: v10.12.0
20032003
changes:
2004-
- version: REPLACEME
2004+
- version: v12.0.0
20052005
pr-url: https://github.com/nodejs/node/pull/26554
20062006
description: Add ability to generate Ed25519 and Ed448 key pairs.
20072007
- version: v11.6.0
@@ -2692,7 +2692,7 @@ Throws an error if FIPS mode is not available.
26922692

26932693
### crypto.sign(algorithm, data, key)
26942694
<!-- YAML
2695-
added: REPLACEME
2695+
added: v12.0.0
26962696
-->
26972697
* `algorithm` {string | null | undefined}
26982698
* `data` {Buffer | TypedArray | DataView}
@@ -2742,7 +2742,7 @@ not introduce timing vulnerabilities.
27422742

27432743
### crypto.verify(algorithm, data, key, signature)
27442744
<!-- YAML
2745-
added: REPLACEME
2745+
added: v12.0.0
27462746
-->
27472747
* `algorithm` {string | null | undefined}
27482748
* `data` {Buffer | TypedArray | DataView}

0 commit comments

Comments
 (0)