Releases: dhoulb/blork
Releases · dhoulb/blork
Bugfix version
- Minor improvements to error messages
Bugfix version
- Failed
assert()
error message does not show(received undefined)
Minor version
Minor version introducing new features:
- Allow
prefix
anderror
arguments forcheck()
andargs()
- Add
assert()
function
Minor version
Minor version introducing new features but not changing any existing APIs
- Enable tuple arrays via
[type1, type2]
syntax
Minor version
- Make properties created with
props()
enumerable - Return the original object from
props()
(for chaining)
Minor version
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
andalphanumeric
string types for specific strings
Minor version
Minor version introducing new functionality
- Add object and array string modifiers (using
type[]
,{type}
and{ keyType: type }
syntax)
Bugfix release
- Add documentation for
ValueError
anddebug()
- Minor README improvements
Bugfix release
- README: Tables fix
Major version
Major version introducing several breaking changes
- Add
VALUES
,KEYS
, andCLASS
symbol constants - Remove
_any
key function and introduceVALUES
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
andlower
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
andlowercase
checkers for consistency