Skip to content

Commit e066706

Browse files
AndreasMadsengibfahn
authored andcommitted
async_hooks: deprecate undocumented API
PR-URL: nodejs#16972 Backport-PR-URL: nodejs#18179 Refs: nodejs#14328 Refs: nodejs#15572 Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 0758d26 commit e066706

14 files changed

+496
-363
lines changed

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)