Skip to content

10.0.0

Compare
Choose a tag to compare
@JeremySkinner JeremySkinner released this 06 Apr 13:30
· 307 commits to main since this release

Release notes

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

Changes in 10.0.0

  • Various performance improvements throughout the library
  • Collection rules now only iterate the collection once
  • Property validator classes are now generic
  • Deprecated non-generic PropertyValidator.
  • Changed type of ValidationResult.Errors from IList<ValidationFailure> to List<ValidationFailure>
  • The internal API now uses generics.
  • Various property validator options have been seperated into RuleComponents.
  • Various parts of the internal API are now internal (PropertyRule, CollectionPropertyRule etc).
  • ValidatorDescriptor now returns rule components in various places, where PropertyValidators were previously returned
  • Default service lifetime in ASP.NET projects is now Scoped rather than Transient.
  • Combined IActionContextValidatorInterceptor and IValidatorInterceptor.
  • Changes to the ASP.NET Client Validator Adaptor interfaces. These now receive the rule component.
  • Removed deprecated IStringSource and its inheritors.
  • Removed deprecated FormattedMessageArguments from ValidationFailure.
  • Removed other deprecated code.

Downloads

Binaries can be downloaded from nuget: