1.0.0 (2023-06-02)
Bug Fixes
- inequality: remove wrong generics type (b27518e)
- nullish: fix to wrong logic (014737e)
- utils: fix to proxy logic (cbc38ef)
- validators: change to pass property key as is (e09287d)
Features
- add default error message (d6926b2)
- add readonly signature (b477323)
- and: implement reporter interface to logical AND validator (e3c6e52)
- and: improve represenation (92fa79f)
- and: improve type inference of and function (aaf2a35)
- and: improve type inference of And validator (85e34b5)
- bindings: rename to add prefix of prop (ec6a956)
- bindings: rename to props from object (feb1f7b)
- change validator interface and change validators (4734796)
- count: improve display format (83e9bbf)
- deps: replace escape regex module (95ded0e)
- deps: update deps version (70c12da)
- deps: use npm specifier instead of esm.sh (256a4d3)
- dictionary: add validator for dictionary (b231f30)
- element: add validator for element (bdde405)
- empty: add validator for empty (fd4dd0b)
- enum: add validator for enumerate (12bde9a)
- export validator instance (e9f7adc)
- factories: rename factory to
enumerator
fromenumerate
(08eb036) - fixed_array: add validator for fixed array aka tuple (e7704a7)
- float: add validator for float (a66e0ba)
- gte: add validator for greater than or equal operator (629919b)
- has: add validator equivalent to in operator (ef1313e)
- inequality: add validator for inequality operator (caee113)
- instance: add validator for instance (9c5309a)
- instanceof: improve type infer (6678943)
- integer: add validator for integer (62ea00a)
- key: rename property key to key (dcc3d4d)
- lte: add validator for less than or equal operator (cb247f8)
- max_count: add validator for maximum count of item (dbbe7ea)
- min_count: add validator for minimum count of item (9304fac)
- mod: add validator for signed and unsigned integer (1c3b569)
- mod: export all validators (e3f1106)
- mod: export enume validator (596f790)
- mod: export public modules (57a5289)
- mod: export related types (e61e888)
- mod: export releated types (0f23f58)
- mod: export typeof validator constructor and related types (1861650)
- mod: export types (e8eefad)
- mod: export validator for single item (2c36e86)
- mod: export validator for symbol type (415ac1a)
- mod: export validator utilities (5e1e137)
- mod: omit Reporter impl (067b328)
- mod: remove prototype validator (26b5f6c)
- negative_number: add validator for negative number (3426c99)
- never: add validator for never (f44ff99)
- non_empty: add validator for non empty (ac30ed5)
- not: add validator for logical not operator (65b97bf)
- nullish: add validator for nullish (47bf837)
- numeric: improve acceptable type to expand bigint (62b0245)
- object: add validator for object (d2978df)
- operators: add and operator (9d0b8e3)
- optional: add validator for optional object (9ce9e84)
- optional: change generics constraints (440f304)
- or: add passing max length of instance path (f57e4a6)
- or: add validator for logical or operator (63d8d2f)
- pattern: add validator for regex pattern (59b72d3)
- positive_number: add validator for positive number (88ab3f5)
- positive_number: expand to accept bigint (4f6ed2d)
- properties: change generics constraints (dbe064f)
- properties: rename to properties validator from object validator (9ae301d)
- property_key: rename
PropertyValidator
toPropertyKeyValidator
(ad06940) - property_key: rename validator to property key from key (db65b8e)
- property_value: rename validator to property value from value (35b0bec)
- property: add validator for property (9e46ffd)
- prototype: add validator for prototype (e031ab5)
- range: add validator for range (77e3004)
- range: change throwing error condition (7132e94)
- single: add validator for single item (2bde8c0)
- size: add validator for element size (dccc945)
- trim: add transformer for trim (474bf66)
- type: add type of null and check "object" type is null or not (77020b4)
- type: add validator for value type (262f1d5)
- typeof: improve representation (a81bd14)
- types: add optional type variance (7d71b8c)
- types: add public interface (17e4453)
- types: add reporter interface (42a1238)
- types: add validation context interface (c95f89e)
- types: expand instancePath types (b855eeb)
- types: remove struct constructor (bd40790)
- types: remove unused types (64a56bf)
- types: rename interface of
ValidationError
(a121e4f) - types: rename to
Expectation
(747dbf6) - unique: add validator for unique item (0d34889)
- unknown: add validator for any value (c870c00)
- utils: add helper for validator definition (2c907d4)
- utils: add lazy function that create validator lazily (a44d149)
- utils: add utility for define validator (dd966ce)
- utils: impl toString method (9069e2a)
- utils: improve print data format (6e3470d)
- validation: add flag for path information (430fd90)
- validation: add root name option for path info (1fbd4d2)
- validation: add validation functions (294b5c6)
- validation: change assert options interface (5c15def)
- validation: change default assert strategy (09b8aae)
- validation: improve return type to tuple (a10094e)
- validation: improve to accept a wider range of types (0c004f5)
- validation: remove
captureStackTrace
field (3114bb5) - validation: rename field to
maxFailures
(228bdf4) - validation: rename interface for assert (b37a448)
- validation: rename interface name (dca6895)
- validators: add validator for comparision (548e6ee)
- validators: add validator for non-negative number and non-positive number (597a8ca)
- validators: add validator for valid Date object (e347ae9)
- value: add validator for property value (cd994e3)
- value: add validator for value (d64083f)