mswjs/msw b9dacdbd..0ec75edf
base and head as given
- Server-side request interception entered the library
- Server interception now depends on request handlers
- A shared response-resolution utility now serves browser and server interception
- Header utilities entered response construction and worker message handling
- files changed
- 36
- in a component
- 13
- lines in components
- 307
- components
- 6
- public routes changed
- 0
- schema statements
- 0
- new dependencies
- 3
- excluded by role
- 23
Server-side request interception
Added- Before
- did not exist
- After
- Server requests can be intercepted
Server-side code can intercept outgoing requests with existing request handlers, return mocked responses after configured delays, and restore interception when finished.
In favour
- In favour: Reuses handler predicates and resolvers across browser and server
Against
- Against: Server interception supplies fixed defaults for browser-specific request fields
Inspect 4 source files behind this explanation
Header handling
Modified- Before
- Prior behavior not established
- After
- Headers use shared utility objects
Mocked responses now carry shared utility header objects, while worker messages serialize headers into lists before recreating browser responses. Header-setting also accepts object values containing arrays.
In favour
- In favour: Preserves repeated header values across worker message serialization
The model found nothing to weigh against this.
Inspect 7 source files behind this explanation
3 new dependencies between components — Node → Handlers · Node → Utils · Setup Worker → Source
What else could behave differently
6 components · 18 filesThese components import changed code, directly or through other files. A traced dependency is a place to review, not a confirmed runtime failure.
Reached 3
| Component | Symbol | Cited at | Files | Reached by |
|---|---|---|---|---|
| Utilssrc/utils/ | Signature changed MockedRequest1 of 9 changed symbols reaching it | src/handlers/requestHandler.ts:16-32 | 4 | 3 direct · 1 at two stepsTrace pathShortest component path from the changed symbol:
Later steps follow file imports; they do not prove this symbol is called. |
| Sourcesrc/ | Body changed fetch1 of 10 changed symbols reaching it | src/context/fetch.ts:31-49 | 3 | 3 directTrace pathShortest component path from the changed symbol:
Later steps follow file imports; they do not prove this symbol is called. |
| Handlerssrc/handlers/ | Body changed fetch1 of 2 changed symbols reaching it | src/context/fetch.ts:31-49 | 1 | 1 directTrace pathShortest component path from the changed symbol:
Later steps follow file imports; they do not prove this symbol is called. |
Ranked lower 3
| Component | Files | Reached by |
|---|---|---|
| src/setupWorker/ | 6 | 3 direct · 3 at two steps |
| src/context/ | 2 | 2 direct |
| src/node/ | 2 | 2 direct |
Statements 3
MockedRequest's signature change reached 4 files in Utils. 31fetch's body change reached 3 files in Source. 3fetch's body change reached 1 file in Handlers. 138 reached files belong to no component — tests, docs and config.
Routes, schema, dependencies
| What | Object | Where |
|---|---|---|
| + dependency | @types/node-fetch@^2.5.7 | declared, and used by no file in any component |
| + dependency | headers-utils@^1.1.9 | src/context/fetch.ts:1 |
| + dependency | node-request-interceptor@^0.2.2 | src/node/setupServer.ts:2 |
3 statements, with the lines behind them
headers-utils ^1.1.9 was added as a dependency.node-request-interceptor ^0.2.2 was added as a dependency.Inspect components, files and symbols
Component
File
Function
imports what changeddownstream of it, one mark per step
Diff
Analysis scope
161 → 6- files at head161
- components10
- changed by this change6
Where the new files landed
3 new files| New file | Belongs to | Used by | Calls | Serves |
|---|---|---|---|---|
| src/utils/getResponse.tsimports 1 package this change added | Utilsbase frame | Node | SourceHandlers | — |
| src/node/2 new filesimports 2 packages this change added | Nodenew territory | its own component only — 1 of 2 files imported by nothing | HandlersUtils | — |
5 added files carry no component — 4 test, 1 config.
36 files changed, 18 claims stated. 6 components reached in total.