node-adjuster 0.15.0 released
Pre-release
Pre-release
Added
adjuster.boolean()
adjuster.number().strict()
adjuster.string().strict()
adjuster.array()
adjuster.object()
err.keyStack
indicates path to key that caused error; for nested object or array
Changed
- cause an error
adjuster.CAUSE.TYPE
instead ofadjuster.CAUSE.NOT_OBJECT
- reject array and object in
adjuster.string()
- in
numericString
, when.joinArray()
is not called and an array is passed, cause an erroradjuster.CAUSE.TYPE
instead ofadjuster.CAUSE.PATTERN
- rename
STRING_PATTERN
toSTRING.PATTERN
,NUMERIC_STRING_CHECKSUM_ALGORITHM
toNUMERIC_STRING.CHECKSUM_ALGORITHM
Fixed
- installation error!
Deleted
adjuster.numberArray()
- useadjuster.array()
insteadadjuster.stringArray()
- useadjuster.array()
insteaderr.key
- useerr.keyStack
instead