- (Feat) Allow custom error object
- (Fix) Improve parameter name
- (Fix) Infer array and object chain functions parser
- (Feat) Provided chaining method, which is more readable but slower according to benchmarking
- (Feat) Provided named parameters alternative to chaining method, which is less readable but faster according to benchmarking
- (Fix) Infer
elseLazyGet
- (Feat) Each validation method will only return
elseGet(t: T)
andelseThrow(message: string)
for simplicity and improvement of overall execution speed - (Feat) Number parser will also return an additional object,
inRangeOf
, which in turn return validation method specified above
- (Fix) Automate addtion of
.js
extension for mjs export
- (Fix) Improved CommonJs & remove duplicated type definition
- (Feat) Added support for CommonJs
- (Fix) Removed parser for
map
andset
as it cannot be stringified by JSON (really forgot about it)
- (Feat!) Removed parser for
bigint
,Symbol
,undefined
andfunction
as it cannot be stringified by JSON - (Chore) Removed unused dependencies
- (Fix) Added parseAsCustomType in export statement
- (Feat) Added parseAsCustomType for parsing as a specific type of non-object type
- (Fix) Changed spelling typo of
parsedAs
toparseAs
- (Fix) Changed types in package.json to direct to proper definition as previously I did not point it to index.d.ts
- (Feat) Added
orElseLazyGet()
as an alternative lazy loading version oforElseGet()
- (Feat) Freeze readonly object or data structure so that it will throw run time error when there's an attempt to mutate it in JavaScript
- (Feat) Added parsing for array, map, set and object
- (Feat!) Changed parsing for boolean, string, numbers and bigint
- (Fix) Added types in package.json
- (Fix) Added type: module in package.json
- (Fix) Changed main entry point in package.json
- (Feat) Initial public release