final-form

🏁 Framework agnostic, high performance, subscription-based form state management

OTHER License

Downloads
1.8M
Stars
3K
Committers
94

Bot releases are visible (Hide)

final-form - v4.8.0

Published by erikras over 6 years ago

New Features

  • Added destroyOnUnregister config flag to blow away field values when a field is unmounted. Defaults to false. #133
final-form - v4.7.3

Published by erikras over 6 years ago

🤦‍♂️

Burned through a few versions because NPM was acting wonky. I wouldn't necessarily trust v4.7.1 or v4.7.2, even though the only thing that changed was the version number.

final-form - v4.7.1

Published by erikras over 6 years ago

Typing Fixes

  • Fixed problem with exported configKeys value. Only used internally to interact with react-final-form.
final-form - v4.7.0

Published by erikras over 6 years ago

final-form - v4.6.2

Published by erikras over 6 years ago

Bug Fixes

  • Fixed a bug in hadValidationErrors that was reporting true when there were no errors. #121 #123 #126
final-form - v4.6.1

Published by erikras over 6 years ago

New API

  • New form.isValidationPaused() API needed to fix a bug in 🏁 React Final Form. #119
final-form - v4.6.0

Published by erikras over 6 years ago

Bug fixes

  • Improved performance by halting notifications when validation is paused, such as when many fields are being registered on first render. #118
final-form - v4.5.2

Published by erikras over 6 years ago

Type Fixes

  • Type signature was wrong for reset() on both Flow and Typescript. #114
final-form - v4.5.1

Published by erikras over 6 years ago

v4.5.0 was broken. 😳

Features

  • New hasSubmitErrors and hasValidationErrors boolean flags added to FormState to make it easier to ascertain why invalid === true. #108 #80 #81 https://github.com/final-form/react-final-form/issues/89
  • initialValues can now be passed to reset to avoid having to do reset(); initialize(values); #100 #98 #99
  • Dropped use of Symbol in favor of unique strings. This removes the need for polyfills for older browsers. #109 #106
  • Babel loose mode trimmed some bytes off the bundle size. #112
  • Dropped for-of syntax to trim further bytes off the bundle size. #111

Bug Fixes

  • Submit errors are now resolved from the Promise returned by submit() #107 #78
  • Field-level validation errors are now cleared when the last field with that name is unregistered. #110 #101
  • Fields were not all getting marked as touched when a submission failed with submit errors. #113 https://github.com/final-form/react-final-form/issues/186
final-form - v4.4.0

Published by erikras over 6 years ago

Bug Fixes

  • Fixed very annoying bug where clearing one field-level validation error would erase them all. #94 #75

New Features

  • New way to set an error on an array of fields. #92
import { ARRAY_ERROR } from 'final-form'

...

errors.items = []
errors.items[ARRAY_ERROR] = 'You need some items'
  • New form.getFieldState(fieldName) API to inquire about the state of a given field. #93 #91
final-form - v4.3.1

Published by erikras over 6 years ago

Bug Fixes

final-form - v4.3.0

Published by erikras over 6 years ago

New Features

  • Added a new setConfig function to allow realtime updating of config values #87 final-form/react-final-form#128

Flow Fixes

  • Fixed exported flow types #89 final-form/react-final-form#142
final-form - v4.2.1

Published by erikras over 6 years ago

Bug Fixes

  • Reset submit state (e.g. submitFailed, etc.) when form.reset() is called. #84 #72
  • Await async validation before submission #83 #82
final-form - v4.2.0

Published by erikras over 6 years ago

New Features

  • You can now pauseValidation() and resumeValidation() to have finer control over when the automatic validation is run. #74 #73
final-form - v4.1.0

Published by erikras over 6 years ago

Bug Fixes

Flow Fixes

  • Sealed subscription flow types. #71 #67

New Features

final-form - v4.0.4

Published by erikras over 6 years ago

Typescript fixes

  • Ensure mutators is defined to avoid bad strongly typed developer casting experience #68
final-form - v4.0.3

Published by erikras almost 7 years ago

For some reason v4.0.2 did not have the changes it was supposed to have... 🤷‍♂️

final-form - v4.0.2

Published by erikras almost 7 years ago

Typescript fixes

  • Fixed some broken types #66 #65
final-form - v4.0.1

Published by erikras almost 7 years ago

Typescript Fixes

  • Added typescript regression tests and fixed some minor type errors #61

Bug Fixes

  • submitFailed is now true if the submission failed because of sync validation errors. #64 #63
final-form - v4.0.0

Published by erikras almost 7 years ago

⚠️ BREAKING CHANGE ⚠️

It's fairly minor, but when you register a field now, rather than provide a field-level validation function, now you must provide a function that returns the validation function. The migration is pretty trivial:

v3.x.x

form.registerField(
  'firstName',
  fieldState => { // do something with field state },
  fieldSubscription,
  {
    validate: value => { // return error }
  }
)

v4.x.x

form.registerField(
  'firstName',
  fieldState => { // do something with field state },
  fieldSubscription,
  {
    validate: () => value => { // return error }
//            ^^^^^--- ADD THIS 👀
  }
)