Releases: final-form/final-form
Releases · final-form/final-form
Release list
v5.0.1
v5.0.1
A big batch of bug fixes that have accumulated since the v5.0.0 release. No breaking changes.
New
ignoreUnregisterconfig option — Fields that unregister will have their values ignored during validation and submission, without needingdestroyOnUnmount. Useful for multi-step forms. (#500)
Bug Fixes
Validation
- Fixed async validation race condition — per-field async promises are now tracked individually so stale results from previous runs can't overwrite current ones (#513, fixes #509)
- Fixed infinite loop when an async validation promise rejects — the stale promise is now cleared so it can't retry forever (#530, fixes #166)
- Fixed validation not running correctly when a field has both array-level and item-level validators (#524, fixes #482)
- Fixed crash when a field is unregistered while validation is in-flight (#531, fixes #186)
- Fixed crash when
getValidatorsencounters an undefined field (#532, fixes #158)
Submission
- Fixed
beforeSubmitnot being called before the sync errors check — it can now prevent submission even when there are no sync errors (#522) - Fixed
submitErrorsbeing wiped when sync validation fails after a failed submission (#521, fixes #437)
Field State
- Fixed
keepDirtyOnReinitializenot working correctly with array fields (#538, fixes #366) - Fixed
modifiedflag not being cleared afterreset()/initialize()(#536, fixes #317) - Fixed dirty state not being tracked for unregistered FieldArray fields (#528, fixes #487)
- Fixed crash when unregistering a field that had been renamed (#533, fixes #191)
- Fixed
initialValuesnot updating when a field'sinitialValueprop changes (#543, fixes #988)
Values / setIn
- Fixed decimal, negative, and zero-padded numbers being treated as array indexes instead of object keys (e.g.,
values["1.5"]no longer becomes an array) (#526) - Fixed string error values being lost when removing nested field keys in
setIn(#527) - Fixed
setIncrashing onundefinedstate (#535, fixes #909) - Fixed inability to register fields with reserved property names like
constructor(#520)
TypeScript
FormState.valuesis now correctly typed as non-optional (#502)- Fixed return type of submit function in type declarations (#499)
- Fixed
isEqualinitialization TypeScript error (#517) - Added
typesfield topackage.jsonfor better tooling compatibility (#518) blur,change, andfocusare now guaranteed to always be functions (#519, fixes #472)
v5.0.0
This release has converted the entire library from Flow to TypeScript.
There should be NO BREAKING CHANGES, but because so much code was touched, I'm bumping to a major version out of precaution.
Read more here: Final Form goes to TypeScript
v5.0.0-3
v5.0.0-1
v5.0.0-0
v4.20.10
v4.20.9
- bump package size restriction a5b145e
- Merge pull request #467 from amje/patch-1 db16fb8
- Merge pull request #460 from OnimBeta/main 27490ec
- Merge pull request #469 from final-form/dependabot/npm_and_yarn/minimatch-3.1.2 8875bde
- Merge branch 'jarnaiz-main' fbea3c0
- Merge branch 'main' of github.com:jarnaiz/final-form into jarnaiz-main b152502
- Bump minimatch from 3.0.4 to 3.1.2 b2d3390
- Revert validator
allValuesoptional argument 78604ff - fix //issues/457 b142260
- fix: #411 ceed78e
v4.20.8
- Merge pull request #461 from antonvialibri1/fix-for-array-checkboxes-inputs-after-regression-introduced-in-version-4.20.3 b905214
- Merge pull request #446 from final-form/dependabot/npm_and_yarn/follow-redirects-1.14.8 24bc8b3
- Merge pull request #452 from final-form/dependabot/npm_and_yarn/minimist-1.2.6 b084b4b
- Merge pull request #454 from final-form/dependabot/npm_and_yarn/simple-get-3.1.1 0499149
- Merge pull request #466 from final-form/dependabot/npm_and_yarn/decode-uri-component-0.2.2 ec23212
- Merge pull request #468 from final-form/dependabot/npm_and_yarn/json5-1.0.2 a5063e4
- Merge branch 'huan086-feature/fix-up-field-state' 3b49609
- Merge branch 'feature/fix-up-field-state' of github.com:huan086/final-form into huan086-feature/fix-up-field-state b666d1c
- Bump json5 from 1.0.1 to 1.0.2 fef51c5
- Bump decode-uri-component from 0.2.0 to 0.2.2 5464d69
- Fix for issue #456 - Fixes unwanted breaking change for array input names introduced in v4.20.3 (a3575ef) - v4.20.2 used to work fine 3e47a6b
- Bump simple-get from 3.1.0 to 3.1.1 fba79fa
- Bump minimist from 1.2.5 to 1.2.6 a75117b
- Bump follow-redirects from 1.14.4 to 1.14.8 6ace61a
- If mutator creates a new field in
MutableStatefor keeping the field state of a renamed field, set theblur,focusandchangefunction ofInternalFieldStatewhenregisterFieldis called. 33e551f