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

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

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 26, 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

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


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 - "* 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.

@renovate renovate bot requested a review from a team as a code owner August 26, 2024 04:59
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 5 times, most recently from 1f31953 to 8afa3d0 Compare August 29, 2024 17:24
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 11 times, most recently from 8810bfb to bab181a Compare September 10, 2024 20:39
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 13 times, most recently from 1d015f7 to 6c527e0 Compare September 16, 2024 17:08
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 12 times, most recently from 2938a41 to 6f654e4 Compare November 21, 2024 18:40
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 6 times, most recently from 6f7ef7b to 32fb9f9 Compare November 27, 2024 20:34
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch 7 times, most recently from dfb9bff to 29a92f3 Compare December 6, 2024 20:50
@renovate renovate bot force-pushed the renovate/axios-mock-adapter-2.x branch from 29a92f3 to 1bd73cf Compare December 6, 2024 21:30
@renovate renovate bot changed the title chore(deps): update dependency axios-mock-adapter to v2 chore(deps): update dependency axios-mock-adapter to v2 - autoclosed Dec 8, 2024
@renovate renovate bot closed this Dec 8, 2024
@renovate renovate bot deleted the renovate/axios-mock-adapter-2.x branch December 8, 2024 18:36
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