Skip to content
This repository has been archived by the owner on Jul 18, 2022. It is now read-only.

Releases: boonya/react-hook-form-validation

3.0.1

27 Jan 13:39
56d5cfc
Compare
Choose a tag to compare

What's Changed

  • Homepage address changed
  • Bump eslint

So it's not a real release but I had to deploy it to change homepage address at npm

Full Changelog: 3.0.0...3.0.1

v3.0.0 - Enhancements and documentation

27 Jan 11:32
Compare
Choose a tag to compare

What's Changed

Added

Changed

  • All dependencies are up to date
  • jest.mocked instead of ts-jest/mocked due to jestjs/jest#12089
  • Package contains src directory since now
  • pattern validator accepts falthy values

Removed

  • postalCodeCA & sinCA validators

I don't want to keep special logic within this library.
If you need something like that you may integrate it with any other projects.
e.g. validator.js trough the func validator.

Full Changelog: 2.0.0...3.0.0

v2.0.0 - Async interface

23 Oct 16:29
f7851f2
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.0.0-beta.4...2.0.0

Documentation

11 Sep 18:16
4affd9d
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.0.0-beta.3...1.0.0-beta.4

Canadian SIN validator fixed

07 Aug 15:07
ddef37b
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.0.0-beta.2...1.0.0-beta.3

Canada specific validators and simplifications

06 Aug 22:25
Compare
Choose a tag to compare

The hook currently supports the following validators

  • required - Required value
  • min - Min value of number or min length of string & array
  • max - Max value of number or max length of string & array
  • email - Email address
  • url - URL
  • postalCodeCA - Postal Code in Canada
  • sinCA - Social Insurance Number (SIN) in Canada
  • pattern - RegEx patter based
  • func - function based

You can import enum of them:

import {VALIDATORS} from 'react-hook-form-validation';