Skip to content

Commit

Permalink
Version 4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dhoulb committed Mar 27, 2018
1 parent 0f1056b commit 6335dea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,12 @@ Please see (CONTRIBUTING.md)

## Changelog

- 4.1.0
- 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.
- 4.0.0
- Major internal rewrite with API kept _almost_ the same.
- Add support for combining checkers with `|` and `&` syntax.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "blork",
"description": "Blork! Mini runtime type checking in Javascript",
"version": "4.0.1",
"version": "4.1.0",
"license": "0BSD",
"author": "Dave Houlbrooke <[email protected]>",
"main": "lib/exports.js",
Expand Down

0 comments on commit 6335dea

Please sign in to comment.