Skip to content

Commit

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

* deps:
  * Updated nghttp2 to 1.39.1. #28448
  * Updated npm to 6.10.0. #28525
* esm:
  * Implemented experimental "pkg-exports" proposal. A new `"exports"`
    field can be added to a module's `package.json` file to provide
    custom subpath aliasing. See
    https://github.com/jkrems/proposal-pkg-exports/ for more
    information. #28568
* http:
  * Added `response.writableFinished`.
    #28681
  * Exposed `headers`, `rawHeaders` and other fields on an
    `http.ClientRequest` `"information"` event.
    #28459
* inspector:
  * Added `inspector.waitForDebugger()`.
    #28453
* policy:
  * Added `--policy-integrity=sri` CLI option to mitigate policy
    tampering. If a policy integrity is specified and the policy does
    not have that integrity, Node.js will error prior to running any
    code. #28734
* readline,tty:
  * Exposed stream API from various methods which write characters.
    #28674
    #28721
* src:
  * Use cgroups to get memory limits. This improves the way we set
    the memory ceiling for a Node.js process. Previously we would use
    the physical memory size to estimate the necessary V8
    heap sizes. The physical memory size is not necessarily the correct
    limit, e.g. if the process is running inside a docker container or
    is otherwise constrained. This change adds the ability to get a
    memory limit set by linux cgroups, which is used by docker
    containers to set resource constraints.
    https://docs.docker.com/config/containers/resource_constraints/
    #27508

PR-URL: #28817
  • Loading branch information
targos committed Jul 23, 2019
1 parent 0ee1298 commit 0481a7f
Show file tree
Hide file tree
Showing 9 changed files with 217 additions and 17 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Expand Up @@ -28,7 +28,8 @@ release.
</tr>
<tr>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V12.md#12.6.0">12.6.0</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V12.md#12.7.0">12.7.0</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V12.md#12.6.0">12.6.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V12.md#12.5.0">12.5.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V12.md#12.4.0">12.4.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V12.md#12.3.1">12.3.1</a><br/>
Expand Down
4 changes: 2 additions & 2 deletions doc/api/cli.md
Expand Up @@ -150,7 +150,7 @@ Please see [customizing esm specifier resolution][] for example usage.

### `--experimental-exports`
<!-- YAML
added: REPLACEME
added: v12.7.0
-->

Enable experimental resolution using the `exports` field in `package.json`.
Expand Down Expand Up @@ -459,7 +459,7 @@ developers may leverage to detect deprecated API usage.

### `--policy-integrity=sri`
<!-- YAML
added: REPLACEME
added: v12.7.0
-->

> Stability: 1 - Experimental
Expand Down
2 changes: 1 addition & 1 deletion doc/api/http.md
Expand Up @@ -1466,7 +1466,7 @@ buffer. Returns `false` if all or part of the data was queued in user memory.

### response.writableFinished
<!-- YAML
added: REPLACEME
added: v12.7.0
-->

* {boolean}
Expand Down
2 changes: 1 addition & 1 deletion doc/api/inspector.md
Expand Up @@ -54,7 +54,7 @@ Return the URL of the active inspector, or `undefined` if there is none.

## inspector.waitForDebugger()
<!-- YAML
added: REPLACEME
added: v12.7.0
-->

Blocks until a client (existing or connected later) has sent
Expand Down
8 changes: 4 additions & 4 deletions doc/api/readline.md
Expand Up @@ -350,7 +350,7 @@ async function processLineByLine() {
<!-- YAML
added: v0.7.7
changes:
- version: REPLACEME
- version: v12.7.0
pr-url: https://github.com/nodejs/node/pull/28674
description: The stream's write() callback and return value are exposed.
-->
Expand All @@ -372,7 +372,7 @@ in a specified direction identified by `dir`.
<!-- YAML
added: v0.7.7
changes:
- version: REPLACEME
- version: v12.7.0
pr-url: https://github.com/nodejs/node/pull/28641
description: The stream's write() callback and return value are exposed.
-->
Expand Down Expand Up @@ -491,7 +491,7 @@ function completer(linePartial, callback) {
<!-- YAML
added: v0.7.7
changes:
- version: REPLACEME
- version: v12.7.0
pr-url: https://github.com/nodejs/node/pull/28674
description: The stream's write() callback and return value are exposed.
-->
Expand Down Expand Up @@ -537,7 +537,7 @@ if (process.stdin.isTTY)
<!-- YAML
added: v0.7.7
changes:
- version: REPLACEME
- version: v12.7.0
pr-url: https://github.com/nodejs/node/pull/28674
description: The stream's write() callback and return value are exposed.
-->
Expand Down
2 changes: 1 addition & 1 deletion doc/api/stream.md
Expand Up @@ -1087,7 +1087,7 @@ Is `true` if it is safe to call [`readable.read()`][stream-read].

##### readable.readableEncoding
<!-- YAML
added: REPLACEME
added: v12.7.0
-->

* {null|string}
Expand Down
8 changes: 4 additions & 4 deletions doc/api/tty.md
Expand Up @@ -103,7 +103,7 @@ process.stdout.on('resize', () => {
<!-- YAML
added: v0.7.7
changes:
- version: REPLACEME
- version: v12.7.0
pr-url: https://github.com/nodejs/node/pull/28721
description: The stream's write() callback and return value are exposed.
-->
Expand All @@ -124,7 +124,7 @@ direction identified by `dir`.
<!-- YAML
added: v0.7.7
changes:
- version: REPLACEME
- version: v12.7.0
pr-url: https://github.com/nodejs/node/pull/28721
description: The stream's write() callback and return value are exposed.
-->
Expand All @@ -149,7 +149,7 @@ is updated whenever the `'resize'` event is emitted.
<!-- YAML
added: v0.7.7
changes:
- version: REPLACEME
- version: v12.7.0
pr-url: https://github.com/nodejs/node/pull/28721
description: The stream's write() callback and return value are exposed.
-->
Expand Down Expand Up @@ -249,7 +249,7 @@ A `boolean` that is always `true`.
<!-- YAML
added: v0.7.7
changes:
- version: REPLACEME
- version: v12.7.0
pr-url: https://github.com/nodejs/node/pull/28721
description: The stream's write() callback and return value are exposed.
-->
Expand Down
199 changes: 199 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
Expand Up @@ -23,13 +23,13 @@
#define SRC_NODE_VERSION_H_

#define NODE_MAJOR_VERSION 12
#define NODE_MINOR_VERSION 6
#define NODE_PATCH_VERSION 1
#define NODE_MINOR_VERSION 7
#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 0481a7f

Please sign in to comment.