Releases: programmatordev/fluent-validator
Releases · programmatordev/fluent-validator
Release list
v1.1.0
What's Changed
- Added support for Symfony 8.1 validator components.
- Updated generated fluent constraint interfaces with Symfony 8.1 constraints, including
xml(). - Added
Validator::reset()to clear global translator and custom namespace configuration. - Fixed empty
Validatorinstances so they behave as valid no-op validators instead of causing typed property errors. - Improved translator errors by failing early when a locale translation file is unavailable.
- Moved test-only fixtures out of production source files.
- Hardened generated interface writing for safer paths and default value formatting.
- Expanded test coverage for empty validators, named assertion messages, validation groups, reset behavior, missing translations, and interface generation.
- Improved README guidance with clearer usage examples and package positioning.
Upgrade Notes
No breaking changes are expected for normal usage.
If you were relying on test fixture classes under ProgrammatorDev\FluentValidator\Test, those have been moved out of production source and should not be treated as public API.
Full Changelog: v1.0.0...v1.1.0
v1.0.0
What's Changed
- Symfony Validator 8.0 support (changelog) by @andrepimpao in #8
Full Changelog: v0.3.0...v1.0.0
v0.3.0
What's Changed
- Bump
symfony/validatorversion to7.3(changelog) by @andrepimpao in #6- Add the
filenameCharsetandfilenameCountUnitoptions to theFileconstraint - Deprecate defining custom constraints not supporting named arguments
- Deprecate passing an array of options to the constructors of the constraint classes, pass each option as a dedicated argument instead
- Add support for ratio checks for SVG files to the
Imageconstraint - Add support for the
otherwiseoption in theWhenconstraint - Add support for multiple fields containing nested constraints in
Compositeconstraints - Add the
stopOnFirstErroroption to theUniqueconstraint to validate all elements - Add support for closures in the
Whenconstraint
- Add the
Full Changelog: v0.2.0...v0.3.0
v0.2.0
What's Changed
- Improve violation path on assert message when validating arrays by @andrepimpao in #3
- [BC] Rename
getConstraintsmethod totoArrayby @andrepimpao in #4
Full Changelog: v0.1.0...v0.2.0