Skip to content

v1.0.0-alpha.4

Pre-release
Pre-release
Compare
Choose a tag to compare
@jaredpalmer 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.
  • Add replace array helper (#520)
  • Pass in next initialValues into FastField's reset function (#462)
  • New ways to use handleChange and handleBlur (#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's linkState helper). The curried handleChange handler also has the flexibility to accept either an event 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 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