Releases: RobDWaller/explicitly
0.5.0 Assert Empty
This release adds the assertEmpty()
assertion method so it is possible to assert whether a string, array or object is empty.
Additional Work:
- Added further code comments.
- Updated error method names in message module so they are clearer.
- Updated breaking tests so they use assert false instead of assert true.
- Updated and tidied up README information.
- Made code improvements to example tests.
To Do:
- Continue writing code comments.
- Add GitHub Action for nest.land integration.
- Add additional useful assertions.
- Expose core Deno assertions via this module.
0.4.0 Assert Count
This release adds two new assertions, assertCount()
which allows you to assert how many elements are in an array, and assertNotThrows()
which allows you to assert a method does not throw anything.
Additional Work
- Upgraded resulty version and fixed unwrap integration issue in
handleError()
method. - Added
errorMessage()
method to errors module. - Fixed callback name issue in error message generation.
- Added more documentation and badge to README.
- Added nest.land integration.
- Added assertion method comments in main module.
- Fixed Windows line ending issues in License file and README.
To Do:
- Clean up error messages module.
- Continue writing code comments.
- Improve README documentation.
- Add GitHub Action for nest.land integration.
- Improve failure tests so they are clearer and assert false.
- Add a module of stress tests.
- Add additional useful assertions.
0.3.1 Dependencies Patch
This patch implements a deps.ts
and a dev_deps.ts
file to properly manage dependencies. This is because an upstream dependency resulted in a breaking change. The dependencies are now set to specific versions so this breaking change is removed.
0.3.0 Assert Float Release
This release adds the assertFloat()
assertion which makes it possible to assert a float to a defined number of decimal places. It also allows you to base the assertion on rounding to the floor or ceiling. This is a complicated assertion as handling floats in JavaScript is a nightmare, but the tests suggest it works as expected.
Additional Work:
- Updated date module error messages so they are clearer.
- Updated equals method error message so it is more concise.
- Added
assertFloat()
README documentation. - Added more unit tests.
To Do:
- Improve failure tests so they are clearer and assert false.
- Add a module of stress tests.
- Write code comments.
- Add additional useful assertions.
0.2.0 Assert Date Release
The main purpose of this release is to add the assertDate()
and the assertDateTime()
methods to the main module. This is so asserts can be made to check a date or a date and time, this can be done by either comparing two Date objects or a Date object and a string.
Additional Work:
- Added further Unit Tests.
- Created more example tests.
- Extended README documentation.
To Do:
- Write code comments.
- Add assertFloat assertion.
First Release
This is the first usable release of the explicitly library. It adds two assertions assertInstanceOf()
and assertTypeOf()
which help with asserting object types and polymorphic relationships.
Additional Work:
- Adds more detailed usage information to the README.
- Adds a simplified error message method where type information is not required in the CLI.
- Adds more unit tests.
To Do:
- Add more information to README.
- Write code comments.
- Add further unit tests to stress test the code.
- Add further assertions.
First Beta Release
Explicitly is an extension to the Deno's built in assertion library. It provides a range of more explicit assertions which allow developers to write clearer unit tests.
This initial release exposes the following assertions.
assertSame()
assertTrue()
assertFalse()
assertGreater()
assertGreaterOrEqual()
assertLess()
assertLessOrEqual()
To Do:
- Add assertInstanceOf.
- Add assertTypeOf.
- Add more unit tests to stress test code.
- Write comments.
- Add README documentation.