Skip to content

Releases: dhoulb/blork

Bugfix version

19 Aug 23:22
Compare
Choose a tag to compare

Bugfix version improving how ValueError distinguishes prefixes that already include the function name (to disable auto-prefixing)

Version 8.3.1

18 Aug 13:58
Compare
Choose a tag to compare
Forgot to change the version number in 8.3.0

Minor version

18 Aug 13:43
Compare
Choose a tag to compare

Minor version introducing new features with no breaking changes:

  • Add an error string checker, e.g. check(new TypeError(), "error")
  • When ValueError auto-prefixes the name of the calling function, it skips anonymous functions in the stack
  • When ValueError auto-prefixes the name of the calling function, it doesn't if the prefix already includes a ': ' colon space.
  • Add return string type modifier, e.g. check(123, return num) (changes error message to e.g. Must return X)

Minor version

13 Aug 02:05
Compare
Choose a tag to compare

Minor version introducing new features with no breaking changes:

  • Add string string type, e.g. "abc"
  • Add number string type, e.g. 1234
  • Object string type now accepts multiple props (separated by , commas)
  • Add robust nested parenthesis handling in string types (no longer breaks on nested groups, objects, tuples)
  • Minor improvements to error messages

Bugfix version

02 Aug 02:07
Compare
Choose a tag to compare

Bugfix version

  • Publish release with correct version number in package.json

Minor version

02 Aug 02:05
Compare
Choose a tag to compare

Minor version adding new functionality and making no other breaking changes.

  • Add min/max size constraints on types via e.g. {4,8} suffix

Bugfix version

27 Jul 12:15
Compare
Choose a tag to compare

Tiny version bump to force republishing to NPM.

Major version

27 Jul 04:13
Compare
Choose a tag to compare

Major version includes two breaking changes:

  • Remove props() functionality (bloat)
  • Prepend function name to ValueError errors, e.g. MyClass.myFunc(): Must be string...

And also introduces new functionality:

  • Add destack() method that parses Error.stack across major browsers

Bugfix version

22 Jul 17:08
Compare
Choose a tag to compare

Fixes a minor issue with default arguments and undefined not showing (received X) correctly in error messages.

Bugfix version

09 Jul 00:01
Compare
Choose a tag to compare
  • Minor improvements to error messages