express-validator

An express.js middleware for validator.js.

MIT License

Downloads
3.6M
Stars
6.1K
Committers
133

Bot releases are visible (Hide)

express-validator -

Published by gustavohenke almost 4 years ago

  • #952 - Upgraded validator to v13.5.x
express-validator -

Published by gustavohenke almost 4 years ago

  • #581, #899 - Add toLowerCase() and toUpperCase() sanitizers
  • #919 - Make customSanitizer await on async functions
  • #856, #929, #930 - Add default sanitizer
  • #924, #925 - Add replace sanitizer
express-validator -

Published by gustavohenke almost 4 years ago

  • #907 - upgrade lodash due to security concerns
express-validator -

Published by gustavohenke over 4 years ago

  • #886 - Update validator to v13.1
  • #887 - fix bug in Getting Started docs example
  • #888 - Add ability to dry-run validations with check().run(req, { dryRun: boolean }). See docs for more information.
express-validator -

Published by gustavohenke over 4 years ago

  • #862, #874 - upgrade validator to v13.0
  • #875, #877 - don't modify req object from an invalid validation chain passed to oneOf
express-validator -

Published by gustavohenke over 4 years ago

  • #544 - Create field paths considering . to be a special character
express-validator -

Published by gustavohenke over 4 years ago

  • #781 - Warn on use of sanitization-only middlewares
  • #792 - Upgrade validator to v12.1
  • #826 - Compile TS code to ES2017. This should not be a breaking change, as Node 8 should fully support the output code.
express-validator -

Published by gustavohenke almost 5 years ago

  • #813 - don't use Symbol internally to avoid breaking express-validator reuse
express-validator -

Published by gustavohenke almost 5 years ago

  • #476 - Bring notEmpty validator back
  • #772, #776 - Add missing pt-BR mobile phone locale
  • #794, #795 - Make all properties available in all union branches of ValidationError
express-validator -

Published by gustavohenke about 5 years ago

  • #500, #638, #751 - Bail validation when there's an error
  • #761 - Add min/max options to isArray() validator
  • #693, #742, #765 - Fix typing for optional when using checkSchema
  • #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
express-validator -

Published by gustavohenke over 5 years ago

  • #729 - Fix optional data being sanitized
express-validator -

Published by gustavohenke over 5 years ago

  • #439, #655, #658 - Conditional validation support
  • #625 - Improve field selection performance massively
  • #728, #731 - Fix imperative validations (await body('email').isEmail().run(req)) not generating any errors
  • #730, #733 - docs: some improvements to the "Running imperatively" page
express-validator -

Published by gustavohenke over 5 years ago

  • #726 - Fix TypeScript declarations incorrectly importing validator module
express-validator -

Published by gustavohenke over 5 years ago

BREAKING CHANGES 💥

  • Legacy APIs (req.check(), req.checkBody(), req.filter(), etc) have been removed;
  • require('express-validator/check') and require('express-validator/filter) are now deprecated. Instead, just use require('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 🐛

  • #590, #620, #643, #645, #706, #712 - Overall better docs
  • #572, #573, #691 - Don't reject promises with non-Error
  • #723 - Update validator to v11.0.0
express-validator -

Published by gustavohenke almost 6 years ago

  • #673 - check: add missing ; that would cause TypeScript to throw syntax errors
express-validator -

Published by gustavohenke about 6 years ago

  • #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 and checkFalsy options to exists 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
express-validator -

Published by gustavohenke over 6 years ago

express-validator has hit 3k stars 🌟 🌟 🌟 and is its own org 🏢 on GitHub!

  • #458, #531, #563 - check: fix wildcard field selection not validating every array entry
  • #564 - check: allow exists validator to have message set in schemas
  • #565 - check: persist values sanitized within oneOf()
  • Update validator to v10.1.0
express-validator -

Published by gustavohenke over 6 years ago

  • #431, #561 - Make toDate sanitizer and isISO8601 validators work well together
  • #554, #560 - filter: don't double sanitize data when using matchedData()
express-validator -

Published by gustavohenke over 6 years ago

  • #533, #536, #541, #559 - filter: fix matchedData interop with oneOf
  • #557 - typescript: remove no longer existing isDate validator
express-validator -

Published by gustavohenke over 6 years ago

New features ✨

  • #520 - check: whole body validation, like body().isUppercase()
  • #524 - check: add new standard validations like .isArray() and .isString()
  • check: implement validator negation when using schemas

Bug fixes 🐛

  • #542 - check: support sanitizers in checkSchema() TypeScript
  • #548 - check: report errors using original, unsanitized value
  • #548 - check: don't override validator messages from non-validators in schemas
Package Rankings
Top 0.58% on Npmjs.org
Badges
Extracted from project README
npm version Build status Coverage Status
Related Projects