Releases: express-validator/express-validator
Releases Β· express-validator/express-validator
v6.3.1
v6.3.0
v6.2.0
- #500, #638, #751 - Bail validation when there's an error
- #761 - Add
min
/max
options toisArray()
validator - #693, #742, #765 - Fix typing for
optional
when usingcheckSchema
- #762 - Don't log a validation error when using
.if()
with another validation chain - #745 - Upgrade Lodash to fix vulnerability and validator to v11.1
- #748 - Correct typo in a validator name in the docs
v6.1.1
v6.1.0
v6.0.1
v6.0.0
BREAKING CHANGES π₯
- Legacy APIs (
req.check()
,req.checkBody()
,req.filter()
, etc) have been removed; require('express-validator/check')
andrequire('express-validator/filter)
are now deprecated. Instead, just userequire('express-validator')
;- #616, #722 - Validators and sanitizers will now run in the order they are specified, instead of always running sanitizers first, then validators;
- #592, #641, #632, #630, #580, #651, #711 - non-string values will now be sanitized;
- Node.js version 6 is no longer supported. Use version 8 or newer.
New features β¨
- #698 - express-validator is now written in TypeScript!
- #407 - express-validator now works with other libraries like Restify or similar;
- #679, #713 - Add a
toArray()
sanitizer; - Validations can now be run imperatively with
check('field').run(req)
. See docs.
Other changes π
v5.3.1
v5.3.0
- #579 - docs: major overhaul, and a new home!
See https://express-validator.github.io for them, with version selection available β¨ - #473, #570 - check: add
checkNull
andcheckFalsy
options toexists
validator - #568, #577 - filter: allow including optionals when using
matchedData()
- #584 - check: don't call sanitizers twice
- #593 - check: don't fail when custom validator returns nothing
- #598 - check: persist empty validations as the request location itself
- Upgrade validator to v10.4.0