octochangelog / octochangelog-webapp

Compare GitHub changelogs across multiple releases in a single view.
https://octochangelog.com
MIT License
52 stars 9 forks source link

Update dependency msw to v2.3.1 #2310

Open renovate[bot] opened 3 months ago

renovate[bot] commented 3 months ago

Mend Renovate

This PR contains the following updates:

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

Release Notes

mswjs/msw (msw) ### [`v2.3.1`](https://togithub.com/mswjs/msw/releases/tag/v2.3.1) [Compare Source](https://togithub.com/mswjs/msw/compare/v2.3.0...v2.3.1) #### v2.3.1 (2024-06-01) ##### Bug Fixes - preserve trailing optional path parameters ([#​2169](https://togithub.com/mswjs/msw/issues/2169)) ([`e69bbd6`](https://togithub.com/mswjs/msw/commit/e69bbd6fda7c7997b523457b644440889e68d994)) [@​kettanaito](https://togithub.com/kettanaito) [@​KaiSpencer](https://togithub.com/KaiSpencer) ### [`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) ### [`v2.2.7`](https://togithub.com/mswjs/msw/releases/tag/v2.2.7) [Compare Source](https://togithub.com/mswjs/msw/compare/v2.2.6...v2.2.7) #### v2.2.7 (2024-03-18) ##### Bug Fixes - resolve "~/core" import for .d.mts modules ([#​2095](https://togithub.com/mswjs/msw/issues/2095)) ([`7cdbd1a`](https://togithub.com/mswjs/msw/commit/7cdbd1a2c4e02c11ba22e50b50ee042228d00f92)) [@​kettanaito](https://togithub.com/kettanaito) ### [`v2.2.6`](https://togithub.com/mswjs/msw/releases/tag/v2.2.6) [Compare Source](https://togithub.com/mswjs/msw/compare/v2.2.5...v2.2.6) #### v2.2.6 (2024-03-17) ##### Bug Fixes - **setupWorker:** emit the correct life-cycle events for bypassed requests ([#​2094](https://togithub.com/mswjs/msw/issues/2094)) ([`c485989`](https://togithub.com/mswjs/msw/commit/c485989df15962fb02a36fd85654228719f8fed7)) [@​kettanaito](https://togithub.com/kettanaito) - **bypass:** support modifying the bypassed request ([#​2093](https://togithub.com/mswjs/msw/issues/2093)) ([`2c8570b`](https://togithub.com/mswjs/msw/commit/2c8570b7130e2d98f4461ef144e171ac4aa2b8f3)) [@​kettanaito](https://togithub.com/kettanaito) ### [`v2.2.5`](https://togithub.com/mswjs/msw/releases/tag/v2.2.5) [Compare Source](https://togithub.com/mswjs/msw/compare/v2.2.4...v2.2.5) #### v2.2.5 (2024-03-17) ##### Bug Fixes - improve the worker integrity warning ([#​2091](https://togithub.com/mswjs/msw/issues/2091)) ([`e749355`](https://togithub.com/mswjs/msw/commit/e7493557e1c4d9ecece11cd45d29472c90c28426)) [@​kettanaito](https://togithub.com/kettanaito) - make worker integrity mismatch a warning ([#​2090](https://togithub.com/mswjs/msw/issues/2090)) ([`a0f8021`](https://togithub.com/mswjs/msw/commit/a0f8021ccf16565e772b81b1c70bebdba6d1df58)) [@​kettanaito](https://togithub.com/kettanaito) ### [`v2.2.4`](https://togithub.com/mswjs/msw/releases/tag/v2.2.4) [Compare Source](https://togithub.com/mswjs/msw/compare/v2.2.3...v2.2.4) #### v2.2.4 (2024-03-16) ##### Bug Fixes - resolve "[@​inquirer/confim](https://togithub.com/inquirer/confim)" default export ([#​2088](https://togithub.com/mswjs/msw/issues/2088)) ([`93d9f86`](https://togithub.com/mswjs/msw/commit/93d9f86a0c7cab6afd19a35ff1960c4d983844f8)) [@​kettanaito](https://togithub.com/kettanaito) - parse "Set-Cookie" response header with commas correctly ([#​2075](https://togithub.com/mswjs/msw/issues/2075)) ([`23c16e6`](https://togithub.com/mswjs/msw/commit/23c16e69e2c293c563e9665930182296fd0e5bad)) [@​ushiboy](https://togithub.com/ushiboy) ### [`v2.2.3`](https://togithub.com/mswjs/msw/releases/tag/v2.2.3) [Compare Source](https://togithub.com/mswjs/msw/compare/v2.2.2...v2.2.3) #### v2.2.3 (2024-03-08) ##### Bug Fixes - remove the upper range for `typescript` peer dependency ([#​2077](https://togithub.com/mswjs/msw/issues/2077)) ([`07cc073`](https://togithub.com/mswjs/msw/commit/07cc073f0ddd46333de4ba42d3dc0dd2d01925b6)) [@​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.

cypress[bot] commented 3 months ago

Passing run #8374 ↗︎

0 7 0 0 Flakiness 0

Details:

Update dependency msw to v2.3.1
Project: Octochangelog Webapp Commit: 4e7afb1012
Status: Passed Duration: 01:27 💡
Started: Jun 17, 2024 7:18 AM Ended: Jun 17, 2024 7:19 AM

Review all test suite changes for PR #2310 ↗︎

socket-security[bot] commented 3 months ago

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSourceCI
Install scripts npm/esbuild@0.17.19
Telemetry npm/next@14.2.3
  • Note: Can be disabled by setting the environment variable NEXT_TELEMETRY_DISABLED=1 . See https://nextjs.org/telemetry for more information
Install scripts npm/msw@2.3.1
  • Install script: postinstall
  • Source: node -e "try{require('./config/scripts/postinstall')}catch(e){}"

View full report↗︎

Next steps

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

What is telemetry?

This package contains telemetry which tracks how it is used.

Most telemetry comes with settings to disable it. Consider disabling telemetry if you do not want to be tracked.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/esbuild@0.17.19
  • @SocketSecurity ignore npm/next@14.2.3
  • @SocketSecurity ignore npm/msw@2.3.1
socket-security[bot] commented 3 months ago

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/downshift@9.0.6 environment +5 3.09 MB silviuaavram
npm/eslint-config-next@14.2.3 unsafe Transitive: environment, filesystem +34 7.64 MB vercel-release-bot
npm/eslint-config-prettier@9.1.0 None 0 20.8 kB lydell
npm/eslint-plugin-cypress@3.3.0 None +1 122 kB cypress-npm-publisher
npm/eslint-plugin-jest-formatting@3.1.0 None 0 75.6 kB dangreenleipciger
npm/eslint-plugin-jest@28.6.0 filesystem Transitive: environment +8 1.7 MB simenb
npm/eslint-plugin-unicorn@53.0.0 Transitive: environment, eval +20 3.96 MB sindresorhus
npm/eslint@8.57.0 environment, filesystem Transitive: eval, shell +47 7.79 MB eslintbot
npm/express@4.19.2 environment, filesystem, network +5 531 kB wesleytodd
npm/framer-motion@11.2.9 environment +1 2.34 MB popmotion
npm/happo-cypress@4.2.0 None 0 13.3 kB trotzig
npm/happo-e2e@2.6.0 Transitive: environment, filesystem, network +6 1.08 MB trotzig
npm/happo.io@9.1.6 environment, network Transitive: filesystem, shell +15 1.32 MB trotzig
npm/husky@9.0.11 environment, filesystem, shell 0 3.61 kB typicode
npm/is-ci@3.0.1 None 0 3.81 kB sibiraj-s
npm/jest-environment-jsdom@29.7.0 Transitive: environment, eval +19 506 kB simenb
npm/jest@29.7.0 None +4 62.9 kB simenb
npm/js-cookie@3.0.5 None 0 26.2 kB carhartl
npm/lint-staged@15.2.5 Transitive: environment, filesystem, shell +20 1.36 MB okonet
npm/lodash-es@4.17.21 eval 0 636 kB bnjmnt4n
npm/msw@2.3.1 environment, filesystem, shell +5 2.2 MB kettanaito
npm/next@14.2.3 environment, filesystem, network, shell, unsafe 0 86.2 MB vercel-release-bot
npm/prettier@3.3.2 environment, filesystem, unsafe 0 8.25 MB prettier-bot
npm/react-dom@18.3.1 environment 0 4.51 MB react-bot
npm/react-icons@5.2.1 None 0 85 MB kamijin_fanta
npm/react@18.3.1 environment 0 318 kB react-bot
npm/rehype-highlight@7.0.0 None 0 23.7 kB wooorm
npm/rehype-react@8.0.0 None 0 17.6 kB wooorm
npm/remark-emoji@5.0.0 None 0 10.7 kB rhysd
npm/remark-gfm@4.0.0 None 0 21.4 kB wooorm
npm/remark-github@12.0.0 None 0 38.6 kB wooorm
npm/remark-parse@11.0.0 None 0 19.5 kB wooorm
npm/remark-rehype@11.1.0 None 0 42.6 kB wooorm
npm/remark-stringify@11.0.0 None 0 19.6 kB wooorm
npm/semver@7.6.2 None 0 95.4 kB npm-cli-ops
npm/start-server-and-test@2.0.4 environment Transitive: eval, filesystem, shell, unsafe +10 891 kB bahmutov
npm/ts-jest@29.1.4 environment, filesystem, unsafe +7 514 kB kul
npm/ts-node@10.9.2 environment, filesystem, unsafe 0 757 kB blakeembrey
npm/tsx@4.14.1 Transitive: environment, filesystem, network, shell, unsafe +3 826 kB hirokiosame
npm/type-fest@4.18.3 None 0 365 kB sindresorhus
npm/typescript@5.4.5 None 0 32.4 MB typescript-bot
npm/unified@11.0.4 None +1 170 kB wooorm

View full report↗︎