Skip to content

Bump FluentValidation from 8.5.1 to 9.2.2 #86

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 4 commits into from
Sep 20, 2020

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 20, 2020

Bumps FluentValidation from 8.5.1 to 9.2.2.

Release notes

Sourced from FluentValidation's releases.

9.2.2

Release notes

Please read the upgrade guide if you are moving from 8.x to 9.x

Changes in 9.2.1

  • Fix one of the inheritance validator overloads not working correctly (#1528)

Changes 9.2.1

  • Add non-generic extensibility point to inheritance validator
  • Updates to Persian translations (#1513)
  • Added Bengali translations (#1517)

Changes in 9.2.0

Changes in 9.1.3

  • Fix an issue with IncludeRulesNotInRuleSet not working correctly (#1493)

Changes in 9.1.2

  • Make the ValidationContext.ThrowOnFailures getter public.

Changes in 9.1.1

  • Update incorrect wording in CascadeMode.StopOnFirstFailure deprecation warning.

Changes in 9.1.0

  • Add new Validate extension methods that allow options to be configured using a strategy (#1467)
  • Introduce CascadeMode.Stop and deprecate CascadeMode.StopOnFirstFailure to resolve confusion/abiguity about setting the cascade mode at validator-level (#1437)
  • RaiseValidationException can be overridden to customize the exception throwing process (#1162)
  • Make ruleset separator character splitting consistent (#1424)
  • Transform now works with RuleForEach (#1450)
  • Introduce constants for rulesets (#1435)
  • Resolve issue when attempting to use asynchronous conditions in a synchornous validaiton run (#1438)
  • Added asynchronous versions of the TestHelper methods (#1423)

Example of using the new validation strategy:

// Validate specific rulesets
validator.Validate(instance, opt => {
  opt.IncludeRuleSets("MyRuleSet", "SomeOtherRuleSet");
// Can also force rules not in a ruleset to be run
opt.IncludeRulesNotInRuleSet();
</tr></table> ... (truncated)

Changelog

Sourced from FluentValidation's changelog.

9.2.2 - 20 September 2020 Fix one of the inheritance validator overloads not working correctly (#1528)

9.2.1 - 19 September 2020 Add non-generic Add method to inheritance validator. Updates to Persian translations (#1513) Added Bengali translations (#1517)

9.2.0 - 26 August 2020 Add inheritance validator (#1237) Performance improvements.

9.1.3 - 19 August 2020 Fix an issue with IncludeRulesNotInRuleSet not working correctly (#1493)

9.1.2 - 12 August 2020 Make the ValidationContext.ThrowOnFailures getter public.

9.1.1 - 8 August 2020 Update StopOnFirstFailure deprecation message.

9.1 - 8 August 2020 Make ruleset separator character splitting consistent (#1424) Transform now works with RuleForEach (#1450) Introduce constants for rulesets (#1435) Resolve issue when attempting to use asynchronous conditions in a synchornous validaiton run (#1438) Added asynchronous versions of the TestHelper methods (#1423) Introduce CascadeMode.Stop and deprecate CascadeMode.StopOnFirstFailure to resolve confusion/abiguity about setting the cascade mode at validator-level (#1437) RaiseValidationException can be overridden to customize the exception throwing process (#1162) Add new Validate extension methods that allow options to be configured using a strategy (#1467)

9.0.1 - 14 July 2020 Fix assembly version was still 8.

9.0 - 6 July 2020 Removed support for netstandard1.1, netstandard1.6 and net45 (net461 still supported) Removed support for unsupported .NET Core versions (2.2 and 3.0). LTS versions are supported (2.1 and 3.1) Default email validation mode now uses the same logic as ASP.NET Core. Previous regex behaviour is opt-in. TestHelper advanced mode now has more features (see https://docs.fluentvalidation.net/en/latest/testing.html#advanced-test-extensions) Equal/NotEqual now perform ordinal comparison when used with string properties Severity can now be set dynamically with a callback Removed WithLocalizedMessage (WithMessage that takes a callback is the replacement) Removed ResourceName from ValidationFailure Removed ResourceName and ResourceType from IStringSource. Removed SetCollectionValidator which was deprecated in 8.0 Removed DelegatingValidator which was deprecated in 8.x. Additional overload of OnAnyFailure that can receive a collection of validation failures Remove DisplayAttribute integration and reference to DataAnnotations. ComparisonProperty placeholder is now formatted like PropertyName Translations of default error messages into other languages are now lazily-loaded

Commits
  • 448180d Remove release workflow. Run manually instead.
  • be6a295 Fix #1528 one of the inheritance validator overloads not working correctly.
  • 6aeb6b6 Bump version number
  • f10d5b7 Update changelog.
  • 2adba70 Add non-generic method to PolymorphicValidator for inheritors to customize.
  • 2e0646e Added Bengali language (#1517)
  • fb93c6c Update PersianLanguage.cs (#1513)
  • d4deb53 Update changelog
  • 1cc1af4 Disable version suffix increment in CI for now
  • 9bb981b Bump version
  • Additional commits viewable in compare view

Dependabot compatibility score

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.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor 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 dependabot bot added the dependencies Pull requests that update a dependency file label Sep 20, 2020
@dependabot dependabot bot requested a review from Matthiee September 20, 2020 15:23
@Matthiee Matthiee changed the base branch from master to releases/0.4 September 20, 2020 15:24
@Matthiee
Copy link
Member

@dependabot rebase

@codecov-commenter
Copy link

Codecov Report

Merging #86 into releases/0.4 will not change coverage.
The diff coverage is n/a.

@@              Coverage Diff              @@
##           releases/0.4      #86   +/-   ##
=============================================
  Coverage         86.73%   86.73%           
=============================================
  Files                42       42           
  Lines              1221     1221           
  Branches            202      202           
=============================================
  Hits               1059     1059           
  Misses              104      104           
  Partials             58       58           

@Matthiee Matthiee merged commit 194c151 into releases/0.4 Sep 20, 2020
@Matthiee Matthiee deleted the dependabot/nuget/FluentValidation-9.2.2 branch September 20, 2020 15:39
Matthiee added a commit that referenced this pull request Sep 20, 2020
* Improve Dependency Injection (#71)

* Rename to BaseArgumentResolver

* Add resolvers as part of DI

* Remove obsolete IArgumentResolverFactory

* Remove IContainerResolver will be replaced with IServiceProvider

* Use IServiceProvider for resolving fixes #70

* Update readme

* Add more services to the ServiceCollection

* Use DI in printer tests

* Add IUsagePrinter to interface

* Improve DI flow

* Use ActivatorUtilities to instantiate CommandLineOption

* Use CreateInstance instead of newing up a new instance.

* Improve extension method to allow chaining

* Add basic logger

* Add logger service in tests

* Add logging in all tests!

* Allow non generic command to be registered (#78)

* Allow non generic commands to be registered (#77)

* Refactor RegisterCommand<TCommand>

* Allow non generic commands to be discovered

* Register non generic command using model (#83)

* Allow non generic commands to be registered using models fixes #82 and improves #77

* Fix issue with registering non generic sub command

* Remove IgnoreAttribute fixes #80 (#84)

* Update version to 0.4

* Bump FluentValidation from 8.5.1 to 9.2.2 (#86)

* Bump FluentValidation from 8.5.1 to 9.2.2

Bumps [FluentValidation](https://github.com/JeremySkinner/fluentvalidation) from 8.5.1 to 9.2.2.
- [Release notes](https://github.com/JeremySkinner/fluentvalidation/releases)
- [Changelog](https://github.com/FluentValidation/FluentValidation/blob/master/Changelog.txt)
- [Commits](FluentValidation/FluentValidation@8.5.1...9.2.2)

Signed-off-by: dependabot[bot] <support@github.com>

* Fix build, upgrade fluent validation https://docs.fluentvalidation.net/en/latest/upgrading-to-9.html

* bump version in nuspec

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matthias Beerens <3512339+Matthiee@users.noreply.github.com>

* Cleanup 0.4 release (#85)

* Refactor InitializeModel into seperate class

* Split complex ParseOptions method

* Add braces

* Split complex ParseCommands and ParseCommandsAsync method

* Refactor if statements in HelpRequested method

* Remove redundant assignment

* Remove unused usings

* Revert returning help requested state to caller

* Improve if statements

* Add xml comment

* Add more xml documentation

* Add validator xml comments

* Update sample app

* Improve test coverage

* Add xml comment

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants