All notable changes to this project will be documented in this file.
Tags
- Features
- Bug Fixes
- Performance Improvements
- Enhancements
- Dependency Updates
- Breaking Changes
- Documentation
- Internal
- Unreleased
- wildcard events listeners will now receive event type as first argument (ab8df44)
Before
event.on('*', (payload) => {});
Now
event.on('*', (type, payload) => {});
- AsyncEvents (cb03774)
- do not expose
Map
methods (54d4c1e)
- update README (bde9633)
- event class extends
Map
(6944261)
- update README (02967b0)
- update
Event
class export (02967b0)
- removed
event.off
method (9af54d1)
Before
const event = new Events();
const handler = () => {};
event.on('a', handler);
// To Unsubscribe
event.off('a', handler);
// or
event.off('a');
After
const event = new Events();
const handler = () => {};
const unsubscribe = event.on('a', handler);
// To Unsubscribe
unsubscribe();
// or
event.unbindAll('a');
- freeze event instance (2102012)
- prefer arrow functions (043cc86)
- disable sideEffects for webpack compilation (8b2f0f8)
- perfer modules instead of browser (1db3597)
- support
*
wildcard event listener (baf787f) - remove private properties (15bc041)
- update LICENSE (26f258a)
- update LICENSE (bcf4a48)
- return immutable object while invoking the constructor function (b691adf)
- remove/update outdated api's from README.md (8db7c34)
- update typings (44ddfe2)
- add typings support (a5bd980)
- Initial Release: Javascript events