- Add error when validate args are null
- Add toLowerCase and toUpperCase isNil validations and tests
- Change validate from prop Function to prop Array of Functions.
- Add:
- max
- min
- isString
- isDate
- isNumber
- toLowerCase
- toUpperCase
- isEmail
- Remove:
- validatePrice
- Add isValidNumber.
- Add number validation to validatePrice
- Add validatePrice.
- Add types to addError().
- Add Generic types to validate().
- Complete rewrite to Functional Programming.
- Transpiling Typescript to esnext.
- Add tests for:
- ValidateString
- toLowerCase
- toUpperCase
- HaveValidation
- new with null
- addError with null
- ValidateString
- Fix unused variables.
- Update validateEmail and validateString usage:
- Now you can create one static property called 'validations'.
- Rename validateEmail to isEmailValid.
- Add new validateEmail as validateString.
- Initial public release.