Skip to content

Commit 8858950

Browse files
yashLadhadanielleadams
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 <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Mary Marchini <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
1 parent d2c1624 commit 8858950

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

doc/api/deprecations.md

+19
Original file line numberDiff line numberDiff line change
@@ -3061,6 +3061,24 @@ Type: Documentation-only
30613061
This event was deprecated because it did not work with V8 promise combinators
30623062
which diminished its usefulness.
30633063

3064+
### DEP0161: `process._getActiveRequests()` and `process._getActiveHandles()`
3065+
3066+
<!-- YAML
3067+
changes:
3068+
- version: REPLACEME
3069+
pr-url: https://github.com/nodejs/node/pull/41587
3070+
description: Documentation-only deprecation.
3071+
-->
3072+
3073+
Type: Documentation-only
3074+
3075+
The `process._getActiveHandles()` and `process._getActiveRequests()`
3076+
functions are not intended for public use and can be removed in future
3077+
releases.
3078+
3079+
Use [`process.getActiveResourcesInfo()`][] to get a list of types of active
3080+
resources and not the actual references.
3081+
30643082
[Legacy URL API]: url.md#legacy-url-api
30653083
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
30663084
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
@@ -3132,6 +3150,7 @@ which diminished its usefulness.
31323150
[`os.networkInterfaces()`]: os.md#osnetworkinterfaces
31333151
[`os.tmpdir()`]: os.md#ostmpdir
31343152
[`process.env`]: process.md#processenv
3153+
[`process.getActiveResourcesInfo()`]: process.md#processgetactiveresourcesinfo
31353154
[`process.mainModule`]: process.md#processmainmodule
31363155
[`punycode`]: punycode.md
31373156
[`readable.readableEnded`]: stream.md#readablereadableended

0 commit comments

Comments
 (0)