Skip to content

Commit 07a4fa3

Browse files
committed
async_hooks: deprecate undocumented API
PR-URL: #16972 Refs: #14328 Refs: #15572 Reviewed-By: Anna Henningsen <[email protected]>
1 parent 97ba69f commit 07a4fa3

14 files changed

+496
-363
lines changed

doc/api/deprecations.md

+18
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,24 @@ On the other hand, `node-inspect` may be installed locally through a package
780780
manager, as it is published on the npm registry under the same name. No source
781781
code modification is necessary if that is done.
782782
783+
<a id="DEP0085"></a>
784+
### DEP0085: AsyncHooks Sensitive API
785+
786+
Type: Runtime
787+
788+
The AsyncHooks Sensitive API was never documented and had various of minor
789+
issues, see https://github.com/nodejs/node/issues/15572. Use the `AsyncResource`
790+
API instead.
791+
792+
793+
<a id="DEP0086"></a>
794+
### DEP0086: Remove runInAsyncIdScope
795+
796+
Type: Runtime
797+
798+
`runInAsyncIdScope` doesn't emit the `before` or `after` event and can thus
799+
cause a lot of issues. See https://github.com/nodejs/node/issues/14328 for more
800+
details.
783801
784802
[`Buffer.allocUnsafeSlow(size)`]: buffer.html#buffer_class_method_buffer_allocunsafeslow_size
785803
[`Buffer.from(array)`]: buffer.html#buffer_class_method_buffer_from_array

0 commit comments

Comments
 (0)