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 - v3.1.0

Published by erikras almost 7 years ago

New Features

  • A new dirtySinceLastSubmit flag is available to both the form and fields, which lets you know if the values have change since the last submit occurred, whether successful or not. This is particularly useful for hiding submission errors once the user has attempted to fix them. #57 #4 #38 #48
final-form - v3.0.1

Published by erikras almost 7 years ago

Typescript

  • Improved typescript typings #53 #54
final-form - v3.0.0

Published by erikras almost 7 years ago

⚠️ BREAKING CHANGE ⚠️

onSubmit is now passed the form api as well as the values. #47 https://github.com/final-form/react-final-form/issues/69

In v2.x.x:

createForm({
  onSubmit: (values) => {
    const promise = sendToServer(values)
    return promise
  }
})

OR

createForm({
  onSubmit: (values, callback) => {
    sendToServer(values, callback)
  }
})

In v3.x.x:

createForm({
  onSubmit: (values, form) => {
//                 ^^^^^^^ -------------------- 🆕
    const promise = sendToServer(values)
    return promise
  }
})

OR

createForm({
  onSubmit: (values, form, callback) => {
//                 ^^^^^^^ -------------------- 🆕
    sendToServer(values, callback)
  }
})
final-form - v2.0.0

Published by erikras almost 7 years ago

New Features

  • Each field can now specify its own isEqual function for calculating pristine and dirty. This enables arbitrary values. Defaults to ===. #46 https://github.com/final-form/react-final-form/issues/59
  • Each field can now provide a list of other fields for which to run field-level validation when the current field changes. #46 #37

⚠️ BREAKING CHANGE ⚠️

In v1.x.x:

form.registerField(
  name,
  subscriber,
  subscription,
  validate
)

In v2.x.x:

form.registerField(
  name,
  subscriber,
  subscription,
  {
    isEqual,
    validate,
    validateFields
  }
)
final-form - v1.3.5

Published by erikras almost 7 years ago

Bug Fixes

final-form - v1.3.4

Published by erikras almost 7 years ago

Something went wrong in the publishing of v1.3.4. This release actually has its fix published properly. 😳

final-form - v1.3.3

Published by erikras almost 7 years ago

⚠️ Don't use this version. Use v1.3.4. ⚠️

Bug Fixes

final-form - v1.3.2

Published by erikras almost 7 years ago

🎉 TypeScript types 🎉

Courtesy of #30.

final-form - v1.3.1

Published by erikras almost 7 years ago

Bug Fixes

final-form - v1.3.0

Published by erikras almost 7 years ago

Features

  • Added Decorator type #24
  • Added getRegisteredFields() function #25
final-form - v1.2.1

Published by erikras almost 7 years ago

Bug Fixes

final-form - v1.2.0

Published by erikras almost 7 years ago

Features

🎉 OMG MUTATORS!!! 🎉

  • New mutator support that allows third party functions to manipulate form state.
  • Field-level arbitrary data storage, for mutators to provide extensible functionality.
final-form - v1.1.0

Published by erikras almost 7 years ago

Features

  • Added errors and submitErrors objects as form state that can be subscribed to #10 #5

Flow Fixes

  • Brand new $Shape syntax for subscriptions and reported state. #2

Docs

  • Met Github community standards. #3
  • Added Example #7 #6
final-form - v1.0.0

Published by erikras almost 7 years ago

🎉 Initial Release! 🎉