Releases: wheresrhys/fetch-mock
Releases · wheresrhys/fetch-mock
Alpha release of v10
Mainly to test new build pipeline at this stage, though hopefully the published resources will actually work)
Babel upgrades
In theory, this should not cause anybody any problems
Fixes various types
fixed type errors in a way which is looser, but definitely backwasrd … …compatible
Allow overwriting regex routes
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
v9.10.8 Add tests for lastResponse type
Refactor routes to be wrapped in a class
v9.10.7 matchers list is a static property
Fix mocking requests with bodies in safari
Make typescript types available when importing the esm build
Merge pull request #583 from RoXuS/enableTypescriptEsm Enable typescript on esm build
Prevent responses from hanging in node-fetch
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
Merge pull request #574 from stefanschenk/patch-1 Add `matchPartialBody` to typings