Releases: mswjs/interceptors
Releases · mswjs/interceptors
v0.33.2
v0.33.2 (2024-07-24)
Bug Fixes
- support lowercase HTTP request methods (#605) (83e4b95) @mikicho @kettanaito
v0.33.1
v0.33.1 (2024-07-12)
Bug Fixes
- ClientRequest: improve rawHeaders recording (#602) (5135505) @mikicho @kettanaito
v0.33.0
v0.33.0 (2024-07-11)
Warning
This release contains BREAKING CHANGES.
⚠️ BREAKING CHANGES
request.respondWith()
has been deprecated in favor ofcontroller.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
v0.32.2 (2024-07-11)
Bug Fixes
- ClientRequest: support "rawHeaders" in Fetch API Headers (#598) (4660558) @kettanaito @mikicho
v0.32.1
v0.32.1 (2024-07-06)
Bug Fixes
- ClientRequest: destroy socket when destroying IncomingMessage (#597) (8f041da) @kettanaito
- ClientRequest: use
ServerResponse
to build the HTTP response string (#596) (fedac45) @mikicho @kettanaito
v0.32.0
v0.32.0 (2024-07-04)
Features
- ClientRequest: use net.Socket interceptor (#515) (77a6996) @kettanaito @mikicho
v0.31.1
v0.31.1 (2024-07-04)
Bug Fixes
- ClientRequest: return correct boolean from
.emit()
proxy (#593) (5e09252) @kettanaito
v0.31.0
v0.31.0 (2024-07-04)
Features
- ClientRequest: await response listeners before emitting the "end" response event (#591) (f68e0b6) @kettanaito
v0.30.1
v0.30.1 (2024-07-02)
Bug Fixes
- ClientRequest: account for missing
agent.destroy
when terminating a request (#585) (1226eb7) @freben @kettanaito
v0.30.0
v0.30.0 (2024-06-06)
Features
- WebSocket: add connection "info" to the "connection" event payload (#577) (8c633ad) @DanielleHuisman @kettanaito
Bug Fixes
- set "WebSocket.protocol" to an empty string by default (#578) (87ae1e3) @DanielleHuisman