Skip to content

2.0.0

Compare
Choose a tag to compare
@zoontek zoontek released this 04 Apr 09:39
· 14 commits to main since this release
c4d5b0b

What's new

  • Unchanged fields value does not show valid feedback on submit, avoiding visually "valid" optional fields

Breaking changes

  • Rename package to @swan-io/use-form
  • Drop React 17 support
  • Remove hasDefinedKeys in favor of returning a record of @swan-io/boxed Options
  • Remove getFieldState in favor of a simpler getFieldValue
  • Remove async field validation (no more validating state)
  • Add getFieldRef
  • Rename equalityFn to isEqual
  • Remove focusNextField
  • Remove resetField feedbackOnly option
  • submitForm now accept an object with onSuccess, onFailure and options