Skip to content

v0.38.0

Compare
Choose a tag to compare
@github-actions github-actions released this 19 Feb 12:14
· 442 commits to main since this release
e288d18

0.38.0 (2022-02-19)

Features

  • update to @mswjs/interceptors 0.13.3 (#1095) (e288d18), closes #1102
  • allow default behavior of onUnhandledRequest in a custom callback (#1096):
worker.start({
  onUnhandledRequest(request, print) {
    // Ignore unhandled warnings/errors from asset requests.
    if (request.url.href.includes('/assets/') {
      return
    }

    // Otherwise, execute the default warning/error/ strategy.
   print.warning() // or "print.error()" 
  }
})