Skip to content

Commit 8fcbe98

Browse files
committed
2021-03-30, Version 12.22.0 'Erbium' (LTS)
Notable changes The legacy HTTP parser is runtime deprecated: - The legacy HTTP parser, selected by the `--http-parser=legacy` command line option, is deprecated with the pending End-of-Life of Node.js 10.x (where it is the only HTTP parser implementation provided) at the end of April 2021. It will now warn on use but otherwise continue to function and may be removed in a future Node.js 12.x release. - The default HTTP parser based on llhttp is not affected. By default it is stricter than the now deprecated legacy HTTP parser. If interoperability with HTTP implementations that send invalid HTTP headers is required, the HTTP parser can be started in a less secure mode with the `--insecure-http-parser` command line option. ES Modules: - ES Modules are now considered stable. node-api: - Added an experimental API to allow retrieval of the add-on file name. New API's to control code coverage data collection: - `v8.stopCoverage()` and `v8.takeCoverage()` have been added. New API to monitor event loop utilization by Worker threads - `worker.performance.eventLoopUtilization()` has been added. PR-URL: #37797
1 parent 1872625 commit 8fcbe98

9 files changed

+75
-12
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ release.
2828
</tr>
2929
<tr>
3030
<td valign="top">
31-
<b><a href="doc/changelogs/CHANGELOG_V12.md#12.21.0">12.21.0</a></b><br/>
31+
<b><a href="doc/changelogs/CHANGELOG_V12.md#12.22.0">12.22.0</a></b><br/>
32+
<a href="doc/changelogs/CHANGELOG_V12.md#12.21.0">12.21.0</a><br/>
3233
<a href="doc/changelogs/CHANGELOG_V12.md#12.20.2">12.20.2</a><br/>
3334
<a href="doc/changelogs/CHANGELOG_V12.md#12.20.1">12.20.1</a><br/>
3435
<a href="doc/changelogs/CHANGELOG_V12.md#12.20.0">12.20.0</a><br/>

doc/api/cli.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ Specify the file name of the heap profile generated by `--heap-prof`.
384384
<!-- YAML
385385
added: v11.4.0
386386
changes:
387-
- version: REPLACEME
387+
- version: v12.22.0
388388
pr-url: https://github.com/nodejs/node/pull/37603
389389
description: The legacy HTTP parser will emit a deprecation warning.
390390
-->

doc/api/deprecations.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2469,7 +2469,7 @@ Module.createRequireFromPath() is deprecated. Please use [`module.createRequire(
24692469
### DEP0131: Legacy HTTP parser
24702470
<!-- YAML
24712471
changes:
2472-
- version: REPLACEME
2472+
- version: v12.22.0
24732473
pr-url: https://github.com/nodejs/node/pull/37603
24742474
description: Runtime deprecation.
24752475
- version: v12.3.0

doc/api/esm.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
added: v8.5.0
77
changes:
88
- version:
9-
- REPLACEME
9+
- v12.22.0
1010
pr-url: https://github.com/nodejs/node/pull/35781
1111
description: Stabilize modules implementation.
1212
- version:

doc/api/n-api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5796,7 +5796,7 @@ This API may only be called from the main thread.
57965796
## node_api_get_module_file_name
57975797

57985798
<!-- YAML
5799-
added: REPLACEME
5799+
added: v12.22.0
58005800
-->
58015801

58025802
> Stability: 1 - Experimental

doc/api/v8.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ setTimeout(() => { v8.setFlagsFromString('--notrace_gc'); }, 60e3);
217217
## `v8.takeCoverage()`
218218

219219
<!-- YAML
220-
added: REPLACEME
220+
added: v12.22.0
221221
-->
222222

223223
The `v8.takeCoverage()` method allows the user to write the coverage started by
@@ -232,7 +232,7 @@ disk, unless [`v8.stopCoverage()`][] is invoked before the process exits.
232232
## `v8.stopCoverage()`
233233

234234
<!-- YAML
235-
added: REPLACEME
235+
added: v12.22.0
236236
-->
237237

238238
The `v8.stopCoverage()` method allows the user to stop the coverage collection

doc/api/worker_threads.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -769,15 +769,15 @@ immediately with an [`ERR_WORKER_NOT_RUNNING`][] error.
769769

770770
### `worker.performance`
771771
<!-- YAML
772-
added: REPLACEME
772+
added: v12.22.0
773773
-->
774774

775775
An object that can be used to query performance information from a worker
776776
instance. Similar to [`perf_hooks.performance`][].
777777

778778
#### `performance.eventLoopUtilization([utilization1[, utilization2]])`
779779
<!-- YAML
780-
added: REPLACEME
780+
added: v12.22.0
781781
-->
782782

783783
* `utilization1` {Object} The result of a previous call to

doc/changelogs/CHANGELOG_V12.md

+62
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
</tr>
1212
<tr>
1313
<td valign="top">
14+
<a href="#12.22.0">12.22.0</a><br/>
1415
<a href="#12.21.0">12.21.0</a><br/>
1516
<a href="#12.20.2">12.20.2</a><br/>
1617
<a href="#12.20.1">12.20.1</a><br/>
@@ -69,6 +70,67 @@
6970
* [io.js](CHANGELOG_IOJS.md)
7071
* [Archive](CHANGELOG_ARCHIVE.md)
7172

73+
<a id="12.22.0"></a>
74+
## 2021-03-30, Version 12.22.0 'Erbium' (LTS), @richardlau
75+
76+
### Notable changes
77+
78+
#### The legacy HTTP parser is runtime deprecated
79+
80+
The legacy HTTP parser, selected by the `--http-parser=legacy` command line
81+
option, is deprecated with the pending End-of-Life of Node.js 10.x (where it
82+
is the only HTTP parser implementation provided) at the end of April 2021. It
83+
will now warn on use but otherwise continue to function and may be removed in
84+
a future Node.js 12.x release.
85+
86+
The default HTTP parser based on llhttp is not affected. By default it is
87+
stricter than the now deprecated legacy HTTP parser. If interoperability with
88+
HTTP implementations that send invalid HTTP headers is required, the HTTP
89+
parser can be started in a less secure mode with the
90+
[`--insecure-http-parser`](https://nodejs.org/docs/latest-v12.x/api/cli.html#cli_insecure_http_parser)
91+
command line option.
92+
93+
Contributed by Beth Griggs [#37603](https://github.com/nodejs/node/pull/37603).
94+
95+
#### ES Modules
96+
97+
ES Modules are now considered stable.
98+
99+
Contributed by Guy Bedford [#35781](https://github.com/nodejs/node/pull/35781)
100+
101+
#### node-api
102+
103+
Added an experimental API to allow retrieval of the add-on file name.
104+
105+
Contributed by Gabriel Schulhof [#37195](https://github.com/nodejs/node/pull/37195).
106+
107+
#### New API's to control code coverage data collection
108+
109+
`v8.stopCoverage()` and `v8.takeCoverage()` have been added.
110+
111+
Contributed by Joyee Cheung [#33807](https://github.com/nodejs/node/pull/33807).
112+
113+
#### New API to monitor event loop utilization by Worker threads
114+
115+
`worker.performance.eventLoopUtilization()` has been added.
116+
117+
Contributed by Trevor Norris [#35664](https://github.com/nodejs/node/pull/35664).
118+
119+
### Commits
120+
121+
* [[`1872625990`](https://github.com/nodejs/node/commit/1872625990)] - **(SEMVER-MINOR)** **deps**: update to cjs-module-lexer@1.1.0 (Guy Bedford) [#37712](https://github.com/nodejs/node/pull/37712)
122+
* [[`dfa04d9035`](https://github.com/nodejs/node/commit/dfa04d9035)] - **deps**: V8: cherry-pick beebee4f80ff (Peter Marshall) [#37293](https://github.com/nodejs/node/pull/37293)
123+
* [[`bf8733fe22`](https://github.com/nodejs/node/commit/bf8733fe22)] - **doc**: mark modules implementation as stable (Guy Bedford) [#35781](https://github.com/nodejs/node/pull/35781)
124+
* [[`0a35d49f56`](https://github.com/nodejs/node/commit/0a35d49f56)] - ***Revert*** "**embedding**: make Stop() stop Workers" (Anna Henningsen) [#32623](https://github.com/nodejs/node/pull/32623)
125+
* [[`a0b610450a`](https://github.com/nodejs/node/commit/a0b610450a)] - **(SEMVER-MINOR)** **http**: runtime deprecate legacy HTTP parser (Beth Griggs) [#37603](https://github.com/nodejs/node/pull/37603)
126+
* [[`f5692093d3`](https://github.com/nodejs/node/commit/f5692093d3)] - **(SEMVER-MINOR)** **node-api**: allow retrieval of add-on file name (Gabriel Schulhof) [#37195](https://github.com/nodejs/node/pull/37195)
127+
* [[`6cef0e3678`](https://github.com/nodejs/node/commit/6cef0e3678)] - **src,test**: add regression test for nested Worker termination (Anna Henningsen) [#32623](https://github.com/nodejs/node/pull/32623)
128+
* [[`d7a4ccdf09`](https://github.com/nodejs/node/commit/d7a4ccdf09)] - **test**: correct test-worker-eventlooputil (Gerhard Stoebich) [#35891](https://github.com/nodejs/node/pull/35891)
129+
* [[`0f6d44500c`](https://github.com/nodejs/node/commit/0f6d44500c)] - **test**: add cpu-profiler-crash test (Santiago Gimeno) [#37293](https://github.com/nodejs/node/pull/37293)
130+
* [[`86f34ee18c`](https://github.com/nodejs/node/commit/86f34ee18c)] - **(SEMVER-MINOR)** **v8**: implement v8.stopCoverage() (Joyee Cheung) [#33807](https://github.com/nodejs/node/pull/33807)
131+
* [[`8ddea3f16d`](https://github.com/nodejs/node/commit/8ddea3f16d)] - **(SEMVER-MINOR)** **v8**: implement v8.takeCoverage() (Joyee Cheung) [#33807](https://github.com/nodejs/node/pull/33807)
132+
* [[`eec7542781`](https://github.com/nodejs/node/commit/eec7542781)] - **(SEMVER-MINOR)** **worker**: add eventLoopUtilization() (Trevor Norris) [#35664](https://github.com/nodejs/node/pull/35664)
133+
72134
<a id="12.21.0"></a>
73135
## 2021-02-23, Version 12.21.0 'Erbium' (LTS), @richardlau
74136

src/node_version.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
#define SRC_NODE_VERSION_H_
2424

2525
#define NODE_MAJOR_VERSION 12
26-
#define NODE_MINOR_VERSION 21
27-
#define NODE_PATCH_VERSION 1
26+
#define NODE_MINOR_VERSION 22
27+
#define NODE_PATCH_VERSION 0
2828

2929
#define NODE_VERSION_IS_LTS 1
3030
#define NODE_VERSION_LTS_CODENAME "Erbium"
3131

32-
#define NODE_VERSION_IS_RELEASE 0
32+
#define NODE_VERSION_IS_RELEASE 1
3333

3434
#ifndef NODE_STRINGIFY
3535
#define NODE_STRINGIFY(n) NODE_STRINGIFY_HELPER(n)

0 commit comments

Comments
 (0)