- API change: Replies now send a new
EventMessage
object instead of plain object. - API change: Changed the way
EventMessage.replyError
serializes the error object to something more meaningful. - API change: Changed events to fire synchronously as an experiment. Asynchronous handling seems to cause more trouble that it's worth.
- API change: Removed
calamity.proxy()
, it didn't really make sense. - API change: Renamed
EventBus
toBus
. - API change: Renamed
EventMessage
toMessage
. - API change: Rewrote
Bridge
to serve as a basic bridge that can be extended. - Feature: Implemented
replyError()
onEventMessage
to allow for easy handling of errors. - Feature: Implemented
toJSON()
andfromJSON()
onEventMessage
. - Feature: Implemented
getRequired()
andgetOptional()
onEventMessage
for data retrieval. - Feature: Implemented
catch()
onEventMessage
to handle automatic catching of asynchronous errors. (pull/2) - Feature:
getOptional
andgetRequired
onEventMessage
can now return deep values using JSON dot syntax. - Fix:
EventMessages
with empty datasets would throw undefined errors withgetRequired
andgetOptional
.
- Fix:
Subscription
'sunsubscribe()
contained a typo, causing it to never work.
- Feature: Added support for commands via
send()
. - Feature: Added support for basic event bridges via
bridge()
.
- Fix: Added AMD load header. (pull/1)
- API change: Removed initial underscore from
_trigger()
,_subscribe()
, and_publish()
onProxyMixin
andEmitterMixin
. It makes assumptions about code style. - Fix: Browser initialisation.
- Fix: Bug where
EmitterMixin
would not correctly set default context.
- Feature: Implemented
ProxyMixin
for easy global event bus handling. - Feature: Implemented
Subscription
objects. - Feature: Implemented
EmitterMixin
for easy attachment of an instance-localEventBus
.
npm
related fixes.
- Initial public release.
- Feature:
EventBus
implementation.