-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix DEP0152 / deprecated PerformanceEntry.kind usage #440
Conversation
While I'm grateful for this, maybe we should also fix the deprecated format and an ignored parameter, see the node.js bug comment. If think |
Sure, Regarding obs.observe({ type: 'gc' });
obs.observe({ entryTypes: ['gc'] });
I don't believe checking It may be worth asking for clarification of nodejs/node#38412 (comment) around |
I dug a bit into the specs because nodejs/node#38412 (comment) mentioned aligning with them. Both MDN and the w3c spec describe The spec also mentions |
Node 16 moved the PerformancyEntry. See https://nodejs.org/docs/latest-v16.x/api/deprecations.html#deprecations_dep0152_extension_performanceentry_properties Remove `buffered` observe option This option has been removed in Node 16: https://nodejs.org/docs/latest-v16.x/api/perf_hooks.html#perf_hooks_performanceobserver_observe_options This was redundant in Node <16 because `false` was already the default: https://nodejs.org/docs/latest-v15.x/api/perf_hooks.html#perf_hooks_performanceobserver_observe_options > buffered <boolean> … Default: false. Remove buffering comment
8810e74
to
ec4b5e0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent, thank you. Sorry for the slow review.
I pushed to update the changelog and get CI to run.
@gruselhaus sorry, I just published v13.2.0 with the fix. |
Fix #435
Node 16 deprecated
PerformanceEntry.kind
, moving it toPerformanceEntry.detail.kind
.Use
entry.detail.kind
if available. Fall back to deprecatedentry.kind
.See https://nodejs.org/docs/latest-v16.x/api/deprecations.html#deprecations_dep0152_extension_performanceentry_properties