Releases: mswjs/interceptors
Releases · mswjs/interceptors
v0.3.4
Bug fixes
- Fixes an issue that resulted into
http
module override being loaded in React Native (#37).
v0.3.3
Bug fixes
- Fixes an issue that resulted into a mocked
statusText
not being set on the ClientRequest
instance (mswjs/msw#279, #35).
v0.3.2
Bug fixes
- Fixes an issue where a request body and encoding where not accepted in the
ClientRequest.prototype.end
method (#32, #33).
- Fixes an issue where request headers that were added after the
ClientRequest
has been constructed were not present on the mocked request object, and were not propagated to the original request object (#32, #33).
v0.3.1
Bug fixes
- Fixes an issue where events added via
XMLHttpRequest.prototype.addEventListener
were not called (#31)
v0.3.0
Features
- Throwing an exception in a request middleware function now produces a valid request error (network error) and cancels a pending request (#28, #29).
Bug fixes
- Fixes an issue that resulted into a custom callback function to
http
/https
request being called twice (#26).
Internal
- Improves request debugging by attaching request method and URL to the debug statements (#23, #30).
v0.2.6
Bug fixes
- Fixes an issue that resulted into a
req.url
instance not having any username
and password
information, although performed an authenticated request (via RequestOptions.auth
) (#21).
v0.2.5
Bug fixes
- Fixes an issues that resulted into
TypeError: Cannot read property 'apply' of undefined
exception when using certain third-party request issuing libraries (#19, #20). Resolved by implementing setNoDelay
, setKeepAlive
and setTimeout
on the polyfilled Socket
class.
v0.2.4
Bug fixes
- Fixes an issue that resulted into third-party clients being stuck on
readyState: 3
(LOADING) when issuing XMLHttpRequest
(#13, #14)
- Fixes an invalid
XMLHttpRequest
property reponse
v0.2.0
Breaking changes
req.url
is not an instance of the URL
class (previously a string
).
req.query
is no longer accessible. Please use req.url.searchParams
instead.
v0.1.6
Bug fixes
- Fixes an issue that resulted into request body not being written in
ClientRequest
- Fixes an issue that resulted into request body not being sent in
XMLHttpRequest
- Fixes an issue that resulted into original
XMLHttpRequest
not being called with the same arguments to req.open()
Internal
- Adds unit tests to assert interception and response mocking as separate units of functionality