Unform Versions Save

Performance-focused API for React forms 🚀

v2.1.6

3 years ago
  • 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

3 years ago

Bug fixes:

  • fix: Change data record value type to any

Other:

  • chore: Add repo information on package.json

v2.1.4

3 years ago

v2.1.0

4 years ago

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

4 years ago

🚀 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

4 years ago

🐞 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

4 years ago

🐞 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

4 years ago

🐞 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

5 years ago

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

v.1.2.5

5 years ago