Skip to content

Bump axios-mock-adapter from 1.22.0 to 2.1.0 in /frontend#188

Merged
github-actions[bot] merged 1 commit into
mainfrom
dependabot/npm_and_yarn/frontend/main/axios-mock-adapter-2.1.0
Jun 16, 2026
Merged

Bump axios-mock-adapter from 1.22.0 to 2.1.0 in /frontend#188
github-actions[bot] merged 1 commit into
mainfrom
dependabot/npm_and_yarn/frontend/main/axios-mock-adapter-2.1.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 15, 2026

Copy link
Copy Markdown
Contributor

Bumps axios-mock-adapter from 1.22.0 to 2.1.0.

Release notes

Sourced from axios-mock-adapter's releases.

v2.1.0

  • Migrate to modern js ctimmerm/axios-mock-adapter#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

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
  • 64d25b3 2.1.0
  • 533d3d9 chore: Upgrade axios, as there was a security issue, they fixed the url behavior
  • c958a54 Migrate to class
  • cf3d881 Add MockResponse types
  • 47db995 Migrate handle_request.js to async/await
  • c1b4a0f Upgrade eslint and rewrite to modern js
  • 6acbf99 Migrate handlers and history to a flat array
  • 1291950 Migrate handler to an object
  • 2554141 Use AxiosMockAdapter throughout README
  • 113656e 2.0.0
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jun 15, 2026
@github-actions github-actions Bot enabled auto-merge (squash) June 15, 2026 12:04
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/frontend/main/axios-mock-adapter-2.1.0 branch 6 times, most recently from 9ae921f to ea0b449 Compare June 16, 2026 12:13
Bumps [axios-mock-adapter](https://github.com/ctimmerm/axios-mock-adapter) from 1.22.0 to 2.1.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.1.0)

---
updated-dependencies:
- dependency-name: axios-mock-adapter
  dependency-version: 2.1.0
  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/frontend/main/axios-mock-adapter-2.1.0 branch from ea0b449 to 791e335 Compare June 16, 2026 12:15
@github-actions github-actions Bot merged commit c6349bf into main Jun 16, 2026
4 checks passed
@github-actions github-actions Bot deleted the dependabot/npm_and_yarn/frontend/main/axios-mock-adapter-2.1.0 branch June 16, 2026 12:15
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 javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants