Closed renovate[bot] closed 3 months ago
[!IMPORTANT]
Auto Review Skipped
Bot user detected.
To trigger a single review, invoke the
@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This PR contains the following updates:
^2.2.7
->^2.3.0
Release Notes
mswjs/msw (msw)
### [`v2.3.0`](https://togithub.com/mswjs/msw/releases/tag/v2.3.0) [Compare Source](https://togithub.com/mswjs/msw/compare/v2.2.14...v2.3.0) #### 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()`](https://mswjs.io/docs/basics/mocking-responses#mocking-network-errors) 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](https://togithub.com/mswjs/msw/issues/2135)) ([`5191399`](https://togithub.com/mswjs/msw/commit/519139924639a0135169210a0d9c5cd0a0d3e994)) [@kettanaito](https://togithub.com/kettanaito) - prioritize the `node` export when importing `msw/node` ([#2134](https://togithub.com/mswjs/msw/issues/2134), transitively through [@mswjs/interceptors](https://togithub.com/mswjs/interceptors)). - add a new `unhandledException` event ([#2135](https://togithub.com/mswjs/msw/issues/2135), [docs](https://mswjs.io/docs/api/life-cycle-events#unhandledexception)). ```js server.events.on('unhandledException', ({ request, error }) => { console.log('%s %s errored! See details below.', request.method, request.url) console.error(error) }) ``` ##### Bug Fixes - **Disposable:** make the ".dispose()" method synchronous ([#2144](https://togithub.com/mswjs/msw/issues/2144)) ([`686d3d6`](https://togithub.com/mswjs/msw/commit/686d3d668f7b76cbf26f75c990fded5e4fd298da)) [@kettanaito](https://togithub.com/kettanaito) ### [`v2.2.14`](https://togithub.com/mswjs/msw/releases/tag/v2.2.14) [Compare Source](https://togithub.com/mswjs/msw/compare/v2.2.13...v2.2.14) #### v2.2.14 (2024-04-17) ##### Bug Fixes - preserve search params in "onUnhandledRequest" messages ([#2128](https://togithub.com/mswjs/msw/issues/2128)) ([`64bcae7`](https://togithub.com/mswjs/msw/commit/64bcae7c27dfd36a35723a323c29cf0f5138a81c)) [@nagadevkrishna](https://togithub.com/nagadevkrishna) [@kettanaito](https://togithub.com/kettanaito) - give `node` export condition higher priority ([#2134](https://togithub.com/mswjs/msw/issues/2134)) ([`f948d13`](https://togithub.com/mswjs/msw/commit/f948d13d2df85efa8d276396e1e60da235523a0e)) [@phryneas](https://togithub.com/phryneas) ### [`v2.2.13`](https://togithub.com/mswjs/msw/releases/tag/v2.2.13) [Compare Source](https://togithub.com/mswjs/msw/compare/v2.2.12...v2.2.13) ##### v2.2.13 (2024-03-27) ##### Bug Fixes - use `createRequestId()` instead of `crypto.randomUUID()` ([#2113](https://togithub.com/mswjs/msw/issues/2113)) ([`8f2be77`](https://togithub.com/mswjs/msw/commit/8f2be77627b94318e6c2e6d6eee38fc49558c6d9)) [@kettanaito](https://togithub.com/kettanaito) ### [`v2.2.12`](https://togithub.com/mswjs/msw/releases/tag/v2.2.12) [Compare Source](https://togithub.com/mswjs/msw/compare/v2.2.11...v2.2.12) #### v2.2.12 (2024-03-27) ##### Bug Fixes - do not mutate user-defined "X-Request-Id" request header ([#2110](https://togithub.com/mswjs/msw/issues/2110)) ([`64b6ba5`](https://togithub.com/mswjs/msw/commit/64b6ba516123d655e82d164e8ed1bb1f75b8cff8)) [@kettanaito](https://togithub.com/kettanaito) ### [`v2.2.11`](https://togithub.com/mswjs/msw/releases/tag/v2.2.11) [Compare Source](https://togithub.com/mswjs/msw/compare/v2.2.10...v2.2.11) #### v2.2.11 (2024-03-26) ##### Bug Fixes - accept a narrower response body type by default ([#2107](https://togithub.com/mswjs/msw/issues/2107)) ([`d35ef92`](https://togithub.com/mswjs/msw/commit/d35ef92d0fe07831fb2aaa46050fabf27d3aa709)) [@kettanaito](https://togithub.com/kettanaito) ### [`v2.2.10`](https://togithub.com/mswjs/msw/releases/tag/v2.2.10) [Compare Source](https://togithub.com/mswjs/msw/compare/v2.2.9...v2.2.10) ##### v2.2.10 (2024-03-22) ##### Bug Fixes - feature "new URL()" in the redundant query params warning ([#2102](https://togithub.com/mswjs/msw/issues/2102)) ([`9af301a`](https://togithub.com/mswjs/msw/commit/9af301a7ea593642cc7b6d46f3685cf2ff9f2b58)) [@psjostrom](https://togithub.com/psjostrom) [@kettanaito](https://togithub.com/kettanaito) ### [`v2.2.9`](https://togithub.com/mswjs/msw/releases/tag/v2.2.9) [Compare Source](https://togithub.com/mswjs/msw/compare/v2.2.8...v2.2.9) #### v2.2.9 (2024-03-20) ##### Bug Fixes - properly infer parameter and return types in `server.boundary()` ([#2101](https://togithub.com/mswjs/msw/issues/2101)) ([`1370736`](https://togithub.com/mswjs/msw/commit/1370736580b5c2a37127359b79433ca4e9b20c79)) [@Andarist](https://togithub.com/Andarist) [@kettanaito](https://togithub.com/kettanaito) ### [`v2.2.8`](https://togithub.com/mswjs/msw/releases/tag/v2.2.8) [Compare Source](https://togithub.com/mswjs/msw/compare/v2.2.7...v2.2.8) ##### v2.2.8 (2024-03-19) ##### Bug Fixes - **setupWorker:** remove left-over console.log() ([#2099](https://togithub.com/mswjs/msw/issues/2099)) ([`cf97991`](https://togithub.com/mswjs/msw/commit/cf979915aab2ed1759c6c05a6eb5e038fc0dcb2a)) [@kettanaito](https://togithub.com/kettanaito)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.