Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependency @mswjs/interceptors to v0.33.1 (#2267)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@mswjs/interceptors](https://togithub.com/mswjs/interceptors) | [`0.33.0` -> `0.33.1`](https://renovatebot.com/diffs/npm/@mswjs%2finterceptors/0.28.3/0.33.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@mswjs%2finterceptors/0.33.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@mswjs%2finterceptors/0.33.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@mswjs%2finterceptors/0.28.3/0.33.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@mswjs%2finterceptors/0.28.3/0.33.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>mswjs/interceptors (@​mswjs/interceptors)</summary> ### [`v0.33.1`](https://togithub.com/mswjs/interceptors/releases/tag/v0.33.1) [Compare Source](https://togithub.com/mswjs/interceptors/compare/v0.33.0...v0.33.1) #### v0.33.1 (2024-07-12) ##### Bug Fixes - **ClientRequest:** improve rawHeaders recording ([#​602](https://togithub.com/mswjs/interceptors/issues/602)) ([`5135505`](https://togithub.com/mswjs/interceptors/commit/51355054a08f97823341b0bff7aa2d46bda10083)) [@​mikicho](https://togithub.com/mikicho) [@​kettanaito](https://togithub.com/kettanaito) ### [`v0.33.0`](https://togithub.com/mswjs/interceptors/releases/tag/v0.33.0) [Compare Source](https://togithub.com/mswjs/interceptors/compare/v0.32.2...v0.33.0) #### v0.33.0 (2024-07-11) > \[!WARNING] > This release contains **BREAKING CHANGES**. #####⚠️ BREAKING CHANGES - `request.respondWith()` has been deprecated in favor of `controller.respondWith()` ```diff interceptor.on('request', - ({ request }) => request.respondWith(new Response()), + ({ controller }) => controller.respondWith(new Response()) ``` The `request` instance exposed in the listener arguments is a raw, unmodified Fetch API `Request` instance representing the intercepted request. ##### Features - implement a `RequestController` class ([#​595](https://togithub.com/mswjs/interceptors/issues/595)) ([`73dd07a`](https://togithub.com/mswjs/interceptors/commit/73dd07a7415ac706f9db74237fde8fe63dc83471)) [@​kettanaito](https://togithub.com/kettanaito) - support for erroring requests using `controller.errorWith(error)` ### [`v0.32.2`](https://togithub.com/mswjs/interceptors/releases/tag/v0.32.2) [Compare Source](https://togithub.com/mswjs/interceptors/compare/v0.32.1...v0.32.2) #### v0.32.2 (2024-07-11) ##### Bug Fixes - **ClientRequest:** support "rawHeaders" in Fetch API Headers ([#​598](https://togithub.com/mswjs/interceptors/issues/598)) ([`4660558`](https://togithub.com/mswjs/interceptors/commit/4660558f27e610063ff204ccf4a7595082040a0b)) [@​kettanaito](https://togithub.com/kettanaito) [@​mikicho](https://togithub.com/mikicho) ### [`v0.32.1`](https://togithub.com/mswjs/interceptors/releases/tag/v0.32.1) [Compare Source](https://togithub.com/mswjs/interceptors/compare/v0.32.0...v0.32.1) #### v0.32.1 (2024-07-06) ##### Bug Fixes - **ClientRequest:** destroy socket when destroying IncomingMessage ([#​597](https://togithub.com/mswjs/interceptors/issues/597)) ([`8f041da`](https://togithub.com/mswjs/interceptors/commit/8f041dad5d8fc5e295dcbcf28b9fcd9083f792d5)) [@​kettanaito](https://togithub.com/kettanaito) - **ClientRequest:** use `ServerResponse` to build the HTTP response string ([#​596](https://togithub.com/mswjs/interceptors/issues/596)) ([`fedac45`](https://togithub.com/mswjs/interceptors/commit/fedac459da51f5cea2469dca7ccbc25d039398c0)) [@​mikicho](https://togithub.com/mikicho) [@​kettanaito](https://togithub.com/kettanaito) ### [`v0.32.0`](https://togithub.com/mswjs/interceptors/releases/tag/v0.32.0) [Compare Source](https://togithub.com/mswjs/interceptors/compare/v0.31.1...v0.32.0) #### v0.32.0 (2024-07-04) ##### Features - **ClientRequest:** use net.Socket interceptor ([#​515](https://togithub.com/mswjs/interceptors/issues/515)) ([`77a6996`](https://togithub.com/mswjs/interceptors/commit/77a699696347c3dd18ef420564351ccc7642c8c9)) [@​kettanaito](https://togithub.com/kettanaito) [@​mikicho](https://togithub.com/mikicho) ### [`v0.31.1`](https://togithub.com/mswjs/interceptors/releases/tag/v0.31.1) [Compare Source](https://togithub.com/mswjs/interceptors/compare/v0.31.0...v0.31.1) #### v0.31.1 (2024-07-04) ##### Bug Fixes - **ClientRequest:** return correct boolean from `.emit()` proxy ([#​593](https://togithub.com/mswjs/interceptors/issues/593)) ([`5e09252`](https://togithub.com/mswjs/interceptors/commit/5e09252d044c6c78bec1bf270869a0454b0cf371)) [@​kettanaito](https://togithub.com/kettanaito) ### [`v0.31.0`](https://togithub.com/mswjs/interceptors/releases/tag/v0.31.0) [Compare Source](https://togithub.com/mswjs/interceptors/compare/v0.30.1...v0.31.0) #### v0.31.0 (2024-07-04) ##### Features - **ClientRequest:** await response listeners before emitting the "end" response event ([#​591](https://togithub.com/mswjs/interceptors/issues/591)) ([`f68e0b6`](https://togithub.com/mswjs/interceptors/commit/f68e0b61faa9bae302b245e389cf5a08ba7e3bf7)) [@​kettanaito](https://togithub.com/kettanaito) ### [`v0.30.1`](https://togithub.com/mswjs/interceptors/releases/tag/v0.30.1) [Compare Source](https://togithub.com/mswjs/interceptors/compare/v0.30.0...v0.30.1) #### v0.30.1 (2024-07-02) ##### Bug Fixes - **ClientRequest:** account for missing `agent.destroy` when terminating a request ([#​585](https://togithub.com/mswjs/interceptors/issues/585)) ([`1226eb7`](https://togithub.com/mswjs/interceptors/commit/1226eb773f487268cbaef6e035e2f0e9f402bce9)) [@​freben](https://togithub.com/freben) [@​kettanaito](https://togithub.com/kettanaito) ### [`v0.30.0`](https://togithub.com/mswjs/interceptors/releases/tag/v0.30.0) [Compare Source](https://togithub.com/mswjs/interceptors/compare/v0.29.1...v0.30.0) #### v0.30.0 (2024-06-06) ##### Features - **WebSocket:** add connection "info" to the "connection" event payload ([#​577](https://togithub.com/mswjs/interceptors/issues/577)) ([`8c633ad`](https://togithub.com/mswjs/interceptors/commit/8c633adc2e047153398e72d1c7cdd9778157f50c)) [@​DanielleHuisman](https://togithub.com/DanielleHuisman) [@​kettanaito](https://togithub.com/kettanaito) ##### Bug Fixes - set "WebSocket.protocol" to an empty string by default ([#​578](https://togithub.com/mswjs/interceptors/issues/578)) ([`87ae1e3`](https://togithub.com/mswjs/interceptors/commit/87ae1e382e87c6a481e7b29760ad5e9500b5aa0b)) [@​DanielleHuisman](https://togithub.com/DanielleHuisman) ### [`v0.29.1`](https://togithub.com/mswjs/interceptors/releases/tag/v0.29.1) [Compare Source](https://togithub.com/mswjs/interceptors/compare/v0.29.0...v0.29.1) #### v0.29.1 (2024-04-29) ##### Bug Fixes - **ClientRequest:** decode uri for username and password before setting basic authentication header ([#​565](https://togithub.com/mswjs/interceptors/issues/565)) ([`2cb46d7`](https://togithub.com/mswjs/interceptors/commit/2cb46d75d9111bc7a86cfdc12cc2e1306f3c6f3e)) [@​kettanaito](https://togithub.com/kettanaito) [@​mdesousa](https://togithub.com/mdesousa) ### [`v0.29.0`](https://togithub.com/mswjs/interceptors/releases/tag/v0.29.0) [Compare Source](https://togithub.com/mswjs/interceptors/compare/v0.28.4...v0.29.0) ##### v0.29.0 (2024-04-26) ##### Features - add "unhandledException" event ([#​566](https://togithub.com/mswjs/interceptors/issues/566)) ([`a3afcf1`](https://togithub.com/mswjs/interceptors/commit/a3afcf1a01464c18e96489366ca41ed887d16405)) [@​kettanaito](https://togithub.com/kettanaito) ##### Bug Fixes - support IPv6 during ClientRequest options parsing ([#​489](https://togithub.com/mswjs/interceptors/issues/489)) ([`8652556`](https://togithub.com/mswjs/interceptors/commit/8652556913f95f304690bbf0d067f7cec99de8ea)) [@​mikicho](https://togithub.com/mikicho) ### [`v0.28.4`](https://togithub.com/mswjs/interceptors/releases/tag/v0.28.4) [Compare Source](https://togithub.com/mswjs/interceptors/compare/v0.28.3...v0.28.4) ##### v0.28.4 (2024-04-21) ##### Bug Fixes - support throwing `Response.error()` ([#​563](https://togithub.com/mswjs/interceptors/issues/563)) ([`9dda725`](https://togithub.com/mswjs/interceptors/commit/9dda7255775984ecbb7133d7e0f309948252857e)) [@​kettanaito](https://togithub.com/kettanaito) </details> --- ### 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. --- - [ ] 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/X-oss-byte/Nextjs).
- Loading branch information