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)
isaacs/rimraf (rimraf)
### [`v5.0.6`](https://togithub.com/isaacs/rimraf/compare/v5.0.5...e729f762d66a30c63bf4d3f63bcf905e1faa543b)
[Compare Source](https://togithub.com/isaacs/rimraf/compare/v5.0.5...v5.0.6)
privatenumber/tsx (tsx)
### [`v4.10.0`](https://togithub.com/privatenumber/tsx/releases/tag/v4.10.0)
[Compare Source](https://togithub.com/privatenumber/tsx/compare/v4.9.5...v4.10.0)
##### Features
- **esm api:** register to return a namespaced import() method ([53bb4aa](https://togithub.com/privatenumber/tsx/commit/53bb4aa51e0f5c2b85b6c49515a9f2f1b3757c09))
***
This release is also available on:
- [npm package (@latest dist-tag)](https://www.npmjs.com/package/tsx/v/4.10.0)
### [`v4.9.5`](https://togithub.com/privatenumber/tsx/compare/v4.9.4...dae9f0d62dd06591ad2b7abb970e412a15f417a6)
[Compare Source](https://togithub.com/privatenumber/tsx/compare/v4.9.4...v4.9.5)
### [`v4.9.4`](https://togithub.com/privatenumber/tsx/releases/tag/v4.9.4)
[Compare Source](https://togithub.com/privatenumber/tsx/compare/v4.9.3...v4.9.4)
##### Bug Fixes
- **tsImport:** import module from commonjs ([48f0a75](https://togithub.com/privatenumber/tsx/commit/48f0a7552fb6743fa06b63f6f600a9af95cb19f9))
***
This release is also available on:
- [npm package (@latest dist-tag)](https://www.npmjs.com/package/tsx/v/4.9.4)
yarnpkg/berry (yarn)
### [`v4.2.2`](https://togithub.com/yarnpkg/berry/compare/bf24f592eb0a7e8ac207387b0d60ea2ac7d66ebf...effc932614d5351bbfeed8e0e6aa4b2c6c52821d)
[Compare Source](https://togithub.com/yarnpkg/berry/compare/bf24f592eb0a7e8ac207387b0d60ea2ac7d66ebf...effc932614d5351bbfeed8e0e6aa4b2c6c52821d)
Configuration
📅 Schedule: Branch creation - "before 12pm on Sunday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
^20.12.8
->^20.12.11
^2.2.14
->^2.3.0
^5.0.5
->^5.0.6
^4.9.3
->^4.10.0
4.2.1
->4.2.2
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)isaacs/rimraf (rimraf)
### [`v5.0.6`](https://togithub.com/isaacs/rimraf/compare/v5.0.5...e729f762d66a30c63bf4d3f63bcf905e1faa543b) [Compare Source](https://togithub.com/isaacs/rimraf/compare/v5.0.5...v5.0.6)privatenumber/tsx (tsx)
### [`v4.10.0`](https://togithub.com/privatenumber/tsx/releases/tag/v4.10.0) [Compare Source](https://togithub.com/privatenumber/tsx/compare/v4.9.5...v4.10.0) ##### Features - **esm api:** register to return a namespaced import() method ([53bb4aa](https://togithub.com/privatenumber/tsx/commit/53bb4aa51e0f5c2b85b6c49515a9f2f1b3757c09)) *** This release is also available on: - [npm package (@latest dist-tag)](https://www.npmjs.com/package/tsx/v/4.10.0) ### [`v4.9.5`](https://togithub.com/privatenumber/tsx/compare/v4.9.4...dae9f0d62dd06591ad2b7abb970e412a15f417a6) [Compare Source](https://togithub.com/privatenumber/tsx/compare/v4.9.4...v4.9.5) ### [`v4.9.4`](https://togithub.com/privatenumber/tsx/releases/tag/v4.9.4) [Compare Source](https://togithub.com/privatenumber/tsx/compare/v4.9.3...v4.9.4) ##### Bug Fixes - **tsImport:** import module from commonjs ([48f0a75](https://togithub.com/privatenumber/tsx/commit/48f0a7552fb6743fa06b63f6f600a9af95cb19f9)) *** This release is also available on: - [npm package (@latest dist-tag)](https://www.npmjs.com/package/tsx/v/4.9.4)yarnpkg/berry (yarn)
### [`v4.2.2`](https://togithub.com/yarnpkg/berry/compare/bf24f592eb0a7e8ac207387b0d60ea2ac7d66ebf...effc932614d5351bbfeed8e0e6aa4b2c6c52821d) [Compare Source](https://togithub.com/yarnpkg/berry/compare/bf24f592eb0a7e8ac207387b0d60ea2ac7d66ebf...effc932614d5351bbfeed8e0e6aa4b2c6c52821d)Configuration
📅 Schedule: Branch creation - "before 12pm on Sunday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.