![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
maxhoffmann-emitter
Advanced tools
Event emitter implementation using the “frozen closure” pattern as described by Douglas Crockford. Heavily inspired by component/emitter.
Browser support: ES5 compatible browsers (IE9+)
npm install maxhoffmann/emitter --save
var Emitter = require('maxhoffmann-emitter');
var emitter = Emitter();
emitter.on('eventName', listener);
emitter.once('eventName', listener); // only listen once
emitter.off('eventName', listener); // remove specific listener
emitter.off('eventName'); // remove all listeners of this event
emitter.off(); // remove all listeners
emitter.trigger('eventName', arg1, arg2…); // arguments are optional
emitter.hasListeners('eventName');
emitter.hasListeners(); // returns true if any listeners are added
Note: This library is built with webpack to the UMD format. You can therefore use it with common.js and amd loaders or as a global variable.
cd
into directorynpm test
npm run build
to create a minimized and UMD format compatible version of the source file.
The MIT License
FAQs
event emitter built with the frozen closure pattern
We found that maxhoffmann-emitter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.