This repository has been archived by the owner on Jul 18, 2022. It is now read-only.
Releases: boonya/react-hook-form-validation
Releases · boonya/react-hook-form-validation
3.0.1
v3.0.0 - Enhancements and documentation
What's Changed
Added
- styleguidist based documentation
Changed
- All dependencies are up to date
jest.mocked
instead ofts-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
What's Changed
Full Changelog: 1.0.0-beta.4...2.0.0
Documentation
What's Changed
- Bump @typescript-eslint/parser from 4.29.0 to 4.29.1 by @dependabot in #10
- Bump @typescript-eslint/eslint-plugin from 4.29.0 to 4.29.1 by @dependabot in #9
- Bump path-parse from 1.0.6 to 1.0.7 in /example by @dependabot in #14
- Bump ts-jest from 27.0.4 to 27.0.5 by @dependabot in #18
- Bump @types/react from 17.0.16 to 17.0.20 by @dependabot in #25
- Bump @testing-library/react-hooks from 7.0.1 to 7.0.2 by @dependabot in #29
- Bump @typescript-eslint/eslint-plugin from 4.29.1 to 4.31.0 by @dependabot in #27
- Bump @types/jest from 26.0.24 to 27.0.1 by @dependabot in #13
- Bump url-parse from 1.5.1 to 1.5.3 in /example by @dependabot in #28
- Bump typescript from 4.3.5 to 4.4.3 by @dependabot in #30
- Bump tar from 6.1.6 to 6.1.11 in /example by @dependabot in #24
- Bump @typescript-eslint/parser from 4.29.1 to 4.31.0 by @dependabot in #26
- Bump jest from 27.0.6 to 27.1.1 by @dependabot in #31
- Documentation by @boonya in #32
- Version up by @boonya in #33
Full Changelog: 1.0.0-beta.3...1.0.0-beta.4
Canadian SIN validator fixed
Canada specific validators and simplifications
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';