Releases: wheresrhys/fetch-mock
Releases · wheresrhys/fetch-mock
Small fixes to types
v10.0.1 adding fetch-mock-tests for sticky
ESM and native fetch
A major rewrite to use ESM modules and default to using native fetch in all environments
Other than that the API remains unchanged
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