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.35.2 (#2604)
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@mswjs/interceptors](https://redirect.github.com/mswjs/interceptors) | [`0.35.1` -> `0.35.2`](https://renovatebot.com/diffs/npm/@mswjs%2finterceptors/0.28.3/0.35.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@mswjs%2finterceptors/0.35.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@mswjs%2finterceptors/0.35.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@mswjs%2finterceptors/0.28.3/0.35.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@mswjs%2finterceptors/0.28.3/0.35.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>mswjs/interceptors (@​mswjs/interceptors)</summary> ### [`v0.35.2`](https://redirect.github.com/mswjs/interceptors/releases/tag/v0.35.2) [Compare Source](https://redirect.github.com/mswjs/interceptors/compare/v0.35.1...v0.35.2) #### v0.35.2 (2024-09-12) ##### Bug Fixes - use correct path for `_http_common` in tsconfig.json ([#​634](https://redirect.github.com/mswjs/interceptors/issues/634)) ([`0fff663`](https://redirect.github.com/mswjs/interceptors/commit/0fff663c548da73caa2481b1d97da193d6df299d)) [@​sjoleee](https://redirect.github.com/sjoleee) ### [`v0.35.1`](https://redirect.github.com/mswjs/interceptors/releases/tag/v0.35.1) [Compare Source](https://redirect.github.com/mswjs/interceptors/compare/v0.35.0...v0.35.1) #### v0.35.1 (2024-09-10) ##### Bug Fixes - **fetch:** rebase relative redirect URL against `request.url` ([#​628](https://redirect.github.com/mswjs/interceptors/issues/628)) ([`1161c7b`](https://redirect.github.com/mswjs/interceptors/commit/1161c7be64e8381be4b859e0548f3d6d7f49c608)) [@​mikicho](https://redirect.github.com/mikicho) ### [`v0.35.0`](https://redirect.github.com/mswjs/interceptors/releases/tag/v0.35.0) [Compare Source](https://redirect.github.com/mswjs/interceptors/compare/v0.34.3...v0.35.0) #### v0.35.0 (2024-09-08) ##### Features - **fetch:** support following redirect responses ([#​627](https://redirect.github.com/mswjs/interceptors/issues/627)) ([`7410d45`](https://redirect.github.com/mswjs/interceptors/commit/7410d45a919bacadc2995d6173f3f7e7340f6e50)) [@​kettanaito](https://redirect.github.com/kettanaito) ### [`v0.34.3`](https://redirect.github.com/mswjs/interceptors/releases/tag/v0.34.3) [Compare Source](https://redirect.github.com/mswjs/interceptors/compare/v0.34.2...v0.34.3) #### v0.34.3 (2024-08-13) ##### Bug Fixes - **ClientRequest:** use `urlToHttpOptions` from `node:url` ([#​618](https://redirect.github.com/mswjs/interceptors/issues/618)) ([`5a591ab`](https://redirect.github.com/mswjs/interceptors/commit/5a591ab37a37c8bceb6fc7df0c7506d42edd04d0)) [@​kettanaito](https://redirect.github.com/kettanaito) - **XMLHttpRequest:** calculate `total` length of response body ([#​616](https://redirect.github.com/mswjs/interceptors/issues/616)) ([`0c0a4f1`](https://redirect.github.com/mswjs/interceptors/commit/0c0a4f12d8ad8c3887b33f5e777b84310a34ad5c)) [@​kettanaito](https://redirect.github.com/kettanaito) [@​abhishekpaturkar](https://redirect.github.com/abhishekpaturkar) ### [`v0.34.2`](https://redirect.github.com/mswjs/interceptors/releases/tag/v0.34.2) [Compare Source](https://redirect.github.com/mswjs/interceptors/compare/v0.34.1...v0.34.2) #### v0.34.2 (2024-08-09) ##### Bug Fixes - **XMLHttpRequest:** support request `upload` events ([#​613](https://redirect.github.com/mswjs/interceptors/issues/613)) ([`472bcbe`](https://redirect.github.com/mswjs/interceptors/commit/472bcbe4b6b7f0652da10eb647a3aaa898ad4f7c)) [@​kettanaito](https://redirect.github.com/kettanaito) ### [`v0.34.1`](https://redirect.github.com/mswjs/interceptors/releases/tag/v0.34.1) [Compare Source](https://redirect.github.com/mswjs/interceptors/compare/v0.34.0...v0.34.1) #### v0.34.1 (2024-08-06) ##### Bug Fixes - **WebSocket:** use 1011 as close `code` for unhandled interceptor errors ([#​612](https://redirect.github.com/mswjs/interceptors/issues/612)) ([`42daf43`](https://redirect.github.com/mswjs/interceptors/commit/42daf43056b25c0faefcbeb3b1a90f4b9335b3d8)) [@​kettanaito](https://redirect.github.com/kettanaito) - **WebSocket:** set `wasClean` to `true` on normal connection closures ([#​611](https://redirect.github.com/mswjs/interceptors/issues/611)) ([`94a390c`](https://redirect.github.com/mswjs/interceptors/commit/94a390c0444e91c65fa255013de421cd64b50ab8)) [@​kettanaito](https://redirect.github.com/kettanaito) - **WebSocket:** treat interceptor exceptions as closures with error ([#​609](https://redirect.github.com/mswjs/interceptors/issues/609)) ([`ca522a3`](https://redirect.github.com/mswjs/interceptors/commit/ca522a32c2966217749aaed7072bee58c7509b39)) [@​kettanaito](https://redirect.github.com/kettanaito) ### [`v0.34.0`](https://redirect.github.com/mswjs/interceptors/releases/tag/v0.34.0) [Compare Source](https://redirect.github.com/mswjs/interceptors/compare/v0.33.3...v0.34.0) #### v0.34.0 (2024-08-01) ##### Features - add `FetchInterceptor` to the `node` preset ([#​603](https://redirect.github.com/mswjs/interceptors/issues/603)) ([`d679a4d`](https://redirect.github.com/mswjs/interceptors/commit/d679a4de255094a66f35b0482542002543563dcb)) [@​mikicho](https://redirect.github.com/mikicho) [@​kettanaito](https://redirect.github.com/kettanaito) - **WebSocket:** support passthrough, correctly emit the `error` event ([#​608](https://redirect.github.com/mswjs/interceptors/issues/608)) ([`5d9d71e`](https://redirect.github.com/mswjs/interceptors/commit/5d9d71ee0339c3c59b569c32d387323d8bf2742b)) [@​kettanaito](https://redirect.github.com/kettanaito) ### [`v0.33.3`](https://redirect.github.com/mswjs/interceptors/releases/tag/v0.33.3) [Compare Source](https://redirect.github.com/mswjs/interceptors/compare/v0.33.2...v0.33.3) ##### v0.33.3 (2024-07-31) ##### Bug Fixes - **WebSocket:** emit "error" event on `server` connection errors ([#​607](https://redirect.github.com/mswjs/interceptors/issues/607)) ([`67aebe5`](https://redirect.github.com/mswjs/interceptors/commit/67aebe5c34266032a0a5e9e34ee81e1a8803bda2)) [@​kettanaito](https://redirect.github.com/kettanaito) ### [`v0.33.2`](https://redirect.github.com/mswjs/interceptors/releases/tag/v0.33.2) [Compare Source](https://redirect.github.com/mswjs/interceptors/compare/v0.33.1...v0.33.2) #### v0.33.2 (2024-07-24) ##### Bug Fixes - support lowercase HTTP request methods ([#​605](https://redirect.github.com/mswjs/interceptors/issues/605)) ([`83e4b95`](https://redirect.github.com/mswjs/interceptors/commit/83e4b959f378b4f667478b3421d5fa90b62632e4)) [@​mikicho](https://redirect.github.com/mikicho) [@​kettanaito](https://redirect.github.com/kettanaito) ### [`v0.33.1`](https://redirect.github.com/mswjs/interceptors/releases/tag/v0.33.1) [Compare Source](https://redirect.github.com/mswjs/interceptors/compare/v0.33.0...v0.33.1) #### v0.33.1 (2024-07-12) ##### Bug Fixes - **ClientRequest:** improve rawHeaders recording ([#​602](https://redirect.github.com/mswjs/interceptors/issues/602)) ([`5135505`](https://redirect.github.com/mswjs/interceptors/commit/51355054a08f97823341b0bff7aa2d46bda10083)) [@​mikicho](https://redirect.github.com/mikicho) [@​kettanaito](https://redirect.github.com/kettanaito) ### [`v0.33.0`](https://redirect.github.com/mswjs/interceptors/releases/tag/v0.33.0) [Compare Source](https://redirect.github.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://redirect.github.com/mswjs/interceptors/issues/595)) ([`73dd07a`](https://redirect.github.com/mswjs/interceptors/commit/73dd07a7415ac706f9db74237fde8fe63dc83471)) [@​kettanaito](https://redirect.github.com/kettanaito) - support for erroring requests using `controller.errorWith(error)` ### [`v0.32.2`](https://redirect.github.com/mswjs/interceptors/releases/tag/v0.32.2) [Compare Source](https://redirect.github.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://redirect.github.com/mswjs/interceptors/issues/598)) ([`4660558`](https://redirect.github.com/mswjs/interceptors/commit/4660558f27e610063ff204ccf4a7595082040a0b)) [@​kettanaito](https://redirect.github.com/kettanaito) [@​mikicho](https://redirect.github.com/mikicho) ### [`v0.32.1`](https://redirect.github.com/mswjs/interceptors/releases/tag/v0.32.1) [Compare Source](https://redirect.github.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://redirect.github.com/mswjs/interceptors/issues/597)) ([`8f041da`](https://redirect.github.com/mswjs/interceptors/commit/8f041dad5d8fc5e295dcbcf28b9fcd9083f792d5)) [@​kettanaito](https://redirect.github.com/kettanaito) - **ClientRequest:** use `ServerResponse` to build the HTTP response string ([#​596](https://redirect.github.com/mswjs/interceptors/issues/596)) ([`fedac45`](https://redirect.github.com/mswjs/interceptors/commit/fedac459da51f5cea2469dca7ccbc25d039398c0)) [@​mikicho](https://redirect.github.com/mikicho) [@​kettanaito](https://redirect.github.com/kettanaito) ### [`v0.32.0`](https://redirect.github.com/mswjs/interceptors/releases/tag/v0.32.0) [Compare Source](https://redirect.github.com/mswjs/interceptors/compare/v0.31.1...v0.32.0) #### v0.32.0 (2024-07-04) ##### Features - **ClientRequest:** use net.Socket interceptor ([#​515](https://redirect.github.com/mswjs/interceptors/issues/515)) ([`77a6996`](https://redirect.github.com/mswjs/interceptors/commit/77a699696347c3dd18ef420564351ccc7642c8c9)) [@​kettanaito](https://redirect.github.com/kettanaito) [@​mikicho](https://redirect.github.com/mikicho) ### [`v0.31.1`](https://redirect.github.com/mswjs/interceptors/releases/tag/v0.31.1) [Compare Source](https://redirect.github.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://redirect.github.com/mswjs/interceptors/issues/593)) ([`5e09252`](https://redirect.github.com/mswjs/interceptors/commit/5e09252d044c6c78bec1bf270869a0454b0cf371)) [@​kettanaito](https://redirect.github.com/kettanaito) ### [`v0.31.0`](https://redirect.github.com/mswjs/interceptors/releases/tag/v0.31.0) [Compare Source](https://redirect.github.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://redirect.github.com/mswjs/interceptors/issues/591)) ([`f68e0b6`](https://redirect.github.com/mswjs/interceptors/commit/f68e0b61faa9bae302b245e389cf5a08ba7e3bf7)) [@​kettanaito](https://redirect.github.com/kettanaito) ### [`v0.30.1`](https://redirect.github.com/mswjs/interceptors/releases/tag/v0.30.1) [Compare Source](https://redirect.github.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://redirect.github.com/mswjs/interceptors/issues/585)) ([`1226eb7`](https://redirect.github.com/mswjs/interceptors/commit/1226eb773f487268cbaef6e035e2f0e9f402bce9)) [@​freben](https://redirect.github.com/freben) [@​kettanaito](https://redirect.github.com/kettanaito) ### [`v0.30.0`](https://redirect.github.com/mswjs/interceptors/releases/tag/v0.30.0) [Compare Source](https://redirect.github.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://redirect.github.com/mswjs/interceptors/issues/577)) ([`8c633ad`](https://redirect.github.com/mswjs/interceptors/commit/8c633adc2e047153398e72d1c7cdd9778157f50c)) [@​DanielleHuisman](https://redirect.github.com/DanielleHuisman) [@​kettanaito](https://redirect.github.com/kettanaito) ##### Bug Fixes - set "WebSocket.protocol" to an empty string by default ([#​578](https://redirect.github.com/mswjs/interceptors/issues/578)) ([`87ae1e3`](https://redirect.github.com/mswjs/interceptors/commit/87ae1e382e87c6a481e7b29760ad5e9500b5aa0b)) [@​DanielleHuisman](https://redirect.github.com/DanielleHuisman) ### [`v0.29.1`](https://redirect.github.com/mswjs/interceptors/releases/tag/v0.29.1) [Compare Source](https://redirect.github.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://redirect.github.com/mswjs/interceptors/issues/565)) ([`2cb46d7`](https://redirect.github.com/mswjs/interceptors/commit/2cb46d75d9111bc7a86cfdc12cc2e1306f3c6f3e)) [@​kettanaito](https://redirect.github.com/kettanaito) [@​mdesousa](https://redirect.github.com/mdesousa) ### [`v0.29.0`](https://redirect.github.com/mswjs/interceptors/releases/tag/v0.29.0) [Compare Source](https://redirect.github.com/mswjs/interceptors/compare/v0.28.4...v0.29.0) #### v0.29.0 (2024-04-26) ##### Features - add "unhandledException" event ([#​566](https://redirect.github.com/mswjs/interceptors/issues/566)) ([`a3afcf1`](https://redirect.github.com/mswjs/interceptors/commit/a3afcf1a01464c18e96489366ca41ed887d16405)) [@​kettanaito](https://redirect.github.com/kettanaito) ##### Bug Fixes - support IPv6 during ClientRequest options parsing ([#​489](https://redirect.github.com/mswjs/interceptors/issues/489)) ([`8652556`](https://redirect.github.com/mswjs/interceptors/commit/8652556913f95f304690bbf0d067f7cec99de8ea)) [@​mikicho](https://redirect.github.com/mikicho) ### [`v0.28.4`](https://redirect.github.com/mswjs/interceptors/releases/tag/v0.28.4) [Compare Source](https://redirect.github.com/mswjs/interceptors/compare/v0.28.3...v0.28.4) #### v0.28.4 (2024-04-21) ##### Bug Fixes - support throwing `Response.error()` ([#​563](https://redirect.github.com/mswjs/interceptors/issues/563)) ([`9dda725`](https://redirect.github.com/mswjs/interceptors/commit/9dda7255775984ecbb7133d7e0f309948252857e)) [@​kettanaito](https://redirect.github.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 was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/X-oss-byte/Nextjs).
- Loading branch information