From 8858950a9f1e214a99608251d62c7112d1916fcc 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 569d5ff576c9f0..b121cd7ab3a54a 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -3061,6 +3061,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 @@ -3132,6 +3150,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