Skip to content

Releases: mswjs/interceptors

v0.33.2

24 Jul 21:37
Compare
Choose a tag to compare

v0.33.2 (2024-07-24)

Bug Fixes

v0.33.1

12 Jul 23:17
Compare
Choose a tag to compare

v0.33.1 (2024-07-12)

Bug Fixes

v0.33.0

11 Jul 17:02
Compare
Choose a tag to compare

v0.33.0 (2024-07-11)

Warning

This release contains BREAKING CHANGES.

⚠️ BREAKING CHANGES

  • request.respondWith() has been deprecated in favor of controller.respondWith()
interceptor.on('request',
-  ({ request }) => request.respondWith(new Response()),
+  ({ controller }) => controller.respondWith(new Response())

The request instance exposed in the listener arguments is a raw, unmodified Fetch API Request instance representing the intercepted request.

Features

  • implement a RequestController class (#595) (73dd07a) @kettanaito
  • support for erroring requests using controller.errorWith(error)

v0.32.2

11 Jul 16:58
Compare
Choose a tag to compare

v0.32.2 (2024-07-11)

Bug Fixes

v0.32.1

06 Jul 23:16
Compare
Choose a tag to compare

v0.32.1 (2024-07-06)

Bug Fixes

v0.32.0

04 Jul 18:57
Compare
Choose a tag to compare

v0.32.0 (2024-07-04)

Features

v0.31.1

04 Jul 14:27
Compare
Choose a tag to compare

v0.31.1 (2024-07-04)

Bug Fixes

v0.31.0

04 Jul 14:20
Compare
Choose a tag to compare

v0.31.0 (2024-07-04)

Features

  • ClientRequest: await response listeners before emitting the "end" response event (#591) (f68e0b6) @kettanaito

v0.30.1

02 Jul 23:17
Compare
Choose a tag to compare

v0.30.1 (2024-07-02)

Bug Fixes

v0.30.0

06 Jun 18:01
Compare
Choose a tag to compare

v0.30.0 (2024-06-06)

Features

Bug Fixes