Releases: TomokiMiyauci/abstruct
Releases · TomokiMiyauci/abstruct
1.0.0-beta.3
1.0.0-beta.3 (2023-05-26)
Bug Fixes
Features
- add default error message (d6926b2)
- and: implement reporter interface to logical AND validator (e3c6e52)
- and: improve represenation (92fa79f)
- instanceof: improve type infer (6678943)
- key: rename property key to key (dcc3d4d)
- mod: add validator for signed and unsigned integer (1c3b569)
- mod: export enume validator (596f790)
- mod: export types (e8eefad)
- mod: export validator for single item (2c36e86)
- mod: export validator for symbol type (415ac1a)
- negative_number: add validator for negative number (3426c99)
- or: add passing max length of instance path (f57e4a6)
- property_key: rename
PropertyValidator
toPropertyKeyValidator
(ad06940) - prototype: add validator for prototype (e031ab5)
- range: add validator for range (77e3004)
- single: add validator for single item (2bde8c0)
- typeof: improve representation (a81bd14)
- types: add validation context interface (c95f89e)
- utils: add lazy function that create validator lazily (a44d149)
- utils: impl toString method (9069e2a)
- validators: add validator for non-negative number and non-positive number (597a8ca)
- value: add validator for property value (cd994e3)
Performance Improvements
1.0.0-beta.2
1.0.0-beta.2 (2023-05-24)
Features
- change validator interface and change validators (4734796)
- fixed_array: add validator for fixed array aka tuple (e7704a7)
- gte: add validator for greater than or equal operator (629919b)
- inequality: add validator for inequality operator (caee113)
- lte: add validator for less than or equal operator (cb247f8)
- mod: export related types (e61e888)
- not: add validator for logical not operator (65b97bf)
- optional: add validator for optional object (9ce9e84)
- or: add validator for logical or operator (63d8d2f)
- property: add validator for property (9e46ffd)
- types: rename interface of
ValidationError
(a121e4f) - unique: add validator for unique item (0d34889)
1.0.0-beta.1
1.0.0-beta.1 (2023-05-23)
Features
- count: improve display format (83e9bbf)
- 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)
- instance: add validator for instance (9c5309a)
- integer: add validator for integer (62ea00a)
- max_count: add validator for maximum count of item (dbbe7ea)
- min_count: add validator for minimum count of item (9304fac)
- mod: export public modules (57a5289)
- never: add validator for never (f44ff99)
- non_empty: add validator for non empty (ac30ed5)
- nullish: add validator for nullish (47bf837)
- object: add validator for object (d2978df)
- operators: add and operator (9d0b8e3)
- pattern: add validator for regex pattern (59b72d3)
- positive_number: add validator for positive number (88ab3f5)
- 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)
- types: add optional type variance (7d71b8c)
- types: add public interface (17e4453)
- types: add reporter interface (42a1238)
- unknown: add validator for any value (c870c00)
- validation: add validation functions (294b5c6)
- validators: add validator for comparision (548e6ee)
- validators: add validator for valid Date object (e347ae9)
- value: add validator for value (d64083f)