Full Changelog: v6.1.1...v7.0.0
Breaking changes
-
chore: migrate to ESM-only package
-
refactor: previous values typed as
Partial<Values>now use the raw type in several places (initialValues,onSubmit(),onSuccess(),onValuesChange(),validate(),validateField()) -
refactor: the first generic of
getValue<P>()andgetInitialValue<P>()inuseForm()now represent the type of the path (first argument) to improve inference, if the type is not detected (returned asunknown), use casting (ex:getValue('address.street') as string) -
refactor: rename
clear()toclearValues()inuseForm() -
refactor: rename
clearTouched()toclearTouchedFields()inuseForm() -
refactor: rename
getModified()togetModifiedFields()inuseForm() -
refactor: rename
getTouched()togetTouchedFields()inuseForm() -
refactor: rename
removeFields()toremoveValues()inuseForm() -
refactor: rename
reset()toresetValues()inuseForm() -
refactor: rename
resetTouched()toresetTouchedFields()inuseForm() -
refactor: rename
setTouched()tosetTouchedFields()inuseForm() -
deps: upgrade to react@19
-
deps: upgrade to nodejs@24
-
deps: upgrade to concurrently@10
-
deps: upgrade to jsdom@30
-
deps: upgrade to @testing-library/jest-dom@7
-
deps: upgrade to @testing-library/react@16
-
deps: upgrade to typescript@7
Other changes
-
feat: improve path autocompletion of nested objects (
getValue('address.street.num')) -
feat: add support for array index in paths using dot notation (
getValue('array.0')) -
feat: add
clearModifiedFields()touseForm() -
feat: add
resetModifiedFields()touseForm() -
feat: add
setModifiedFields()touseForm() -
feat: add
setValidated(bool)touseForm() -
feat: add
setValidateError(error)touseForm() -
feat: add
setValidating(bool)touseForm() -
deps: replace eslint@8 by oxlint@1
-
deps: upgrade dependencies