Compatability with MSW 2.0
tobeycodes opened this issue · comments
It seems that MockedRequest
is no longer exported from v2.0
Hi, @tobeycodes. No, it's not. You shouldn't be using http-middleware
with MSW 2.0. This library supports a specific range of msw
:
Line 60 in 5dbd69d
Pull requests are welcome to bump this package to support MSW 2.0!
Did some changes on my own project related to this, maybe this can become a PR to resolve the issue around msw
2.x.x :)
@stijnvanhulle, can you please open a pull request with that? I was just looking at the source code and that is precisely what I would do. Your contribution would be appreciated!
Some building issues with the examples but tests and changes seem to work: #32
@tobeycodes https://github.com/mswjs/http-middleware/releases/tag/v0.9.0 has been released with support for MSW v2 :)