Skip to content

Add new rules and deprecate sanitization options in url and email options

Compare
Choose a tag to compare
@thetutlage thetutlage released this 07 Apr 04:32
· 63 commits to develop since this release

New rules

  • trim - Use it instead of using the options.trim in string data type
  • escape - Use it instead of using options.escape in string data type
  • normalizeUrl - Use it instead of passing normalization options to the url rule.
  • normalizeEmail - Use it instead of passing normalization options to the email rule

Commits

  • test: fix flaky test ef5ae20
  • feat: add normalizeUrl rule and deprecate normalization options in url rule 380f8ac
  • fix: types for mobile validation rule 60b84cc
  • feat: add normalize email address rule 807e10e
  • refactor: do not use deprecated code in tests 8a723da
  • fix: pass format to the validation error message options f60dea0
  • feat: add escape and trim rules 7a0402e
  • chore: update dependencies 763aebc

v12.2.3...v12.3.0