Update dependency msw to v2 (1.11) - autoclosed #7685
Closed
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.3.2
->2.0.3
Release Notes
mswjs/msw (msw)
v2.0.3
Compare Source
v2.0.3 (2023-11-04)
Bug Fixes
a0ec8be
) @kettanaito66fb437
) @kettanaitov2.0.2
Compare Source
v2.0.2 (2023-11-01)
Bug Fixes
2ead392
) @kettanaitoa179b68
) @joshkelf6e5112
) @mattcosta7v2.0.1
Compare Source
v2.0.1 (2023-10-28)
Bug Fixes
5c5470a
) @kunmaggv2.0.0
Compare Source
v2.0.0 (2023-10-23)
Breaking changes
< 4.7
.setupWorker
,SetupWorkerApi
, etc., must be imported frommsw/browser
now.rest
object tohttp
(rest.get
->http.get
).(req, res, ctx) => res()
but instead({ request }) => new Response()
.response
context
and related exports (defaultContext
,restContext
,graphqlContext
).compose
andcreateResponseComposition
res.once()
is removed in favor of the{ once: boolean }
option on the request handler..printHandlers()
method with.listHandlers()
.NetworkError
class in favor of the standardResponse.error()
.crypto.randomUUID()
instead ofMath.random()
in the worker.Features
Request
andResponse
instances respectively.ReadableStream
as a mocked response body.FormData
.FormData
as a mocked response body.File
polyfill in Node.js.{ once: true }
request handler option.RequestHandler
API public.Bug fixes
FormData
.FormData
response body.URLSearchParams
as the request body couldn’t be read.referrerPolicy
was reset to a different value than the original.XMLHttpRequest
events andreadyState
changes.responseType
equal to"arraybuffer"
as an incorrect buffer (previously, always assumed to be a string).XMLHttpRequest
events when the request fails.status
equal to 0 until the request actually resolves.onload
event callback was called twice forXMLHttpRequest
.@dbritto-dev @ddolcimascolo @markwhitfeld @christoph-fricke @thepassle @piotr-cz @mattcosta7 @koddsson @dkobierski @ricardocosta @dxlbnl @zkochan @felipefreitag @weyert @95th @committomaster @Xayer @Kosai106 @colinsullivan @xmlking @thw0rted @lee-reinhardt @wKovacs64 @TeChn4K @cmolina @nickrttn @thomasbertet @mscottnelson @jonnedeprez @negabaro @the-ult @WesleyYue @cwagner22 @skvale @alawiii521 @csantos1113 @elliotgonzalez123 @committomaster @tsteckenborn @xxleyi @jonnedeprez @danny-does-stuff @lemcii @mattrodak @luisr-carrillo @lee-reinhardt @ealejandrootalvaro @tomdglenn91
Configuration
📅 Schedule: Branch creation - "after 11pm on friday,before 7am on saturday" in timezone Etc/Greenwich, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.