Skip to content

v2.0.0

Compare
Choose a tag to compare
@erikras erikras released this 01 May 14:27
· 17 commits to master since this release
v2.0.0

Breaking Changes

useField now accepts a field level validation function as the third parameter, bumping the subscription object to the fourth parameter.

If you had this in v1:

useField('myField', form, { value: true, active: true })

It needs to become in v2:

useField('myField', form, undefined, { value: true, active: true })
//                        ^^^^^^^^^^^ ADD THIS ✅

Bug Fixes

New Features

  • Field level validation (#35)

Typing Inprovements

  • [TS] Make useForm Config parameterized (#34)

Build Improvements

  • Adding eslint hooks plugin (#36)
  • Feature/add tests (#40)
  • 100% test coverage!

v1.0.1...v2.0.0