Skip to content

Latest commit

 

History

History
128 lines (99 loc) · 4.48 KB

CHANGELOG.md

File metadata and controls

128 lines (99 loc) · 4.48 KB

Changelog

All notable changes to Mighty will be documented in this file.


  • PHP 8.2 support.
  • Update Constraint class:
    • Add $validator property.
    • Rename getValidator() method to getMasterValidator(), this method as the name suggests, returns the Master Validator of all constraints.
    • Add getValidator() method, this method return the Validator local to the constraint (which is by default a clone of the Master Validator, but can be swapped using setValidator()).
    • Add setValidator() method.
    • Update validate() method to make use of object's Validator.
  • Update Compound class:
    • Rename method groupConstraints() to combineConstraints()
    • Update class constructor to use the Master Validator to check parameters validity.
  • Update Shape class:
    • Rename property $recursive to $traverse
    • Update class constructor to use the Master Validator to check parameters validity.
    • Update validate() method to make use of object's Validator.
  • Update Callback class:
    • Update class constructor to use the Master Validator to check parameters validity.
    • Update validate() method to make use of object's Validator.
  • Update Valid class:
    • Update validate() method to make use of object's Validator.
  • Update Maker class:
    • Move Maker class from MAKS\Mighty\Validation to MAKS\Mighty (root) namespace. Note that no backward compatibility issues will be introduced by this change as this class is marked as internal.
  • Update rule constraints:
    • Regenerate src/Validation/Constraints/Rule/*.
    • Update Rule\Validation class.
  • Update test:
    • Add LogicTest class.

  • Update rules:
    • Fix data rules:
      • Refactor json rule to use JSON_THROW_ON_ERROR.
      • Update xml rule to clear libxml errors before checking.
  • Update Engine class:
    • Refactor parseExpression() method.
    • Update clearExpression() method.

  • Update rules:
    • Fix common, condition, and image rules messages placeholders.
  • Update Expression class:
    • Fix build() method checks for expression validity.
    • Add concat() method.
    • Update write() method.
    • Add comment() method.
    • Update variable() method.
  • Update Engine class:
    • Fix evaluateBitwiseExpression() method checks for expression validity.
    • Update parseExpression() method to allow for same rule repetition.
    • Add cleanExpression() method.
    • Add evaluateExpression() method.
  • Update Utility class:
    • Update transform() method to always use UTF-8.
  • Update Validator class:
    • Refactor validateOne() method.
  • Update test:
    • Add EngineTest class.
    • Update ValidationTest class.
    • Update ValidatorTest class.

  • Update Rule class:
    • Update createErrorMessage() to pass rule name as a second parameter for message translation callback to allow for translating error messages easily based on rule name rather than the actual message.
  • Update Shape class:
    • Update __construct() to add a check for the type of the nested attributes (allow only valid attributes).

  • Stable release.

  • Release candidate.

  • Beta release.

[Unreleased]