Open greenkeeper[bot] opened 5 years ago
dependency
react-final-form was updated from 3.7.0
to 4.0.1
.dependency
react-final-form was updated from 3.7.0
to 4.0.2
.dependency
react-final-form was updated from 3.7.0
to 4.1.0
.Update to this version instead ๐
The new version differs by 27 commits.
184235b
Updated bundle size on readme
c96c8a6
updated version
5cae430
Merge branch 'master' of github.com:final-form/react-final-form
db204ed
upgraded deps
9828131
Setup TS tests (#418)
d85a92d
Fixed conflicts
efb81c2
final-form@4.12.0 compatibility (#434)
e01de85
Expose react context from index, added typescript tests, prepare for React 16.6 (#388)
4885efa
Remove . (#424)
2fe9f19
Add Typescript typings for the third argument of the validate
function (#429)
286a69b
Added helper libs to readme
4ffa1ac
Changed MUI example link, as referenced in #389
0974dad
Updated material-ui demo (#389)
494276b
Update fieldprops documentation (#397)
49b632e
Update FieldProps.validate type definition (#413)
There are 27 commits in total.
See the full diff
dependency
react-final-form was updated from 3.7.0
to 5.0.0
.Update to this version instead ๐
First to explain why this change was made... To manage subscriptions to the internal React.useEffect()
hook. In an effort to modernize and future proof the library, the entire thing has been rewritten to use hooks.
All the previous tests have been rewritten to use v4
should work in v5
, including some optimizations to minimize superfluous additional renders that were made possible by hooks.
Don't worry...there really aren't that many.
^react@16.8.0
. That's where the hooks are. FormRenderProps
and FormSpyRenderProps
have been removed. They have been spitting warnings at you since v3
, so you've probably already corrected for this. The following applies to:
batch
blur
change
focus
initialize
mutators
reset
Rather than spreading the FormApi
into the render props, you are just given form
itself.
<Form onSubmit={submit}>{({ reset }) => (
// fields here
<button type="button" onClick={reset}>Reset</button>
)}</Form>
<Form onSubmit={submit}>{({ form }) => (
// fields here
<button type="button" onClick={form.reset}>Reset</button>
)}</Form>
Field
will no longer rerender when the validate
prop. Note: it will still always run the latest validation function you have given it, but it won't rerender when the prop is !==
. This is to allow the very common practice of providing an inline =>
function as a field-level validation function. This change will break the very rare edge case where if you are swapping field-level validation functions with different behaviors on subsequent renders, the field will no longer rerender with the new validation errors. The fix for this is to also change the key
prop on Field
any time you swap the validate
function. See this test for an example of what I mean.Because it was so easy to do, useField
and useFormState
hooks that are used internally in Field
and FormSpy
respectively. Literally the only thing Field
and FormSpy
do now is call their hook and then figure out if you are trying to render with the component
, render
, or children
prop.
For example, before v5
, if you wanted to create a custom error component that only rerendered when touched
or error
changed for a field, you'd have to do this:
const Error = ({ name }) => (
<Field name={name} subscription={{ touched: true, error: true }}>
{field =>
field.meta.touched && field.meta.error ? (
<span>{field.meta.error}</span>
) : null
}
</Field>
)
...but now you can do:
const Error = ({ name }) => {
const field = useField(name, { subscription: { touched: true, error: true } })
return field.meta.touched && field.meta.error ? (
<span>{field.meta.error}</span>
) : null
}
Not too groundbreakingly different, but these hooks might allow for some composability that was previously harder to do, like this clever disgusting hack to listen to multiple fields at once.
Go forth and hook all the things!
Special thanks to @Andarist for giving me such an extensive code review on #467.
The new version differs by 14 commits.
35b85b9
5.0.0
376fc69
Removed deprecated api from docs
c851c78
Removed misguided hooks docs
ffd2003
Hooks!!! (#467)
41d24d6
Added CLI example
45d5e97
Fixed anchor for selective example
bfa390e
Merge branch 'master' of github.com:final-form/react-final-form
230c169
Upgraded deps and fixed vulnerabily with tar package
cb17dc5
Added selective debounce demo
e8138a3
Fix onChange TS type signature (#438)
5f036e2
Update readme that warnings do not prevent submit (#447)
a3ca5f1
Fixed tslint errors
6cc9b12
Unify TS tests & backport removed typing improvements (#435)
d68a91f
v4.1.0
See the full diff
dependency
react-final-form was updated from 3.7.0
to 5.0.1
.dependency
react-final-form was updated from 3.7.0
to 5.0.2
.dependency
react-final-form was updated from 3.7.0
to 5.1.0
.dependency
react-final-form was updated from 3.7.0
to 5.1.1
.dependency
react-final-form was updated from 3.7.0
to 5.1.2
.dependency
react-final-form was updated from 3.7.0
to 6.0.0
.dependency
react-final-form was updated from 3.7.0
to 6.0.1
.dependency
react-final-form was updated from 3.7.0
to 6.1.0
.dependency
react-final-form was updated from 3.7.0
to 6.2.0
.dependency
react-final-form was updated from 3.7.0
to 6.2.1
.dependency
react-final-form was updated from 3.7.0
to 6.3.0
.dependency
react-final-form was updated from 3.7.0
to 6.3.1
.dependency
react-final-form was updated from 3.7.0
to 6.3.2
.dependency
react-final-form was updated from 3.7.0
to 6.3.3
.dependency
react-final-form was updated from 3.7.0
to 6.3.5
.dependency
react-final-form was updated from 3.7.0
to 6.4.0
.๐จ Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! ๐ ๐๐จ ๐
Find out how to migrate to Snyk at greenkeeper.io
dependency
react-final-form was updated from 3.7.0
to 6.5.0
.
The dependency react-final-form was updated from
3.7.0
to4.0.0
.This version is not covered by your current version range.
If you donโt accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
Release Notes for v4.0.0
Commits
The new version differs by 3 commits.
a3e977e
4.0.0
9652024
Required React ^16.3 for new context api
20dbedf
Migrate to new React Context API (#313)
See the full diff
FAQ and help
There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those donโt help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).Your Greenkeeper bot :palm_tree: