Skip to content
This repository was archived by the owner on Oct 17, 2025. It is now read-only.

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented May 5, 2025

This PR contains the following updates:

Package Change Age Confidence
axios-mock-adapter ^1.19.0 -> ^2.0.0 age confidence

Release Notes

ctimmerm/axios-mock-adapter (axios-mock-adapter)

v2.1.0

Compare Source

  • Migrate to modern js #​393
    • ♻️ Migrate internal handler to an object
    • ♻️ Migrate to ES2022
    • ♻️ Migrate to Class
    • ♻️ Migrate to async/await
    • 🎁 Migrate handlers and history to a flat array. That way one only needs to check the history array to see all requests. The verbs on the array are still exposed, so there's no downside.
    • 🎁 Add MockResponse types

v2.0.0

Compare Source

Breaking Changes 💥
  • Drop node versions lower than v18 (#​390)

  • Change the parameters of the methods to align it to the one of axios. (#​387)
    The last parameter must be a config object with {params, headers} instead of just the headers.
    If you've always only used two parameters, you won't have to change anything.

    Methods with data param:

    • mock.onPost(url, data, headers) > mock.onPost(url, data, {params, headers})
    • mock.onPut(url, data, headers) > mock.onPost(url, data, {params, headers})
    • mock.onPatch(url, data, headers) > mock.onPatch(url, data, {params, headers})
    • mock.onAny(url, data, headers) > mock.onAny(url, {data, params, headers})

    Methods without data param:

    • mock.onGet(url, {params}, headers) > mock.onGet(url, {params, headers})
    • mock.onDelete(url, {params}, headers) > mock.onDelete(url, {params, headers})
    • mock.onHead(url, {params}, headers) > mock.onHead(url, {params, headers})
    • mock.onOptions(url, {params}, headers) > mock.onOptions(url, {params, headers})

    An error is reported if one accidentally passes the headers directly instead of `{headers: {}}.

    e.g. Error: Invalid config property Header-test provided to onPatch. Config: {"Header-test":"test-header"}


Configuration

📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) in timezone America/New_York, Automerge - At any time (no schedule defined).

🚦 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.

@codecov
Copy link

codecov bot commented May 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.62%. Comparing base (4e5d401) to head (2f4417a).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #412   +/-   ##
=======================================
  Coverage   71.62%   71.62%           
=======================================
  Files          43       43           
  Lines         793      793           
  Branches      179      179           
=======================================
  Hits          568      568           
  Misses        218      218           
  Partials        7        7           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from 604acb3 to 61c6952 Compare May 5, 2025 09:57
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from 61c6952 to 0b80037 Compare May 12, 2025 10:58
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from 0b80037 to fa98cec Compare May 19, 2025 12:39
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 2 times, most recently from 8ac5b68 to 67ee722 Compare June 2, 2025 10:40
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from 67ee722 to bbb9b56 Compare June 9, 2025 11:50
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from bbb9b56 to fe5b1ac Compare June 16, 2025 14:52
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 2 times, most recently from e683742 to ee221a8 Compare June 30, 2025 20:39
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 2 times, most recently from e44aa97 to e631c27 Compare July 21, 2025 11:48
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 4 times, most recently from 0868181 to a04ead6 Compare August 12, 2025 22:34
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from a04ead6 to 3258228 Compare August 18, 2025 08:33
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from 3258228 to 1561fe6 Compare August 25, 2025 10:00
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 2 times, most recently from ff61b92 to 4615997 Compare September 15, 2025 11:51
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 3 times, most recently from 52782ac to cebcf0e Compare September 29, 2025 09:03
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from cebcf0e to d032788 Compare October 6, 2025 10:06
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from d032788 to 67fd8c5 Compare October 13, 2025 10:32
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from 67fd8c5 to 2f4417a Compare October 16, 2025 14:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant