This repository has been archived by the owner on Apr 6, 2023. It is now read-only.
Releases: unform/unform
Releases Β· unform/unform
v2.1.6
v2.1.5
Bug fixes:
- fix: Change data record value type to any
Other:
- chore: Add repo information on package.json
v2.1.4
v2.1.4
v2.1.0
New minor release with some fixes and typing improvements.
π Improvements
- Added "value type" parameter to
registerField
; path
not required anymore whengetValue
is present;- Adding/removing field does not cause rerender anymore;
- Return form event in submit handler;
- Enable
setData
with values as objects or arrays; - Add
clearError
function touseField
hook;
More details take a look at #223
v2.0.0
π Features
π± React Native support;
βοΈ New API with support for manual set/get of field values and errors, manual reset and more;
βοΈ More flexible useField API for custom inputs;
πΆ Cool Stuff
π New docs; (https://unform.dev)
β‘οΈ New NPM org (@unform);
π₯ Monorepo;
v1.6.0
π Bug Fixes
- Now
setFields
are considered the state queue when runningunregisterField
(#107);
π Features
v1.5.0
π Bug Fixes
- Allow Form to receive all HTML attributes (#77);
- Lint and commit staged files inside all folders (#78, #89);
π Features
πΆ Cool stuff
- New documentation with translation being created: https://rocketseat.github.io/unform/
v1.4.0
π Bug Fixes
- ESLint/prettier integration (#71);
π Features
- Styled Components support π (#35);
- Textarea DEPRECATED, use
<Input multiline />
instead (#59); - Add typings to SubmitHandler (#44);
πΆ Cool stuff
- Almost 2k stars;
- Cool post from @italomlp (https://dev.to/italomlp/unform-the-definitive-form-library-for-react-apps-35lh);
v1.3.0
π Bug Fixes
- Initial value for select element fixed;
- Throw error when Yup schema is wrongly defined;
π Features
- Now
onSubmit
receives a second argument with helpers (only resetForm for now):
function handleSubmit(data, { resetForm }) {}
registerField
now includes two new properties:parseValue
: Function used to parse value to send to submit;clearValue
: Function used to clear form element value;
- Select element can't be multiple anymore, please use
react-select
; getValue
doesn't exists anymore, all values should be captured by element reference;
πΆ Cool stuff
- Test coverage hit 100%;
- We got 1k stars in 3 days;