Releases: l2beat/earl
earl v0.1 - First stable release!
This is the first stable release of earl. From now on, we will publish changelogs.
Earl is an ergonomic, modern and type-safe assertion library for TypeScript
Features
- 💪 Powerful validators and matchers
- 🤖 Type-safe - written in TypeScript and goes well with static analysis
- 🎭 Builtin support for mocks
- ☕ Works great with Mocha
Changelog
There are many changes in this version, most important are:
-
Remove autofix - it was a controversial feature but most importantly it was complicating codebase in unexpected ways. I still feel like it could make a comeback but maybe in a way closer to jest's snapshot.
-
Redesign some APIs for convenience - in some situations we preferred the consistency above the convenience of the interfaces. For example
toThrow
worked with non-errors and needed to be combined withexpect.error
matcher for any meaningful results. We decided to simplify it and maketoThrow
work only with errors. -
Redesign mocks - now mocks are generally simpler, we got rid of string / loose mocks and earl features only one design of mocks.
-
Moved earl development to a separate org - we hope this will help to build a community around the project faster
The whole documentation was updated, so to view the current API see: https://earljs.dev/docs/api/api-reference