Releases: adonisjs/validator
Releases Β· adonisjs/validator
Pass all email validation options down to validator.js
Add alpha numeric rule
Fix minLength and maxLength rules to use mutated value
Using the original value was required before adding the trim
and the escape
rules. 7a0402e
Commits
- fix: use the mutated value for validating minLength and maxLength 80081bb
- chore: update dependencies 2d63698
Full Changelog: v12.3.1...v12.3.2
Move deprecated overloads to the bottom to have least priority
- refactor: move deprecated overloads to the bottom to have least priority 5ea2b60
Add new rules and deprecate sanitization options in url and email options
New rules
trim
- Use it instead of using theoptions.trim
instring
data typeescape
- Use it instead of usingoptions.escape
instring
data typenormalizeUrl
- Use it instead of passing normalization options to theurl
rule.normalizeEmail
- Use it instead of passing normalization options to theemail
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
Update dependencies
- chore: update dependencies 50b1d84
Update bodyparser
- chore: update dependencies 1c82cdd
Add beforeOrEqual and afterOrEqual rules
Commits
- test: upgrade to newer version of japa 363e60b
- refactor: reorganize meta config fd4a5e4
- chore: update dependencies b3d55b1
- chore: add zod to benchmarks 63db820
- feat: Add beforeOrEqual & afterOrEqual validators (#132) 3c7e4a1
- docs(CONTRIBUTING): update issue template links (#134) 6a27e67
New Contributors
Full Changelog: v12.2.0...v12.2.1
Add support for nullable modifier
Commits
- test: add first testing fixture 2c1a798
- feat: add support for nullable modifier c9a0e3a
- chore: update dependencies 6ad7d47
- feat: add extra options to email rule (#127) 7bebffe
New Contributors
- @adamcikado made their first contribution in #127
Full Changelog: v12.1.1...v12.2.0
Re-publishing as npm had outage during last release
Full Changelog: v12.1.0...v12.1.1