Skip to content

Releases: balazsorban44/use-form

v4.1.1

07 Feb 11:39
6ee27c3
Compare
Choose a tag to compare

4.1.1 (2020-02-07)

Bug Fixes

  • submit: pass correct args to validators when retrieving validations (4e8d3ce)

v4.1.0

07 Feb 10:55
dbe2714
Compare
Choose a tag to compare

4.1.0 (2020-02-07)

Features

  • set checked prop on radio button (2798474), closes: #8

v4.0.1

07 Feb 10:31
e3f8a78
Compare
Choose a tag to compare

4.0.1 (2020-02-07)

Performance Improvements

  • calculate validations only when invoking handleSubmit (ea5092c)
  • check validations for errors only on handleSubmit (ecdb01b)

v4.0.0

07 Feb 09:22
Compare
Choose a tag to compare

4.0.0 (2020-02-07)

Features

  • run all custom validations before submitting (5ab25b9), closes #7

Performance Improvements

  • deep compare initialState with custom hook (590732d)

BREAKING CHANGES

  • This potentially breaks current behavior of onSubmit, as submitting would fail if custom validations were not expected before

v3.2.0

04 Nov 10:32
2286cf6
Compare
Choose a tag to compare

3.2.0 (2019-11-04)

Features

  • typings: 🏷 update TS definitions (67b1699)
  • useForm: ✨ add options to handleSubmit (1c56336)

v3.1.0

15 Oct 14:44
Compare
Choose a tag to compare

3.1.0 (2019-10-15)

Features

  • typings: fix definition file typo (fe50d4e)

v3.0.0

15 Oct 14:33
288dd3f
Compare
Choose a tag to compare

3.0.0 (2019-10-15)

Bug Fixes

  • changes due to testing (3190ebc)
  • dates to default to string value in convert (4454493)
  • don't delete value prop on select (6cc2eb4)
  • changeHandler: show missing validators (cce0f4e)
  • deps: fix regenerator runtime error (15aee28)
  • handleDevErrors: fix validator error handling (7f8a27d)
  • submitHandler: change type to args[0] (1389db1)
  • useForm: add initialValue to fields reducer (954fda5)
  • useForm: fix wrong param in handleDevErrors (d60d50d)
  • useFormContext: destructure rest in context (c9a3637)

Features

  • dev: improve error handling (f435e9b)
  • error handling: better error handling (b663dac)
  • FormContext: add getForms (c5e523b)
  • handleDevErrors: control no. alpha warings (061ca17)
  • inputPropGenerator: add types, generateProps (0169af4)
  • submitHandler: return name only if FormProvider is used (0c12e1f)
  • submitHandler: validationErrors in submitHandler (534b269)
  • typings: expose UseForm interface (90fa265)
  • typings: InputPropGenerator useForm (30c6fca)
  • typings: update typings (7e04552)
  • typings: update typings (767d99b)
  • useForm: change submit to onSubmit (e43d18a)
  • useForm: async initialState (bc75cfe)
  • useForm: expose hasErrors and validators (85c1065)
  • remove console warning (e27408a)
  • useForm: return form name (d4d214f)
  • useForm: use without provider (f60f2df)
  • useForm: WIP v3 (a57fc72), closes #2
  • validate: change validators to a function (e62fa55)
  • validate: return submitting boolean for validators (d820207)
  • validate: set submitting default to [secure] (40124dc)
  • validate: simplify validate (9926922)

Performance Improvements

BREAKING CHANGES

  • useForm: for consistency, submit has been renamed to onSubmit
  • useForm: Obviously.
  • validate: Validate will only run
    on EITHER validations OR the fields keys,
    instead of merging them.
  • FormContext: initialState prop is changed to initialStates (856208a)

v2.8.0

07 Aug 15:11
Compare
Choose a tag to compare

2.8.0 (2019-08-07)

Features

  • FormProvider: submit, onNotify in FormProvider (18bafc7)

v2.7.0

07 Aug 08:56
Compare
Choose a tag to compare

2.7.0 (2019-08-07)

Features

  • FormProvider: validators in FormProvider (519800b)

3.0 🎉

05 Aug 21:38
Compare
Choose a tag to compare
3.0 🎉 Pre-release
Pre-release

New API, described here:

#2

More coming...