v3.0.0 (November 01, 2020)
Migrated to TypeScript
and dropped flow
support. Once more updating to the latest flow
version was too exhausting.
Inspecting the TypeScript
types has now become more convenient and auto import should work even smoother in your IDE, too.
💥 Breaking Changes
- The exported
Spy
is not a class anymore but an extended function/callable object. So you will need to search and replace everywherenew Spy
bySpy
because you have to callSpy
without thenew
keyword. This change was necessary because aSpyInstance
was returned by the constructor of theSpy
class, which was never really clean, but necessary when extendingFunction
as a class. - Requiring
node
version >= 12 (but it might still work with older versions). I want to encourage you to update yournode
version at least to version 12 because version 14 has now become the new LTS and version 10 will be out of maintenance soon enough.
🐛 Bugfix
spy.getAllCallArguments
was returning a wrong value, butflow
didn't catch this error.