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

chore(deps): update dependency axios-mock-adapter to v2#986

Closed
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/axios-mock-adapter-2.x
Closed

chore(deps): update dependency axios-mock-adapter to v2#986
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/axios-mock-adapter-2.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Sep 4, 2024

This PR contains the following updates:

Package Change Age Confidence
axios-mock-adapter 1.22.0 -> 2.1.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 - "every weekday" (UTC), 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 Sep 4, 2024

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.04%. Comparing base (973e014) to head (6491a31).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #986   +/-   ##
=======================================
  Coverage   71.04%   71.04%           
=======================================
  Files         133      133           
  Lines        3454     3454           
  Branches      980      982    +2     
=======================================
  Hits         2454     2454           
+ Misses        957      954    -3     
- Partials       43       46    +3     

☔ 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 9fa6f30 to 3840ae1 Compare September 6, 2024 16:54
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from 3840ae1 to e537974 Compare September 18, 2024 14:30
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 2 times, most recently from 63ed5d7 to 4bbdb57 Compare October 14, 2024 01:23
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from 4bbdb57 to 7876ffc Compare October 31, 2024 18:52
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from 7876ffc to 3ac23c2 Compare November 14, 2024 18:34
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 2 times, most recently from ffa9f0c to b35f168 Compare December 20, 2024 14:41
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from b35f168 to b167491 Compare January 7, 2025 07:42
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 3 times, most recently from 229230b to b09b534 Compare February 6, 2025 11:36
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from b09b534 to 052e17e Compare February 25, 2025 09:59
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from 052e17e to aea9918 Compare March 26, 2025 05:54
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from aea9918 to c5ca42d Compare April 7, 2025 11:44
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 2 times, most recently from 1f8b0dc to 1538dbf Compare April 25, 2025 05:51
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from 1538dbf to 1109eb2 Compare May 5, 2025 13:25
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 10 times, most recently from c7b4a84 to c8b9b18 Compare May 20, 2025 23:11
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 5 times, most recently from 9a303b6 to 751266d Compare May 27, 2025 18:20
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 2 times, most recently from 593247a to 2d1781c Compare June 10, 2025 14:00
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 4 times, most recently from 25bfae0 to 59db9f0 Compare June 19, 2025 09:21
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 5 times, most recently from 364fb70 to 7b8ee6c Compare June 27, 2025 11:57
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 7 times, most recently from 082936f to 6491a31 Compare August 12, 2025 20:54
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 2 times, most recently from a528b3b to f53ec1f Compare October 1, 2025 17:09
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from f53ec1f to 6325376 Compare October 3, 2025 17:14
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from 6325376 to 6fdf687 Compare October 17, 2025 14:14
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from 6fdf687 to ca90134 Compare October 21, 2025 15:39
@feanil feanil closed this Oct 31, 2025
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.

2 participants