Skip to content

Releases: dhoulb/blork

Bugfix version

06 Jul 23:17
Compare
Choose a tag to compare
  • Minor improvements to error messages

Bugfix version

06 Jul 14:40
Compare
Choose a tag to compare
  • Failed assert() error message does not show (received undefined)

Minor version

04 Jul 15:37
Compare
Choose a tag to compare

Minor version introducing new features:

  • Allow prefix and error arguments for check() and args()
  • Add assert() function

Minor version

01 Jun 12:30
Compare
Choose a tag to compare

Minor version introducing new features but not changing any existing APIs

  • Enable tuple arrays via [type1, type2] syntax

Minor version

22 May 23:59
Compare
Choose a tag to compare
  • Make properties created with props() enumerable
  • Return the original object from props() (for chaining)

Minor version

20 May 23:00
Compare
Choose a tag to compare

Minor version introducing new features with no breaking changes:

  • Add grouping for string types via parentheses, e.g. (str | num)
  • Add empty type to detect emptiness in strings, arrays, Map, Set, and objects
  • Add alphabetic, numeric and alphanumeric string types for specific strings

Minor version

19 May 20:03
Compare
Choose a tag to compare

Minor version introducing new functionality

  • Add object and array string modifiers (using type[], {type} and { keyType: type } syntax)

Bugfix release

15 May 17:08
Compare
Choose a tag to compare
  • Add documentation for ValueError and debug()
  • Minor README improvements

Bugfix release

15 May 14:31
Compare
Choose a tag to compare
  • README: Tables fix

Major version

14 May 20:31
Compare
Choose a tag to compare

Major version introducing several breaking changes

  • Add VALUES, KEYS, and CLASS symbol constants
  • Remove _any key function and introduce VALUES to provide the same functionality
  • Add KEYS functionality to check type or case of object keys, e.g. camelCase or kebab-case
  • Add CLASS functionality to check the class of an object
  • Add string case checkers for e.g. variable names (kebab-case, camelCase, snake_case etc)
  • upper and lower checkers work differently (all characters must be UPPERCASE/lowercase)
  • Rename num+, num-, int+, int- checkers to +int etc
  • Add '+' modifier to check for non-empty values with any checker
  • Remove hardcoded '+' checkers like lower+, object+
  • Remove uppercase and lowercase checkers for consistency