Releases: mantoni/hub.js
Releases · mantoni/hub.js
v0.14.0
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.
v0.13.0
NOTE: This release introduces breaking changes to the API!
hub.options
andhub.Options
have been removed. Pass an object with the
event name and theallResults
flag as the first argument toemit
instead.this.options
does no longer exist.this.allResults
is exposed directlry
instead.this.args
is now an array instead of function returning a copy of the
emitted argumentsthis.stopped
is now a boolean instead of a function returning a booleanthis.options.allResults
is now a boolean instead of a function returning
a boolean- Performance improvements and reduced call stack depth
- Using Browserify to create standalone browser module
- Run tests in Phantom.JS using Browserify and Phantomic
- Run tests in browsers with a standalone test HTML file generated with Consolify
v0.11.0
v0.10.0
v0.9.1
v0.9.0
v0.8.0
- Fix once, onceBefore and onceAfter with wildcards
- Fix for error events
- Fixed an issue with arguments being modified
- Changed documentation link to wiki page
- Replaced stategies with hub.options
- Up listen.js
- Fixed scope when calling emit on a view
- Test case naming
- Added test case for callback timeouts