Skip to content

3.0.0

Compare
Choose a tag to compare
@matthewgoslett matthewgoslett released this 18 Jul 13:16
· 6 commits to master since this release

Changelog

3.0.0 - 2017-07-18

  • EventValidatorInterface->validates() renamed to ->validate()
  • EventValidatorInterface->validate() now returns a promise resolving to a ValidationResult instance instead of bool
  • The validation fail handler callback now receives a ValidationResult instead of the event and a validator
  • dispatch() now returns a promise
  • dispatchBatch() now returns a promise
  • Events are now validated on dispatch, and will reject the promise with a ValidationResult when validation fails