Skip to content

Update dependency fetch-mock to v12#707

Open
renovate[bot] wants to merge 2 commits into
masterfrom
renovate/fetch-mock-12.x
Open

Update dependency fetch-mock to v12#707
renovate[bot] wants to merge 2 commits into
masterfrom
renovate/fetch-mock-12.x

Conversation

@renovate

@renovate renovate Bot commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
fetch-mock (source) ^6.5.2^12.0.0 age confidence

Release Notes

wheresrhys/fetch-mock (fetch-mock)

v12.6.0

Compare Source

Features
  • implement host: matcher (2b0a43d)
Documentation Changes
  • document new host matcher (6205357)

v12.5.6

Compare Source

Bug Fixes
  • clean abort event listener once it's called or response is returned (4606250)
  • clean abort event listener once it's called or response is returned (ca51920)

v12.5.5

Compare Source

Bug Fixes
  • do not try to get a reader from a locked request oder response to cancel them (8c23ecf)
  • use optional chaining operator and do not try to cancel locked request or response to prevent errors (b1ff114)
  • use optional chaining operator to prevent errors (87f8399)

v12.5.4

Compare Source

Bug Fixes
  • apply browser exports fix for fetch-mock package (318cd94)

v12.5.3

Compare Source

Bug Fixes
  • add wrapper class to fix type ambiguity (b093bb0)
  • add wrapper class to fix type ambiguity (ea45aec)

v12.5.2

Compare Source

Bug Fixes
  • allow matching body for delete requests (891197c)

v12.5.1

Compare Source

Bug Fixes
  • improve handling of abort (5c1085d)
  • remove deprecated is-subset-of (a2546ef)

v12.4.0

Compare Source

Features
  • add ability to wait for multiple routes (c3dc9c3)
  • implement waitFor option (5500228)
Bug Fixes
  • clone response before using (2ccf18e)
  • use a promise, no function, to implement waitFor (8783101)

v12.3.0

Compare Source

Features
  • added overwriteRoutes: true rule to codemods (b3d1468)
  • implemented modifyRoute() method (f62e3d6)
  • implemented removeRoute method (584a861)
Bug Fixes
  • make types for modify route config more accurate (6894569)
  • prevented overwriting stickiness of a route (87f8c9b)

v12.2.1

Compare Source

Bug Fixes
  • fix failure to spy in browsers (bfaa5f3)

v12.2.0

Compare Source

Features
  • implement new hardReset method (d7e0776)
  • update codemods to use hardReset() (757d480)

v12.1.0

Compare Source

Features
  • fetch-mock: add include: matcher for urls (02f880c)

v12.0.2

Compare Source

Bug Fixes
  • allow sending responses with status 0 (92c06e9)

v12.0.1

Compare Source

Bug Fixes
  • clearHistory() can deal with unmatched calls (012e9ca)

v12.0.0

Compare Source

⚠ BREAKING CHANGES
  • Replaced legacy fetch-mock code with fetch-mock/core code
Features
  • Replaced legacy fetch-mock code with fetch-mock/core code (999ce92)

v11.1.5: fetch-mock: v11.1.5

Compare Source

Bug Fixes
  • change export order so default is last (bc9c41d)

v11.1.4: fetch-mock: v11.1.4

Compare Source

Documentation Changes
  • another occurrence of the cheatsheet ref (875e4f6)
  • fix link to cheatsheet (33e75b1)

v11.1.3: fetch-mock: v11.1.3

Compare Source

Bug Fixes
  • add missing metadata to package.json files (4ab78b9)

v11.1.1: fetch-mock: v11.1.1

Compare Source

Bug Fixes
  • roll back to glob-to-regexp (b114124)

v11.1.0: fetch-mock: v11.1.0

Compare Source

Features
  • remove debug mode from fetch-mock (89890b6)

v11.0.2: fetch-mock: v11.0.2

Compare Source

Bug Fixes
  • add license file to each package (9b36f89)

v11.0.1: fetch-mock: v11.0.1

Compare Source

Bug Fixes
  • fixes importimng into .mts files (98ad40e)

v11.0.0: fetch-mock: v11.0.0

Compare Source

⚠ BREAKING CHANGES
  • force fetch-mock major release
Bug Fixes
  • force fetch-mock major release (1b31416)

v10.1.1: fetch-mock: v10.1.1

Compare Source

Bug Fixes
  • change module system declaratuions to avoid top level type: module (ed00140)

v10.1.0: fetch-mock: v10.1.0

Compare Source

Features
  • wip: replace dequal, glob-to-regexp and bump path-to-regexp (d8d8b25)
Bug Fixes

v10.0.8: fetch-mock: v10.0.8

Compare Source

Bug Fixes
  • rename fetch-mock-legacy directory to fetch-mock (95fd761)
  • test release please again (3a9eb12)
Miscellaneous

v10.0.7: Make type definitions compatible with ESM and CommonJs

Compare Source

v10.0.6: Fix type definitions

Compare Source

v10.0.5: Fix exports

Compare Source

v10.0.4: Simple API for naming routes

Compare Source

e.g. .mock('/path', 200, 'my-name')

v10.0.3: Remove custom aborterror implementation

Compare Source

v10.0.2: Support matching data URLs

Compare Source

v10.0.1: Small fixes to types

Compare Source

v10.0.0: ESM and native fetch

Compare Source

A major rewrite to use ESM modules and default to using native fetch in all environments

Other than that the API remains unchanged

v9.11.0: Babel upgrades

Compare Source

In theory, this should not cause anybody any problems

v9.10.10: Fixes various types

Compare Source

v9.10.7: Refactor routes to be wrapped in a class

Compare Source

v9.10.6: Fix mocking requests with bodies in safari

Compare Source

Merge pull request #​585 from lambdalisue/hotfix-584

Patch native fetch on Safari to fix #​584

v9.10.5: Make typescript types available when importing the esm build

Compare Source

v9.10.4: Prevent responses from hanging in node-fetch

Compare Source

v9.10.3: Add matchPartialBody to typings

Compare Source

v9.10.2: Allow response bodies to be inspected

Compare Source

v9.10.1: Correct release with response inspection

Compare Source

v9.10.0: Allow inspecting responses

Compare Source

v9.9.1

Compare Source

v9.9.0: Full support for coercing objects into query string matchers

Compare Source

v9.8.0: Added support for multi-value query string matching

Compare Source

v9.7.0: Added support for sticky routes

Compare Source

v9.6.0: Non-trivial changes to testing of build targets

Compare Source

v9.5.1: Null release to overwrite accidental alpha tagged as latest

Compare Source

v9.5.0: Allow spying on just a single route

Compare Source

v9.4.0: Export full node-fetch signature

Compare Source

v9.3.1: Include cheatsheet

Compare Source

v9.3.0: Allow user defined matchers

Compare Source

v9.2.2: Allow empty string responses

Compare Source

v9.2.1: Better readme spiel

Compare Source

v9.2.0: Shorthand methods to match any fetch call

Compare Source

v9.1.2: Better description in readme

Compare Source

v9.1.1: Fixes bug using body matching in inspection methods

Compare Source

v9.1.0: Implements partial body matching

Compare Source

v9.0.0: Fix ES modules and handle async body matching

Compare Source

v8.3.2: Republish readme

Compare Source

v8.3.1: Fix regression #​493

Compare Source

v8.3.0: Accept all matching options in the first parameter

Compare Source

v8.2.1: Fix linting

Compare Source

v8.1.0: Add support for a URL instance as a matcher

Compare Source

v8.0.3: Fix bug #​477

Compare Source

Shorthand methods such as get() were not applying the shorthand options i.e. {method: 'get'} when called with an object rather than matcher, response, options triples

This release fixes that bug

v8.0.1: Fixes failure to use signal defined directly on Request instance

Compare Source

v8.0.0: Version 8

Compare Source

  • implements ES modules
  • hopefully resolves problems with babel-core clashes
  • adds typescript types
  • removes the UNMATCHED and MATCHED constants, and no longer exports fetchMock as a property, as well as the default, export
  • only includes the whatwg-url polyfill in nodejs

v7.7.3: WTF... seriously npm??

Compare Source

v7.7.2: Fix build

Compare Source

v7.7.0: Adds delay option when mocking

Compare Source

v7.6.0: Allows calling .mock() with no arguments to initialise routeless

Compare Source

v7.5.1: Fix AbortError construction in non-v8 browsers

Compare Source

v7.5.0: Adds node-fetch as peer dependency

Compare Source

v7.4.0: Adds support for matching JSON bodies

Compare Source

v7.3.9: Use correct constructor for AbortError

Compare Source

v7.3.8: Use correct constructor for AbortError

Compare Source

v7.3.7: Fix fallbackToNetwork issue with Requests

Compare Source

v7.3.6: Fix broken build

Compare Source

v7.3.3: Allow overwriting routes when only method is different

Compare Source

v7.3.1: Respect the loglevel for postinstall

Compare Source

v7.3.0: Allows using function matchers alongside declarative matchers

Compare Source

v7.2.8: Remove karma prod dep

Compare Source

v7.2.7: Fix build

Compare Source

v7.2.5: Clearer and more consistent naming of internals

Compare Source

v7.2.4: Fixes building responses from Request instance bodies

Compare Source

v7.2.3: Update charity link and minor refactoring

Compare Source

v7.2.2

Compare Source

v7.2.1: Support path parameter matching for absolute urls

Compare Source

v7.2.0: Remove node-fetch peer depeendency

Compare Source

v7.1.0: Adds support for abort signals

Compare Source

v7.0.8: Fix for https://github.com/wheresrhys/fetch-mock/issues/375

Compare Source

v7.0.7: route names can contain capitals

Compare Source

v7.0.6: express: matcher supports absolute urls

Compare Source

v7.0.5: really fix build

Compare Source

v7.0.2: Removed superfluous treatment of non w3c Promises

Compare Source

v7.0.1: Remove beta tester prompt from readme

Compare Source

v7.0.0: Version 7

Compare Source

Changelog and upgrade guide: https://github.com/wheresrhys/fetch-mock/blob/master/docs/v6-v7-upgrade-guide.md


Configuration

📅 Schedule: (in timezone Europe/London)

  • Branch creation
    • Between 04:00 PM and 07:59 PM, Monday through Friday (* 16-19 * * 1-5)
  • Automerge
    • Between 02:00 PM and 06:59 PM, Monday through Thursday (* 14-18 * * 1-4)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot force-pushed the renovate/fetch-mock-12.x branch from 262053f to a89f444 Compare April 23, 2026 19:15
@renovate renovate Bot force-pushed the renovate/fetch-mock-12.x branch 3 times, most recently from d1616b6 to 310091e Compare May 12, 2026 09:35
@renovate renovate Bot force-pushed the renovate/fetch-mock-12.x branch from 310091e to a95e5f9 Compare May 12, 2026 13:04
@renovate

renovate Bot commented May 12, 2026

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant