Skip to content

Releases: christianalfoni/formsy-react

0.11.2

14 Apr 06:11
Compare
Choose a tag to compare
  • Fixed equalsField validation rule (Thanks @gneutzling)
  • Created test for equalsField

Release 0.11.1

13 Apr 17:40
Compare
Choose a tag to compare
  • onValidSubmit and onInvalidSubmitnow 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 run
  • validations object properties can have functions as values for validation. They receive all values and the current value input
  • required 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 rules
  • validations custom functions and addValidationRule 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 pass validationErrors as a property on the form itself

0.10.1

07 Apr 05:25
Compare
Choose a tag to compare
  • Fixed bug with isValidValue (Thanks for report @gilbarbara)
  • Fixe bug with isFormValid (Thanks for report @mloginov)

Version 0.10.0

03 Apr 11:26
Compare
Choose a tag to compare
  • 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

29 Mar 11:41
Compare
Choose a tag to compare
  • 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

24 Mar 06:53
Compare
Choose a tag to compare

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.