matecat / MateCat

MateCat is an AI driven translation tool for language industry professionals. Matecat makes machine translation post-editing and project outsourcing easy.
http://www.matecat.com
GNU Lesser General Public License v3.0
366 stars 169 forks source link

Update dependency msw to v2.3.0 #3346

Closed renovate[bot] closed 1 month ago

renovate[bot] commented 1 month ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
msw (source) 2.2.14 -> 2.3.0 age adoption passing confidence

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)

Configuration

📅 Schedule: Branch creation - "after 10pm every weekday,before 5am every weekday" in timezone Europe/Rome, 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.