Skip to content
Permalink
Browse files

2019-10-22, Version 13.0.0 (Current)

Notable changes:

* assert:
  * If the validation function passed to `assert.throws()` or
    `assert.rejects()` returns a value other than `true`, an assertion
    error will be thrown instead of the original error to highlight the
    programming mistake (Ruben Bridgewater).
    #28263
  * If a constructor function is passed to validate the instance of
    errors thrown in `assert.throws()` or `assert.reject()`, an
    assertion error will be thrown instead of the original error
    (Ruben Bridgewater).
    #28263
* build:
  * Node.js releases are now built with default full-icu support. This
    means that all locales supported by ICU are now included and
    Intl-related APIs may return different values than before
    (Richard Lau).
    #29887
  * The minimum Xcode version supported for macOS was increased to 10.
    It is still possible to build Node.js with Xcode 8 but this may no
    longer be the case in a future v13.x release (Michael Dawson).
    #29622
* child_process:
  * `ChildProcess._channel` (DEP0129) is now a Runtime deprecation
    (cjihrig).
    #27949
* console:
  * The output `console.timeEnd()` and `console.timeLog()` will now
    automatically select a suitable time unit instead of always using
    milliseconds (Xavier Stouder).
    #29251
* deps:
  * The V8 engine was updated to version 7.8. This includes performance
    improvements to object destructuring, memory usage and WebAssembly
    startup time (Myles Borins).
    #29694)
* domain:
  * The domain's error handler is now executed with the active domain
    set to the domain's parent to prevent inner recursion
    (Julien Gilli).
    #26211
* fs:
  * The undocumented method `FSWatcher.prototype.start()` was removed
    (Lucas Holmquist).
    #29905
  * Calling the `open()` method on a `ReadStream` or `WriteStream` now
    emits a runtime deprecation warning. The methods are supposed to be
    internal and should not be called by user code (Robert Nagy).
    #29061
  * `fs.read/write`, `fs.readSync/writeSync` and `fd.read/write` now
    accept any safe integer as their `offset` parameter. The value of
    `offset` is also no longer coerced, so a valid type must be passed
    to the functions (Zach Bjornson).
    #26572
* http:
  * Aborted requests no longer emit the `end` or `error` events after
    `aborted` (Robert Nagy).
    #27984
    #20077
  * Data will no longer be emitted after a socket error (Robert Nagy).
    #28711
  * The legacy HTTP parser (previously available under the
    `--http-parser=legacy` flag) was removed (Anna Henningsen).
    #29589
  * The `host` option for HTTP requests is now validated to be a string
    value (Giorgos Ntemiris).
    #29568
  * The `request.connection` and `response.connection` properties are now
    runtime deprecated. The equivalent `request.socket` and `response.socket`
    should be used instead (Robert Nagy).
    #29015
* http, http2:
  * The default server timeout was removed (Ali Ijaz Sheikh).
    #27558
  * Brought 425 status code name into accordance with RFC 8470. The name
    changed from "Unordered Collection" to "Too Early" (Sergei Osipov).
    #29880
* lib:
  * The `error.errno` property will now always be a number. To get the
    string value, use `error.code` instead (Joyee Cheung).
    #28140
* module:
  * `module.createRequireFromPath()` is deprecated. Use
    `module.createRequire()` instead (cjihrig).
    #27951
* src:
  * Changing the value of `process.env.TZ` will now clear the tz cache.
    This affects the default time zone used by methods such as
    `Date.prototype.toString` (Ben Noordhuis).
    #20026
* stream:
  * The timing and behavior of streams was consolidated for a number of
    edge cases. Please look at the individual commits below for more
    information.

PR-URL: #29504
  • Loading branch information
BethGriggs committed Sep 9, 2019
1 parent 90b5f1b commit d72e3d2d30c724e37a7742527f20825cc2dbd673
@@ -2,9 +2,10 @@

Select a Node.js version below to view the changelog history:

* [Node.js 12](doc/changelogs/CHANGELOG_V12.md) - **Current**
* [Node.js 13](doc/changelogs/CHANGELOG_V13.md) - **Current**
* [Node.js 12](doc/changelogs/CHANGELOG_V12.md) - **Long Term Support**
* [Node.js 11](doc/changelogs/CHANGELOG_V11.md) - End-of-Life
* [Node.js 10](doc/changelogs/CHANGELOG_V10.md) — **Long Term Support**
* [Node.js 10](doc/changelogs/CHANGELOG_V10.md) — Long Term Support
* [Node.js 9](doc/changelogs/CHANGELOG_V9.md) — End-of-Life
* [Node.js 8](doc/changelogs/CHANGELOG_V8.md) — Long Term Support
* [Node.js 7](doc/changelogs/CHANGELOG_V7.md) — End-of-Life
@@ -22,12 +23,16 @@ release.
<!--lint disable maximum-line-length-->
<table>
<tr>
<th title="Current"><a href="doc/changelogs/CHANGELOG_V12.md">12</a><sup>Current</sup></th>
<th title="Current"><a href="doc/changelogs/CHANGELOG_V13.md">13</a><sup>Current</sup></th>
<th title="LTS Until 2022-04"><a href="doc/changelogs/CHANGELOG_V12.md">12</a><sup>LTS</sup></th>
<th title="LTS Until 2021-04"><a href="doc/changelogs/CHANGELOG_V10.md">10</a><sup>LTS</sup></th>
<th title="LTS Until 2019-12"><a href="doc/changelogs/CHANGELOG_V8.md">8</a><sup>LTS</sup></th>
</tr>
<tr>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V13.md#13.0.0">13.0.0</a></b><br/>
</td>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V12.md#12.12.0">12.12.0</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V12.md#12.11.1">12.11.1</a><br/>
<a href="doc/changelogs/CHANGELOG_V12.md#12.11.0">12.11.0</a><br/>
@@ -1,6 +1,6 @@
{
"NODE_MODULE_VERSION": [
{ "modules": 79, "runtime": "node", "variant": "v8_7.8", "versions": "13.0.0-pre" },
{ "modules": 79, "runtime": "node", "variant": "v8_7.8", "versions": "13" },
{ "modules": 78, "runtime": "node", "variant": "v8_7.7", "versions": "13.0.0-pre" },
{ "modules": 77, "runtime": "node", "variant": "v8_7.6", "versions": "13.0.0-pre" },
{ "modules": 76, "runtime": "electron", "variant": "electron", "versions": "8" },
@@ -1123,7 +1123,7 @@ to an empty string (`''` or `' '`) disables persistent REPL history.

### `NODE_REPL_EXTERNAL_MODULE=file`
<!-- YAML
added: REPLACEME
added: v13.0.0
-->

Path to a Node.js module which will be loaded in place of the built-in REPL.
@@ -2441,7 +2441,7 @@ Node.js versions.
### DEP0129: ChildProcess._channel
<!-- YAML
changes:
- version: REPLACEME
- version: v13.0.0
pr-url: https://github.com/nodejs/node/pull/27949
description: Runtime deprecation.
- version: v11.14.0
@@ -2459,7 +2459,7 @@ instead.
### DEP0130: Module.createRequireFromPath()
<!-- YAML
changes:
- version: REPLACEME
- version: v13.0.0
pr-url: https://github.com/nodejs/node/pull/27951
description: Runtime deprecation.
- version: v12.2.0
@@ -2476,7 +2476,7 @@ Module.createRequireFromPath() is deprecated. Please use
### DEP0131: Legacy HTTP parser
<!-- YAML
changes:
- version: REPLACEME
- version: v13.0.0
pr-url: https://github.com/nodejs/node/pull/29589
description: This feature has been removed.
- version: v12.3.0
@@ -2487,7 +2487,7 @@ changes:
Type: End-of-Life
The legacy HTTP parser, used by default in versions of Node.js prior to 12.0.0,
is deprecated and has been removed in REPLACEME. Prior to REPLACEME, the
is deprecated and has been removed in v13.0.0. Prior to v13.0.0, the
`--http-parser=legacy` command-line flag could be used to revert to using the
legacy parser.
@@ -2536,7 +2536,7 @@ an officially supported API.
### DEP0XXX: `WriteStream.open()` and `ReadStream.open()` are internal
<!-- YAML
changes:
- version: REPLACEME
- version: v13.0.0
pr-url: https://github.com/nodejs/node/pull/29061
description: Runtime deprecation.
-->
@@ -567,7 +567,7 @@ been aborted.
### request.connection
<!-- YAML
added: v0.3.0
deprecated: REPLACEME
deprecated: v13.0.0
-->

> Stability: 0 - Deprecated. Use [`request.socket`][].
@@ -679,7 +679,7 @@ request.removeHeader('Content-Type');
### request.reusedSocket

<!-- YAML
added: REPLACEME
added: v13.0.0
-->

* {boolean} Whether the request is send through a reused socket.
@@ -1104,7 +1104,7 @@ Limits maximum incoming headers count. If set to 0, no limit will be applied.
<!-- YAML
added: v0.9.12
changes:
- version: REPLACEME
- version: v13.0.0
pr-url: https://github.com/nodejs/node/pull/27558
description: The default timeout changed from 120s to 0 (no timeout).
-->
@@ -1128,7 +1128,7 @@ explicitly.
<!-- YAML
added: v0.9.12
changes:
- version: REPLACEME
- version: v13.0.0
pr-url: https://github.com/nodejs/node/pull/27558
description: The default timeout changed from 120s to 0 (no timeout).
-->
@@ -1222,7 +1222,7 @@ will result in a [`TypeError`][] being thrown.
### response.connection
<!-- YAML
added: v0.3.0
deprecated: REPLACEME
deprecated: v13.0.0
-->

> Stability: 0 - Deprecated. Use [`response.socket`][].
@@ -1742,7 +1742,7 @@ server.on('stream', (stream, headers, flags) => {
<!-- YAML
added: v8.4.0
changes:
- version: REPLACEME
- version: v13.0.0
pr-url: https://github.com/nodejs/node/pull/27558
description: The default timeout changed from 120s to 0 (no timeout).
-->
@@ -1771,7 +1771,7 @@ closed, although the server has already stopped allowing new sessions. See
<!-- YAML
added: v8.4.0
changes:
- version: REPLACEME
- version: v13.0.0
pr-url: https://github.com/nodejs/node/pull/27558
description: The default timeout changed from 120s to 0 (no timeout).
-->
@@ -1939,7 +1939,7 @@ error will be thrown.
<!-- YAML
added: v8.4.0
changes:
- version: REPLACEME
- version: v13.0.0
pr-url: https://github.com/nodejs/node/pull/29144
description: The `PADDING_STRATEGY_CALLBACK` has been made equivalent to
providing `PADDING_STRATEGY_ALIGNED` and `selectPadding`
@@ -2053,7 +2053,7 @@ server.listen(80);
<!-- YAML
added: v8.4.0
changes:
- version: REPLACEME
- version: v13.0.0
pr-url: https://github.com/nodejs/node/pull/29144
description: The `PADDING_STRATEGY_CALLBACK` has been made equivalent to
providing `PADDING_STRATEGY_ALIGNED` and `selectPadding`
@@ -2154,7 +2154,7 @@ server.listen(80);
<!-- YAML
added: v8.4.0
changes:
- version: REPLACEME
- version: v13.0.0
pr-url: https://github.com/nodejs/node/pull/29144
description: The `PADDING_STRATEGY_CALLBACK` has been made equivalent to
providing `PADDING_STRATEGY_ALIGNED` and `selectPadding`
@@ -2703,7 +2703,7 @@ been completed, aborted, or destroyed.
#### request.connection
<!-- YAML
added: v8.4.0
deprecated: REPLACEME
deprecated: v13.0.0
-->

> Stability: 0 - Deprecated. Use [`request.socket`][].
@@ -3004,7 +3004,7 @@ will result in a [`TypeError`][] being thrown.
#### response.connection
<!-- YAML
added: v8.4.0
deprecated: REPLACEME
deprecated: v13.0.0
-->

> Stability: 0 - Deprecated. Use [`response.socket`][].
@@ -167,7 +167,7 @@ listed as supporting a later version.
| v10.x | | | v10.0.0 | v10.16.0 | |
| v11.x | | | v11.0.0 | v11.8.0 | |
| v12.x | | | | v12.0.0 | v12.11.0 |
| v13.x | | | | | REPLACEME |
| v13.x | | | | | v13.0.0 |

\* Indicates that the N-API version was released as experimental

@@ -3152,7 +3152,7 @@ defined in [Section 7.2.14][] of the ECMAScript Language Specification.
### napi_detach_arraybuffer
<!-- YAML
added: REPLACEME
added: v13.0.0
-->
```C
@@ -398,7 +398,7 @@ stream.write('With ES6');
<!-- YAML
added: v0.3.0
changes:
- version: REPLACEME
- version: v13.0.0
pr-url: https://github.com/nodejs/node/pull/27685
description: Circular references now include a marker to the reference.
- version: v12.0.0
@@ -302,7 +302,7 @@ console.log(globalVar);

## Class: vm.Module
<!-- YAML
added: REPLACEME
added: v13.0.0
-->

> Stability: 1 - Experimental
@@ -626,7 +626,7 @@ const contextifiedSandbox = vm.createContext({ secret: 42 });

## Class: vm.SyntheticModule
<!-- YAML
added: REPLACEME
added: v13.0.0
-->

> Stability: 1 - Experimental
@@ -655,7 +655,7 @@ const module = new vm.SyntheticModule(['default'], function() {

### Constructor: new vm.SyntheticModule(exportNames, evaluateCallback\[, options\])
<!-- YAML
added: REPLACEME
added: v13.0.0
-->

* `exportNames` {string[]} Array of names that will be exported from the module.
@@ -675,7 +675,7 @@ the module to access information outside the specified `context`. Use

### syntheticModule.setExport(name, value)
<!-- YAML
added: REPLACEME
added: v13.0.0
-->

* `name` {string} Name of the export to set.
@@ -63,6 +63,7 @@
</table>

* Other Versions
* [13.x](CHANGELOG_V13.md)
* [12.x](CHANGELOG_V12.md)
* [11.x](CHANGELOG_V11.md)
* [10.x](CHANGELOG_V10.md)
@@ -65,6 +65,7 @@
</table>

* Other Versions
* [13.x](CHANGELOG_V13.md)
* [12.x](CHANGELOG_V12.md)
* [11.x](CHANGELOG_V11.md)
* [10.x](CHANGELOG_V10.md)
@@ -33,6 +33,7 @@
</table>

* Other Versions
* [13.x](CHANGELOG_V13.md)
* [12.x](CHANGELOG_V12.md)
* [11.x](CHANGELOG_V11.md)
* [10.x](CHANGELOG_V10.md)
@@ -44,6 +44,7 @@
</table>

* Other Versions
* [13.x](CHANGELOG_V13.md)
* [12.x](CHANGELOG_V12.md)
* [11.x](CHANGELOG_V11.md)
* [9.x](CHANGELOG_V9.md)
@@ -31,6 +31,7 @@
</table>

* Other Versions
* [13.x](CHANGELOG_V13.md)
* [12.x](CHANGELOG_V12.md)
* [10.x](CHANGELOG_V10.md)
* [9.x](CHANGELOG_V9.md)
@@ -31,6 +31,7 @@
</table>

* Other Versions
* [13.x](CHANGELOG_V13.md)
* [11.x](CHANGELOG_V11.md)
* [10.x](CHANGELOG_V10.md)
* [9.x](CHANGELOG_V9.md)

0 comments on commit d72e3d2

Please sign in to comment.
You can’t perform that action at this time.