Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRobert Nagy <ronagy@icloud.com>2022-04-08 13:29:24 +0300
committerGitHub <noreply@github.com>2022-04-08 13:29:24 +0300
commit58e645de6314be07e1d321db078d4d674f877e5a (patch)
treee5c6ca5ba5d3fa73cfb69bb0d9c0df9e56d71e81 /doc
parentd36b60e69a00b60b8f2c260b8c376c9a16a152df (diff)
stream: remove thenable support
Remove support for returning thenables in stream implementation methods. This is causing more confusion and issues than it's worth. Refs: https://github.com/nodejs/node/issues/39535 PR-URL: https://github.com/nodejs/node/pull/40773 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/deprecations.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md
index b154c96c9eb..507ef307e60 100644
--- a/doc/api/deprecations.md
+++ b/doc/api/deprecations.md
@@ -3019,6 +3019,9 @@ it was an aborted or graceful destroy.
<!-- YAML
changes:
+ - version: REPLACEME
+ pr-url: https://github.com/nodejs/node/pull/40773
+ description: End-of-life.
- version:
- v17.2.0
- v16.14.0
@@ -3026,7 +3029,7 @@ changes:
description: Documentation-only deprecation.
-->
-Type: Documentation-only
+Type: End-of-Life
An undocumented feature of Node.js streams was to support thenables in
implementation methods. This is now deprecated, use callbacks instead and avoid