@jaredpalmer jaredpalmer released this Jan 7, 2019 · 9 commits to master since this release

Assets 2

Patch Release

  • Massive improvement to TypeScript inferencing for TS 2.9+
  • Improved treeshaking thanks to tiny-warning (thanks @TrySound !)

Improved TypeScript type inferencing for TS 2.9+

Before: Without explicit types, render prop & onSubmit's parameters yielded any type.

screenshot 2019-01-06 20 07 09

After: Types are now inferred by initialValues!!! No generics are needed if you are using TS 3.2.2

screenshot 2019-01-06 20 02 52

screenshot 2019-01-06 20 02 39

Commits

@jaredpalmer jaredpalmer released this Dec 14, 2018 · 16 commits to master since this release

Assets 2

Patch Release

  • Remove double rendering on each key stroke. Huge perf boost.

Commits

@jaredpalmer jaredpalmer released this Dec 8, 2018 · 24 commits to master since this release

Assets 2

Minor Release

tl;dr

  • Massive performance improvement over 1.3.x with tiny change to isValidating and smarter internal orchestration of validation
  • Treeshaking thanks to @TrySound

About that #perf boost...

In 1.4.x isValidating will only now toggle during submission and if you manually call validateForm, otherwise it will remain false. In the past, it toggled on change and blur which caused a performance regression with certain libraries (like styled-components). Additionally, Formik internally runs validation slightly more intelligently: it will now cancel a running validation promise if a newer one is executed prior to committing the update. This can save lots and lots of renders.

Commits

Update on Formik v2

Formik v2 is coming very soon (#1063)!!! We'll start to publish canary releases next week. Stay tuned!

@jaredpalmer jaredpalmer released this Nov 13, 2018 · 46 commits to master since this release

Assets 2

New stuff

  • Support for <button type="reset> will now call handleReset
  • Treeshaking and build improvements by @TrySound !!
  • setIn now keeps the same object if nothing has changed

Internals

  • Refactored all tests to use react-testing-library instead of enzyme
  • Lots of docs improvements