Skip to content

v1.2.0

Compare
Choose a tag to compare
@dncgmh dncgmh released this 26 May 03:51
· 5 commits to main since this release

Full Changelog: https://github.com/dncgmh/simp-validator/commits/v1.2.0

Breaking Changes:

GitHub Copilot: Here's a more detailed version of the breaking changes:

  • The library will no longer throw any errors. Instead, it will return a ValidationResult object with a success property set to false, a message property containing the error message, and a details property containing the error details.
  • The toSchema function will now return an object instead of a string. The object will contain the schema definition in JSON format.
  • The validate function has been fixed to properly handle arrays and dates.
  • The duplicated validate function has been removed.
  • The messages have been updated to remove magic string messages and improve readability.
  • The library now has 100% code coverage, meaning that all lines of code are covered by unit tests.