Update dependency express-validator to v6
This MR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
express-validator (source) | ^5.3.1 -> ^6.14.2 |
Release Notes
express-validator/express-validator
v6.14.2
What's Changed
- correctly run
.matches
when passing regex object by @tonysamperi in https://github.com/express-validator/express-validator/pull/1156
New Contributors
- @tonysamperi made their first contribution in https://github.com/express-validator/express-validator/pull/1156
Full Changelog: https://github.com/express-validator/express-validator/compare/v6.14.1...v6.14.2
v6.14.1
What's Changed
- Add
validationResult()
for schema validation example by @daenamkim in https://github.com/express-validator/express-validator/pull/1120 - chore(deps): bump shelljs from 0.8.4 to 0.8.5 by @dependabot in https://github.com/express-validator/express-validator/pull/1128
- chore(deps): bump ajv from 6.11.0 to 6.12.6 by @dependabot in https://github.com/express-validator/express-validator/pull/1129
- chore(deps): bump prismjs from 1.25.0 to 1.27.0 by @dependabot in https://github.com/express-validator/express-validator/pull/1135
- docs: remove dependencies status badge by @gustavohenke in https://github.com/express-validator/express-validator/pull/1131
- chore(deps): bump minimist from 1.2.5 to 1.2.6 by @dependabot in https://github.com/express-validator/express-validator/pull/1142
- chore(deps): bump async from 2.6.3 to 2.6.4 by @dependabot in https://github.com/express-validator/express-validator/pull/1147
- Add missing
SK
postal code - #1144
New Contributors
- @daenamkim made their first contribution in https://github.com/express-validator/express-validator/pull/1120
Full Changelog: https://github.com/express-validator/express-validator/compare/v6.14.0...v6.14.1
v6.14.0
What's Changed
- feat: update
validator
to13.7
by @fedeci in https://github.com/express-validator/express-validator/pull/1115 - chore(deps): bump tmpl from 1.0.4 to 1.0.5 by @dependabot in https://github.com/express-validator/express-validator/pull/1116
- chore(deps): bump path-parse from 1.0.6 to 1.0.7 by @dependabot in https://github.com/express-validator/express-validator/pull/1118
- chore(deps): bump prismjs from 1.24.0 to 1.25.0 by @dependabot in https://github.com/express-validator/express-validator/pull/1117
Full Changelog: https://github.com/express-validator/express-validator/compare/v6.13.0...v6.14.0
v6.13.0
What's Changed
- docs: warn users about bad practice by @hariprasadkc in https://github.com/express-validator/express-validator/pull/1094
- schema usage according to documentation results in Error by @fkarg in https://github.com/express-validator/express-validator/pull/1095
- v6.13 features by @fedeci in https://github.com/express-validator/express-validator/pull/1091
New Contributors
- @hariprasadkc made their first contribution in https://github.com/express-validator/express-validator/pull/1094
- @fkarg made their first contribution in https://github.com/express-validator/express-validator/pull/1095
Full Changelog: https://github.com/express-validator/express-validator/compare/v6.12.2...v6.13.0
v6.12.2
Fixes:
-
#1072: add type for
checkSchema
function return -
#1092, #1086: correctly allow falsy values as options in
checkSchema
v6.12.1
v6.12.0
-
#1047, #1049 - make
withMessage
actually override a custom validator's message -
#1026, #1037 - add missing arguments of
isAlphanumeric
v6.11.1
v6.11.0
v6.10.1
v6.10.0
- #735, #871, #948 - add migration example from v5 to v6
-
#822, #974, #976 - add ability to run
oneOf()
imperatively -
#822, #977 - add ability to run
checkSchema()
imperatively -
#975 - fix objects whose
toString
property is not a function -
#882, #978 - add
isObject
validator -
#986, #987 - TypeScript - make
isURL
accept non-standard protocols
big kudos to @fedeci for the many improvements!
v6.9.2
-
#973 - TypeScript - republish of v6.9.1 without the source
.ts
files
v6.9.1
-
#963 - TypeScript - Updated signature of
isAlpha()
to work again with the underlying validator
v6.9.0
v6.8.2
-
#963 - TypeScript - Update
IsAlphaOptions#ignore
to allowRegExp
s, in addition tostring[]
v6.8.1
v6.8.0
-
#952 - Upgraded validator to
v13.5.x
v6.7.0
-
#581, #899 - Add
toLowerCase()
andtoUpperCase()
sanitizers -
#919 - Make
customSanitizer
await on async functions -
#856, #929, #930 - Add
default
sanitizer -
#924, #925 - Add
replace
sanitizer
v6.6.1
- #907 - upgrade lodash due to security concerns
v6.6.0
- #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.
v6.5.0
- #862, #874 - upgrade validator to v13.0
-
#875, #877 - don't modify
req
object from an invalid validation chain passed tooneOf
v6.4.1
-
#544 - Create field paths considering
.
to be a special character
v6.4.0
- #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.
v6.3.1
-
#813 - don't use
Symbol
internally to avoid breaking express-validator reuse
v6.3.0
-
#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
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
- #729 - Fix optional data being sanitized
v6.1.0
- #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
v6.0.1
-
#726 - Fix TypeScript declarations incorrectly importing
validator
module
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
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.