Skip to content

Commit

Permalink
2019-10-22, Version 13.0.0 (Current)
Browse files Browse the repository at this point in the history
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 Oct 22, 2019
1 parent 31217a8 commit 42bf0c8
Show file tree
Hide file tree
Showing 23 changed files with 278 additions and 27 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,7 @@

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

* [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
Expand All @@ -22,12 +23,16 @@ release.
<!--lint disable maximum-line-length-->
<table>
<tr>
<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.13.0">12.13.0</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V12.md#12.12.0">12.12.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V12.md#12.11.1">12.11.1</a><br/>
Expand Down
2 changes: 1 addition & 1 deletion doc/abi_version_registry.json
@@ -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" },
Expand Down
2 changes: 1 addition & 1 deletion doc/api/cli.md
Expand Up @@ -1136,7 +1136,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.
Expand Down
10 changes: 5 additions & 5 deletions doc/api/deprecations.md
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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.
Expand Down Expand Up @@ -2536,7 +2536,7 @@ an officially supported API.
### DEP0135: `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.
-->
Expand Down
10 changes: 5 additions & 5 deletions doc/api/http.md
Expand Up @@ -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`][].
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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).
-->
Expand All @@ -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).
-->
Expand Down Expand Up @@ -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`][].
Expand Down
14 changes: 7 additions & 7 deletions doc/api/http2.md
Expand Up @@ -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).
-->
Expand Down Expand Up @@ -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).
-->
Expand Down Expand Up @@ -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`
Expand Down Expand Up @@ -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`
Expand Down Expand Up @@ -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`
Expand Down Expand Up @@ -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`][].
Expand Down Expand Up @@ -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`][].
Expand Down
4 changes: 2 additions & 2 deletions doc/api/n-api.md
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion doc/api/util.md
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions doc/api/vm.md
Expand Up @@ -302,7 +302,7 @@ console.log(globalVar);

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

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

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

> Stability: 1 - Experimental
Expand Down Expand Up @@ -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.
Expand All @@ -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.
Expand Down
1 change: 1 addition & 0 deletions doc/changelogs/CHANGELOG_IOJS.md
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions doc/changelogs/CHANGELOG_V010.md
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions doc/changelogs/CHANGELOG_V012.md
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions doc/changelogs/CHANGELOG_V10.md
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions doc/changelogs/CHANGELOG_V11.md
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions doc/changelogs/CHANGELOG_V12.md
Expand Up @@ -35,6 +35,7 @@
</table>

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

0 comments on commit 42bf0c8

Please sign in to comment.