Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Releases: unform/unform

v2.1.6

19 Feb 20:22
Compare
Choose a tag to compare
  • fix: Unform not working with React 16
  • chore: Migrate from husky v4 to v5
  • chore(deps): update dependency husky to v5
  • chore(deps): update @rocketseat/commitlint-config to 0.0.3
  • fix: Renovate commit message

v2.1.5

02 Feb 14:04
Compare
Choose a tag to compare

Bug fixes:

  • fix: Change data record value type to any

Other:

  • chore: Add repo information on package.json

v2.1.4

01 Feb 13:48
Compare
Choose a tag to compare
v2.1.4

v2.1.0

19 Apr 15:45
Compare
Choose a tag to compare

New minor release with some fixes and typing improvements.

πŸš€ Improvements

  • Added "value type" parameter to registerField;
  • path not required anymore when getValue 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 to useField hook;

More details take a look at #223

v2.0.0

12 Feb 22:35
Compare
Choose a tag to compare

πŸš€ 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

27 Sep 11:17
Compare
Choose a tag to compare

🐞 Bug Fixes

  • Now setFields are considered the state queue when running unregisterField (#107);

πŸš€ Features

  • Add Check component - for single options rendered as a single checkbox (#110);
  • Add Choice component - for multiple options rendered as checkboxes or radio buttons (#110);
  • Allow setting data on resetForm (#114);

v1.5.0

12 Jun 12:01
Compare
Choose a tag to compare

🐞 Bug Fixes

  • Allow Form to receive all HTML attributes (#77);
  • Lint and commit staged files inside all folders (#78, #89);

πŸš€ Features

  • Make select placeholder optional (#46);
  • File Input support (#82);

πŸ•Ά Cool stuff

v1.4.0

23 May 21:10
bba7219
Compare
Choose a tag to compare

🐞 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

v1.3.0

16 May 19:52
Compare
Choose a tag to compare

🐞 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;

v1.2.4

13 May 18:13
Compare
Choose a tag to compare
Increased package version