node: events.setMaxListeners()
Is your feature request related to a problem? Please describe.
Node.js introduced events.setMaxListeners() function since v15.4.0, but deno_std's node compatibility layer lacks this API. Some existing libraries depending on this API does not work on Deno.
Describe the solution you'd like
It would be great if deno_std's node compatibility layer also provides the same name of function.
Describe alternatives you've considered
@kt3k I want to get into Deno (I have prior Rust and Node experience), Can I take this one?
@geofmureithi yes, please!
Looking at the main branch, there is this method.
https://github.com/denoland/deno_std/blob/main/node/_events.mjs#L141
@dahlia Am I missing something?
FYI, I am a first time contributor to deno 😅.
@geofmureithi Node.js provides module-level setMaxListeners() function besides EventEmitter.setMaxListeners() method. Currently deno_std/node only provides the latter.
Let me make an attempt before the end of the week and see how it goes.