Skip to content

v5.0.0-rc.3

Pre-release
Pre-release

Choose a tag to compare

@lindyhopchris lindyhopchris released this 14 Oct 13:00
· 53 commits to develop since this release

What's Changed

Added

  • BREAKING Command and query validators can now return early on the first validation failure, by marking the validator with the stopOnFirstFailure() method. This is technically a breaking change as the method was added to the validator interface; however, if you are using the Validator class provided by this package, it now implements this method.
  • Middleware that extend ValidateCommand and ValidateQuery can mark themselves as stopping on the first failure by implementing the Bail interface, or overloading the stopOnFirstFailure() method to return true.

Full Changelog: v5.0.0-rc.2...v5.0.0-rc.3