Skip to content

Releases: NewOldMax/react-form-validator-core

Promise support release

19 Feb 12:04
Compare
Choose a tag to compare

Now you can use promises in your custom validations!

Also name prop for inputs is not required anymore

Debounced forms reset fix

04 Dec 06:47
Compare
Choose a tag to compare
0.5.1

Cancel debounced validation when form validations is reseted.

Debounce memory leak fix

20 Sep 08:08
Compare
Choose a tag to compare

Also now npm audit runs without errors

0.4.4

19 Apr 06:31
Compare
Choose a tag to compare

Update react-lifecycles-compat to fix issue with uglify-js

React 16.3 support

10 Apr 09:12
Compare
Choose a tag to compare

New

  • React 16.3+ support (new lifecycle methods)
  • isFormValid - method for ValidatorForm to get validation state for whole form

'debounce' release

16 Jan 09:06
Compare
Choose a tag to compare

Now you can set debounceTime (in ms) if you need to debounce you validation

<ValidatorForm
+    debounceTime={1500}
>
...
</ValidatorForm>

'reset' release

26 Dec 12:12
Compare
Choose a tag to compare

Now you can reset validation state from all fields, just use new resetValidations method

reset() {
  this.setState(initialFormState);
  this.form.resetValidations();
}

<ValidatorForm
    ref={r => this.form = r }
>
    ....
   <button onClick={this.reset}>reset</button>
</ValidatorForm>

With `required` release

05 Dec 07:24
Compare
Choose a tag to compare
  • add ability to use required validator in the same way as others: just pass withRequiredValidator=true prop to ValidatorComponent

Quick fix for new validation rules

29 Nov 06:27
Compare
Choose a tag to compare
  • Fix min/maxStringLength rules by @7Flow

New validation rules update

28 Nov 06:34
Compare
Choose a tag to compare
  • minStringLength, maxStringLength, isString by @skorp