Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.0.0
->4.20.9
Release Notes
final-form/final-form
v4.20.9
Compare Source
a5b145e
db16fb8
27490ec
8875bde
fbea3c0
b152502
b2d3390
allValues
optional argument78604ff
modifiedSinceLastSubmit
, is defined asfalse
, rather thanboolean
. final-form/final-form#457b142260
ceed78e
v4.20.8
Compare Source
b905214
24bc8b3
b084b4b
0499149
ec23212
a5063e4
3b49609
b666d1c
fef51c5
5464d69
a3575ef
) - v4.20.2 used to work fine3e47a6b
fba79fa
a75117b
6ace61a
MutableState
for keeping the field state of a renamed field, set theblur
,focus
andchange
function ofInternalFieldState
whenregisterField
is called.33e551f
v4.20.7
Compare Source
allValues
argument optional on typeFieldValidator
(#394)v4.20.6
Compare Source
Bug Fixes
v4.20.5
Compare Source
Bug Fixes
v4.20.4
Compare Source
Oops. Apologies!
v4.20.3
Compare Source
Bug Fixes
validating
istrue
before notifying listeners, if async validations are running #428 #42734fd350
Type Fixes
FormApi.restart
#425v4.20.2
Compare Source
Bug Fixes
Type Fixes
v4.20.1
Compare Source
Hi, @erikras here. The primary purpose for adding
scarf
as a dependency to this library was to gain some insights into just who is using this library. Nothing but the IP addresses of the computers running thenpm install
were ever recorded, which were back referenced to determine corporation identity. It was never "malware", but for sure it broke the contract assumption of "I can runnpm install
without anyone collecting data about me". Every day that assumption is more tenuous, as the 21st century internet continues the trend towards the default assumption being "someone is collecting data about me". But I, personally, don't feel right participating in that trend. The month or so that I hadscarf
installed confirmed that the largest Silicon Valley giants are using this library. Further spying will not produce more value. I would like to apologize for violating your trust.That said, the psychosocial rot that is consuming Open Source is the broken funding model. If each of you would request the equivalent of one hour of your salary every month to go to libraries you use (and save you way more than one hour per month), we OSS devs would feel less compelled to search for funding solutions. Please consider adding a line item... ❤️
Changes
scarf
dep #361v4.20.0
Compare Source
Features
restart()
API method to reset all form and field state #348 #333modifiedSinceLastSubmit
to field and form state #345 #215Bug Fixes
Type Fixes
Partial<FormValues>
#332 #314v4.19.1
Compare Source
Bug Fixes
v4.19.0
Compare Source
Features
Optimizations
toPath
method by caching results #329v4.18.7
Compare Source
Bug Fixes
keepDirtyOnReinitialize
#311v4.18.6
Compare Source
Bug Fixes
dirtyFieldsSinceLastSubmit
to FormState #290 #184Type Fixes
v4.18.5
Compare Source
Bug Fixes
v4.18.4
Compare Source
Bug Fixes
That one has been causing problems for a long time. Thanks @shrugs!
also....
🎉🎉🎉 ➡️ New Docs Site ⬅️ 🎉🎉🎉
v4.18.3
Compare Source
Bug Fixes
Type Fixes
setConfig
TypeScript typing (#259)v4.18.2
Compare Source
b0d9bea
v4.18.1
Compare Source
v4.18.0
Compare Source
forceUpdate
, addedresetFieldState
API #245 #244Author's note: While technically this is a breaking change, it's only removing an internal API (made for
final-form-array
) on a Monday morning that was first published less than 48 hours earlier, on Saturday afternoon. If you spent all day Sunday rewriting a project to use the ultimately unneededforceUpdate
API, then I do sincerely apologize. You should changefieldState.forceUpdate=true
tofieldState.lastFieldState=undefined
to get the same effect. Feel free to yell at @erikras on Twitter if not bumping the major version number for this release outrages you.v4.17.0
Compare Source
New Features
v4.16.2
Compare Source
Bug Fixes
Error
objects as valid errors #243 #179Type Fixes
v4.16.1
Compare Source
🤦♂️
Flow Fixes
validating
inFieldState
for flow26f186e
v4.16.0
Compare Source
New Features
validating
flag on each field #235, inspired by #232destroyOnUnregister
getter and setter #233Bug fixes and maintenance
v4.15.0
Compare Source
TypeScript Features
226db1b
v4.14.1
Compare Source
Type Fixes
Just some minor type fixes from
v4.14.0
.1be12bc
v4.14.0
Compare Source
New features!
v4.13.1
Compare Source
Bug Fixes
v4.13.0
Compare Source
New Features
Bug Fixes
Typing Fixes
v4.12.0
Compare Source
🎉 New Features 🎉
initialize
can now optionally be a function that takes the current values and returns the new initial values. #199defaultValue
andinitialValue
values toFieldConfig
, thus allowing fields to be initialized at registration time. #200 https://github.com/final-form/react-final-form/issues/387modified
flag for all fields. A field becomesmodified
the first time its value changes. Previously, withdirty
, if the user returned the value to the initial value, the form state had no evidence that the value had ever changed. This is whatmodified
provides. #201v4.11.1
Compare Source
Bug Fixes
destroyOnUnmount
wastrue
. #197 https://github.com/final-form/react-final-form-arrays/issues/35submitting
. #196 #195v4.11.0
Compare Source
Types
dirtyFields
type #158 #157FormData
to typescript typings #171Bug Fixes
onSubmit.length
to determine callback style #165undefined
#176New Features
submitting
toFieldState
#173 #172@babel/helpers
helpers instead of bundled ones #167v4.10.0
Compare Source
New Features
renameField
mutator #153v4.9.1
Compare Source
Bug Fixes
touched
,visited
,dirtyFields
– returned from getState() #150v4.9.0
Compare Source
Features
dirtyFields
value added toFormState
that provides a{ [string]: boolean }
object of all the currently dirty fields in the form. #149 https://github.com/final-form/react-final-form/issues/310Bug Fixes
submitting
andvalidating
flags flip back tofalse
onPromise
rejection. #148 #138reset()
also resetsubmitError
#141 #140v4.8.3
Compare Source
Bug Fixes
v4.8.2
Compare Source
Type Fixes
v4.8.1
Compare Source
Bug Fixes
form.change('field', 'value')
for any field. regardless of whether or not it is registered. #134 #102 https://github.com/final-form/final-form-calculate/issues/15Object.entries
(which is way more useful) for the better supportedObject.keys
. #135v4.8.0
Compare Source
New Features
destroyOnUnregister
config flag to blow away field values when a field is unmounted. Defaults tofalse
. #133v4.7.3
Compare Source
🤦♂️
Burned through a few versions because NPM was acting wonky. I wouldn't necessarily trust
v4.7.1
orv4.7.2
, even though the only thing that changed was the version number.v4.7.2
Compare Source
v4.7.1
Compare Source
Typing Fixes
configKeys
value. Only used internally to interact withreact-final-form
.v4.7.0
Compare Source
New Features
keepDirtyOnReinitialize
config flag #130 https://github.com/final-form/react-final-form/issues/246v4.6.2
Compare Source
Bug Fixes
hadValidationErrors
that was reportingtrue
when there were no errors. #121 #123 #126v4.6.1
Compare Source
New API
form.isValidationPaused()
API needed to fix a bug in 🏁 React Final Form. #119v4.6.0
Compare Source
Bug fixes
v4.5.2
Compare Source
Type Fixes
reset()
on both Flow and Typescript. #114v4.5.1
Compare Source
Features
hasSubmitErrors
andhasValidationErrors
boolean flags added toFormState
to make it easier to ascertain whyinvalid === true
. #108 #80 #81 https://github.com/final-form/react-final-form/issues/89initialValues
can now be passed to reset to avoid having to doreset(); initialize(values);
#100 #98 #99Symbol
in favor of unique strings. This removes the need for polyfills for older browsers. #109 #106Bug Fixes
Promise
returned bysubmit()
#107 #78touched
when a submission failed with submit errors. #113 https://github.com/final-form/react-final-form/issues/186v4.4.0
Compare Source
Bug Fixes
New Features
form.getFieldState(fieldName)
API to inquire about the state of a given field. #93 #91v4.3.1
Compare Source
Bug Fixes
v4.3.0
Compare Source
New Features
setConfig
function to allow realtime updating of config values #87 final-form/react-final-form#128Flow Fixes
v4.2.1
Compare Source
Bug Fixes
submitFailed
, etc.) whenform.reset()
is called. #84 #72v4.2.0
Compare Source
New Features
pauseValidation()
andresumeValidation()
to have finer control over when the automatic validation is run. #74 #73v4.1.0
Compare Source
Bug Fixes
undefined
was removing it from the array. #69 https://github.com/final-form/react-final-form/issues/133Flow Fixes
New Features
touched
andvisited
objects to subscribable form state. #70 https://github.com/final-form/react-final-form/issues/132v4.0.4
Compare Source
Typescript fixes
mutators
is defined to avoid bad strongly typed developer casting experience #68v4.0.3
Compare Source
For some reason
v4.0.2
did not have the changes it was supposed to have... 🤷♂️v4.0.2
Compare Source
Typescript fixes
v4.0.1
Compare Source
Typescript Fixes
Bug Fixes
submitFailed
is nowtrue
if the submission failed because of sync validation errors. #64 #63v4.0.0
Compare Source
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
v4.x.x
v3.1.0
Compare Source
New Features
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 #48v3.0.1
Compare Source
Typescript
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.