Releases: mswjs/interceptors
Releases · mswjs/interceptors
v0.3.6
Changes
ClientRequest
options.uri.protocol
is taken into account when deciding on the request's protocol.
XMLHttpRequest
this.user
and this.password
initializers are now removed, the values default to undefined
.
this.async
has a default value of undefined
, true
when forwarded (previously false
).
Bug fixes
- Fixes an issue when the
timeout
property of an XMLHttpRequest
was not propagated to the original request (#47, #43).
- Fixes an issue when a forwarded
xhrRequest.open()
call did not have the right async
parameter value (#42).
v0.3.5
Bug fixes
- Fixes an issue that resulted in
ProgressEvent
throwing an exception in React Native environment due to not being defined there (#40, #41).
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