Release notes
*Sourced from [express-validator's releases](https://github.com/express-validator/express-validator/releases).*
> ## v5.3.0
> - [#579](https://github-redirect.dependabot.com/express-validator/express-validator/issues/579) - **docs: major overhaul, and a new home!**
> See https://express-validator.github.io for them, with version selection available β¨
> - [#473](https://github-redirect.dependabot.com/express-validator/express-validator/issues/473), [#570](https://github-redirect.dependabot.com/express-validator/express-validator/issues/570) - check: add `checkNull` and `checkFalsy` options to `exists` validator
> - [#568](https://github-redirect.dependabot.com/express-validator/express-validator/issues/568), [#577](https://github-redirect.dependabot.com/express-validator/express-validator/issues/577) - filter: allow including optionals when using `matchedData()`
> - [#584](https://github-redirect.dependabot.com/express-validator/express-validator/issues/584) - check: don't call sanitizers twice
> - [#593](https://github-redirect.dependabot.com/express-validator/express-validator/issues/593) - check: don't fail when custom validator returns nothing
> - [#598](https://github-redirect.dependabot.com/express-validator/express-validator/issues/598) - check: persist empty validations as the request location itself
> - Upgrade validator to v10.4.0
>
> ## v5.2.0
> #### express-validator has hit 3k stars π π π and is its own org π’ on GitHub!
>
> - [#458](https://github-redirect.dependabot.com/express-validator/express-validator/issues/458), [#531](https://github-redirect.dependabot.com/express-validator/express-validator/issues/531), [#563](https://github-redirect.dependabot.com/express-validator/express-validator/issues/563) - check: fix wildcard field selection not validating every array entry
> - [#564](https://github-redirect.dependabot.com/express-validator/express-validator/issues/564) - check: allow `exists` validator to have message set in schemas
> - [#565](https://github-redirect.dependabot.com/express-validator/express-validator/issues/565) - check: persist values sanitized within `oneOf()`
> - Update validator to v10.1.0
>
> ## v5.1.2
> - [#431](https://github-redirect.dependabot.com/express-validator/express-validator/issues/431), [#561](https://github-redirect.dependabot.com/express-validator/express-validator/issues/561) - Make `toDate` sanitizer and `isISO8601` validators work well together
> - [#554](https://github-redirect.dependabot.com/express-validator/express-validator/issues/554), [#560](https://github-redirect.dependabot.com/express-validator/express-validator/issues/560) - filter: don't double sanitize data when using `matchedData()`
>
> ## v5.1.1
> - [#533](https://github-redirect.dependabot.com/express-validator/express-validator/issues/533), [#536](https://github-redirect.dependabot.com/express-validator/express-validator/issues/536), [#541](https://github-redirect.dependabot.com/express-validator/express-validator/issues/541), [#559](https://github-redirect.dependabot.com/express-validator/express-validator/issues/559) - filter: fix `matchedData` interop with `oneOf`
> - [#557](https://github-redirect.dependabot.com/express-validator/express-validator/issues/557) - typescript: remove no longer existing `isDate` validator
>
> ## v5.1.0
> ### New features β¨
> - [#520](https://github-redirect.dependabot.com/express-validator/express-validator/issues/520) - check: whole body validation, like `body().isUppercase()`
> - [#524](https://github-redirect.dependabot.com/express-validator/express-validator/issues/524) - check: add new standard validations like `.isArray()` and `.isString()`
> - check: implement validator negation when using schemas
>
> ### Bug fixes π
> - [#542](https://github-redirect.dependabot.com/express-validator/express-validator/issues/542) - check: support sanitizers in `checkSchema()` TypeScript
> - [#548](https://github-redirect.dependabot.com/express-validator/express-validator/issues/548) - check: report errors using original, unsanitized value
> - [#548](https://github-redirect.dependabot.com/express-validator/express-validator/issues/548) - check: don't override validator messages from non-validators in schemas
>
> ## v5.0.3
> - Don't set `undefined` values into request when validated key does not exist
Commits
- [`298177a`](https://github.com/express-validator/express-validator/commit/298177a7c85b90110fa480422ee3dde472fb3c14) 5.3.0
- [`422699c`](https://github.com/express-validator/express-validator/commit/422699ccd81ee22712be4fa67f8e54efe777d82d) Upgrade validator 10.4 ([#615](https://github-redirect.dependabot.com/express-validator/express-validator/issues/615))
- [`dd0fadc`](https://github.com/express-validator/express-validator/commit/dd0fadc73d8daa2fb847aece0b2c736fd68da6dd) docs: correct function arg name in customSanitizer example ([#603](https://github-redirect.dependabot.com/express-validator/express-validator/issues/603))
- [`4ac9ef4`](https://github.com/express-validator/express-validator/commit/4ac9ef4629bf8601fc3f319b77084f8390f410a7) docs: introduce small shameless plug π
- [`878db44`](https://github.com/express-validator/express-validator/commit/878db44ba35c3ad3e8c909310a36e7f2f85abfbd) utils: persist empty paths as the req location itself
- [`a30490b`](https://github.com/express-validator/express-validator/commit/a30490b1f7478f8e5f18a88225fabeece39d7637) npm: upgrade docusaurus
- [`eaae68a`](https://github.com/express-validator/express-validator/commit/eaae68a9d39a0698f5cd1e0be5c0f3f1f8b8c0ae) Remove console.log that was left over
- [`a5875b3`](https://github.com/express-validator/express-validator/commit/a5875b3f697519c7ebfeba318c41f72a4cdc20c9) check: don't fail when validator returns nothing
- [`f1f57d5`](https://github.com/express-validator/express-validator/commit/f1f57d5041fb347ce54a90c9be8f1fee25c28adb) utils: persist values right after selection
- [`1f63999`](https://github.com/express-validator/express-validator/commit/1f63999400533c3f9e8bcdaedb54f7a4c7e0ad1f) filter: matchedData takes includeOptionals, not filterOptionals
- Additional commits viewable in [compare view](https://github.com/express-validator/express-validator/compare/v5.0.2...v5.3.0)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.
You can always request more updates by clicking Bump now in your Dependabot dashboard.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Finally, you can contact us by mentioning @dependabot.
Bumps express-validator from 5.0.2 to 5.3.0.
Release notes
*Sourced from [express-validator's releases](https://github.com/express-validator/express-validator/releases).* > ## v5.3.0 > - [#579](https://github-redirect.dependabot.com/express-validator/express-validator/issues/579) - **docs: major overhaul, and a new home!** > See https://express-validator.github.io for them, with version selection available β¨ > - [#473](https://github-redirect.dependabot.com/express-validator/express-validator/issues/473), [#570](https://github-redirect.dependabot.com/express-validator/express-validator/issues/570) - check: add `checkNull` and `checkFalsy` options to `exists` validator > - [#568](https://github-redirect.dependabot.com/express-validator/express-validator/issues/568), [#577](https://github-redirect.dependabot.com/express-validator/express-validator/issues/577) - filter: allow including optionals when using `matchedData()` > - [#584](https://github-redirect.dependabot.com/express-validator/express-validator/issues/584) - check: don't call sanitizers twice > - [#593](https://github-redirect.dependabot.com/express-validator/express-validator/issues/593) - check: don't fail when custom validator returns nothing > - [#598](https://github-redirect.dependabot.com/express-validator/express-validator/issues/598) - check: persist empty validations as the request location itself > - Upgrade validator to v10.4.0 > > ## v5.2.0 > #### express-validator has hit 3k stars π π π and is its own org π’ on GitHub! > > - [#458](https://github-redirect.dependabot.com/express-validator/express-validator/issues/458), [#531](https://github-redirect.dependabot.com/express-validator/express-validator/issues/531), [#563](https://github-redirect.dependabot.com/express-validator/express-validator/issues/563) - check: fix wildcard field selection not validating every array entry > - [#564](https://github-redirect.dependabot.com/express-validator/express-validator/issues/564) - check: allow `exists` validator to have message set in schemas > - [#565](https://github-redirect.dependabot.com/express-validator/express-validator/issues/565) - check: persist values sanitized within `oneOf()` > - Update validator to v10.1.0 > > ## v5.1.2 > - [#431](https://github-redirect.dependabot.com/express-validator/express-validator/issues/431), [#561](https://github-redirect.dependabot.com/express-validator/express-validator/issues/561) - Make `toDate` sanitizer and `isISO8601` validators work well together > - [#554](https://github-redirect.dependabot.com/express-validator/express-validator/issues/554), [#560](https://github-redirect.dependabot.com/express-validator/express-validator/issues/560) - filter: don't double sanitize data when using `matchedData()` > > ## v5.1.1 > - [#533](https://github-redirect.dependabot.com/express-validator/express-validator/issues/533), [#536](https://github-redirect.dependabot.com/express-validator/express-validator/issues/536), [#541](https://github-redirect.dependabot.com/express-validator/express-validator/issues/541), [#559](https://github-redirect.dependabot.com/express-validator/express-validator/issues/559) - filter: fix `matchedData` interop with `oneOf` > - [#557](https://github-redirect.dependabot.com/express-validator/express-validator/issues/557) - typescript: remove no longer existing `isDate` validator > > ## v5.1.0 > ### New features β¨ > - [#520](https://github-redirect.dependabot.com/express-validator/express-validator/issues/520) - check: whole body validation, like `body().isUppercase()` > - [#524](https://github-redirect.dependabot.com/express-validator/express-validator/issues/524) - check: add new standard validations like `.isArray()` and `.isString()` > - check: implement validator negation when using schemas > > ### Bug fixes π > - [#542](https://github-redirect.dependabot.com/express-validator/express-validator/issues/542) - check: support sanitizers in `checkSchema()` TypeScript > - [#548](https://github-redirect.dependabot.com/express-validator/express-validator/issues/548) - check: report errors using original, unsanitized value > - [#548](https://github-redirect.dependabot.com/express-validator/express-validator/issues/548) - check: don't override validator messages from non-validators in schemas > > ## v5.0.3 > - Don't set `undefined` values into request when validated key does not existCommits
- [`298177a`](https://github.com/express-validator/express-validator/commit/298177a7c85b90110fa480422ee3dde472fb3c14) 5.3.0 - [`422699c`](https://github.com/express-validator/express-validator/commit/422699ccd81ee22712be4fa67f8e54efe777d82d) Upgrade validator 10.4 ([#615](https://github-redirect.dependabot.com/express-validator/express-validator/issues/615)) - [`dd0fadc`](https://github.com/express-validator/express-validator/commit/dd0fadc73d8daa2fb847aece0b2c736fd68da6dd) docs: correct function arg name in customSanitizer example ([#603](https://github-redirect.dependabot.com/express-validator/express-validator/issues/603)) - [`4ac9ef4`](https://github.com/express-validator/express-validator/commit/4ac9ef4629bf8601fc3f319b77084f8390f410a7) docs: introduce small shameless plug π - [`878db44`](https://github.com/express-validator/express-validator/commit/878db44ba35c3ad3e8c909310a36e7f2f85abfbd) utils: persist empty paths as the req location itself - [`a30490b`](https://github.com/express-validator/express-validator/commit/a30490b1f7478f8e5f18a88225fabeece39d7637) npm: upgrade docusaurus - [`eaae68a`](https://github.com/express-validator/express-validator/commit/eaae68a9d39a0698f5cd1e0be5c0f3f1f8b8c0ae) Remove console.log that was left over - [`a5875b3`](https://github.com/express-validator/express-validator/commit/a5875b3f697519c7ebfeba318c41f72a4cdc20c9) check: don't fail when validator returns nothing - [`f1f57d5`](https://github.com/express-validator/express-validator/commit/f1f57d5041fb347ce54a90c9be8f1fee25c28adb) utils: persist values right after selection - [`1f63999`](https://github.com/express-validator/express-validator/commit/1f63999400533c3f9e8bcdaedb54f7a4c7e0ad1f) filter: matchedData takes includeOptionals, not filterOptionals - Additional commits viewable in [compare view](https://github.com/express-validator/express-validator/compare/v5.0.2...v5.3.0)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.
You can always request more updates by clicking
Bump now
in your Dependabot dashboard.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) Finally, you can contact us by mentioning @dependabot.