ionic-team / rollup-plugin-node-polyfills

MIT License
139 stars 59 forks source link

Events polyfill is not up to date with latest version of Node.js #8

Open eamonnmg opened 4 years ago

eamonnmg commented 4 years ago

The events.js polyfill is not up to date with the latest Node.js

For example, the polyfill is missing the EventEmitter.prototype.off method. This was introduced to node in version 10.0.0 (see https://nodejs.org/dist/latest-v14.x/docs/api/events.html#events_emitter_off_eventname_listener)

SamBroner commented 4 years ago

Running into this as well. Should be an easy fix as it's just an alias for removeListener. https://nodejs.org/api/events.html#events_emitter_off_eventname_listener

arch1995 commented 1 year ago

Running into this as well, Found missing events.rawListeners(eventName) https://nodejs.org/api/events.html#emitterrawlistenerseventname