Skip to content

v3.0.0 (November 01, 2020)

Compare
Choose a tag to compare
@fdc-viktor-luft fdc-viktor-luft released this 01 Nov 19:10
· 27 commits to master since this release

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 everywhere new Spy by Spy because you have to call Spy without the new keyword. This change was necessary because a SpyInstance was returned by the constructor of the Spy class, which was never really clean, but necessary when extending Function as a class.
  • Requiring node version >= 12 (but it might still work with older versions). I want to encourage you to update your node 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, but flow didn't catch this error.