What's new?
- TypeScript 2.9.1
- Fixed bug with FastField x React 16.4
- Better IE support #689
- Added react storybook
submitForm
now returns a Promise (Very useful for testing)- Better independent Field-level validation All mounted field-level validation functions (e.g.
<Field validation={() => ..}/>
) now run prior to top-levelvalidation
andvalidationSchema
when submit is attempted. The results of the field-level validations are then deeply merged with the results of any top-level validation. Previously, people who used field-level validation and setvalidateOnChange
andvalidateOnBlur
tofalse
would not have their validations run prior to submission. This fixes that. - Removed
react-lifecycles-compat
as a dep because we are no longer usinggetDerivedStateFromProps
What's coming next?
- Add
isValidating
- Add
fields
ormountedFields
. This is a map of currently mounted Field and FastField inputs. - Deprecate
dirty
and replace withisDirty
- Discuss adding
initialErrors
,initialTouched
, andinitialStatus
, andinitialState
- Fix
setIn
cloning - Document how to use
shouldComponentUpdate
to boost performance on gigantic forms - Get rid of enzyme from the codebase
- Suspense!
- Website
Commits:
- Make storybook look good 9027617
- Fix yarn.lock 9e7255b
- feat: adds storybook (#620) 26e9929
- Add bottom-up independent field-level validation (#684)a2475cc
- Update README.md (#717) f6d4ebd
- Remove react-lifecycles-compat (#715) b65118a
- Update README.md (#714) cae1789
- Fix #673. Fix fastfield using cDU (#674) 219b92f
- Update README.md (#713) fa5ac31
- fix: website/.snyk & website/package.json to reduce vulnerabilities (#709) 4f67fb8
- Bump to TS 2.9.1 (#679) 8fba3e0
- Close #687. Bump to Jest 23 (#688) 83aa257
- Use fbjs's getActiveElement for better IE support (#689) 6913206
- sync handleBlur with handleChange (#677) 5a786b1
- tiny typing error (#672) 8e5f7b0
- docs: fix typos (#668) c425955
- Add testimonials (#661) 7d2b15b
- Update README.md to reference latest gzip size (#656) 56dd598
- update examples with yup to follow changes made to yup (removing default export) (#654) 32379a2
- fix undefined var in react native (#653) 5bb226b
- Update yup import (#651) 3dd5b6c
- Fix broken link in Readme (#642) 75fde98