Releases: dchambers/typester
Releases · dchambers/typester
Hotspotting improvements
Fast Performant Typester
Typester v1.0.0 introduces a new backwardly incompatible API that is significantly faster than the old one because:
- It removes the need to refer to the
arguments
keyword, which degrades performance. - It no longer requires an anonymous function to be created each time a method is invoked.
- It makes it possible to provide a hotspotting mechanism that works with all type-safe methods.
Performance Enhancements
Under halved the time required to run the performance tests.
Better Fail-Fast Feedback
The following fail-fast features were added:
- Typester now verifies the arguments for it's own methods, to provide fast feedback to developers that incorrectly use the API.
- Typester now fails-fast if any arguments remain unverified after invoking a method, so that consumers of an API know when they have provided redundant arguments, and so that producers of an API know when they need to add additional verifications for any newly added method parameters.
Object Verifier Added
A new object()
verifier is now provided that enhances isA(Object)
by ensuring typeof(obj) == true
.
Optional Argument Support
Added support for non-mandatory arguments, via the optionally
modifier.
Non-NPM bug-fix.
You can once again use typester in non-NPM environments.
Initial Release
Initial version of the library.