Repository navigation
Conversation
|
Review requested:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #67271 +/- ##
==========================================
+ Coverage 90.49% 90.50% +0.01%
==========================================
Files 805 805
Lines 285806 285870 +64
Branches 55172 55176 +4
==========================================
+ Hits 258647 258740 +93
+ Misses 17250 17207 -43
- Partials 9909 9923 +14
🚀 New features to boost your workflow:
|
joyeecheung
left a comment
There was a problem hiding this comment.
Code LGTM, thanks, with a comment on an unnecessary test
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
This pull request has conflicts with its base branch, removing the |
Commit Queue failed
The pull request was removed from the Commit Queue and labeled
commit-queue-failed
Full Commit Queue output |
bba6763 to
52aa301
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
Can you rebase it? |
Emit DEP0214 when async_hooks.createHook() is called, as the first step before putting it behind a flag. The inspector and the node.async_hooks trace event category use an internal createHook() and do not emit the warning. Refs: nodejs#61030 Signed-off-by: Matteo Collina <hello@matteocollina.com> Co-authored-by: Joyee Cheung <joyeec9h3@gmail.com>
52aa301 to
b319809
Compare
async_hooks.createHook()now emits a DEP0212 deprecation warning. This is the first step of the deprecation cycle suggested in #61030 (comment): warn in the 27 alpha, then require--enable-async-hooksin 27 current.The public
AsyncHookclass is unchanged. The inspector and thenode.async_hookstrace event category switch to a minimalInternalAsyncHookininternal/async_hooks, so enabling them does not emit the warning. Trace events still track promises (it emits thePROMISEevents from JavaScript), so that is now covered intest-trace-events-async-hooks.js.Printing the warning schedules a tick that a freshly enabled hook sees without a matching
init, so the tests that check exact hook invocations now run with--no-deprecation.Refs: #61030