Repository navigation
chore(deps): update dependency axios-mock-adapter to v2 - #1162
renovate[bot] wants to merge 1 commit into
Conversation
JSON:API benchmark changesEvery throughput change is labeled faster/slower; labels do not imply statistical significance. Bold rows mark PR winners per runtime, suite, mode, and scenario, including ties. Multipliers compare codecs with kitsu-core and clients with kitsu-native (1x), separately for base and PR. A 3x slower library runs at one third the reference rate. Missing reference scores show —. All rates, winners, multipliers, and changes compare completed operations/s. One operation is one decode, one encode, or one complete decode-encode round trip, including every transport request. @bjornharrtell/json-api uses 2 requests per encode and 3 per decode-encode because HTTP 204 PATCH triggers an automatic GET. Extra requests do not increase the reported rate. bun 1.4.4Base
node v26.13.0Base
bun 1.4.4Base Competitor changes
Remaining rows available in complete results linked above. node v26.13.0Base Competitor changes
Remaining rows available in complete results linked above. |
This PR contains the following updates:
^1.22.0→^2.0.0Release Notes
ctimmerm/axios-mock-adapter (axios-mock-adapter)
v2.1.0Compare Source
v2.0.0Compare 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: (in timezone Europe/London)
🚦 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.