Skip to content

Releases: mswjs/interceptors

v0.3.1

14 Jul 08:58
Compare
Choose a tag to compare

Bug fixes

  • Fixes an issue where events added via XMLHttpRequest.prototype.addEventListener were not called (#31)

v0.3.0

08 Jul 07:39
Compare
Choose a tag to compare

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

15 Jun 07:19
Compare
Choose a tag to compare

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

13 Jun 09:47
Compare
Choose a tag to compare

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

18 May 08:43
Compare
Choose a tag to compare

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

15 May 11:13
Compare
Choose a tag to compare

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

05 May 07:06
Compare
Choose a tag to compare

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