Repository navigation
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
zbjornson
left a comment
There was a problem hiding this comment.
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.kindif available. Fall back to deprecatedentry.kind.See https://nodejs.org/docs/latest-v16.x/api/deprecations.html#deprecations_dep0152_extension_performanceentry_properties