Skip to content

v0.33.0

Compare
Choose a tag to compare
@kettanaito kettanaito released this 11 Jul 17:02
· 67 commits to main since this release

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)