# What changed in fetch-mock

> 3 changes in fetch-mock 12 from its official release notes, upgrade guides and advisories: 1 new APIs and options. Each one cited. Sources checked 2026-10-25. HTML: https://unstale.sh/npm/fetch-mock/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## fetch-mock 12

### New APIs and options

- Adds a host matcher for matching requests by host. (12.6.0) — [release notes](https://github.com/wheresrhys/fetch-mock/releases/tag/fetch-mock-v12.6.0)

### Fixes and other changes

- Abort event listeners are cleaned up once called or once a response is returned. (12.5.6) — [release notes](https://github.com/wheresrhys/fetch-mock/releases/tag/fetch-mock-v12.5.6)
- Prevents errors by avoiding attempts to get a reader from, or cancel, a locked request or response. (12.5.5) — [release notes](https://github.com/wheresrhys/fetch-mock/releases/tag/fetch-mock-v12.5.5)
