Skip to content

Releases: programmatordev/fluent-validator

v1.1.0

Choose a tag to compare

@andrepimpao andrepimpao released this 30 May 14:53
e8a70d7

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 Validator instances 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

Choose a tag to compare

@andrepimpao andrepimpao released this 08 Dec 13:11
fd84d3a

What's Changed

Full Changelog: v0.3.0...v1.0.0

v0.3.0

Choose a tag to compare

@andrepimpao andrepimpao released this 31 May 10:10
8866aec

What's Changed

  • Bump symfony/validator version to 7.3 (changelog) by @andrepimpao in #6
    • Add the filenameCharset and filenameCountUnit options to the File constraint
    • 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 Image constraint
    • Add support for the otherwise option in the When constraint
    • Add support for multiple fields containing nested constraints in Composite constraints
    • Add the stopOnFirstError option to the Unique constraint to validate all elements
    • Add support for closures in the When constraint

Full Changelog: v0.2.0...v0.3.0

v0.2.0

Choose a tag to compare

@andrepimpao andrepimpao released this 01 Apr 15:10
7a5034c

What's Changed

  • Improve violation path on assert message when validating arrays by @andrepimpao in #3
  • [BC] Rename getConstraints method to toArray by @andrepimpao in #4

Full Changelog: v0.1.0...v0.2.0

v0.1.0

Choose a tag to compare

@andrepimpao andrepimpao released this 13 Mar 15:21
c1146af

Initial release 🔥