Skip to content

2.0.0

Choose a tag to compare

@evert evert released this 09 Oct 17:04
· 342 commits to master since this release
  • Added: When calling emit, it's now possible to specify a callback that will be
    triggered after each method handled. This is dubbed the 'continueCallback' and
    can be used to implement strategy patterns.
  • Added: Promise object!
  • Changed: EventEmitter::listeners now returns just the callbacks for an event,
    and no longer returns the list by reference. The list is now automatically
    sorted by priority.
  • Update: Speed improvements.
  • Updated: It's now possible to remove all listeners for every event.
  • Changed: Now uses psr-4 autoloading.