npm formik 1.0.0-beta.0

latest releases: 2.4.6, 2.4.5, 2.4.4...
5 years ago

React 16.3.2 Support is here!

bitmoji

NO BREAKING CHANGES. Formik still supports React v15+

What's new? 🍾 🎉

  • React 16.3.2 support 💯
  • No more dependency on prop-types or @types/prop-types for those using 16.3.2+. Earlier versions are polyfilled thanks to create-react-context
  • TypeScript 2.8.3
  • Exported CommonJS build development version (kind of like React does) with warnings
  • **New primitives (for advanced users) that want to hook into Formik context directly:
    • <FormikConsumer> this is a render prop that exposes Formik's context
    • connect() an Higher order component that wraps <FormikConsumer>

I am purposefully not documenting the new context helpers, because there shouldn't be any backwards compat issues due to the fact that create-react-context uses prop-types under the hood in versions less than 16.

Roadmap 🔭 🚀

  • Fix isSubmitting
  • Finish the website and release 1.0
  • Rewrite the docs and tutorial
  • State reducer / middleware
  • TS 2.9 will support JSX Generics. TBD if this should be a breaking change or not, but basically we'll be able to do <Formik<Values> render={props => }/> and <Field<Values> name="..." />. Very very exciting.
  • Move to a Monorepo and build React Native <Field>
  • Consolidate <FastField> into <Field>, and then deprecate <FastField>.
  • Consider removing form and field from Formik's <Field render> and just pass through props now that FormikConsumer exists. More discussion on this.

Commits (that matter)

Don't miss a new formik release

NewReleases is sending notifications on new releases.