Skip to content

Releases: christoph-fricke/use-input-validation

v1.2.0

13 Mar 15:53
Compare
Choose a tag to compare

Features

  • provide the current value to the React devtools with the useDebugValue hook
  • Add a commit(state?: V): void function to the return value
    • Sets the current value or provided state argument as a save point
    • The initial save point is the initial value
  • Calling reset will reset the value to the latest save point

Documentation

  • Updated badges and badge provider
  • Documentation for the new commit feature

Internal

  • Remove .md extension from the LICENSE file
  • Update dev dependencies

v1.1.0

14 Oct 10:36
Compare
Choose a tag to compare

Features

  • Add option for dynamic errors [#8]
    • The validator predicate is now allowed to return a non boolean value which will be interpreted as false and used for the error

Documentation

  • Reworked the docs to include some more tips and hints [#9]

Internal

  • Overhaul package infra to use tsdx [#6]
  • Restructure and expand test suite [#7]