From 4934e4e48d9c31a8fcbbf14ffef3bf094ffe81b8 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 Documentation of deprecation notice `_getActiveRequestsInfo` and `_getActiveHandlesInfo` since they are internal usage and can be removed in future releases. --- doc/api/deprecations.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index adffb43c52825d..c1935da45e0f63 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -3085,6 +3085,24 @@ Type: Documentation-only This event was deprecated because it did not work with V8 promise combinators which diminished its usefulness. +### DEPXXXX: `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 @@ -3156,6 +3174,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