Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency axios-mock-adapter to v2 #523

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 12, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
axios-mock-adapter 1.22.0 -> 2.0.0 age adoption passing confidence

Release Notes

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

v2.0.0

Compare Source

Breaking Changes 💥
  • Drop node versions lower than v18 (https://github.com/ctimmerm/axios-mock-adapter/pull/390)

  • Change the parameters of the methods to align it to the one of axios. (https://github.com/ctimmerm/axios-mock-adapter/pull/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 - "before 4am on Monday" 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.

Copy link

codecov bot commented Aug 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.47%. Comparing base (8213ee7) to head (afc8e4f).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #523   +/-   ##
=======================================
  Coverage   70.47%   70.47%           
=======================================
  Files          25       25           
  Lines         359      359           
  Branches       94       94           
=======================================
  Hits          253      253           
  Misses        104      104           
  Partials        2        2           

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

@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 2 times, most recently from b0a8c23 to 0a4b466 Compare August 19, 2024 07:02
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from 0a4b466 to 23c7c83 Compare September 2, 2024 11:09
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from 23c7c83 to 6b91c75 Compare September 9, 2024 12:30
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 3 times, most recently from ad52c46 to 19f8fd9 Compare September 23, 2024 10:26
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from 19f8fd9 to afc8e4f Compare September 26, 2024 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants