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)