v1.0.0-alpha.4
Pre-release
Pre-release
jaredpalmer
released this
30 Mar 17:46
·
1389 commits
to main
since this release
Minor Release
New stuff
- TypeScript 2.8 (#543)
- Dramatically improved
FormikTouched
type signature thanks to conditional types. - There should be more improvements to type signatures coming soon.
- Dramatically improved
- Add
replace
array helper (#520) - Pass in next
initialValues
intoFastField
's reset function (#462) - New ways to use
handleChange
andhandleBlur
(#521)- You can now omit a
name
attribute when using handleChange and handleBlur if you pass them a string as the first argument. They have been modified to return a handler (like Preact'slinkState
helper). The curried handleChange handler also has the flexibility to accept either anevent
OR a string as it's argument--so you can use it with React Native's<TextInput onChangeText/>
too! In other words, you can now do this...
- You can now omit a
// You can now do this....
<input onChange={handleChange('firstName')} value={values.firstName} />
// and in React Native
<TextInput onChangeText={handleChange('firstName')} value={values.firstName} />
Internals
- Added testimonials to docs
- Bumped up deps for TS
- Official types test added