Releases: ooade/yooda
Releases Β· ooade/yooda
Release list
Better error reporting and more error reporting! π
Error reporting
- We changed the way we report an error so instead of throwing
key must be a $dataType, we throwkey is expected to be of type "$dataType". - And, instead of throwing
$value does not satisfy the domain $domainName, we return$value assigned to $key does not satisfy the $domainName domainwhich is a lot clearer as you get to know the exact defaulter in a large codebase. - We now throw an error if the domain isn't an array!
Tests
The test file is a lot cleaner now with more test cases than the previous versions.
Custom Error Handlers & Better Types
v0.2.0 ships in really exciting features such as:
- Better types which makes Intellisense better
- Custom Error Handlers. Just pass in an object of error handlers as second argument to yooda and you're good to go π
You can go through the README and test files for implementation details.