From 6b88595142c94e7405fb51d29f5c954224fb03d8 Mon Sep 17 00:00:00 2001 From: Yash Ladha Date: Wed, 26 Jan 2022 15:49:22 +0530 Subject: [PATCH] doc: deprecate notice for process methods MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Documentation of deprecation notice `_getActiveRequestsInfo` and `_getActiveHandlesInfo` since they are internal usage and can be removed in future releases. PR-URL: https://github.com/nodejs/node/pull/41587 Refs: https://github.com/nodejs/node/pull/40813 Reviewed-By: Tobias Nießen Reviewed-By: Benjamin Gruenbaum Reviewed-By: Darshan Sen Reviewed-By: Matteo Collina Reviewed-By: Mary Marchini Reviewed-By: James M Snell Reviewed-By: Antoine du Hamel --- doc/api/deprecations.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index ce43934a68ae06..09c2cf9b35f8b6 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -3074,6 +3074,24 @@ Type: Documentation-only This event was deprecated because it did not work with V8 promise combinators which diminished its usefulness. +### DEP0161: `process._getActiveRequests()` and `process._getActiveHandles()` + + + +Type: Documentation-only + +The `process._getActiveHandles()` and `process._getActiveRequests()` +functions are not intended for public use and can be removed in future +releases. + +Use [`process.getActiveResourcesInfo()`][] to get a list of types of active +resources and not the actual references. + [Legacy URL API]: url.md#legacy-url-api [NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf [RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3 @@ -3145,6 +3163,7 @@ which diminished its usefulness. [`os.networkInterfaces()`]: os.md#osnetworkinterfaces [`os.tmpdir()`]: os.md#ostmpdir [`process.env`]: process.md#processenv +[`process.getActiveResourcesInfo()`]: process.md#processgetactiveresourcesinfo [`process.mainModule`]: process.md#processmainmodule [`punycode`]: punycode.md [`readable.readableEnded`]: stream.md#readablereadableended