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

build(deps): update devdependency axios-mock-adapter to ~2.1.0 #1014

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 5, 2024

This PR contains the following updates:

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

Release Notes

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

v2.1.0

Compare Source

  • Migrate to modern js https://github.com/ctimmerm/axios-mock-adapter/pull/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 (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 - At any time (no schedule defined), 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.

@renovate renovate bot added the dependencies label Aug 5, 2024
@renovate renovate bot assigned wopian Aug 5, 2024
@renovate renovate bot requested a review from wopian August 5, 2024 11:50
Copy link

github-actions bot commented Aug 5, 2024

yarn.lock changes

Click to toggle table visibility
Name Status Previous Current
axios-mock-adapter UPDATED 1.22.0 2.1.0

@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from f8ba3f9 to 40dbcba Compare August 12, 2024 03:37
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 2 times, most recently from b30f6c0 to 4d66b47 Compare August 26, 2024 00:13
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 2 times, most recently from 0387bf2 to 1208ac8 Compare September 2, 2024 04:11
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 3 times, most recently from 32129ed to 77e6160 Compare September 9, 2024 21:52
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 2 times, most recently from bbe23ee to 70735ce Compare September 23, 2024 03:09
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 2 times, most recently from 542bf6a to c4a87ae Compare September 30, 2024 04:31
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from c4a87ae to b50728f Compare October 7, 2024 04:43
@renovate renovate bot changed the title build(deps): update devdependency axios-mock-adapter to ~2.0.0 build(deps): update devdependency axios-mock-adapter to ~2.1.0 Oct 9, 2024
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 2 times, most recently from 14a679d to f344d6a Compare October 14, 2024 00:43
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 2 times, most recently from 034345d to f7800dc Compare October 25, 2024 19:17
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 2 times, most recently from ea9b7c9 to 67f24ec Compare November 4, 2024 03:21
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from 67f24ec to d6004a9 Compare November 11, 2024 03:11
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 2 times, most recently from f84f71f to d1f107f Compare November 22, 2024 19:53
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from d1f107f to 05fd90c Compare November 25, 2024 03:36
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