npm formik 0.9.0

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

🎉 What's new?

  • New <Formik /> component
  • <Field /> and <Form /> helpers
  • mapValuesToPayload has been removed
  • Improved warnings and error messages
  • More docs and examples
  • Website in the works...

🚧 Potentially breaking changes

  • validateOnChange now defaults to true
  • validateOnBlur now defaults to false

🚨 🚨 Breaking change 🚨 🚨

  • Formik() has been renamed withFormik(). (The named Formik import is now used for the component and not for the HoC)

Migrating from 0.8.x to 0.9.x

The Formik() HoC function in 0.8.x has been renamed withFormik() in 0.9.0. Since withFormik() is fully backwards compatible (in both plain JavaScript and TypeScript), you can safely do a search and replace and things will just work.

Before (0.8.x)

import { Formik } from 'formik'

const enhancer = Formik({ ... config ... })

...

After (0.9.x)

import { withFormik } from 'formik'

const enhancer = withFormik({ ... config ... })

...

Don't miss a new formik release

NewReleases is sending notifications on new releases.