Skip to content

Commit

Permalink
Version 4.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dhoulb committed Mar 30, 2018
1 parent c02f2e0 commit ddb03c0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -485,17 +485,19 @@ Please see (CONTRIBUTING.md)

## Changelog

- 4.2.1
- Fix bug where optional types were throwing an incorrect error message
- 4.2.0
- Rename `FormattedError` to `ValueError` (more descriptive and reusable name).
- Rename `FormattedError` to `ValueError` (more descriptive and reusable name)
- Make `ValueError` the default error thrown by Blork (not ValueError)
- 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 `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.
- 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.
- `check()` and `args()` no longer return anything (previously returned the number of passing values).
- Custom checkers should now return `boolean` (message/description for the checker can be passed in as third field to `add()`).
- Major internal rewrite with API kept _almost_ the same
- Add support for combining checkers with `|` and `&` syntax
- `check()` and `args()` no longer return anything (previously returned the number of passing values)
- Custom checkers should now return `boolean` (message/description for the checker can be passed in as third field to `add()`)
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.2.0",
"version": "4.2.1",
"license": "0BSD",
"author": "Dave Houlbrooke <dave@shax.com>",
"main": "lib/exports.js",
Expand Down

0 comments on commit ddb03c0

Please sign in to comment.