Skip to content

Commit 30fe4ed

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: - Updated to node-api version 8 and 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 504ed7c commit 30fe4ed

File tree

7 files changed

+87
-6
lines changed

7 files changed

+87
-6
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ release.
7676
<a href="doc/changelogs/CHANGELOG_V14.md#14.0.0">14.0.0</a><br/>
7777
</td>
7878
<td valign="top">
79-
<b><a href="doc/changelogs/CHANGELOG_V12.md#12.21.0">12.21.0</a></b><br/>
79+
<b><a href="doc/changelogs/CHANGELOG_V12.md#12.22.0">12.22.0</a></b><br/>
80+
<a href="doc/changelogs/CHANGELOG_V12.md#12.21.0">12.21.0</a><br/>
8081
<a href="doc/changelogs/CHANGELOG_V12.md#12.20.2">12.20.2</a><br/>
8182
<a href="doc/changelogs/CHANGELOG_V12.md#12.20.1">12.20.1</a><br/>
8283
<a href="doc/changelogs/CHANGELOG_V12.md#12.20.0">12.20.0</a><br/>

doc/api/deprecations.md

+3
Original file line numberDiff line numberDiff line change
@@ -2410,6 +2410,9 @@ changes:
24102410
- version: v13.0.0
24112411
pr-url: https://github.com/nodejs/node/pull/29589
24122412
description: This feature has been removed.
2413+
- version: v12.22.0
2414+
pr-url: https://github.com/nodejs/node/pull/37603
2415+
description: Runtime deprecation.
24132416
- version: v12.3.0
24142417
pr-url: https://github.com/nodejs/node/pull/27498
24152418
description: Documentation-only.

doc/api/esm.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ added: v8.5.0
77
changes:
88
- version:
99
- v15.3.0
10+
- v12.22.0
1011
pr-url: https://github.com/nodejs/node/pull/35781
1112
description: Stabilize modules implementation.
1213
- version:

doc/api/n-api.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -5957,7 +5957,9 @@ This API may only be called from the main thread.
59575957
## node_api_get_module_file_name
59585958

59595959
<!-- YAML
5960-
added: v15.9.0
5960+
added:
5961+
- v15.9.0
5962+
- v12.22.0
59615963
-->
59625964

59635965
> Stability: 1 - Experimental

doc/api/v8.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,9 @@ setTimeout(() => { v8.setFlagsFromString('--notrace_gc'); }, 60e3);
226226
## `v8.takeCoverage()`
227227

228228
<!-- YAML
229-
added: v15.1.0
229+
added:
230+
- v15.1.0
231+
- v12.22.0
230232
-->
231233

232234
The `v8.takeCoverage()` method allows the user to write the coverage started by
@@ -241,7 +243,9 @@ disk unless [`v8.stopCoverage()`][] is invoked before the process exits.
241243
## `v8.stopCoverage()`
242244

243245
<!-- YAML
244-
added: v15.1.0
246+
added:
247+
- v15.1.0
248+
- v12.22.0
245249
-->
246250

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

doc/api/worker_threads.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1009,15 +1009,19 @@ immediately with an [`ERR_WORKER_NOT_RUNNING`][] error.
10091009

10101010
### `worker.performance`
10111011
<!-- YAML
1012-
added: v15.1.0
1012+
added:
1013+
- v15.1.0
1014+
- v12.22.0
10131015
-->
10141016

10151017
An object that can be used to query performance information from a worker
10161018
instance. Similar to [`perf_hooks.performance`][].
10171019

10181020
#### `performance.eventLoopUtilization([utilization1[, utilization2]])`
10191021
<!-- YAML
1020-
added: v15.1.0
1022+
added:
1023+
- v15.1.0
1024+
- v12.22.0
10211025
-->
10221026

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

doc/changelogs/CHANGELOG_V12.md

+66
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/>
@@ -72,6 +73,71 @@
7273
* [io.js](CHANGELOG_IOJS.md)
7374
* [Archive](CHANGELOG_ARCHIVE.md)
7475

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

0 commit comments

Comments
 (0)