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 #2423

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 1, 2024

⚠️ Dependabot is rebasing this PR ⚠️

Rebasing might not happen immediately, so don't worry if this takes some time.

Note: if you make any changes to this PR yourself, they will take precedence over the rebase.


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)

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] <[email protected]>
@williamjallen williamjallen added this pull request to the merge queue Sep 3, 2024
github-merge-queue bot pushed a commit that referenced this pull request Sep 3, 2024
Bumps
[axios-mock-adapter](https://github.com/ctimmerm/axios-mock-adapter)
from 1.22.0 to 2.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/ctimmerm/axios-mock-adapter/releases">axios-mock-adapter's
releases</a>.</em></p>
<blockquote>
<h2>v2.0.0</h2>
<h3>Breaking Changes 💥</h3>
<ul>
<li>
<p>Drop node versions lower than v18 (<a
href="https://github.com/ctimmerm/axios-mock-adapter/pull/390">ctimmerm/axios-mock-adapter#390</a>)</p>
</li>
<li>
<p>Change the parameters of the methods to align it to the one of axios.
(<a
href="https://github.com/ctimmerm/axios-mock-adapter/pull/387">ctimmerm/axios-mock-adapter#387</a>)
The last parameter must be a config object with <code>{params,
headers}</code> instead of just the headers.
If you've always only used two parameters, you won't have to change
anything.</p>
<p>Methods with data param:</p>
<ul>
<li><code>mock.onPost(url, data, headers)</code> &gt;
<code>mock.onPost(url, data, {params, headers})</code></li>
<li><code>mock.onPut(url, data, headers)</code> &gt;
<code>mock.onPost(url, data, {params, headers})</code></li>
<li><code>mock.onPatch(url, data, headers)</code> &gt;
<code>mock.onPatch(url, data, {params, headers})</code></li>
<li><code>mock.onAny(url, data, headers)</code> &gt;
<code>mock.onAny(url, {data, params, headers})</code></li>
</ul>
<p>Methods without data param:</p>
<ul>
<li><code>mock.onGet(url, {params}, headers)</code> &gt;
<code>mock.onGet(url, {params, headers})</code></li>
<li><code>mock.onDelete(url, {params}, headers)</code> &gt;
<code>mock.onDelete(url, {params, headers})</code></li>
<li><code>mock.onHead(url, {params}, headers)</code> &gt;
<code>mock.onHead(url, {params, headers})</code></li>
<li><code>mock.onOptions(url, {params}, headers)</code> &gt;
<code>mock.onOptions(url, {params, headers})</code></li>
</ul>
<p>An error is reported if one accidentally passes the headers directly
instead of `{headers: {}}.</p>
<p>e.g. <code>Error: Invalid config property Header-test provided to
onPatch. Config:
{&quot;Header-test&quot;:&quot;test-header&quot;}</code></p>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/ctimmerm/axios-mock-adapter/commit/113656e2a2c7a6e6649c7d08812a91b183a9ca7f"><code>113656e</code></a>
2.0.0</li>
<li><a
href="https://github.com/ctimmerm/axios-mock-adapter/commit/306e40fca0c9ec939f7158917b829804d752013a"><code>306e40f</code></a>
Subtract -1 on the delay tests as the setTimeout resolution behaves
weird and...</li>
<li><a
href="https://github.com/ctimmerm/axios-mock-adapter/commit/ab4bb17aa44c1aa8be001028eb1fc9168afde0a5"><code>ab4bb17</code></a>
Change Date.now() to performance.now()</li>
<li><a
href="https://github.com/ctimmerm/axios-mock-adapter/commit/999ef1c1d0d04db08bc3e47b3ed5856a43fcf2c0"><code>999ef1c</code></a>
Try to fix flaky delay tests</li>
<li><a
href="https://github.com/ctimmerm/axios-mock-adapter/commit/e68e418484dd9436f85a4559839682f22038e9cc"><code>e68e418</code></a>
Strip out undefined headers during axios header normalization to not
cause as...</li>
<li><a
href="https://github.com/ctimmerm/axios-mock-adapter/commit/99cf5e97c40def1b1d682c67614e15551baca2ed"><code>99cf5e9</code></a>
Improve 'Could not find mock for' message by providing headers and
params con...</li>
<li><a
href="https://github.com/ctimmerm/axios-mock-adapter/commit/f45c0744592ac7ec12a1e79a2b77c28b1da8ff8d"><code>f45c074</code></a>
Revert types of onLink, onUnlink and onList</li>
<li><a
href="https://github.com/ctimmerm/axios-mock-adapter/commit/617b0c756c45959f413177c2d32fe5922bb9da20"><code>617b0c7</code></a>
Add assertions to detect wrong config options of the breaking
change</li>
<li><a
href="https://github.com/ctimmerm/axios-mock-adapter/commit/d491b04c50e93990fb1795cb1062b60aad2b87bb"><code>d491b04</code></a>
Support axios-like config object with params, headers and data
attributes</li>
<li><a
href="https://github.com/ctimmerm/axios-mock-adapter/commit/5635cc6f724e4782278fefac20853a06653ac516"><code>5635cc6</code></a>
Support params comparisons for post and put requests</li>
<li>Additional commits viewable in <a
href="https://github.com/ctimmerm/axios-mock-adapter/compare/v1.22.0...v2.0.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=axios-mock-adapter&package-manager=npm_and_yarn&previous-version=1.22.0&new-version=2.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

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)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 3, 2024

Dependabot attempted to update this pull request, but because the branch dependabot/npm_and_yarn/axios-mock-adapter-2.0.0 is protected it was unable to do so.

Merged via the queue into master with commit 775e52c Sep 3, 2024
6 checks passed
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/axios-mock-adapter-2.0.0 branch September 3, 2024 16:19
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