- Removes
rxjs
dependency is no longer used.
- Removes
co
dependency which was never used
- Fixes certain conditions in which generators wern't handled correctly.
- Streamlines the library by dropping dependency on Rx.js in favour for generators.
- The
route
method now returns a promise you can use to know when eventline has finished handling an event. - The
start
method is no longer needed to start eventline handling events.
- Adds support for generator actions.
- Fixes crash in the last version of eventline.
- Exposes
matches
function used for pattern matching logic in Eventline to enable ability to add own custom patterns. - Removes dependencies which were installed but were only needed for development of this package and not at runtime.
- You can now return an empty array of actions to indicate you don't want anything to happen
- Adds abilty to provide array of actions to perform in order to the
.then
method
- Adds abilty for action to provide array of actions to perform in order
- Fixes crash when trying to log null error
- Fixes catching errors triggered in actions which return observables
- Fixes bug where a missing route would trigger a crash
- Fixes issue where later middleware wouldn't be triggered if an earlier one didn't implement all of the middleware methods
- Fixes issues with previous version not being built correctly
- Fixes issue with fix from previous version not working due to false positive
- Fixes crash when middleware lacked either the
before
orafter
method
- You can now declare routes that are triggered if at least one pattern matches,
for example with
eventline.on(patternA, patternB)
if either pattern A or B match then Eventline will use that route - If an action fails to return an event then Eventline will automatically make sure the next action has the original event that the last action failed to return
- Explicity declares lodash dependency used by Eventline
- Fixes bug where errors in actions could stop Eventline handling all events in the future
- Adds sanity check for older RxJS versions to remind developers to check they are using the correct version of RxJS when they are having problems
- Fixes circular json error on built in exception handler
- Fixes event showing up as
[object Object]
in exception error message
- Removes dependencies on external stack tracing libraries
- Fixes issues with previous version not being built correctly
- The default exception handler now logs the stack trace to help you understand the error
- Fixes issues with previous version not being built correctly
- Handles events that aren't matched by any route as an error
- Strings in patterns are now case-insensitive (i.e "Hello" will match "hello" and "HELLO")
Router
renamed toEventline
to prevent confusion with the concept of a router for API frameworks. This framework is between a router and a eventbus so this reflects that- We now handle exceptions and log them to the console to prevent server crashes. You can provide your own exception handler by setting your function on the new
exceptionHandler
property for your eventline. - We now provide an example for eventline
- We now bundle a simple
when
action by default which allows you to optionally switch on and off individual actions for a route based on pattern matching
- Initial Release