Skip to content

Releases: mcous/vitest-when

v0.8.1

03 Oct 10:38
v0.8.1
decffc6

Choose a tag to compare

0.8.1 (2025-10-03)

Bug Fixes

v0.8.0

29 Aug 13:11
v0.8.0
82347ad

Choose a tag to compare

0.8.0 (2025-08-29)

Features

Bug Fixes

  • work around getMockImplementation() bug in Vitest (#28) (24a97c2)

v0.7.0

06 Aug 20:10
v0.7.0
e76e732

Choose a tag to compare

0.7.0 (2025-08-06)

Features

  • types: support mocked constructors (#26) (328267b)

v0.6.2

18 Jul 17:28
v0.6.2
24e1b63

Choose a tag to compare

0.6.2 (2025-07-18)

Bug Fixes

  • update dependencies to include Vitest v4 (#24) (8b3e5d2)

v0.6.1

03 Jun 14:14
v0.6.1
5736534

Choose a tag to compare

0.6.1 (2025-06-03)

Bug Fixes

  • types: accept asymmetric matchers in stub arguments (#23) (8f6d059), closes #22

v0.6.0

20 Jan 18:02
v0.6.0
ecf2e3a

Choose a tag to compare

0.6.0 (2025-01-20)

⚠ BREAKING CHANGES

  • Node v16 has been dropped from our CI test matrix, because it is no longer supported by Vitest v3. Node v16 should continue to work for older versions of Vitest, but that support will not be guaranteed moving forward. (#19)

Bug Fixes

  • vitest: allow Vitest v3 in peer depdendencies (#19) (a8684af)

v0.5.0

04 Nov 16:32
v0.5.0
d7b7234

Choose a tag to compare

0.5.0 (2024-11-04)

Features

  • fallback to original mockImplementation if no match (#17) (5cd3283)

Bug Fixes

  • types: accept MockInstance as stubbing target (#16) (46fb4cb)

v0.4.1

27 Jul 17:26
v0.4.1
cbe8f01

Choose a tag to compare

0.4.1 (2024-07-09)

Bug Fixes

  • allow vitest v2 in peer dependencies (#13) (789965c)

v0.4.0

27 Jul 17:26
v0.4.0
2978911

Choose a tag to compare

0.4.0 (2024-05-11)

Features

v0.3.1

27 Jul 17:26
v0.3.1
d3a51d9

Choose a tag to compare

0.3.1 (2024-01-10)

Bug Fixes

  • defer Promise.reject to avoid unhandled rejection error (#8) (b289297), closes #7