Skip to content

Commit 025b9f2

Browse files
AndreasMadsenMylesBorins
authored andcommitted
async_hooks: deprecate undocumented API
Backport-PR-URL: #18179 PR-URL: #16972 Refs: #14328 Refs: #15572 Reviewed-By: Anna Henningsen <[email protected]>
1 parent b5bc3f8 commit 025b9f2

14 files changed

+496
-363
lines changed

Diff for: doc/api/deprecations.md

+19
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,25 @@ function for [`util.inspect()`][] is deprecated. Use [`util.inspect.custom`][]
665665
instead. For backwards compatibility with Node.js prior to version 6.4.0, both
666666
may be specified.
667667
668+
<a id="DEP0085"></a>
669+
### DEP0085: AsyncHooks Sensitive API
670+
671+
Type: Runtime
672+
673+
The AsyncHooks Sensitive API was never documented and had various of minor
674+
issues, see https://github.com/nodejs/node/issues/15572. Use the `AsyncResource`
675+
API instead.
676+
677+
678+
<a id="DEP0086"></a>
679+
### DEP0086: Remove runInAsyncIdScope
680+
681+
Type: Runtime
682+
683+
`runInAsyncIdScope` doesn't emit the `before` or `after` event and can thus
684+
cause a lot of issues. See https://github.com/nodejs/node/issues/14328 for more
685+
details.
686+
668687
[`Buffer.allocUnsafeSlow(size)`]: buffer.html#buffer_class_method_buffer_allocunsafeslow_size
669688
[`Buffer.from(array)`]: buffer.html#buffer_class_method_buffer_from_array
670689
[`Buffer.from(buffer)`]: buffer.html#buffer_class_method_buffer_from_buffer

0 commit comments

Comments
 (0)