Skip to content

Commit

Permalink
2019-05-07, Version 12.2.0 (Current)
Browse files Browse the repository at this point in the history
Notable changes:

* 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
* 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 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
* meta:
  * Added Christian Clauss (https://github.com/cclauss) to
    collaborators. #27554

PR-URL: #27578
  • Loading branch information
targos committed May 6, 2019
1 parent bb1eaee commit 492762e
Show file tree
Hide file tree
Showing 7 changed files with 148 additions and 14 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
6 changes: 3 additions & 3 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ be placed.

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

> Stability: 1 - Experimental
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions doc/api/deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
-->
Expand Down
4 changes: 2 additions & 2 deletions doc/api/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions doc/api/tls.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
133 changes: 133 additions & 0 deletions doc/changelogs/CHANGELOG_V12.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/node_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
#define SRC_NODE_VERSION_H_

#define NODE_MAJOR_VERSION 12
#define NODE_MINOR_VERSION 1
#define NODE_PATCH_VERSION 1
#define NODE_MINOR_VERSION 2
#define NODE_PATCH_VERSION 0

#define NODE_VERSION_IS_LTS 0
#define NODE_VERSION_LTS_CODENAME ""

#define NODE_VERSION_IS_RELEASE 0
#define NODE_VERSION_IS_RELEASE 1

#ifndef NODE_STRINGIFY
#define NODE_STRINGIFY(n) NODE_STRINGIFY_HELPER(n)
Expand Down

0 comments on commit 492762e

Please sign in to comment.