Releases: express-validator/express-validator
Releases · express-validator/express-validator
v4.1.0
v4.0.0
🎉 BIGGEST express-validator rewrite ever! 🎉 🎊
...but with backwards compatibility, because we're cool to our users 😉
Most notable features are the introduction of check
and filter
APIs.
They are additions to express-validator, previous ways to validate your requests are still here, but under the name "legacy APIs".
Check the README for complete docs and the upgrade guide for version 3 users.
- #383, #384, #389 - Implement the
check
API - #385, #294 - Add support for negating validators with
.not()
- #386, #347 - Add support for selecting request fields using wildcard
*
- #387, #200 - Add
oneOf
function to emulate OR validations - #388, #168 - Implement the
filter
API - New
.exists()
validator - Upgrade to
validator
v8.1.0
v3.2.1
- Add deprecation warnings to
req.validationErrors()
andreq.asyncValidationErrors()
- Add support for Node 8
- #354 - Don't throw error when validator returns
null
/undefined
- #318, #348, #350, #352 - Fix lots of problems in TypeScript typings!
- #366 - Tests rewritten as unit tests
⚠️ (should make contributors' lives' easier!)
v3.2.0
v3.1.3
v3.1.2
v3.1.1
v3.1.0
v3.0.0
First major version in a long time! 🎉 🚢
- #268 - Use Express 4 code in examples
- #270, #274 - Update validator to
~6.1.0
- #232 - Support cookies via
req.checkCookies()
andreq.sanitizeCookies()
- #278 - Make headers validation and sanitization case insensitive
- #222, #262, #282 - Check if validation is optional in schema validation to guard against object keys iteration order
- #280 - Improve IDE auto completion for
req.checkQuery()
,req.checkParams()
andreq.checkBody()
- #30, #223, #235, #269, #285 - Implement result API via new async method
req.getValidationResult()
- #269 - Deprecate methods
req.validationErrors()
andreq.asyncValidationErrors()