v5.0.0-rc.3
Pre-release
Pre-release
·
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 theValidatorclass provided by this package, it now implements this method. - Middleware that extend
ValidateCommandandValidateQuerycan mark themselves as stopping on the first failure by implementing theBailinterface, or overloading thestopOnFirstFailure()method to returntrue.
Full Changelog: v5.0.0-rc.2...v5.0.0-rc.3