Update dependency express-validator to v5 #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^3.1.2
->^5.0.0
Release Notes
express-validator/express-validator
v5.3.1
Compare Source
;
that would cause TypeScript to throw syntax errorsv5.3.0
Compare Source
See https://express-validator.github.io for them, with version selection available ✨
checkNull
andcheckFalsy
options toexists
validatormatchedData()
v5.2.0
Compare Source
express-validator has hit 3k stars 🌟 🌟 🌟 and is its own org 🏢 on GitHub!
exists
validator to have message set in schemasoneOf()
v5.1.2
Compare Source
toDate
sanitizer andisISO8601
validators work well togethermatchedData()
v5.1.1
Compare Source
matchedData
interop withoneOf
isDate
validatorv5.1.0
Compare Source
New features ✨
body().isUppercase()
.isArray()
and.isString()
Bug fixes 🐛
checkSchema()
TypeScriptv5.0.3
Compare Source
undefined
values into request when validated key does not existv5.0.2
Compare Source
v5.0.1
Compare Source
exists
to the schema definitionv5.0.0
Compare Source
No more new features will be added to the legacy API! Only bug fixes will be accepted.
BREAKING CHANGES 💥
@types/express
dependency removed; if you're using express, you must install this yourself nowNew features ✨
checkSchema()
function.customSanitizer()
chain function.withMessage()
validationResult.withDefaults()
which can create avalidationResult
function with default options setcheck
/sanitize
functions withbuildCheckFunction
orbuildSanitizeFunction
, respectivelyOther changes 🐛
.formatWith()
examplematchedData()
oneOf()
andmatchedData()
work togetherv4.3.0
Compare Source
matchedData()
nullable
option to.optional()
v4.2.1
Compare Source
v4.2.0
Compare Source
withMessage()
arg type toany
req.asyncValidationErrors()
return value description.throw()
withouttry..catch
validationResult
work even though no validators ranv4.1.1
Compare Source
.withMessage()
is called without any validatorundefined
,null
,NaN
,[]
=>''
)v4.1.0
Compare Source
.formatWith(formatter)
to the validation result API.exists()
to the TypeScript typingsv4.0.0
Compare Source
🎉 BIGGEST express-validator rewrite ever! 🎉 🎊
...but with backwards compatibility, because we're cool to our users 😉
Most notable features are the introduction of
check
andfilter
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.
check
API.not()
*
oneOf
function to emulate OR validationsfilter
API.exists()
validatorvalidator
v8.1.0Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "
rebase!
".🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot. View repository job log here.