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

Bump axios-mock-adapter from 1.22.0 to 2.0.0 #1548

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 5, 2024

Bumps axios-mock-adapter from 1.22.0 to 2.0.0.

Release notes

Sourced from axios-mock-adapter's releases.

v2.0.0

Breaking Changes 💥

  • Drop node versions lower than v18 (ctimmerm/axios-mock-adapter#390)

  • Change the parameters of the methods to align it to the one of axios. (ctimmerm/axios-mock-adapter#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"}

Commits
  • 113656e 2.0.0
  • 306e40f Subtract -1 on the delay tests as the setTimeout resolution behaves weird and...
  • ab4bb17 Change Date.now() to performance.now()
  • 999ef1c Try to fix flaky delay tests
  • e68e418 Strip out undefined headers during axios header normalization to not cause as...
  • 99cf5e9 Improve 'Could not find mock for' message by providing headers and params con...
  • f45c074 Revert types of onLink, onUnlink and onList
  • 617b0c7 Add assertions to detect wrong config options of the breaking change
  • d491b04 Support axios-like config object with params, headers and data attributes
  • 5635cc6 Support params comparisons for post and put requests
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Aug 5, 2024
Copy link

github-actions bot commented Aug 5, 2024

Coverage Report

Commit:9fc8db8
Base: develop@36821fd

Type Base This PR
Total Statements Coverage  70.9%  70.9%  (+0%)
Total Branches Coverage  69.77%  69.81%  (+0.04%)
Total Functions Coverage  82.72%  82.72%  (+0%)
Total Lines Coverage  70.9%  70.9%  (+0%)
Details (changed files):
File Statements Branches Functions Lines

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/develop/axios-mock-adapter-2.0.0 branch 2 times, most recently from 088771a to c5582a6 Compare August 7, 2024 07:40
@JoernBerkefeld
Copy link
Contributor

@dependabot rebase

Bumps [axios-mock-adapter](https://github.com/ctimmerm/axios-mock-adapter) from 1.22.0 to 2.0.0.
- [Release notes](https://github.com/ctimmerm/axios-mock-adapter/releases)
- [Changelog](https://github.com/ctimmerm/axios-mock-adapter/blob/master/CHANGELOG.md)
- [Commits](ctimmerm/axios-mock-adapter@v1.22.0...v2.0.0)

---
updated-dependencies:
- dependency-name: axios-mock-adapter
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/develop/axios-mock-adapter-2.0.0 branch from c5582a6 to 9fc8db8 Compare August 7, 2024 08:09
@JoernBerkefeld JoernBerkefeld added this to the 7.1.4 milestone Aug 7, 2024
@JoernBerkefeld JoernBerkefeld self-assigned this Aug 7, 2024
@JoernBerkefeld JoernBerkefeld merged commit e2379e1 into develop Aug 7, 2024
7 checks passed
@JoernBerkefeld JoernBerkefeld deleted the dependabot/npm_and_yarn/develop/axios-mock-adapter-2.0.0 branch August 7, 2024 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant