Skip to content

Releases: dchambers/typester

Hotspotting improvements

18 Nov 08:14
Compare
Choose a tag to compare

We no longer enable hot-spotting for functions where type verification has recently failed.

Fast Performant Typester

17 Nov 00:05
Compare
Choose a tag to compare

Typester v1.0.0 introduces a new backwardly incompatible API that is significantly faster than the old one because:

  1. It removes the need to refer to the arguments keyword, which degrades performance.
  2. It no longer requires an anonymous function to be created each time a method is invoked.
  3. It makes it possible to provide a hotspotting mechanism that works with all type-safe methods.

Performance Enhancements

05 Nov 22:52
Compare
Choose a tag to compare

Under halved the time required to run the performance tests.

Better Fail-Fast Feedback

24 Oct 21:12
Compare
Choose a tag to compare

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

23 Oct 08:02
Compare
Choose a tag to compare

A new object() verifier is now provided that enhances isA(Object) by ensuring typeof(obj) == true.

Optional Argument Support

22 Oct 19:52
Compare
Choose a tag to compare

Added support for non-mandatory arguments, via the optionally modifier.

Non-NPM bug-fix.

22 Oct 07:46
Compare
Choose a tag to compare

You can once again use typester in non-NPM environments.

Initial Release

22 Oct 07:29
Compare
Choose a tag to compare

Initial version of the library.