Releases: christianalfoni/formsy-react
Releases · christianalfoni/formsy-react
0.11.2
- Fixed equalsField validation rule (Thanks @gneutzling)
- Created test for equalsField
Release 0.11.1
onValidSubmit
andonInvalidSubmit
now also passes invalidate callback as third argument (Thanks for pull @Semigradsky)- Custom validation example by @Semigradsky
validations
property can now use object to define what validation rules to runvalidations
object properties can have functions as values for validation. They receive all values and the current value inputrequired
property can now use string/object to define what validations indicates that the value is required- Got a few new default validators
validationErrors
is a new property that takes an object and maps errors to validation rulesvalidations
custom functions andaddValidationRule
can now return strings to indicate error messages- Important! The addValidationRule signature has changed
- Important! The
isLength
validation rule signature has changed - Important! The default value of a form element is whatever you pass it, even undefined. Any custom validation rules has to take into account that the value passed could be any value
- Important! Ajax has been removed... sorry... but Formsy has to keep its focus. It is a Form library, not Ajax library. You can still easily hook this into
onValidSubmit
etc. and passvalidationErrors
as a property on the form itself
0.10.1
- Fixed bug with
isValidValue
(Thanks for report @gilbarbara) - Fixe bug with
isFormValid
(Thanks for report @mloginov)
Version 0.10.0
- Fixed bug with using url and resetting error values (Thanks for reporting @frost555)
- Added examples you can run (Thanks to @Semigradsky)
- Added internal validation method for form elements, as an alternative to passing validations as prop (Thanks @philippotto)
- Cleaned up install with .npmignore (Thanks @Semigradsky)
- Fixed bug with validation
Release 0.9.0
- Added
validationErrors
property to form. This allows external control of validation and settings errors on form elements (Thanks for input @alexfrolov) - Added
isValidValue
method which lets you manually check if the a value is valid for the component. It runs the value passed against validations on the form element (Thanks for input @gilbarbara) - Fixed bug where value was considered a boolean, where it should have been undefined (Thanks @sdemjanenko)
- Form elements parse validation rules correctly when using arrays and object (Thanks for report @sdemjanenko)
- When resetting a form the form elements reset to their pristine value (Thanks for input @sdemjanenko)
- Fixed validation rule bug on equalsField (Thanks for report @Semigradsky)
- Refactored tests (Thanks @sdemjanenko)
- Updated readme with cross links (Thanks to @Semigradsky)
React 0.13 support
Sorry about the delay on this release, but have been sick with the flue and moving across the country at the same time. There will be a bigger release next week.
- Thanks @michaelcontento for fixing global leak
- Thanks @jonaswindey for his patience ;-)