Unverified Commit 0954164b authored by Jan Kassens's avatar Jan Kassens Committed by GitHub

Upgrade testmode interceptors to 0.45.9 (#100585)

## Summary

Upgrade the interceptor vendored for experimental test mode from
`0.42.6` to `0.45.9` and regenerate its bundle. Leave the separate
interceptor dependency pulled in by MSW unchanged.

The old bundle can crash Node with `SIGSEGV` when an HTTPS keep-alive
socket receives two mocked responses with `Content-Length`, then
switches to real socket passthrough. The first fixed upstream release
was `0.45.6`
([mswjs/interceptors#851](https://github.com/mswjs/interceptors/pull/851));
`0.45.9` also includes subsequent socket and HTTP fixes. The affected
dependency entered Next.js in `16.3.0-canary.98` via #96059.

## Verification

- Existing `test/e2e/testmode/testmode.test.ts`: all 16 tests passed in
each of `test-dev-turbo`, `test-dev-webpack`, `test-start-turbo`, and
`test-start-webpack`.
- Local Next.js-level A/B reproduction using a route handler, test
proxy, and loopback HTTPS server: two mocks followed by true passthrough
using Next's internal request marker. Substituting the base revision's
exact `0.42.6` bundle reproduced `SIGSEGV` on Node 24.14.0; the `0.45.9`
bundle passed with the same socket reused. The upgraded fixture passed
in all four modes above and on Node 24.14.0. This temporary fixture is
not included in the PR.
- Standalone checks passed on Node 20.20.2 and 24.14.0 for TLS
keep-alive reuse, per-request authentication headers, response event
counts, and abort recovery.

<!-- NEXT_JS_LLM -->
parent 50bf604f
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
"@jest/transform": "29.5.0", "@jest/transform": "29.5.0",
"@jest/types": "29.5.0", "@jest/types": "29.5.0",
"@modelcontextprotocol/sdk": "1.18.1", "@modelcontextprotocol/sdk": "1.18.1",
"@mswjs/interceptors": "0.42.6", "@mswjs/interceptors": "0.45.9",
"@napi-rs/triples": "1.2.0", "@napi-rs/triples": "1.2.0",
"@next/font": "workspace:*", "@next/font": "workspace:*",
"@next/polyfill-module": "workspace:*", "@next/polyfill-module": "workspace:*",
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -1371,8 +1371,8 @@ importers: ...@@ -1371,8 +1371,8 @@ importers:
specifier: 1.18.1 specifier: 1.18.1
version: 1.18.1(patch_hash=680fe4edb7abd1de29d08cdf217a22506e815a8cc1c2282201d5d47aa3e5da12)(supports-color@9.4.0) version: 1.18.1(patch_hash=680fe4edb7abd1de29d08cdf217a22506e815a8cc1c2282201d5d47aa3e5da12)(supports-color@9.4.0)
'@mswjs/interceptors': '@mswjs/interceptors':
specifier: 0.42.6 specifier: 0.45.9
version: 0.42.6(supports-color@9.4.0) version: 0.45.9(supports-color@9.4.0)
'@napi-rs/triples': '@napi-rs/triples':
specifier: 1.2.0 specifier: 1.2.0
version: 1.2.0 version: 1.2.0
...@@ -4448,8 +4448,8 @@ packages: ...@@ -4448,8 +4448,8 @@ packages:
resolution: {integrity: sha512-3rDakgJZ77+RiQUuSK69t1F0m8BQKA8Vh5DCS5V0DWvNY67zob2JhhQrhCO0AKLGINTRSFd1tBaHcJTkhefoSw==} resolution: {integrity: sha512-3rDakgJZ77+RiQUuSK69t1F0m8BQKA8Vh5DCS5V0DWvNY67zob2JhhQrhCO0AKLGINTRSFd1tBaHcJTkhefoSw==}
engines: {node: '>=18'} engines: {node: '>=18'}
'@mswjs/interceptors@0.42.6': '@mswjs/interceptors@0.45.9':
resolution: {integrity: sha512-3GUSfrsMuKf0MUbxEDZSj+Mq86cRz8DjTjDgAGOq9hz5xagJU8G/X6CffnRZk58AkldtUugbOXtQC2fawJN7qQ==} resolution: {integrity: sha512-NmEzpWbbiWpudgqKVZtGdSAvQGIYyj7Rf8ea+1hJEo+Dn0YvPHtiz577US7kGg0sCaZtPelrdqV4SfwwGJq1cA==}
engines: {node: '>=22'} engines: {node: '>=22'}
'@napi-rs/cli@3.7.2': '@napi-rs/cli@3.7.2':
...@@ -15587,8 +15587,8 @@ packages: ...@@ -15587,8 +15587,8 @@ packages:
resolution: {integrity: sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==} resolution: {integrity: sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==}
engines: {node: '>= 4'} engines: {node: '>= 4'}
rettime@0.11.11: rettime@0.11.12:
resolution: {integrity: sha512-ILJRqVWBCTlg9r42fFgwVZx1gnFAcQF8mRoMkbgQfIrjEDf9nbBFDFx00oloOa+Q869FUtaYDXZvEfnecQSCoQ==} resolution: {integrity: sha512-5ExtR1ppiDBQkVoPw5NAqdbfH4Iq2VOmQKHMtUoaFxA9bo2krzFYBtyq6K40xxbYp+2w/YOr6D+1ToF6tTN53A==}
reusify@1.0.4: reusify@1.0.4:
resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==}
...@@ -20849,14 +20849,14 @@ snapshots: ...@@ -20849,14 +20849,14 @@ snapshots:
outvariant: 1.4.3 outvariant: 1.4.3
strict-event-emitter: 0.5.1 strict-event-emitter: 0.5.1
'@mswjs/interceptors@0.42.6(supports-color@9.4.0)': '@mswjs/interceptors@0.45.9(supports-color@9.4.0)':
dependencies: dependencies:
'@open-draft/until': 3.0.1 '@open-draft/until': 3.0.1
'@types/debug': 4.1.13 '@types/debug': 4.1.13
debug: 4.4.3(supports-color@9.4.0) debug: 4.4.3(supports-color@9.4.0)
is-node-process: 1.2.0 is-node-process: 1.2.0
outvariant: 1.4.3 outvariant: 1.4.3
rettime: 0.11.11 rettime: 0.11.12
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
...@@ -34671,7 +34671,7 @@ snapshots: ...@@ -34671,7 +34671,7 @@ snapshots:
retry@0.13.1: {} retry@0.13.1: {}
rettime@0.11.11: {} rettime@0.11.12: {}
reusify@1.0.4: {} reusify@1.0.4: {}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment