Skip to content

Commit

Permalink
Update dependency msw to v2.3.0 (line#849)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [msw](https://mswjs.io) ([source](https://togithub.com/mswjs/msw)) |
[`2.2.14` ->
`2.3.0`](https://renovatebot.com/diffs/npm/msw/2.2.14/2.3.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/msw/2.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/msw/2.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/msw/2.2.14/2.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/msw/2.2.14/2.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>mswjs/msw (msw)</summary>

### [`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
([#&#8203;2135](https://togithub.com/mswjs/msw/issues/2135))
([`5191399`](https://togithub.com/mswjs/msw/commit/519139924639a0135169210a0d9c5cd0a0d3e994))
[@&#8203;kettanaito](https://togithub.com/kettanaito)
- prioritize the `node` export when importing `msw/node`
([#&#8203;2134](https://togithub.com/mswjs/msw/issues/2134),
transitively through
[@&#8203;mswjs/interceptors](https://togithub.com/mswjs/interceptors)).
- add a new `unhandledException` event
([#&#8203;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
([#&#8203;2144](https://togithub.com/mswjs/msw/issues/2144))
([`686d3d6`](https://togithub.com/mswjs/msw/commit/686d3d668f7b76cbf26f75c990fded5e4fd298da))
[@&#8203;kettanaito](https://togithub.com/kettanaito)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/line/line-bot-sdk-nodejs).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ0YXJnZXRCcmFuY2giOiJtYXN0ZXIiLCJsYWJlbHMiOlsiZGVwZW5kZW5jeSB1cGdyYWRlIl19-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored May 8, 2024
1 parent ee4db0c commit b2cba29
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"express": "4.19.2",
"finalhandler": "1.2.0",
"husky": "9.0.11",
"msw": "2.2.14",
"msw": "2.3.0",
"prettier": "3.2.5",
"ts-node": "10.9.2",
"typedoc": "^0.25.1",
Expand Down

0 comments on commit b2cba29

Please sign in to comment.