Skip to content

Releases: final-form/react-final-form

v3.0.0

12 Jan 11:14
Compare
Choose a tag to compare

Dependencies

Fixes

  • No longer puts versions in display name #106

v2.2.0

10 Jan 18:36
Compare
Choose a tag to compare

New Features

  • Checkboxes will now manage lists of values if you provide a value prop. If you do not provide a value prop, checkboxes will manage boolean values as they always have. #90 #104 For example, the following inputs will manage an array of strings:
<Field name="toppings" component="input" type="checkbox" value="onions"/>
<Field name="toppings" component="input" type="checkbox" value="sausage"/>
<Field name="toppings" component="input" type="checkbox" value="pepperoni"/>
  • FormSpy now receives all the good Form API props that Form gets. change, blur, initialize, etc. #101 #105

Bug Fixes

  • Made event parameter optional to handleSubmit for React Native support. #84 #95

Typescript

v2.1.1

21 Dec 14:46
Compare
Choose a tag to compare

Type Fixes

  • Fixed Typescript types for new parse/format features. #77

v2.1.0

21 Dec 10:41
Compare
Choose a tag to compare

New Features

馃帀 parse and format props! 馃帀

Brings the Redux-Form Value Cycle to 馃弫React Final Form. normalize was eschewed because it accomplishes nothing that cannot be done with parse. #74 #76 #45 #75

See these new props in action:

Edit 馃弫 React Final Form - Parse and Format

v2.0.0

18 Dec 18:07
Compare
Choose a tag to compare

Bug Fixes

  • Fixed devDependencies to be compatible with prop-types package. #67

New Features

  • Upgraded to be compatible with final-form@2.0.0, which allows:
    • New isEqual prop can be given to Field to be used in calculating pristine/dirty. Defaults to ===.
    • New validateFields prop can be given to Field to specifically name other fields to run field-level validation on when that field changes. You can also pass [] to run field-level validation only on the field that has changed. See validateFields docs.

鈿狅笍 BREAKING CHANGES 鈿狅笍

  • Upgraded to be compatible with final-form@3.0.0 #69, which provides access to the form api in onSubmit:

In v1.x.x:

<Form onSubmit={values => {
  const promise = sendToServer(values)
  return promise
}}/>

OR

<Form onSubmit={(values, callback) => {
  sendToServer(values, callback)
}}/>

In v2.x.x:

<Form onSubmit={(values, form) => {
//                     ^^^^^^ -------------------- 馃啎
  const promise = sendToServer(values)
  return promise
}}/>

OR

<Form onSubmit={(values, form, callback) => {
//                     ^^^^^^ -------------------- 馃啎
  sendToServer(values, callback)
}}/>

v1.2.1

12 Dec 21:25
Compare
Choose a tag to compare

馃帀 TypeScript types!! 馃帀

Via #52 fixing #50.

Requires final-form@1.3.2.

v1.2.0

08 Dec 13:55
Compare
Choose a tag to compare

Bug Fixes

  • Removed meta.name prop, as name should only be under input.name. #36 #34
  • Added warning for improper value prop usage. #37

Features

v1.1.1

04 Dec 18:02
Compare
Choose a tag to compare

Bug Fixes

  • Allow initialization through initialValues prop. #30 #18
  • Passed along validateOnBlur to 馃弫 Final Form. #28 #27
  • Returned a Promise from handleSubmit() #32 #21

v1.1.0

04 Dec 10:01
a0dc74f
Compare
Choose a tag to compare

Features

v1.0.0

27 Nov 12:31
Compare
Choose a tag to compare

馃帀 Initial Release! 馃帀