diff --git a/packages/wrangler/package.json b/packages/wrangler/package.json index d83965479d89..be4244987a53 100644 --- a/packages/wrangler/package.json +++ b/packages/wrangler/package.json @@ -148,7 +148,7 @@ "mime": "^3.0.0", "minimatch": "^5.1.0", "mock-socket": "^9.3.1", - "msw": "^2.3.5", + "msw": "2.4.3", "open": "^8.4.0", "p-queue": "^7.2.0", "patch-console": "^1.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8ef96d3b940d..2a1f4d73e653 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -122,7 +122,7 @@ importers: version: 5.0.12(@types/node@18.19.59) vitest: specifier: catalog:default - version: 2.1.3(@types/node@18.19.59)(@vitest/ui@2.1.3)(msw@2.5.1(@types/node@18.19.59)(typescript@5.6.3))(supports-color@9.2.2) + version: 2.1.3(@types/node@18.19.59)(@vitest/ui@2.1.3)(msw@2.4.3(typescript@5.6.3))(supports-color@9.2.2) fixtures/additional-modules: devDependencies: @@ -170,7 +170,7 @@ importers: version: 5.28.4 vitest: specifier: catalog:default - version: 2.1.3(@types/node@18.19.59)(@vitest/ui@2.1.3)(msw@2.5.1(@types/node@18.19.59)(typescript@5.6.3))(supports-color@9.2.2) + version: 2.1.3(@types/node@18.19.59)(@vitest/ui@2.1.3)(msw@2.4.3(typescript@5.6.3))(supports-color@9.2.2) wrangler: specifier: workspace:* version: link:../../packages/wrangler @@ -680,7 +680,7 @@ importers: version: 5.6.3 vitest: specifier: catalog:default - version: 2.1.3(@types/node@18.19.59)(@vitest/ui@2.1.3)(msw@2.5.1(@types/node@18.19.59)(typescript@5.6.3))(supports-color@9.2.2) + version: 2.1.3(@types/node@18.19.59)(@vitest/ui@2.1.3)(msw@2.4.3(typescript@5.6.3))(supports-color@9.2.2) wrangler: specifier: workspace:* version: link:../../packages/wrangler @@ -1407,7 +1407,7 @@ importers: version: 5.28.4 vitest: specifier: catalog:default - version: 2.1.3(@types/node@18.19.59)(@vitest/ui@2.1.3)(msw@2.5.1(@types/node@18.19.59)(typescript@5.6.3))(supports-color@9.2.2) + version: 2.1.3(@types/node@18.19.59)(@vitest/ui@2.1.3)(msw@2.4.3(typescript@5.6.3))(supports-color@9.2.2) packages/workers-editor-shared: dependencies: @@ -1611,7 +1611,7 @@ importers: version: 5.6.3 vitest: specifier: catalog:default - version: 2.1.3(@types/node@18.19.59)(@vitest/ui@2.1.3)(msw@2.5.1(@types/node@18.19.59)(typescript@5.6.3))(supports-color@9.2.2) + version: 2.1.3(@types/node@18.19.59)(@vitest/ui@2.1.3)(msw@2.4.3(typescript@5.6.3))(supports-color@9.2.2) packages/workers-tsconfig: {} @@ -1634,7 +1634,7 @@ importers: version: 5.6.3 vitest: specifier: catalog:default - version: 2.1.3(@types/node@18.19.59)(@vitest/ui@2.1.3)(msw@2.5.1(@types/node@18.19.59)(typescript@5.6.3))(supports-color@9.2.2) + version: 2.1.3(@types/node@18.19.59)(@vitest/ui@2.1.3)(msw@2.4.3(typescript@5.6.3))(supports-color@9.2.2) wrangler: specifier: workspace:* version: link:../wrangler @@ -1677,7 +1677,7 @@ importers: version: 5.6.3 vitest: specifier: catalog:default - version: 2.1.3(@types/node@18.19.59)(@vitest/ui@2.1.3)(msw@2.5.1(@types/node@18.19.59)(typescript@5.6.3))(supports-color@9.2.2) + version: 2.1.3(@types/node@18.19.59)(@vitest/ui@2.1.3)(msw@2.4.3(typescript@5.6.3))(supports-color@9.2.2) packages/wrangler: dependencies: @@ -1918,8 +1918,8 @@ importers: specifier: ^9.3.1 version: 9.3.1 msw: - specifier: ^2.3.5 - version: 2.5.1(@types/node@18.19.59)(typescript@5.6.3) + specifier: 2.4.3 + version: 2.4.3(typescript@5.6.3) open: specifier: ^8.4.0 version: 8.4.0 @@ -1982,7 +1982,7 @@ importers: version: 1.5.4 vitest: specifier: catalog:default - version: 2.1.3(@types/node@18.19.59)(@vitest/ui@2.1.3)(msw@2.5.1(@types/node@18.19.59)(typescript@5.6.3))(supports-color@9.2.2) + version: 2.1.3(@types/node@18.19.59)(@vitest/ui@2.1.3)(msw@2.4.3(typescript@5.6.3))(supports-color@9.2.2) vitest-websocket-mock: specifier: ^0.4.0 version: 0.4.0(vitest@2.1.3) @@ -3031,23 +3031,25 @@ packages: '@iarna/toml@3.0.0': resolution: {integrity: sha512-td6ZUkz2oS3VeleBcN+m//Q6HlCFCPrnI0FZhrt/h4XqLEdOyYp2u21nd8MdsR+WJy5r9PTDaHTDDfhf4H4l6Q==} - '@inquirer/confirm@5.0.0': - resolution: {integrity: sha512-6QEzj6bZg8atviRIL+pR0tODC854cYSjvZxkyCarr8DVaOJPEyuGys7GmEG3W0Rb8kKSQec7P6okt0sJvNneFw==} + '@inquirer/confirm@3.2.0': + resolution: {integrity: sha512-oOIwPs0Dvq5220Z8lGL/6LHRTEr9TgLHmiI99Rj1PJ1p1czTys+olrgBqZk4E2qC0YTzeHprxSQmoHioVdJ7Lw==} engines: {node: '>=18'} - '@inquirer/core@10.0.0': - resolution: {integrity: sha512-7dwoKCGvgZGHWTZfOj2KLmbIAIdiXP9NTrwGaTO/XDfKMEmyBahZpnombiG6JDHmiOrmK3GLEJRXrWExXCDLmQ==} + '@inquirer/core@9.2.1': + resolution: {integrity: sha512-F2VBt7W/mwqEU4bL0RnHNZmC/OxzNx9cOYxHqnXX3MP6ruYvZUZAW9imgN9+h/uBT/oP8Gh888J2OZSbjSeWcg==} engines: {node: '>=18'} '@inquirer/figures@1.0.7': resolution: {integrity: sha512-m+Trk77mp54Zma6xLkLuY+mvanPxlE4A7yNKs2HBiyZ4UkVs28Mv5c/pgWrHeInx+USHeX/WEPzjrWrcJiQgjw==} engines: {node: '>=18'} - '@inquirer/type@3.0.0': - resolution: {integrity: sha512-YYykfbw/lefC7yKj7nanzQXILM7r3suIvyFlCcMskc99axmsSewXWkAfXKwMbgxL76iAFVmRwmYdwNZNc8gjog==} + '@inquirer/type@1.5.5': + resolution: {integrity: sha512-MzICLu4yS7V8AA61sANROZ9vT1H3ooca5dSmI1FjZkzq7o/koMsRfQSzRtFo+F3Ao4Sf1C0bpLKejpKB/+j6MA==} + engines: {node: '>=18'} + + '@inquirer/type@2.0.0': + resolution: {integrity: sha512-XvJRx+2KR3YXyYtPUUy+qd9i7p+GO9Ko6VIIpWlBrpWwXDv8WLFeHTxz35CfQFUiBMLXlGHhGzys7lqit9gWag==} engines: {node: '>=18'} - peerDependencies: - '@types/node': ^18.19.59 '@isaacs/cliui@8.0.2': resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} @@ -3146,8 +3148,8 @@ packages: resolution: {integrity: sha512-/TL0np4uYDl+6MdseDApZmDdlJ6Y7AY5iDY0TvUQJG9nyBoCjX6w0Zn4SiKDwO6660rPtSqZ5c7HzbPhGb5vsA==} engines: {node: '>=16.13'} - '@mswjs/interceptors@0.36.5': - resolution: {integrity: sha512-aQ8WF5zQwOdcxLsxSEk9Jd01GgGb80xxqCaiDDlewhtwqpSm8MOvUHslwPydVirasdW09++NxDNNftm1vLY8yA==} + '@mswjs/interceptors@0.29.1': + resolution: {integrity: sha512-3rDakgJZ77+RiQUuSK69t1F0m8BQKA8Vh5DCS5V0DWvNY67zob2JhhQrhCO0AKLGINTRSFd1tBaHcJTkhefoSw==} engines: {node: '>=18'} '@nodelib/fs.scandir@2.1.5': @@ -3685,6 +3687,9 @@ packages: '@types/ms@0.7.31': resolution: {integrity: sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==} + '@types/mute-stream@0.0.4': + resolution: {integrity: sha512-CPM9nzrCPPJHQNA9keH9CVkVI+WR5kMa+7XEs5jcGQ0VoAGnLv242w8lIVgwAEfmE4oufJRaTc9PNLQl0ioAow==} + '@types/node-fetch@2.6.11': resolution: {integrity: sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==} @@ -3782,6 +3787,9 @@ packages: '@types/which@2.0.2': resolution: {integrity: sha512-113D3mDkZDjo+EeUEHCFy0qniNc1ZpecGiAU7WSo7YDoSzolZIQKpYFHrPpjkB2nuyahcKfrmLXeQlh7gqJYdw==} + '@types/wrap-ansi@3.0.0': + resolution: {integrity: sha512-ltIpx+kM7g/MLRZfkbL7EsCEjfzCcScLpkg37eXEtx5kmrAKBkTJwd1GIAjDSL8wTpM6Hzn5YO4pSb91BEwu1g==} + '@types/ws@8.5.10': resolution: {integrity: sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A==} @@ -6517,8 +6525,8 @@ packages: ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} - msw@2.5.1: - resolution: {integrity: sha512-V0BmHvFkbWGXqbyrc+XiuQ8DU3qzcb6lb8gB9Vzltp3cgHLHLCDF/KmmFo0xw58StNaRMTebw3/xpWVvU9xq9g==} + msw@2.4.3: + resolution: {integrity: sha512-PXK3wOQHwDtz6JYVyAVlQtzrLr6bOAJxggw5UHm3CId79+W7238aNBD1zJVkFY53o/DMacuIfgesW2nv9yCO3Q==} engines: {node: '>=18'} hasBin: true peerDependencies: @@ -6537,9 +6545,9 @@ packages: mute-stream@0.0.8: resolution: {integrity: sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==} - mute-stream@2.0.0: - resolution: {integrity: sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==} - engines: {node: ^18.17.0 || >=20.5.0} + mute-stream@1.0.0: + resolution: {integrity: sha512-avsJQhyd+680gKXyG/sQc0nXaC6rBkPOfyHYcFb9+hdkqQkR9bdnkJ0AMZhke0oesPqIO+mFFJ+IdBc7mst4IA==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} nan@2.18.0: resolution: {integrity: sha512-W7tfG7vMOGtD30sHoZSSc/JVYiyDPEyQVso/Zz+/uQd0B0L46gtC+pHha5FFMRpil6fm/AoEcRWyOVi4+E/f8w==} @@ -9748,32 +9756,35 @@ snapshots: '@iarna/toml@3.0.0': {} - '@inquirer/confirm@5.0.0(@types/node@18.19.59)': + '@inquirer/confirm@3.2.0': dependencies: - '@inquirer/core': 10.0.0(@types/node@18.19.59) - '@inquirer/type': 3.0.0(@types/node@18.19.59) - transitivePeerDependencies: - - '@types/node' + '@inquirer/core': 9.2.1 + '@inquirer/type': 1.5.5 - '@inquirer/core@10.0.0(@types/node@18.19.59)': + '@inquirer/core@9.2.1': dependencies: '@inquirer/figures': 1.0.7 - '@inquirer/type': 3.0.0(@types/node@18.19.59) + '@inquirer/type': 2.0.0 + '@types/mute-stream': 0.0.4 + '@types/node': 18.19.59 + '@types/wrap-ansi': 3.0.0 ansi-escapes: 4.3.2 cli-width: 4.1.0 - mute-stream: 2.0.0 + mute-stream: 1.0.0 signal-exit: 4.1.0 strip-ansi: 6.0.1 wrap-ansi: 6.2.0 yoctocolors-cjs: 2.1.2 - transitivePeerDependencies: - - '@types/node' '@inquirer/figures@1.0.7': {} - '@inquirer/type@3.0.0(@types/node@18.19.59)': + '@inquirer/type@1.5.5': dependencies: - '@types/node': 18.19.59 + mute-stream: 1.0.0 + + '@inquirer/type@2.0.0': + dependencies: + mute-stream: 1.0.0 '@isaacs/cliui@8.0.2': dependencies: @@ -9957,7 +9968,7 @@ snapshots: dependencies: '@miniflare/shared': 2.14.2 - '@mswjs/interceptors@0.36.5': + '@mswjs/interceptors@0.29.1': dependencies: '@open-draft/deferred-promise': 2.2.0 '@open-draft/logger': 0.3.0 @@ -10567,6 +10578,10 @@ snapshots: '@types/ms@0.7.31': {} + '@types/mute-stream@0.0.4': + dependencies: + '@types/node': 18.19.59 + '@types/node-fetch@2.6.11': dependencies: '@types/node': 18.19.59 @@ -10658,6 +10673,8 @@ snapshots: '@types/which@2.0.2': {} + '@types/wrap-ansi@3.0.0': {} + '@types/ws@8.5.10': dependencies: '@types/node': 18.19.59 @@ -10793,13 +10810,13 @@ snapshots: chai: 5.1.1 tinyrainbow: 1.2.0 - '@vitest/mocker@2.1.3(@vitest/spy@2.1.3)(msw@2.5.1(@types/node@18.19.59)(typescript@5.6.3))(vite@5.0.12(@types/node@18.19.59))': + '@vitest/mocker@2.1.3(@vitest/spy@2.1.3)(msw@2.4.3(typescript@5.6.3))(vite@5.0.12(@types/node@18.19.59))': dependencies: '@vitest/spy': 2.1.3 estree-walker: 3.0.3 magic-string: 0.30.11 optionalDependencies: - msw: 2.5.1(@types/node@18.19.59)(typescript@5.6.3) + msw: 2.4.3(typescript@5.6.3) vite: 5.0.12(@types/node@18.19.59) '@vitest/pretty-format@2.1.3': @@ -10830,7 +10847,7 @@ snapshots: sirv: 2.0.4 tinyglobby: 0.2.10 tinyrainbow: 1.2.0 - vitest: 2.1.3(@types/node@18.19.59)(@vitest/ui@2.1.3)(msw@2.5.1(@types/node@18.19.59)(typescript@5.6.3))(supports-color@9.2.2) + vitest: 2.1.3(@types/node@18.19.59)(@vitest/ui@2.1.3)(msw@2.4.3(typescript@5.6.3))(supports-color@9.2.2) '@vitest/utils@2.1.3': dependencies: @@ -13770,13 +13787,13 @@ snapshots: ms@2.1.3: {} - msw@2.5.1(@types/node@18.19.59)(typescript@5.6.3): + msw@2.4.3(typescript@5.6.3): dependencies: '@bundled-es-modules/cookie': 2.0.0 '@bundled-es-modules/statuses': 1.0.1 '@bundled-es-modules/tough-cookie': 0.1.6 - '@inquirer/confirm': 5.0.0(@types/node@18.19.59) - '@mswjs/interceptors': 0.36.5 + '@inquirer/confirm': 3.2.0 + '@mswjs/interceptors': 0.29.1 '@open-draft/until': 2.1.0 '@types/cookie': 0.6.0 '@types/statuses': 2.0.5 @@ -13791,8 +13808,6 @@ snapshots: yargs: 17.7.2 optionalDependencies: typescript: 5.6.3 - transitivePeerDependencies: - - '@types/node' muggle-string@0.4.1: {} @@ -13800,7 +13815,7 @@ snapshots: mute-stream@0.0.8: {} - mute-stream@2.0.0: {} + mute-stream@1.0.0: {} nan@2.18.0: optional: true @@ -15707,12 +15722,12 @@ snapshots: dependencies: '@vitest/utils': 2.1.3 mock-socket: 9.3.1 - vitest: 2.1.3(@types/node@18.19.59)(@vitest/ui@2.1.3)(msw@2.5.1(@types/node@18.19.59)(typescript@5.6.3))(supports-color@9.2.2) + vitest: 2.1.3(@types/node@18.19.59)(@vitest/ui@2.1.3)(msw@2.4.3(typescript@5.6.3))(supports-color@9.2.2) - vitest@2.1.3(@types/node@18.19.59)(@vitest/ui@2.1.3)(msw@2.5.1(@types/node@18.19.59)(typescript@5.6.3))(supports-color@9.2.2): + vitest@2.1.3(@types/node@18.19.59)(@vitest/ui@2.1.3)(msw@2.4.3(typescript@5.6.3))(supports-color@9.2.2): dependencies: '@vitest/expect': 2.1.3 - '@vitest/mocker': 2.1.3(@vitest/spy@2.1.3)(msw@2.5.1(@types/node@18.19.59)(typescript@5.6.3))(vite@5.0.12(@types/node@18.19.59)) + '@vitest/mocker': 2.1.3(@vitest/spy@2.1.3)(msw@2.4.3(typescript@5.6.3))(vite@5.0.12(@types/node@18.19.59)) '@vitest/pretty-format': 2.1.3 '@vitest/runner': 2.1.3 '@vitest/snapshot': 2.1.3