Skip to content

chore(deps): update dependency express-validator --> v7

FW Serviceworker requested to merge deps/express-validator-7.x into master

This MR contains the following updates:

Package Change Age Adoption Passing Confidence
express-validator (source) ^6.10.0 -> ^7.0.0 age adoption passing confidence

Release Notes

express-validator/express-validator

v7.0.1

Compare Source

  • Fixed checkSchema() warning that known validators are unknown when its value is false - #​1223

v7.0.0

Compare Source

🚀 🙌 First major version in almost 4 years! 🚀 🤯 Thanks everybody for having the patience. Hopefully this version brings many improvements to your developer experience!

Breaking changes 💥

  • Minimum supported Node.js version is now 14+
  • Removed deprecated APIs - #​993
    • Import paths express-validator/check and express-validator/filter
    • Sanitization-only middlewares (e.g. sanitize(), sanitizeBody(), etc)
    • Deprecated TypeScript types (ValidationParamSchema and ValidationSchema)
  • isObject() validator now assumes options.strict = true by default
  • Validation errors changed shape
    • Field validation errors param property has been renamed to path
    • oneOf() validation errors no longer have a param: '_error' property
  • (TypeScript only) The ValidationError type is now a discriminated union, it might be necessary to use switch or if statements to check that you're dealing with the type that you want to debug/format
  • oneOf() signature changed: from oneOf(chains, message) to oneOf(chains, options: { message, errorType })
  • oneOf() default error structure now groups errors by their... validation group!, instead of in a flat list

Checkout the migration guide for examples on how to work around some of these: https://express-validator.github.io/docs/migration-v6-to-v7

New features

Bug fixes 🐛

New Contributors

Full Changelog: https://github.com/express-validator/express-validator/compare/v6.15.0...v7.0.0

v6.15.0

Compare Source

What's Changed

Full Changelog: https://github.com/express-validator/express-validator/compare/v6.14.3...v6.15.0

v6.14.3

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/express-validator/express-validator/compare/v6.14.2...v6.14.3

v6.14.2

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/express-validator/express-validator/compare/v6.14.1...v6.14.2

v6.14.1

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/express-validator/express-validator/compare/v6.14.0...v6.14.1

v6.14.0

Compare Source

What's Changed

Full Changelog: https://github.com/express-validator/express-validator/compare/v6.13.0...v6.14.0

v6.13.0

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/express-validator/express-validator/compare/v6.12.2...v6.13.0

v6.12.2

Compare Source

Fixes:
  • #​1072: add type for checkSchema function return
  • #​1092, #​1086: correctly allow falsy values as options in checkSchema

v6.12.1

Compare Source

v6.12.0

Compare Source

v6.11.1

Compare Source

v6.11.0

Compare Source

v6.10.1

Compare Source


Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box.
Edited by FW Serviceworker

Merge request reports

Loading