Skip to content

Releases: swan-io/use-form

3.1.0

06 Jun 07:47
21ee09e

Choose a tag to compare

2.0.5

18 Jul 08:17
e86c7e6

Choose a tag to compare

2.0.4

18 May 12:51
3c40da7

Choose a tag to compare

  • Update @swan-io/boxed dependency requirement to ^2.3.0

2.0.3

18 May 12:50
0b6daae

Choose a tag to compare

  • Add build and release workflow

2.0.2

18 May 12:49
423fc75

Choose a tag to compare

  • Update @swan-io/boxed dependency requirement to ^2.2.1

2.0.1

17 Apr 14:46
b82ffbc

Choose a tag to compare

  • Export OptionRecord type

2.0.0

04 Apr 09:39
c4d5b0b

Choose a tag to compare

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

1.5.0

08 Aug 16:19
bfb79c2

Choose a tag to compare

  • Add toOptionalValidator (#25)

1.4.0

19 Jul 10:34
bb65b93

Choose a tag to compare

  • Add a sanitizeField method (#24)

1.3.0

01 Feb 14:15
5f7509b

Choose a tag to compare