Skip to content

Releases: CodeStix/typed-react-form

v2.2.3

20 Aug 14:19
Compare
Choose a tag to compare
  • Fixed a bug where form.defaultValues and form.values got overwritten when using utility functions in useArrayListener.

v2.2.0

09 May 11:06
Compare
Choose a tag to compare

Changes:

  • innerRef prop on Field and FieldError
  • Removed FormState.setDefaultValues -> merged with FormState.setValues

v2.1.0

30 Apr 08:36
Compare
Choose a tag to compare

New:

  • The <Field/> component, a compact, form field component that replaces FormInput, FormSelect and FormInput.
  • The <FieldError/> component, the ultimate replacement for FormError.
  • <AnyListener/> now renders a JSON representation of the form if no render function is provided.
  • <Listener/> now renders the field value if no render functin is provided
  • Better naming: renamed useArrayForm -> useArrayField, useChildForm -> useObjectField

v1.3.1

26 Apr 10:45
a000ab0
Compare
Choose a tag to compare
  • It is now easier to create custom inputs by exposing defaultSerializer and defaultDeserializer to the user. See documentation for example usages.

v1.3.0

17 Apr 15:17
Compare
Choose a tag to compare
  • Moved yupValidator to seperate package typed-react-form-yup
  • Child/array forms name prop only allows object fields now.
  • Pass FormEvent through form.handleSubmit
  • Allow string as argument to setErrors, which sets the error on the parent.
  • Allow validators to return undefined.

This version requires TypeScript 4.1+! Use typed-react-form@v1.2.13 for libraries that don't support TypeScript 4.1 yet