Skip to content

Commit 337e70d

Browse files
yashLadhaaduh95
authored andcommitted
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. PR-URL: #41587 Refs: #40813 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Mary Marchini <oss@mmarchini.me> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent e0fa7e0 commit 337e70d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

doc/api/deprecations.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3088,6 +3088,24 @@ Type: Runtime.
30883088
This event was deprecated because it did not work with V8 promise combinators
30893089
which diminished its usefulness.
30903090

3091+
### DEP0161: `process._getActiveRequests()` and `process._getActiveHandles()`
3092+
3093+
<!-- YAML
3094+
changes:
3095+
- version: REPLACEME
3096+
pr-url: https://github.com/nodejs/node/pull/41587
3097+
description: Documentation-only deprecation.
3098+
-->
3099+
3100+
Type: Documentation-only
3101+
3102+
The `process._getActiveHandles()` and `process._getActiveRequests()`
3103+
functions are not intended for public use and can be removed in future
3104+
releases.
3105+
3106+
Use [`process.getActiveResourcesInfo()`][] to get a list of types of active
3107+
resources and not the actual references.
3108+
30913109
[Legacy URL API]: url.md#legacy-url-api
30923110
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
30933111
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
@@ -3159,6 +3177,7 @@ which diminished its usefulness.
31593177
[`os.networkInterfaces()`]: os.md#osnetworkinterfaces
31603178
[`os.tmpdir()`]: os.md#ostmpdir
31613179
[`process.env`]: process.md#processenv
3180+
[`process.getActiveResourcesInfo()`]: process.md#processgetactiveresourcesinfo
31623181
[`process.mainModule`]: process.md#processmainmodule
31633182
[`punycode`]: punycode.md
31643183
[`readable.readableEnded`]: stream.md#readablereadableended

0 commit comments

Comments
 (0)