Skip to content

node-adjuster 0.15.0 released

Pre-release
Pre-release
Compare
Choose a tag to compare
@shimataro shimataro released this 18 Aug 08:52
b1292ed

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 of adjuster.CAUSE.NOT_OBJECT
  • reject array and object in adjuster.string()
  • in numericString, when .joinArray() is not called and an array is passed, cause an error adjuster.CAUSE.TYPE instead of adjuster.CAUSE.PATTERN
  • rename STRING_PATTERN to STRING.PATTERN, NUMERIC_STRING_CHECKSUM_ALGORITHM to NUMERIC_STRING.CHECKSUM_ALGORITHM

Fixed

  • installation error!

Deleted

  • adjuster.numberArray() - use adjuster.array() instead
  • adjuster.stringArray() - use adjuster.array() instead
  • err.key - use err.keyStack instead