yarn msw 0.28.0

latest releases: 2.3.0, 2.2.14, 2.3.0-ws.rc-6...
3 years ago

Breaking changes

  • The response instance in the life-cycle events now handles response.headers as the Headers instance (#660).
server.on('response:bypass', (res) => {
-  res.headers['content-type']
+  res.headers.get('content-type')
})
  • Calling setupServer no longer applies request interception immediately. Instead, it's applied when called server.listen() (#660).

Bug fixes

  • Fixes the order of events in the intercepted XMLHttpRequest in Node.js (mswjs/interceptors#102).
  • Fixes an issue that resulted in the "TypeError [ERR_INVALID_PROTOCOL]: Protocol "http:" not supported. Expected "https:"" exception when using MSW with superagent (#632).

Internal

  • Updates dependencies (@mswjs/interceptors, headers-utils).

Don't miss a new msw release

NewReleases is sending notifications on new releases.