chore(deps): update dependency axios-mock-adapter to v2#52
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
chore(deps): update dependency axios-mock-adapter to v2#52renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
f0b5aff to
1f1cca1
Compare
681f687 to
d751fc1
Compare
86bc6a1 to
c1f0e4b
Compare
72e6f6f to
3588478
Compare
93093e5 to
2fe4203
Compare
2fe4203 to
6999ff5
Compare
6999ff5 to
8ef8254
Compare
8ef8254 to
4462bda
Compare
4d251cf to
49e41fa
Compare
23f03eb to
9b27d23
Compare
699251f to
8b1a09b
Compare
8b1a09b to
ac6936c
Compare
ac6936c to
62352ee
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: 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.