Skip to content

Releases: mswjs/msw

v2.3.0

08 May 14:11
Compare
Choose a tag to compare

v2.3.0 (2024-05-08)

Warning

This release changes how MSW treats unhandled exceptions in response resolvers. Previously, they were treated as request errors. Starting with this release, unhandled resolver exceptions will be coerced to 500 Unhandled Exception mocked error responses produced by the library. Please note that you must not intentionally throw errors in your resolvers. Please use Response.error() to mock request/network errors. Unhandled exceptions are considered unintended and will be treated as if they happen on the actual server.

Features

  • treat unhandled exceptions in handlers as 500 error responses (#2135) (5191399) @kettanaito
  • prioritize the node export when importing msw/node (#2134, transitively through @mswjs/interceptors).
  • add a new unhandledException event (#2135, docs).
server.events.on('unhandledException', ({ request, error }) => {
  console.log('%s %s errored! See details below.', request.method, request.url)
  console.error(error)
})

Bug Fixes

v2.2.14

17 Apr 11:45
Compare
Choose a tag to compare

v2.2.14 (2024-04-17)

Bug Fixes

v2.2.13

27 Mar 16:15
Compare
Choose a tag to compare

v2.2.13 (2024-03-27)

Bug Fixes

v2.2.12

27 Mar 01:33
Compare
Choose a tag to compare

v2.2.12 (2024-03-27)

Bug Fixes

v2.2.11

26 Mar 01:33
Compare
Choose a tag to compare

v2.2.11 (2024-03-26)

Bug Fixes

v2.2.10

22 Mar 01:38
Compare
Choose a tag to compare

v2.2.10 (2024-03-22)

Bug Fixes

v2.2.9

20 Mar 01:36
Compare
Choose a tag to compare

v2.2.9 (2024-03-20)

Bug Fixes

v2.2.8

19 Mar 01:31
Compare
Choose a tag to compare

v2.2.8 (2024-03-19)

Bug Fixes

v2.2.7

18 Mar 01:31
Compare
Choose a tag to compare

v2.2.7 (2024-03-18)

Bug Fixes

v2.2.6

17 Mar 12:57
Compare
Choose a tag to compare

v2.2.6 (2024-03-17)

Bug Fixes