wopian / kitsu

🦊 A simple, lightweight & framework agnostic JSON:API client
https://yarn.fyi/kitsu
MIT License
273 stars 41 forks source link

build(deps): update devdependency axios-mock-adapter to ~2.1.0 #1014

Open renovate[bot] opened 3 months ago

renovate[bot] commented 3 months ago

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

Release Notes

ctimmerm/axios-mock-adapter (axios-mock-adapter) ### [`v2.1.0`](https://redirect.github.com/ctimmerm/axios-mock-adapter/releases/tag/v2.1.0) [Compare Source](https://redirect.github.com/ctimmerm/axios-mock-adapter/compare/v2.0.0...v2.1.0) - Migrate to modern js [https://github.com/ctimmerm/axios-mock-adapter/pull/393](https://redirect.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`](https://redirect.github.com/ctimmerm/axios-mock-adapter/releases/tag/v2.0.0) [Compare Source](https://redirect.github.com/ctimmerm/axios-mock-adapter/compare/v1.22.0...v2.0.0) ##### Breaking Changes 💥 - Drop node versions lower than v18 ([https://github.com/ctimmerm/axios-mock-adapter/pull/390](https://redirect.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](https://redirect.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 - 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.



This PR was generated by Mend Renovate. View the repository job log.

github-actions[bot] commented 3 months ago

yarn.lock changes

Click to toggle table visibility
| Name | Status | Previous | Current | | :- | :-: | :-: | :-: | | `axios-mock-adapter` | [UPDATED](#) | 1.22.0 | 2.1.0 |