Skip to content
Permalink
Browse files

2019-05-07, Version 12.2.0 (Current)

Notable changes:

* deps:
  * Updated llhttp to 1.1.3. This fixes a bug that made Node.js' HTTP
    parser refuse any request URL that contained the "|" (vertical bar)
    character. #27595
* tls:
  * Added an `enableTrace()` method to `TLSSocket` and an `enableTrace`
    option to `tls.createServer()`. When enabled, TSL packet trace
    information is written to `stderr`. This can be used to debug TLS
    connection problems. #27497
    #27376
* cli:
  * Added a `--trace-tls` command-line flag that enables tracing of TLS
    connections without the need to modify existing application code.
    #27497
  * Added a `--cpu-prof-interval` command-line flag. It can be used to
    specify the sampling interval for the CPU profiles generated by
    `--cpu-prof`. #27535
* module:
  * Added the `createRequire()` method. It allows to create a require
    function from a file URL object, a file URL string or an absolute
    path string. The existing `createRequireFromPath()` method is now
    deprecated #27405.
  * Throw on `require('./path.mjs')`. This is technically a breaking
    change that should have landed with Node.js 12.0.0. It is necessary
    to have this to keep the possibility for a future minor version to
    load ES Modules with the require function.
    #27417
* repl:
  * The REPL now supports multi-line statements using `BigInt` literals
    as well as public and private class fields and methods.
    #27400
  * The REPL now supports tab autocompletion of file paths with `fs`
    methods. #26648
* meta:
  * Added Christian Clauss (https://github.com/cclauss) to
    collaborators. #27554

PR-URL: #27578
  • Loading branch information...
targos committed May 6, 2019
1 parent c476daf commit e006a8545e6ed45a4e1ba231e9abde794c033d02
Showing with 153 additions and 11 deletions.
  1. +2 −1 CHANGELOG.md
  2. +3 −3 doc/api/cli.md
  3. +2 −2 doc/api/deprecations.md
  4. +2 −2 doc/api/modules.md
  5. +3 −3 doc/api/tls.md
  6. +141 −0 doc/changelogs/CHANGELOG_V12.md
@@ -30,7 +30,8 @@ release.
</tr>
<tr>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V12.md#12.1.0">12.1.0</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V12.md#12.2.0">12.2.0</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V12.md#12.1.0">12.1.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V12.md#12.0.0">12.0.0</a><br/>
</td>
<td valign="top">
@@ -109,7 +109,7 @@ be placed.

### `--cpu-prof-interval`
<!-- YAML
added: REPLACEME
added: v12.2.0
-->

> Stability: 1 - Experimental
@@ -598,7 +598,7 @@ with old TLS clients or servers.

### `--tls-min-v1.2`
<!-- YAML
added: REPLACEME
added: v12.2.0
-->

Set default [`tls.DEFAULT_MIN_VERSION`][] to 'TLSv1.2'. This is the default for
@@ -653,7 +653,7 @@ of the event loop.

### `--trace-tls`
<!-- YAML
added: REPLACEME
added: v12.2.0
-->

Prints TLS packet trace information to `stderr`. This can be used to debug TLS
@@ -2440,10 +2440,10 @@ similar functions is not intended for public use. Use `ChildProcess.channel`
instead.
<a id="DEP0130"></a>
### DEP00XX: Module.createRequireFromPath()
### DEP0130: Module.createRequireFromPath()
<!-- YAML
changes:
- version: REPLACEME
- version: v12.2.0
pr-url: https://github.com/nodejs/node/pull/27405
description: Documentation-only.
-->
@@ -914,7 +914,7 @@ const builtin = require('module').builtinModules;

### module.createRequire(filename)
<!-- YAML
added: REPLACEME
added: v12.2.0
-->

* `filename` {string|URL} Filename to be used to construct the require
@@ -933,7 +933,7 @@ requireUtil('./some-tool');
### module.createRequireFromPath(filename)
<!-- YAML
added: v10.12.0
deprecated: REPLACEME
deprecated: v12.2.0
-->

* `filename` {string} Filename to be used to construct the relative require
@@ -586,7 +586,7 @@ connection is open.
<!-- YAML
added: v0.11.4
changes:
- version: REPLACEME
- version: v12.2.0
pr-url: https://github.com/nodejs/node/pull/27497
description: The `enableTrace` option is now supported.
- version: v5.0.0
@@ -731,7 +731,7 @@ to renegotiate will trigger an `'error'` event on the `TLSSocket`.

### tlsSocket.enableTrace()
<!-- YAML
added: REPLACEME
added: v12.2.0
-->

When enabled, TLS packet trace information is written to `stderr`. This can be
@@ -1129,7 +1129,7 @@ being issued by trusted CA (`options.ca`).
<!-- YAML
added: v0.11.3
changes:
- version: REPLACEME
- version: v12.2.0
pr-url: https://github.com/nodejs/node/pull/27497
description: The `enableTrace` option is now supported.
- version: v11.8.0
Oops, something went wrong.

0 comments on commit e006a85

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