Skip to content

Releases: express-validator/express-validator

v4.1.0

29 Aug 00:47
Compare
Choose a tag to compare
  • #392, #393 - Add .formatWith(formatter) to the validation result API
  • #390 - Add .exists() to the TypeScript typings

v4.0.0

27 Aug 03:21
Compare
Choose a tag to compare

🎉 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

09 Jul 02:14
Compare
Choose a tag to compare
  • Add deprecation warnings to req.validationErrors() and req.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

21 Apr 23:13
Compare
Choose a tag to compare
  • #337 - Don't share state between multiple instances of express-validator middleware

v3.1.3

03 Apr 05:12
Compare
Choose a tag to compare
  • #310 - Allow to use fully custom error formatter without TypeScript error

v3.1.2

26 Dec 17:46
Compare
Choose a tag to compare
  • #300 - customValidators should accept variable number of arguments in TypeScript Definition

v3.1.1

19 Dec 11:19
Compare
Choose a tag to compare
  • #293 - Move type definition dependencies back to dependencies from devDependencies

v3.1.0

15 Dec 01:18
Compare
Choose a tag to compare

Official TypeScript support!

  • #288, #290 - Support schema validation in req.checkHeaders()
  • #289 - Add TypeScript definitions
  • Update validator to ~6.2.0

v3.0.0

15 Dec 01:16
Compare
Choose a tag to compare

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() and req.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() and req.checkBody()
  • #30, #223, #235, #269, #285 - Implement result API via new async method req.getValidationResult()
  • #269 - Deprecate methods req.validationErrors() and req.asyncValidationErrors()

v2.21.0

15 Dec 00:46
Compare
Choose a tag to compare
  • #191 - Don't require options in schema validation to be an array
  • Add support for Node.js v6