1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

chore(deps): update dependency msw to v2.3.0 (#7262)

[![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`](5191399246))
[@&#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`](686d3d668f))
[@&#8203;kettanaito](https://togithub.com/kettanaito)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 7pm every weekday,before 5am
every weekday" in timezone Europe/Madrid, 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/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNzcuOCIsInVwZGF0ZWRJblZlciI6IjM3LjM3Ny44IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
renovate[bot] 2024-06-04 01:53:06 +00:00 committed by GitHub
parent 2e04a981c7
commit 4e5c7414e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 10 deletions

View File

@ -93,7 +93,7 @@
"lodash.mapvalues": "^4.6.0",
"lodash.omit": "4.5.0",
"millify": "^6.0.0",
"msw": "2.2.14",
"msw": "2.3.0",
"pkginfo": "0.4.1",
"plausible-tracker": "0.3.9",
"prop-types": "15.8.1",

View File

@ -1525,10 +1525,10 @@
resolved "https://registry.yarnpkg.com/@mswjs/cookies/-/cookies-1.1.0.tgz#1528eb43630caf83a1d75d5332b30e75e9bb1b5b"
integrity sha512-0ZcCVQxifZmhwNBoQIrystCb+2sWBY2Zw8lpfJBPCHGCA/HWqehITeCRVIv4VMy8MPlaHo2w2pTHFV2pFfqKPw==
"@mswjs/interceptors@^0.26.14":
version "0.26.15"
resolved "https://registry.yarnpkg.com/@mswjs/interceptors/-/interceptors-0.26.15.tgz#256ad5c89f325c87d972cc27fc7d0d6d382ce804"
integrity sha512-HM47Lu1YFmnYHKMBynFfjCp0U/yRskHj/8QEJW0CBEPOlw8Gkmjfll+S9b8M7V5CNDw2/ciRxjjnWeaCiblSIQ==
"@mswjs/interceptors@^0.29.0":
version "0.29.1"
resolved "https://registry.yarnpkg.com/@mswjs/interceptors/-/interceptors-0.29.1.tgz#e77fc58b5188569041d0440b25c9e9ebb1ccd60a"
integrity sha512-3rDakgJZ77+RiQUuSK69t1F0m8BQKA8Vh5DCS5V0DWvNY67zob2JhhQrhCO0AKLGINTRSFd1tBaHcJTkhefoSw==
dependencies:
"@open-draft/deferred-promise" "^2.2.0"
"@open-draft/logger" "^0.3.0"
@ -5766,16 +5766,16 @@ ms@^2.1.1:
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2"
integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==
msw@2.2.14:
version "2.2.14"
resolved "https://registry.yarnpkg.com/msw/-/msw-2.2.14.tgz#ed16b89f99ffc105a84b0295a6fcae2ee99f5c62"
integrity sha512-64i8rNCa1xzDK8ZYsTrVMli05D687jty8+Th+PU5VTbJ2/4P7fkQFVyDQ6ZFT5FrNR8z2BHhbY47fKNvfHrumA==
msw@2.3.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/msw/-/msw-2.3.0.tgz#7d48ab8472a435878f4ee94dfa0efcd2b3c2264b"
integrity sha512-cDr1q/QTMzaWhY8n9lpGhceY209k29UZtdTgJ3P8Bzne3TSMchX2EM/ldvn4ATLOktpCefCU2gcEgzHc31GTPw==
dependencies:
"@bundled-es-modules/cookie" "^2.0.0"
"@bundled-es-modules/statuses" "^1.0.1"
"@inquirer/confirm" "^3.0.0"
"@mswjs/cookies" "^1.1.0"
"@mswjs/interceptors" "^0.26.14"
"@mswjs/interceptors" "^0.29.0"
"@open-draft/until" "^2.1.0"
"@types/cookie" "^0.6.0"
"@types/statuses" "^2.0.4"