Skip to content

Update dependency axios-mock-adapter to v2#14

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/axios-mock-adapter-2.x
Open

Update dependency axios-mock-adapter to v2#14
renovate[bot] wants to merge 1 commit intomainfrom
renovate/axios-mock-adapter-2.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Jun 29, 2025

This PR contains the following updates:

Package Change Age Confidence
axios-mock-adapter ^1.22.0^2.0.0 age confidence

Release Notes

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

v2.1.0

Compare Source

  • Migrate to modern js #​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 (#​390)

  • Change the parameters of the methods to align it to the one of axios. (#​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: (UTC)

  • 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 force-pushed the renovate/axios-mock-adapter-2.x branch 2 times, most recently from 52409be to 2b67679 Compare July 2, 2025 06:29
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jul 2, 2025

Coverage Report (Node 20.x)

Coverage after merging renovate/axios-mock-adapter-2.x into main will be
89.38%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
server.js85.37%70%75%92.59%23, 37, 42–44
db
   db.js78.95%100%60%85.71%17, 30
db/models
   user.js100%100%100%100%
   video.js100%100%100%100%
routes
   auth-routes.js100%100%100%100%
   pipeline-routes.js94.29%90.91%100%95.65%26–27
   video-routes.js96.25%95.65%100%96.23%45, 63–64
utils
   funcs.js79.41%72.41%77.78%82.81%22–23, 23, 23–24, 24, 24–26, 26, 26–27, 27, 27–28, 30–33
   logger.js65.79%40%66.67%76%103, 33, 55, 64, 64, 64, 66, 74, 89, 89, 96–97

@renovate renovate Bot force-pushed the renovate/axios-mock-adapter-2.x branch from 2b67679 to f8ca4ea Compare August 10, 2025 15:00
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.

0 participants