Skip to content

Releases: wheresrhys/fetch-mock

Alpha release of v10

31 Dec 17:33
Compare
Choose a tag to compare
Alpha release of v10 Pre-release
Pre-release

Mainly to test new build pipeline at this stage, though hopefully the published resources will actually work)

Babel upgrades

21 Nov 22:18
Compare
Choose a tag to compare

In theory, this should not cause anybody any problems

Fixes various types

21 Nov 20:15
Compare
Choose a tag to compare
fixed type errors in a way which is looser, but definitely backwasrd …

…compatible

Allow overwriting regex routes

30 Oct 22:25
Compare
Choose a tag to compare
Fix: support overwriting routes with regex matcher

Prior to this change, using a regex matcher combined with
`overwriteRoutes: true` would not overwrite the route. This is because
the inspection was comparing regexes with `===` which will always return
`false`. To fix this, object identifiers are coerced to strings before
comparing. Function matchers are not affected by this change.

Add lastResponse to type defs

02 Oct 19:38
Compare
Choose a tag to compare
v9.10.8

Add tests for lastResponse type

Refactor routes to be wrapped in a class

15 Aug 09:00
Compare
Choose a tag to compare
v9.10.7

matchers list is a static property

Fix mocking requests with bodies in safari

02 Aug 19:15
Compare
Choose a tag to compare

Merge pull request #585 from lambdalisue/hotfix-584

Patch native fetch on Safari to fix #584

Make typescript types available when importing the esm build

25 Jul 20:48
55fa469
Compare
Choose a tag to compare
Merge pull request #583 from RoXuS/enableTypescriptEsm

Enable typescript on esm build

Prevent responses from hanging in node-fetch

19 Jul 13:59
b9b0b03
Compare
Choose a tag to compare
Merge pull request #580 from wheresrhys/nasty-clone-bug

fix the node-fetch cloned response hanging bug as best I can

Add `matchPartialBody` to typings

24 Jun 19:48
684a0b4
Compare
Choose a tag to compare
Merge pull request #574 from stefanschenk/patch-1

Add `matchPartialBody` to typings