Skip to content

Releases: dtrelogan/react-formstate

showMessage prop and Redux integration

16 Aug 17:57
Compare
Choose a tag to compare

Maintenance Release

23 Jul 13:17
Compare
Choose a tag to compare

see the release notes

mainly this cleans up some of the internals of the UnitOfWork class.

getUncoercedValue

23 Aug 13:48
Compare
Choose a tag to compare

removed undocumented getUncoercedFieldState and replaced with FieldState.getUncoercedValue. i can't imagine anyone was using it yet.

added get, set, getu, setc convenience functions.

added injectModel and add to the FormState class.

documented the new FormExtension feature.

fsValidate

12 Mar 19:38
Compare
Choose a tag to compare

a single "breaking" change of note, the default 'required' function is now:

FormState.required = function(value) {
  if (typeof(value) !== 'string' || value.trim() === '') { return 'Required field'; }
}

if you provide something other than a string it will fail validation.

you can suppress required validation while keeping the required tag in your jsx:

<Input required='-' fsv={v => v.minlen(1).msg('Please select a role')} />

100% coverage

06 Mar 02:57
Compare
Choose a tag to compare

add tests

move to 0.2.0:

no longer automatically bind autowired validation functions to the form component, consistent with react's behavior in es6. (validation functions are still autowired, just not bound.)

throw error objects rather than strings.