This repository was archived by the owner on Jul 4, 2025. It is now read-only.
Add new rules and deprecate sanitization options in url and email options
New rules
trim- Use it instead of using theoptions.triminstringdata typeescape- Use it instead of usingoptions.escapeinstringdata typenormalizeUrl- Use it instead of passing normalization options to theurlrule.normalizeEmail- Use it instead of passing normalization options to theemailrule
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