NOTE: This release introduces breaking changes to the API!
This realease replaces before
, after
, related methods and the phase concept
with 'filters'. Filters are described in detail in the documentation.
Views are now implemented as a separate module: hub-namespace.
- Removed
before
,after
,onceBefore
andonceAfter
. - Removed
this.stop()
andthis.stopped
. - Removed
un
andview
. - Removed the ability to register mutliple event listeners at once
(on({...})
andon(prefix, {...})
). - Matchers and listeners are not executed in separate phases anymore. Throwing
in a matcher will still invoke the listeners. - Adding a listener in a matcher will no longer execute the listener in the
current emit call. - Removed namespaced error events. Errors are only emitted to
error
listeners
if present. - Not emitting
error
events to matchers. - Not emitting
newListener
andremoveListener
events to matchers. - Renamed
removeAllMatching
toremoveMatchingListeners
. - Added
addFilter
,removeFilter
,filterOnce
,filters
,
filtersMatching
,removeAllFilters
,removeMatchingFilters
. - Emitting
newFilter
andremoveFilter
events. - Fix: Unsubscribing listeners registered with
once
did nothing. - Upgraded consolify to v0.4.0 and added browser-reload.
- Added benchmarks and improved wildcard emit performance.