Skip to content

Releases: luismts/ValidationRulesPlugin

1.5.0.1 Release

14 May 23:53
Compare
Choose a tag to compare

What's New in this Release

Fixes

  • Fix valueChanged event firing twice #22

1.5 Release

11 Apr 02:15
Compare
Choose a tag to compare

What's New in this Release

Breaking changes

  • No breaking changes.

New features

  • Support for .NET 6 and .NET MAUI added

1.4 Release

19 Feb 23:07
Compare
Choose a tag to compare

What's New in this Release

Breaking changes

  • Change ValueFormatter to Formatter for Validatable object.

New features

  • New ValidatableList object added for validation lists with validation rules.
  • New ValidatorList Builder added for ValidatableList object.
  • New UnFormat method added for IValueFormatter interface.
  • Errors support added for ValidationUnit object.
  • New ValueFormatted property added for Validatable object.

Others

  • Some improvements were added.
  • Some minor issues were fixed.

1.3.2 Release

19 Aug 01:25
Compare
Choose a tag to compare

Improvements

  • When() rule now is an anonymous condition.

1.3.1 Release

01 Jul 05:40
Compare
Choose a tag to compare

Improvements

  • ValidationUnit constructor overloaded.
  • Append method extension removed.

Fixed

  • IsEmail() rule extension issue fixed.

1.3 Release

08 May 03:09
Compare
Choose a tag to compare

What's New in this Release

New features

  • HasErrors property added for Validatable object.
  • New Validator Builder added for Validatable object.
  • Extension method for new Builder added:
    • New Build added for creating an empty Validatable object.
    • New WithRule added for adding rules to the Validatable object.
    • New When condition added for Validatable object.
    • New Must condition added for Validatable object. Now there is no need to create rules if it is not necessary.
  • ValidationRule extension methods added:
    • New WithMessage added
    • New IsRequired added
  • Validator class wrapper for models added.
    • Create a ValidationUnit with all your Validatable properties in your validator model with the InitUnit() method.
    • Generate a default Validate() method that you can use for validating your model validator without moving a finger.
    • Add Build() method for creating Validable property with rules with a Fluent API.
    • Add Map() method that you can override for mapping your properties.
  • Rules extensions with Fluent API added
    • IsCreditCard
    • IsEmail
    • IsEmpty
    • IsNotEmpty
    • IsEnum
    • IsEqual
    • IsNotEqual
    • IsNotEqual
    • IsInclusiveBetween
    • IsLessThan
    • IsLessThanOrEqual
    • IsNull
    • IsNotNull
    • WithLengthRule
    • WithExactLengthRule
    • WithMaxLengthRule
    • WithMinimumLengthRule
    • WithRegularExpression

Improvements

  • Builder with Fluent API added.
  • Conditions rules added.
  • NotNullRule generic added.
  • Now with the Must() method you can validate your property in the view model or context.
  • Now not need to use InverseConverter in XAML for knowing when there is an error. Now we have the HasError property.

Fixed

  • Validatable object constructor issue fixed.
  • Some minor issues fixed.

Thanks amazing contributor

1.2.2 Release

10 Jan 18:22
Compare
Choose a tag to compare

Improvements

  • ValueChanged event now is release by IDisposable interface.

Fixed

  • null or empty assignment issue on Validatable object Value fixed.

1.2.1 Release

03 Jan 01:45
a041827
Compare
Choose a tag to compare

Improvements

  • Better implementation for Validatable object Command.

Fixed

  • EmailRule namespace fixed.

1.2.0 Release

01 Jan 00:45
Compare
Choose a tag to compare

What's New in this Release

Validatable Objects

  • ValidatableObject renamed to Validatable.
  • Now implements ValueChanged event.
  • Now implements ValidateCommand command.
  • Now can take ValidationRules by the constructor.

Formatters

  • Now you can format your properties from your ViewModels in an easy and simple way.
  • Default Formatters:
    • BoolNegationFormatter
    • MaskFormatter
    • StringCaseFormatter
    • StringNumericFormatter

Default Rules

  • CrediCardRule
  • EmailRule
  • EmptyRule
  • EnumRule
  • EqualRule
  • GreaterThanOrEqualRule
  • InclusiveBetweenRule
  • LenghtRule
  • LessThanOrEqualRule
  • LessThanRule
  • NotEmptyRule
  • NotEqualRule
  • NotNullRule
  • RegularExpressionRule

Other

  • Mappers:
    • Now you can use IMapperValidator interface and create your own mapper in a model validator.
    • Now you can use MapValidator<Model, Validator>() extension method to automap your model validators.