Skip to content

Releases: tpg/yerp

v0.0.4

27 Aug 16:14
Compare
Choose a tag to compare
  • [feat] Added a propertyNames property to the Validated class
  • [change] Rules without a message set will return null. Use passed() or failed() methods to determine passing validations.
  • [change] The Result class can no longer be cast as a string. Use the message() method instead.
  • [fix] Properties without rules will no longer be included in the results.

v0.0.3

27 Aug 00:12
Compare
Choose a tag to compare
  • [feat] Added support to get messages for all the class properties.

v0.0.2

26 Aug 19:37
Compare
Choose a tag to compare

A few changes to make quick validation of an entire class a little easier.

  • [feat] Added passed and failed methods to the Validated class.
  • [change] The second parameters of the property method is now nullable.
  • [fix] Minor bug fix converting array to string when validation array length.
  • [tests] Added a test for custom rules.
  • [tests] Added a test for validating the length of an array.

v0.0.1

26 Aug 18:39
Compare
Choose a tag to compare
v0.0.1 Pre-release
Pre-release

Initial release