Skip to content

Update express-validator to the latest version 🚀#37

Open
greenkeeper[bot] wants to merge 1 commit into
masterfrom
greenkeeper/express-validator-4.0.0
Open

Update express-validator to the latest version 🚀#37
greenkeeper[bot] wants to merge 1 commit into
masterfrom
greenkeeper/express-validator-4.0.0

Conversation

@greenkeeper

@greenkeeper greenkeeper Bot commented Aug 27, 2017

Copy link
Copy Markdown

Version 4.0.0 of express-validator just got published.

Dependency express-validator
Current Version 3.2.1
Type dependency

The version 4.0.0 is not covered by your current version range.

Without accepting this pull request your project will work just like it did before. There might be a bunch of new features, fixes and perf improvements that the maintainers worked on for you though.

I recommend you look into these changes and try to get onto the latest version of express-validator.
Given that you have a decent test suite, a passing build is a strong indicator that you can take advantage of these changes by merging the proposed change into your project. Otherwise this branch is a great starting point for you to work on the update.


Commits

The new version differs by 76 commits.

  • 2edcf17 4.0.0
  • fb1f032 git: remove package-lock.json from ignore list
  • df22454 docs: add notice before usage example
  • ad2c521 docs: change syntax from json to js
  • 1155743 Merge pull request #389 from ctavan/v4-docs
  • 83a9a21 docs: describe errors format in validation result API
  • 1452c65 docs: update oneOf behaviour description
  • 5e83e44 docs: add v3 -> v4 upgrade guide
  • 6ce84b9 docs: add details regarding validation execution
  • 0c3b456 docs: add links and extend the TOC
  • 0117709 docs: create base README for v4
  • 60abeb9 EditorConfig: disable trimming in markdown files
  • 31ae765 check/oneOf: set a single error in case any chain fails
  • 98bb61c check: use param/msg instead of path/message in errors
  • 80ba1f2 check, legacy: add built-in exists validator

There are 76 commits in total.

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

greenkeeper Bot added a commit that referenced this pull request Aug 29, 2017
@greenkeeper

greenkeeper Bot commented Aug 29, 2017

Copy link
Copy Markdown
Author

Version 4.1.0 just got published.

Update to this version instead 🚀

Commits

The new version differs by 8 commits.

  • 8e3de68 4.1.0
  • f344801 Typescript: add .exists() to the validation chain
  • 5c152dd Merge pull request #393 from ctavan/error-formatter
  • 45b3d81 Typescript: adds typings for validationResult .formatWith()
  • cfca9d2 docs: add info around .formatWith() of validationResult
  • 5b14c6f legacy: delegate errorFormatter to validationResult.formatWith()
  • 1eaf36f check/validationResult: add .formatWith()
  • fb316ff docs: make explicit that Node.js 6 is required

See the full diff

greenkeeper Bot added a commit that referenced this pull request Sep 2, 2017
@greenkeeper

greenkeeper Bot commented Sep 2, 2017

Copy link
Copy Markdown
Author

Version 4.1.1 just got published.

Update to this version instead 🚀

Release Notes v4.1.1
  • #398, #403 - don't fail when .withMessage() is called without any validator
  • #399 - check: convert value to string just like in v3 (undefined, null, NaN, [] => '')
  • #400 - check: use any rejection cause as error message
  • #401 - legacy: restore support for non-string error messages
Commits

The new version differs by 6 commits.

  • 8c129eb 4.1.1
  • 2107164 check: convert value to string just like v3
  • dddbe78 check: use any rejection cause as error message
  • 15f1b57 legacy: restore support for non-string error messages
  • 04a004e legacy: don't set optional twice
  • 21ef440 check: don't fail when .withMessage() is called without validators

See the full diff

greenkeeper Bot added a commit that referenced this pull request Sep 20, 2017
@greenkeeper

greenkeeper Bot commented Sep 20, 2017

Copy link
Copy Markdown
Author

Version 4.2.0 just got published.

Update to this version instead 🚀

Commits

The new version differs by 32 commits.

  • d79e33a 4.2.0
  • ce921ee typescript: add validator v8.2.0 typings
  • ef3c222 npm: update validator to v8.2.0
  • 7b4df85 Merge pull request #422 from tuliobraga/patch-1
  • a770c0b Fix onlyFirstError attribute name
  • 85c8953 Fix lint errors from check directory
  • 48c2c25 npm: lint check and filter directories as well
  • 70a26b2 Merge pull request #419 from ctavan/standalone-sanitization
  • 1156aa2 docs: write about sanitization chain
  • 4c57ca0 typescript: type sanitize middleware
  • a3f4597 filter: create and expose sanitize middleware variations
  • bcbd375 filter: create base sanitize middleware
  • e69bc14 Extract the list of extra validators/sanitizers to a constants file
  • 5e8ed2f Merge pull request #418 from ctavan/v4-sanitization
  • 3138e54 docs: add mentions about sanitizers in the validation chain

There are 32 commits in total.

See the full diff

greenkeeper Bot added a commit that referenced this pull request Sep 23, 2017
@greenkeeper

greenkeeper Bot commented Sep 23, 2017

Copy link
Copy Markdown
Author

Version 4.2.1 just got published.

Update to this version instead 🚀

Release Notes v4.2.1
  • #425 - Don't sanitize non-string values
Commits

The new version differs by 7 commits.

  • be10c54 4.2.1
  • 48b8e52 check: don't sanitize non-string values
  • 7c5ac58 Remove validator customization for automatic toString() call
  • d6dd625 Unify stringification logic
  • 818ad46 check: remove random console.log call
  • 44e03f3 Merge pull request #423 from joturako/patch-1
  • 698e3ea Update README.md

See the full diff

greenkeeper Bot added a commit that referenced this pull request Oct 29, 2017
@greenkeeper

greenkeeper Bot commented Oct 29, 2017

Copy link
Copy Markdown
Author

Version 4.3.0 just got published.

Update to this version instead 🚀

Release Notes v4.3.0
  • #434, #446 - check: accept subgroups of validations
  • #447, #453 - filter: list locations to get data from when using matchedData()
  • #441 - Add nullable option to .optional()
Commits

The new version differs by 20 commits.

  • ead6b75 4.3.0
  • b7dbb5a Merge pull request #453 from villamide/matched-data-separated
  • bb5f928 typescript: add support for locations option in matchedData
  • 84b2afe filter: allow customization of req locations in matchedData
  • 94e8c1f Remove trailing space
  • 0a6ef61 check: push contexts properly for groups of validations in oneOf()
  • 5f84536 Merge pull request #446 from ctavan/one-of-array
  • 67a1a58 typescript: add support for oneOf using array of arrays and message arg
  • 8662833 docs: add details and example of oneOf with array of arrays
  • bf5a33e EditorConfig: set end_of_line to lf
  • 6817353 check: deal with array of arrays of validations in oneOf
  • f4d92dc Merge pull request #441 from ctavan/nullable
  • a4321e0 Revert "typescript: move .custom() to shared typings"
  • 7d6a096 4.2.2
  • c3d8f4e typescript: move .custom() to shared typings

There are 20 commits in total.

See the full diff

greenkeeper Bot added a commit that referenced this pull request Feb 10, 2018
@greenkeeper

greenkeeper Bot commented Feb 10, 2018

Copy link
Copy Markdown
Author

Version 5.0.0 just got published.

Update to this version instead 🚀

Commits

The new version differs by 65 commits.

  • ed68037 5.0.0
  • 19ceffa npm: update validator to v9.4.0
  • 6d969db Merge pull request #506 from ctavan/matched-data-oneof
  • 5d366d7 filter: only include oneOf valid data by default
  • 401ec0f filter: add failing test for matchedData use with oneOf
  • 18d8b89 check: run standard validators with array's first item
  • 3cc9dbb check: persist sanitized values back to request
  • 11ec747 Merge pull request #516 from ctavan/custom-sanitizer
  • 9b8d65f docs: fix link for .customSanitizer() in validation chain
  • 7d3ef72 docs: add .customSanitizer() to docs
  • 6f5a1f3 check: implement .customSanitizer()
  • 2c5003e filter: implement .customSanitizer()
  • 186a7d9 utils: support custom sanitizers in selectFields
  • f0ae8b4 npm: update validator to v9.3.0
  • 15142c6 Merge pull request #511 from ctavan/check-schema

There are 65 commits in total.

See the full diff

greenkeeper Bot added a commit that referenced this pull request Feb 17, 2018
@greenkeeper

greenkeeper Bot commented Feb 17, 2018

Copy link
Copy Markdown
Author

Version 5.0.1 just got published.

Update to this version instead 🚀

Commits

The new version differs by 4 commits.

  • 1399d64 5.0.1
  • 0dab7b9 check: add exists to schema typings
  • a2abc4f docs: say no to new features to legacy in upgrade notice
  • df3f006 utils: add selectFields test for #520

See the full diff

greenkeeper Bot added a commit that referenced this pull request Feb 26, 2018
@greenkeeper

greenkeeper Bot commented Feb 26, 2018

Copy link
Copy Markdown
Author

Version 5.0.2 just got published.

Update to this version instead 🚀

Commits

The new version differs by 2 commits.

  • 3d610f7 5.0.2
  • 9e20780 legacy: add base sanitizers to the TS interface

See the full diff

greenkeeper Bot added a commit that referenced this pull request Mar 3, 2018
@greenkeeper

greenkeeper Bot commented Mar 3, 2018

Copy link
Copy Markdown
Author

Version 5.0.3 just got published.

Update to this version instead 🚀

Release Notes v5.0.3
  • Don't set undefined values into request when validated key does not exist
Commits

The new version differs by 2 commits.

  • 5d771e4 5.0.3
  • 58bd070 utils: don't persist undefined values when key doesn't exist

See the full diff

greenkeeper Bot added a commit that referenced this pull request Mar 30, 2018
@greenkeeper

greenkeeper Bot commented Mar 30, 2018

Copy link
Copy Markdown
Author

Version 5.1.0 just got published.

Update to this version instead 🚀

Release Notes v5.1.0

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
Commits

The new version differs by 15 commits.

  • e70759e 5.1.0
  • 1aa4084 utils: use syntax supported by Node 6
  • 4227809 utils: make selectFields handle no paths
  • aaf03f2 check: add standard validators isArray and isString
  • d554935 check: implement negation of validator in schemas
  • f62807d check: report errors using original, unsanitized value
  • daa83c3 utils: keeps pre-sanitization value around when selecting field
  • 8b99852 check: don't override with messages from non-validators in schemas
  • 10ec9c4 utils: extract reusable sanitizer/validator method checks
  • 7680914 legacy: move around utils that aren't used by other APIs
  • 17e30e7 Merge pull request #546 from sant123/master
  • a595b4f + Added docs to README about custom validators and sanitizers
  • 62fdad2 Added SanitizersSchema
  • 77dd698 Merge pull request #539 from muratsu/patch-1
  • 8aa26a1 docs: method name typo at README.md

See the full diff

greenkeeper Bot added a commit that referenced this pull request Apr 5, 2018
@greenkeeper

greenkeeper Bot commented Apr 5, 2018

Copy link
Copy Markdown
Author

Version 5.1.1 just got published.

Update to this version instead 🚀

Release Notes v5.1.1
  • #533, #536, #541, #559 - filter: fix matchedData interop with oneOf
  • #557 - typescript: remove no longer existing isDate validator
Commits

The new version differs by 7 commits.

  • 138f3f1 5.1.1
  • 81b398e Merge pull request #559 from ctavan/533-matcheddata-oneofs
  • 1412fa6 filter: fix matchedData interop with oneOf
  • 1675fde check: improve test descriptions and add comments around
  • c7d835f Merge pull request #557 from sant123/typescript-isDate
  • 84a106c docs: add note about mutability of validation chains
  • b90f426 Deleted 'isDate' from d.ts files.

See the full diff

greenkeeper Bot added a commit that referenced this pull request Apr 8, 2018
@greenkeeper

greenkeeper Bot commented Apr 8, 2018

Copy link
Copy Markdown
Author

Version 5.1.2 just got published.

Update to this version instead 🚀

Release Notes v5.1.2
  • #431, #561 - Make toDate sanitizer and isISO8601 validators work well together
  • #554, #560 - filter: don't double sanitize data when using matchedData()
Commits

The new version differs by 6 commits.

  • 3ecc008 5.1.2
  • 1a122c4 Merge pull request #561 from ctavan/431-toDate-sanitizer
  • d18c898 utils: convert date to ISO string before validating it
  • ee6bb05 Merge pull request #560 from ctavan/554-double-sanitization
  • 475435e filter: don't double sanitize data
  • 4bd7129 utils: pass option to selectFields to disable sanitization

See the full diff

greenkeeper Bot added a commit that referenced this pull request May 7, 2018
@greenkeeper

greenkeeper Bot commented May 7, 2018

Copy link
Copy Markdown
Author

Version 5.2.0 just got published.

Update to this version instead 🚀

Release Notes v5.2.0

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
Commits

The new version differs by 11 commits.

  • 6658b3c 5.2.0
  • f1e9ac4 npm: update validator to v10.x
  • 96a393f ci: run with Node 9 and 10
  • ae4b5aa typescript: set libs included to only es6
  • d610f85 npm: update deps to get rid of vulnerabilities
  • af53398 check: persist values sanitized via oneOf()
  • fe1f179 Change project path to express-validator/express-validator
  • 2d283d8 Merge pull request #563 from ctavan/531-wildcards-undefined
  • 76c3cc8 Merge pull request #564 from WeiAnAn/master
  • 482f39e fix "exists" can not customize message when using schema validation
  • ba8b045 utils: don't filter values when selecting with wildcards

See the full diff

greenkeeper Bot added a commit that referenced this pull request Jul 23, 2018
@greenkeeper

greenkeeper Bot commented Jul 23, 2018

Copy link
Copy Markdown
Author

Version 5.3.0 just got published.

Update to this version instead 🚀

Release Notes v5.3.0
  • #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
Commits

The new version differs by 16 commits.

  • 298177a 5.3.0
  • 422699c Upgrade validator 10.4 (#615)
  • dd0fadc docs: correct function arg name in customSanitizer example (#603)
  • 4ac9ef4 docs: introduce small shameless plug 👀
  • 878db44 utils: persist empty paths as the req location itself
  • a30490b npm: upgrade docusaurus
  • eaae68a Remove console.log that was left over
  • a5875b3 check: don't fail when validator returns nothing
  • f1f57d5 utils: persist values right after selection
  • 1f63999 filter: matchedData takes includeOptionals, not filterOptionals
  • 8570505 docs: remove weird characters from api-validation-chain.md (#583)
  • 2cb4bcd docs: remove stuff unreleased on v5.2.0 docs
  • 4f297fa Docs overhaul (#579)
  • 6df5e8a Allow including optionals in return of matchedData (#577)
  • ff0cf46 check: add checkNull and checkFalsy options to exists validator (#570)

There are 16 commits in total.

See the full diff

greenkeeper Bot added a commit that referenced this pull request Dec 23, 2018
@greenkeeper

greenkeeper Bot commented Dec 23, 2018

Copy link
Copy Markdown
Author

Update to this version instead 🚀

Release Notes for v5.3.1
  • #673 - check: add missing ; that would cause TypeScript to throw syntax errors
Commits

The new version differs by 8 commits.

  • 58013ad 5.3.1
  • 42689b5 check: fix TS syntax error (#673)
  • 61a36f5 ci: test Node.js 6, 8, 10 and 11 (#656)
  • 86887c4 docs: update link to dynamic error messages
  • a955484 ci: don't build docs on Node.js v6
  • b4f0c25 npm: update docusaurus to ^1.5.1
  • 17e49a1 npm: update some deps
  • 3d81ea8 docs: update "Do not use a common word" example (#633)

See the full diff

greenkeeper Bot added a commit that referenced this pull request Jun 20, 2019
@greenkeeper

greenkeeper Bot commented Jun 20, 2019

Copy link
Copy Markdown
Author

Update to this version instead 🚀

Commits

The new version differs by 31 commits.

  • 00111d1 6.0.0
  • 37b5368 middlewares: make whole body validations compile
  • 5b01a70 lint: force some ordering on import types
  • b1a0f77 Reorder imports
  • 7b37c34 docs: document .run() method on chains APIs
  • 6b70ddc middlewares: test that contexts are not shared between requests
  • f474e17 Context Builder (#724)
  • d94f7dd Validator 11 (#723)
  • 107a0a3 docs: reorder items in the API section of the sidebar
  • 8a5e648 docs: improve some pages and create matchedData page
  • 5448c91 npm: remove jest-create-mock-instance
  • f131f03 Stop using jest-create-mock-instance in tests
  • 2f228dd npm: upgrade docusaurus
  • 0d71a79 Make validators and sanitizers run in the order they are specified (#722)
  • 5dbc6dc GitHub: install Lock bot

There are 31 commits in total.

See the full diff

greenkeeper Bot added a commit that referenced this pull request Jun 21, 2019
@greenkeeper

greenkeeper Bot commented Jun 21, 2019

Copy link
Copy Markdown
Author

Update to this version instead 🚀

greenkeeper Bot added a commit that referenced this pull request Jun 27, 2019
@greenkeeper

greenkeeper Bot commented Jun 27, 2019

Copy link
Copy Markdown
Author

Update to this version instead 🚀

greenkeeper Bot added a commit that referenced this pull request Jul 1, 2019
@greenkeeper

greenkeeper Bot commented Jul 1, 2019

Copy link
Copy Markdown
Author

Update to this version instead 🚀

greenkeeper Bot added a commit that referenced this pull request Aug 30, 2019
@greenkeeper

greenkeeper Bot commented Aug 30, 2019

Copy link
Copy Markdown
Author

Update to this version instead 🚀

greenkeeper Bot added a commit that referenced this pull request Nov 24, 2019
@greenkeeper

greenkeeper Bot commented Nov 24, 2019

Copy link
Copy Markdown
Author

Update to this version instead 🚀

greenkeeper Bot added a commit that referenced this pull request Dec 29, 2019
@greenkeeper

greenkeeper Bot commented Dec 29, 2019

Copy link
Copy Markdown
Author

Update to this version instead 🚀

greenkeeper Bot added a commit that referenced this pull request Feb 1, 2020
@greenkeeper

greenkeeper Bot commented Feb 1, 2020

Copy link
Copy Markdown
Author

Update to this version instead 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants