Skip to content

Minor release

Choose a tag to compare

@dhoulb dhoulb released this 27 Mar 03:58

A minor release. Only introduces new features and has no backwards-incompatible API changes.

  • Allow custom error to be set for custom checkers via add()
  • Export debug() which allows any value to be converted to a string in a clean and clear format.
  • Export format() which takes three arguments (message, value, prefix) and returns a consistently and beautifully formatted error message.
  • Export FormattedError which takes the same three arguments and applies format() so it always has beautiful errors.
  • Export BlorkError (which is thrown when you're using Blork wrong) for the purposes of checking thrown errors against it.