From 7334bb57bcb46457f7b66c792091083faa046af5 Mon Sep 17 00:00:00 2001 From: Paolo Insogna Date: Fri, 1 Apr 2022 15:58:14 +0200 Subject: [PATCH] doc: document breaking change in `http.IncomingMessage` `'close'` event PR-URL: https://github.com/nodejs/node/pull/42521 Fixes: https://github.com/nodejs/node/issues/38924 Refs: https://github.com/nodejs/node/pull/33035 Reviewed-By: Robert Nagy Reviewed-By: Beth Griggs Reviewed-By: Antoine du Hamel --- doc/api/http.md | 7 ++++++- doc/changelogs/CHANGELOG_V16.md | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/api/http.md b/doc/api/http.md index 8d2fb5b0eb2..ca92068d000 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -2102,9 +2102,14 @@ Emitted when the request has been aborted. -Indicates that the underlying connection was closed. +Emitted when the request has been completed. ### `message.aborted` diff --git a/doc/changelogs/CHANGELOG_V16.md b/doc/changelogs/CHANGELOG_V16.md index 95e423070cb..e6c34e8d1ea 100644 --- a/doc/changelogs/CHANGELOG_V16.md +++ b/doc/changelogs/CHANGELOG_V16.md @@ -2801,6 +2801,7 @@ Contributed by Michaël Zasso - [#37587](https://github.com/nodejs/node/pull/375 * **deps**: update llhttp to 6.0.0 (Fedor Indutny) [#38277](https://github.com/nodejs/node/pull/38277) * **deps**: upgrade npm to 7.10.0 (Ruy Adorno) [#38254](https://github.com/nodejs/node/pull/38254) * **(SEMVER-MINOR)** **http**: add http.ClientRequest.getRawHeaderNames() (simov) [#37660](https://github.com/nodejs/node/pull/37660) +* **(SEMVER-MAJOR)** **http**: use `autoDestroy: true` in incoming message (Daniele Belardi) [#33035](https://github.com/nodejs/node/pull/33035) * **(SEMVER-MAJOR)** **lib,src**: update cluster to use Parent (Michael Dawson) [#36478](https://github.com/nodejs/node/pull/36478) * **(SEMVER-MINOR)** **module**: add support for `node:`‑prefixed `require(…)` calls (ExE Boss) [#37246](https://github.com/nodejs/node/pull/37246) * **(SEMVER-MINOR)** **perf\_hooks**: add histogram option to timerify (James M Snell) [#37475](https://github.com/nodejs/node/pull/37475)