- Add isAnsiEscapeCode() functions to check if a value is a valid ANSI escape code
- Add isLocale() functions to check if a value is a valid locale format
- Add isTimeZone() functions to check if a value is a valid IANA time zone format
- isValidPassword() function is deprecated and will be removed in v4.0.0. Use @dwtechs/passken validation function instead.
- Update error messages
- All validation functions now accept
unknowntype and perform internal type checking - All validation functions now return a type predicate (e.g.,
v is string) instead of a boolean. Except forisFalsy()andisTruthy()still returning boolean values. - All contain functions remain unchanged and continue to return boolean values.
- All normalize functions remain unchanged and continue to return string | false
- For both
isValidDate()andisValidTimestamp(),minandmaxparameters can be of type date or timestamp. - Improved
isDate()function to return false when date = date.setDate(NaN) - Improved
isEmail()function to return false when Top-Level Domain starts with a number - Improved
isValidTimestamp()function to have better min and max conversions - Improved test suite to more than 3200 tests with more edge case coverage
- compare() function now throws an error when a comparison fails and throwError is true, for both unary and binary comparators
- Functions have a throwErr property to throw specific error instead of false
- isBase64 regex now rejects empty strings
- Delete b64Encode() and b64Decode() functions. See @dwtechs/Hashitaka for these functionalities
- Fix circular dependency issue
- Add performance tests
- Functions b64Encode() and b64Decode() are deprecated and will be removed in v3.3.0. Use @dwtechs/Hashitaka for these functionalities
- String, number and validNumber functions support undefined and null values in Typescript
- Update isProperty() function inputs typings
- Update number validation functions type for string as input
- Update string validation functions for empty string cases
- Add b64Encode() and b64Decode() functions to transform strings accordingly
- isString() function now also checks if value is of length =, <, >, <=, >=, !=, !0, 0 than limit
- isNumber() function now also checks if value is of length =, <, >, <=, >=, !=, !0, 0 than limit
- Add isNull() and isUndefined() function
- Add isTruthy() and isFalsy() functions
- Add "from" parameter to function isIn() to start from index other then zero
- Add "!=" to comparisons to check if a is different than b
- Add "!0" to comparisons to check if a is not empty
- Add "0" to comparisons to check if a empty
- Update typings of most functions for easier use with Typescript
- Typings are more strict. Resulting in possible breaking changes from Checkard version 2.x.x
- Other functions than primitives and non-primitives functions may not check for input type anymore. Resulting in possible breaking changes from Checkard version 2.x.x
- Improve Documentation
- Add isBase64() function to check if a value is a valid base64 string
- Add "own" property to isProperty() function to check inherited properties only
- Add "enumerable" property to isProperty() function to check enumerable properties only
- Improve the return type of isProperty() function
- Change "any" types to "unknown" for every functions
- Improve declaration file for isArrayOfLength() function
- Improve isArrayOfLength() function and add more tests
- Add isArrayOfLength() function to check array length with min and max
- Add isIn() function to check if a value is included in an array
- Add isProperty() function to check if a value is included in an object properties
- Add isValidPassword function
- Update normalizeNickname function to exclude special characters
- Add normalization functionalities
- Add ucfirst function
- Add normalizeNickname function
- Add normalizeName function
- Add normalizeEmail function
- CheckHard.js becomes Checkard.js
- Add isValidInteger() function
- Add isValidFloat() function
- Fix isArray() function when len param is equal to zero
- Add more unit tests for isArray() function
- Improve isInteger() function
- Add emptyCheck parameter to isObject() function. Which default to false
- Add isStringOfLength() function to check min and max length
- Add emptyCheck parameter to isString() function. Which default to false
- Add isJWT() function
- Improve isArray() function
- Update build tools
- Code cleanup for lighter library
- Add more unit tests
- Add typeCheck parameter to isTimestamp() and isValidTimestamp() functions
- Improve types using "type predicates" for ease of use with Typescript
- Fix isNumber() & isTimestamp() issue with array of length one
- Add more unit tests with arrays
- Fix isTimestamp() issue with string values
- isArray() function now checks if value is an array and optionally if it is of length =, <, >, <= or >= than limit
- ContainsNumber() function now can take min and max parameters
- Fix isValidTimestamp() function
- Fix containsUpperCase() function
- Fix containsLowerCase() function
- Fix isValidDate() function
- Fix declaration file for Typescript
- Add isDate() function
- Add isValidDate() function
- Add isSlug() function
- Add isHexadecimal() function
- Add isTimestamp() function
- Add isValidTimestamp() function
- Add isValidNumber() function
- Add containsUpperCase() function
- Add containsLowerCase() function
- Add containsSpecialCharacter() function
- Add containsNumber() function
- Add 'length' parameter to isArray() function to check the length of the array
- Add isNil() function to test null and undefined values
- Add isSymbol() to primitive checkers
- Ch.js becomes CheckHard.js
- Project transfered from LCluber to DWTechs
- Add typeCheck parameter to isNumber(), isOdd(), isOrigin(), isPositive(), isNegative(), isPowerOfTwo() functions
- Improved isNumber() performance
- Add IsPowerOfTwo() function
- IE9 compatibility for iife version
- Update Typescript to version 4
- Add polyfill for typeof
- Add isemail and isipaddress functions
- Add typecheck to isregex function
- Add isregex function
- Update readme.md documentation
- Add commonjs version of Ch.js into dist folder
- ch.js is now in ES6 format
- Update description of the library
- isascii() function now accepts integers with string type
- isfloat() function now with type checking parameter
- isinteger() now with type checking parameter
- Update documentation api reference
- Add isHTMLEventAttribute() function
- Add isEven(), isOdd(), isOrigin(), isPositive(), isNegative() functions
- isfunction() function returns false if parameter is null or 0
- Adde isnumber() function
- isHtmlElement() & isNode() functions return false with null parameter
- Fix isAscii() function
- isObject() function now returns false with array as input
- Fix husky pre-push command
- Library exports functions instead of a static class
- Is.string function replaced by isString function, Is.array function replaced by isArray... please see README.md for exhaustive documentation
- Add Is.boolean() function
- Added Is.htmlElement() function
- Added Is.node() function
- Improved Is.json() function
- Updated README.md
- Deleted Mouette.js dependency
- Is.json() function now returns a boolean
- Updated README.md with documentation and Yarn install command
- Added Is.array() function
- Added Is.float() function
- Initial version from Wee.js library