- Updated Backbone and Underscore version ranges.
- Moved Backbone and Underscore to peerDependencies.
- Updated Backbone and Underscore version ranges.
- Moved Backbone and Underscore to peerDependencies.
- Updated Backbone dep to allow v1.3.3
- Bug fix: The UMD generated from rollup was setting
global
toundefined
.
- Updated Backbone dep to allow v1.3.2
- Updated Backbone dep to allow v1.2.3
- Updated Backbone dep to allow v1.2.2
- Breaking change: Commands have been removed. (see explanation)
- Refactor: Structure and build using babel-boilerplate
- Update Underscore and Backbone dependencies to 1.8.3 and 1.2.1 respectively to match Marionette.
-
Breaking change: Space-separated requests no longer return an Array. Instead, an Object is returned.
// old myChannel.request('thingOne thingTwo'); // => [replyOne, replyTwo] // new myChannel.request('thingOne thingTwo'); // => { thingOne: replyOne, thingTwo: replyTwo }
-
New feature:
Radio.reset()
is now a top-level API method that can be used to reset a channel, or all channels. Do note that channels continue to have their ownreset
method. -
New feature:
Radio.debugLog()
is now exposed...go forth and customize how Radio logs potential errors!
- Refactor: A small refactor to support Underscore 1.4.4 (the lowest version that Marionette supports)
- Bug fix: Fixes bug where
stopComplying
andstopReplying
would not remove the correct callbacks in certain situations
- Feature: DEBUG now warns when an already-registered Command or Request is overwritten
- Feature:
stopComplying
andstopReplying
now accept the same arguments asoff
- Corrects Underscore dependency in bower.json.
- Corrects Underscore dependency.
- Feature: All API methods of Commands ands Requests now support the space-separated syntax.
- Enhancement: Only Channels created through Radio's factory method will register themselves on the internal store of Channels
- Enhancement: Callback execution has been optimized
This update is not backwards compatible.
-
Feature:
channelName
is now a public property on each Channel. -
Feature: Requests and Commands can now have
"default"
handlers which will be called when the specified event isn't registered. -
API Change: The convenience connectX methods have been removed. In their place, the object syntax can be used for registering multiple events on channels. This makes the API of Radio more consistent with Backbone.Events. For instance,
myChannel.reply({ oneRequest: myCallback, anotherRequest: myCallback }, myContext);
- Fixes a bug where the top-level API would not pass the correct arguments to the underlying methods.
- Fixes Radio.VERSION in the built library
- Commands.react has been renamed to Commands.comply
- The Channel convenience methods no longer bind the context, instead deferring that responsibility to the wrapped methods themselves. This aids in stack traces and gives you the ability to unregister the methods individually.
- Debug mode now informs you when you attempt to unregister an event that was never registered. This is to help prevent memory leaks.
respond
has been renamed toreply
- More methods now return
this
, making the API more consistent internally, and with Backbone.Events
- More test coverage
- Tests completely rewritten
- Numerous bug fixes; more work on the library