PageRenderTime 69ms CodeModel.GetById 7ms RepoModel.GetById 0ms app.codeStats 0ms

/Changelog.txt

https://github.com/nevaenuf/FluentValidation
Plain Text | 255 lines | 226 code | 29 blank | 0 comment | 0 complexity | 378353dbb248a76b47a4c45478912c86 MD5 | raw file
Possible License(s): Apache-2.0
  1. * Applied patch - Danish translation
  2. 5.3 - 27/05/2014
  3. * Fix issue https://fluentvalidation.codeplex.com/workitem/7183 (email address validation)
  4. 5.2 - 21/05/2014
  5. * Added Czech and Finish translation of default error messages
  6. * Allow nullable target properties for greater/less validators
  7. * Apply pull request: RuleForEach doesn't respect When condition
  8. 5.1 - 11/03/2014
  9. * Applied pull request: Apply the same display name resolving to the target property as to the source property.
  10. * Applied pull request: Allow parent to be passed to child collection validator
  11. * Applied pull request: Implement Async validation
  12. * Applied pull request: Split WebApi into separate project
  13. * Drop support for MVC 3
  14. 5.0 - 24/10/2013
  15. * Display name is now lazily-loaded by default (as a result, localization via DisplayAttribute now works correctly)
  16. * Added WebApi integration (contributed by dmorganb)
  17. * Support for MVC 5 (package names are FluentValidation.Mvc5 and FluentValidation.Mvc5-signed)
  18. * Remove support for partial trust
  19. 4.0 - 29/04/2013
  20. * Add portable class library and deprecate the Silverlight-specific projects
  21. * Added scale precision validator (thanks to Matthew Leibowitz)
  22. * Added the ability to replace property rules (thanks to Matthew Leibowitz)
  23. * Added a slightly better value type comparer (thanks to Matthew Leibowitz)
  24. * Added RuleForEach
  25. * Additonal overloads of Matches
  26. * Added MemberAccessor (thanks to Mark Welsh)
  27. * Fix issue where OverridePropertyName didn't work with SetValidator/SetCollectionValidator
  28. * Add virtual CreateValidator method in to FluentValidationModelValidatorProvider
  29. * Add custom error message builder
  30. * *Breaking* LengthValidator no longer treats null inputs as length 0. This is now consistent with other validators.
  31. * *Breaking* Change default error messages for Equal/NotEqual validators to use {ComparisonValue} rather than {PropertyValue} for consistency.
  32. * All validators can now access the current property value inside the error message using {PropertyValue}
  33. 3.4 - 17/08/2012
  34. * Make ValidationResut.IsValid virtual
  35. * Add private no-arg ctor to ValidationFailure to help with serialization
  36. * Add Turkish error messages
  37. * Work-around for reflection bug in .NET 4.5
  38. * BREAKING CHANGE - Assemblies are now unsigned.
  39. 3.3 - 30 March 2012
  40. * Added additional overload for Must that accepts a PropertyValidatorContext.
  41. * Allow rules not in a RuleSet to be executed in addition to rules in a ruleset, eg: validator.Validate(instance, ruleSet: "default,MyRuleset");
  42. * Support Custom rules within top level When conditions.
  43. * Russian localization
  44. * MVC4 compatibility
  45. 3.2 - 14 November 2011
  46. * Fixed issue #7084 (NotEmptyValidator does not work with EntityCollection<T>)
  47. * Fixed issue #7087 (AbstractValidator.Custom ignores RuleSets and always runs)
  48. * Removed support for WP7 for now as it doesn't support co/contravariance without crashing.
  49. 3.1 - 29 July 2011
  50. * Support using nullables with cross-property comparisons (GreaterThan/GreaterThanOrEqual/LessThan/LessThanOrEqual)
  51. * Deprecate and exclude mvc metadata extensions. This is out of scope for FV, but the code for this functionality is still in the repo if anyone still depends on this.
  52. * Add support for shared conditions based on David Alpert's patch.
  53. 3.0.0.1 - 5 July 2011
  54. * Workaround issue caused by referencing DataAnnotations in windows client projects (eg WPF). Does not affect web projects/silverlight.
  55. 3.0 - 25 June 2011
  56. * Dropped compatibility for .NET 3.5 and MVC2.
  57. * Removed the SupportsStandaloneValidation property - this was never properly implemented.
  58. * Implemented Rule Sets
  59. * Add support for CustomizeValidatorAttribute when using MVC integration.
  60. * Remove generic PropertyRule<T> - use non-generic version instead.
  61. * Better support for custom client-side error messages for LengthValidator.
  62. * Add support for MVC3's IClientValidatable
  63. * Implement client-side support for InclusiveBetween validator.
  64. * Implement client-side support for Equal with cross-property validation.
  65. * Implement client-side support for email validator.
  66. * Added credit card validator (plus client side support)
  67. * Add IValidatorInterceptor interface. This can be used to add pre/post hooks to MVC validation integration. An interceptor can either be specified as part of the CustomizeValidatorAttribute or implemented in the validator.
  68. * Better handling of nullable value types.
  69. * Add static FluentValidationModelValidatorProvider.Configure for configuring MVC integration with default options.
  70. * Fixed edge case where custom property names didn't work for Required rules on non-nullable value types in MVC integration.
  71. * Patch - Polish localization.
  72. * Additional overloads of WithLocalizedMessage that support custom format args for consistency with WithMessage.
  73. * Bug fix - overload for NotEqual that takes an expression and an IEqualityComparer did not use the comparer.
  74. * Added the ability to specify which ruleset is used to generate client-side rules.
  75. * Introduced SetCollectionValidator for validating collections (replaces non-generic overload of SetValidator)
  76. * Better type safety using child collection validators.
  77. * Better control of which elements in a child collection are validated using the new Where method.
  78. * Support rules for nested properties at the top level (without needing to use a child validator)
  79. * Support DisplayAttribute/DisplayNameAttribute for inferring property names
  80. 2.0 - 13 January 2011
  81. * Fix typo in the name of FallbackAwareResourceAccessorBuilder
  82. * Fix issue #7062 - allow validator selectors to work against nullable properties with overriden names.
  83. * Fix error in German localization.
  84. * Better support for clientside validation messages.
  85. 2.0 RC1 - 10 December 2010
  86. * Allow custom MVC ModelValidators to be added to the FVModelValidatorProvider
  87. * Support resource provider for custom property validators through the new IResourceAccessorBuilder interface
  88. * Introduce WithLocalizedName
  89. * Deprecated WithPropertyName - you should either use WithName or OverridePropertyName.
  90. * *Breaking change* Rename IErrorMessageSource and its derivatives to IStringSource
  91. * Updated ASP.NET MVC integration to MVC3 RC2
  92. 2.0 beta 2 - 9 November 2010
  93. * Breaking change - Renamed the assembly names for SL/WP7 assemblies to FluentValidation.dll for consistency (formerly FluentValidation.Silverlight and FluentValidation.WP7)
  94. * Breaking change - Finally removed the FV 1.1 backwards compatibility layer.
  95. * Breaking chagne - Removed the deprecated Cascade() method - use Cascade(cascadeMode) instead (this was deprecated in 1.3)
  96. * Provide more useful information in ValidationException error message.
  97. * FluentValidatorModelMetadataProvider now converts NotNull/NotEmpty validators to IsRequired in metadata.
  98. * Patch - updated German localization
  99. * Using a child validator on a collection will now skip items in the collection that are null.
  100. * NotEmptyValidator can now work against empty collections (must implement ICollection)
  101. 2.0 beta 1 - October 7 2010
  102. * AttributedValidatorFactory is finally production worthy with the introduction of InstanceCache
  103. * Fixed an issue where CascadeMode values are ignored if they're changed after the rules have been defined.
  104. * Ported FluentValidation to WP7.
  105. * ShouldHaveChildValidator test helper now works with child collection validators
  106. * Simplified the implementation of SetValidator.
  107. * MVC3 integration
  108. 1.3 - July 26 2010
  109. * Added non-generic ValidationContext to allow for using Validator Selectors with non-generic IValidator instances
  110. * Simplified the internal model
  111. * Patch - Italian language resources
  112. * Introduced IErrorMessageSource to abstract different mechanisms for building error messages
  113. * Made ChildValidatorAdaptor public
  114. * Silverlight build is now signed
  115. * Allow cascade mode to be set at the validator level.
  116. * Deprecated Cascade().StopOnFirstFailure() / Cascade().Continue() in favour of Cascade(cascadeMode) for consistency
  117. * Deprecated PropertyRule.ReplaceCurrentValidator(newValidator) with PropertyRule.ReplaceValidator(originalValidator, newValidator)
  118. * *Breaking change* Changed default behaviour of When/Unless. They now apply to all previous validators in the chain, not only to the current one. Previous behaviour can be maintained by using the overload that takes an ApplyConditionTo.
  119. * NotEmpty now considers strings that contain whitespace as invalid.
  120. * Added ShouldHaveChildValidator(x => x.Property, typeof(SomeChildValidator)) test extension
  121. * xVal integration supports custom error messages
  122. * Made IAttributeMetadataValidator public
  123. 1.2 for SL4 - April 29 2010
  124. * Ported 1.2 codebase to Silverlight 4.
  125. 1.2 - March 11 2010
  126. * Re-enabled MVC1 integration.
  127. * Tweak ModelValidator behaviour so that all errors are run in one go (again)
  128. * Added AssemblyScanner.
  129. * Upgraded to MVC2 RTM.
  130. 1.2 beta 3 - Feb 14 2010
  131. * Fixed issue with MVC2 MetaData throwing exceptions.
  132. * Initial support additional options (such as When/Unless) on child validators. Needs refactoring for next version.
  133. * Child validators no longer bypass the Validate method on the child validator instance.
  134. * Tweak ModelValidator behaviour so that all errors are run in one go.
  135. 1.2 beta 2 - Feb 6 2010
  136. * Issue #4903 - Allow Name Resolution to be pluggable
  137. * Changed the .SetValidator method to require an IValidator<TProperty> rather than an IEnumerable<IValidationRule<TProperty>>
  138. * Removed unnecessary CreateDescriptor overload from AbstractValidator.
  139. * MVC2 Integration - FluentValidationModelValidatorProvider (serverside & clientside)
  140. * MVC2 Integration - FluentValidationModelMetadataProvider
  141. * Removed ComplexPropertyRule / NestedCollectionValidator. Replaced with IPropertyValidator implementations.
  142. 1.2 beta 1 - Jan 23 2010
  143. * Upgraded MVC integration to ASP.NET MVC 2
  144. * Model Binder now works with empty prefixes
  145. * Added Adam Schroder xVal integration in the new FluentValidation.xValIntegration project (experimental)
  146. * Allow the validator cascade mode to be set globally. The existing behaviour is the default (Continue). It can now also be set to StopOnFirstFailure:
  147. ValidationOptions.CascadeMode = ValidatorCascadeMode.StopOnFirstFailure
  148. * Allow the validator cascade mode to be set at the rule level (overrides the global option):
  149. RuleFor(x => x.Surname).Cascade().StopOnFirstFailure()
  150. * User state can be stored along side validation failures.
  151. * Updated Silverlight project for Silverlight 3.
  152. * Added the OnAnyFailure method. This delegate will be invoked if any rule attached to a particular RuleBuilder fails.
  153. * Added ExactLengthValidator (error message needs localising...)
  154. * Patch - Swedish language resources
  155. * Added WithPropertyName
  156. * Patch - InclusiveBetween/ExclusiveBetween validators.
  157. * **Breaking Change** Removed generics from all the IPropertyValidator instances.
  158. * Introduced PropertyValidator base class
  159. * **Breaking Change** Removed the ValidationMessageAttribute
  160. * **Breaking Change** Removed the DefaultResourceManager
  161. * Simplified PropertyValidatorContext
  162. * Adding ValidatorFactoryBase to make creation of Validator Factories easier.
  163. * Additional overload of Custom that can access the current ValidationContext.
  164. * **Breaking Change** Deprecated and removed the CommonServiceLocator implementation.
  165. * Removed unnecessary IValidatorOptions interface.
  166. * Added InlineValidator.
  167. * Added ValidateAndThrow extension
  168. 1.1 - Jul 17 2009
  169. * Spanish resource translations.
  170. * French resource translations.
  171. * EmailValidator now uses regex from http://hexillion.com/samples/#Regex
  172. 1.1 beta 3 - Jun 15 2009
  173. * Patch - Dutch language resources
  174. * Deleting the deprecated 'And' operator
  175. * Major refactoring of the fluent interface.
  176. * Adding an additional overload of Validate to IValidator<T> that takes an IValidatorSelector.
  177. * Removing the IValidatorOfProperties interface
  178. * Moved the methods that were on IValidatorOfProperties to extension methods on IValidator
  179. * AbstractValidator now holds a collection of PropertyRules directly, rather than storing the intermediate RuleBuilders.
  180. * Introduced the PropertyModel
  181. * Marking AbstractValidator.CreateDescriptor as virtual.
  182. * Adding a protected Rules property to ValidatorDescriptor.
  183. * Allow a custom message to be definied in the ValidationMessageAttribute in addition to a resource key.
  184. 1.1 beta 2 - Jun 10 2009
  185. * Added support for validating nested collections
  186. * Implemented issue #4446: Additional property values can be accessed from within custom validation messages.
  187. * *Breaking Change* Validation messages now use custom placeholders such as {PropertyName} rather than {0}, {1} etc. This means that custom validation messages arguments now start at 0.
  188. * Added a ValidationMessage attribute which can be applied to property validator classes to specify the resource key to use when looking up the error message from the DefaultResourceManager.
  189. * Now using a more comprehensive regular expression in the EmailValidator.
  190. 1.1 beta 1 - May 26 2009
  191. * Validators can now be chained together: RuleFor(person => person.Address).SetValidator(new AddressValidator());
  192. * Marked the 'And' property as obsolete. It is now possible to chain validators without it. This will be removed in the next release.
  193. * Introduced ValidatorSelectors which allow certain validators to be excluded/excluded when validation occurs.
  194. * Initial work on the metadata API (added ValidatorDescriptor).
  195. * Added some additional marker interfaces to make obtaining metadata easier.
  196. * Added FluentValidation Model Binder for use with ASP.NET MVC.
  197. * Added ValidatorAttribute and AttributedValidatorFactory.
  198. * Added the ability to use a custom ResourceManager in place of the DefaultResourceManager.
  199. * Assemblies now marked as CLS Compliant.
  200. * Public fields can now be validated.
  201. * Made AbstractValidator.AddRuleBuilder public.
  202. * Added overload for AbstractValidator.Custom that can return multiple ValidationFailures.
  203. * Fixed issue #4236 - Error message for the 'Equals' validator showed the value entered not what the value should be.
  204. * Fixed issue with AddToModelState - empty string prefix should be treated the same as a null prefix.
  205. * Fixed issue with AddToModelState - SetModelValue should be called to ensure ASP.NET MVC's built-in HTML Helpers do not throw NullReferenceExceptions.
  206. * Fixed issue with email address regex - plus character should be allowed.
  207. * Fixed issue in Silverlight project - the Resource files were in the wrong namespace.
  208. 1.0 - Mar 27 2009
  209. * Support for multiple validators on a single property by using 'And' RuleFor(person => person.Surname).NotNull().And.NotEqual("Foo");
  210. * Added EqualValidator
  211. * Custom validation messages are now formatted in the same way as the default messages
  212. * Assemblies are now signed
  213. 0.3 - Jan 21 2009
  214. * Added ShouldNotHaveValidationErrorFor extension method for testing
  215. * Can now validate specified properties in addition to all properties (eg validator.Validate(person, x => x.Surname, x => x.Forename)
  216. * New validators (RegularExpressionValidator and EmailValidator) contributed by Liam McLennan
  217. * German localisation of validation messages contributed by Philipp Sumi
  218. * Additional overload to 'Must' that takes a Func<T, TProperty, bool>
  219. 0.2 - Dec 29 2008
  220. * Added Silverlight compatibility
  221. * Moved support for the CommonServiceLocator into a separate assembly (FluentValidation.CommonServiceLocator.dll)
  222. * Adding additional interfaces for some of the validators (ILengthValidator, INotNullValidator)
  223. * AbstractValidator now implements IEnumerable<IRuleBuilder<T>>
  224. * Added ShouldHaveValidationError extension method for testing validators
  225. 0.1 - Nov 1 2008
  226. * First public preview