Skip to content

Releases: inpsyde/validator

1.3.0

17 May 13:42
9c289fc
Compare
Choose a tag to compare
  • Upgrade to PHPUnit version 8.x.

  • Introduce Github Workflows with inpsyde/reusable-workflows lint-php and tests-unit-php.

  • Fix PHP8.1 deprecated notices

  • Add logger option to Multi

  • Fix options in Multi

  • It was becoming bool, but then used as array

1.2.6

06 May 10:03
54ec04e
Compare
Choose a tag to compare

Fixed

  • Fixed URL regex in php7.3+

Changed

  • Nothing

Added

  • Nothing

Typo bugfix release.

18 Dec 13:24
Compare
Choose a tag to compare
  • Fixed typo in error message

1.2.3

06 Sep 06:22
Compare
Choose a tag to compare

1.2.3

Fixed

  • Fix typos in README.md.

Changed

  • Removed unused property $options from classes.

Added

  • Nothing

1.2.2

13 Aug 12:25
Compare
Choose a tag to compare

Fixed

  • Fix copy-pasta error in WordPressErrorLogger.

Changed

  • Nothing

Added

  • Nothing

1.2.1

13 Aug 12:07
Compare
Choose a tag to compare

1.2.1

Fixed

  • Fix wrong arguments passed to __() in WordPressErrorLogger.

Changed

  • Nothing

Added

  • Nothing

1.2.0

21 Jul 17:10
Compare
Choose a tag to compare

Fixed

  • Add missing, but referenced error codes in ErrorLoggerInterface

Changed

  • Updated README
  • composer.lock is removed from VCS

Added

  • Simple validators: Callback, ClassName, Email, Size, Type and WpFilter
  • SecondaryValidatorInterface and secondary validators: Negate, Bulk and Pool
  • DataValidator::with_validators() method
  • Unit tests for all new classes

1.1.1

15 Jul 17:19
Compare
Choose a tag to compare

Fixed

  • Avoid possible function redeclaration in case of multiple autoloaders, thanks @schlessera, see #6

Added

Nothing

Changed

Nothing

1.1.0

15 Jul 17:31
Compare
Choose a tag to compare

Fixed

  • CS fixes

Changed

  • General refactoring
  • Decoupled messages from validators
  • Deprecated get_error_messages() validators method
  • Deprecated ArrayValue in favor of newly added DataValidator
  • Error codes constants moved to ErrorLoggerInterface from single validators classes (old constants still available for BC, but usage is deprecated)

Added

  • Multi validator
  • DataValidator validator
  • ErrorLoggerInterface, ErrorLogger and WordPressErrorLogger
  • Support for messages translation