npm / openapi-msw
openapi-msw
What changed in openapi-msw 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-27.
6 breaking1 behavior and defaults1 tooling
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initopenapi-msw 25 changes
Breaking changes 3
Colons in OpenAPI paths are escaped and matched literally as static path parts instead of being interpreted by MSW as path parameters.
OpenAPI-MSW no longer publishes CommonJS compilation or exports; requiring the package still works on actively maintained Node.js versions.
The MSW peer dependency was updated; this is a breaking change only for users not already using the latest MSW version.
Behavior and default changes 1
OpenAPI-MSW is compatible with both MSW v2 and v3.
Tooling 1
Declaration maps and packaged source files enable editors to jump directly to TypeScript source with Go To Definition.
openapi-msw 13 changes
Breaking changes 3
The MSW peer dependency requirement was updated from v2.0.0 to v2.7.0; this is breaking only for projects not already using the latest MSW version.
Removed the dependency so projects should no longer resolve to multiple versions of openapi-typescript-helpers.
Renamed the HttpHandlerFactory type to OpenApiHttpRequestHandler to align its name with MSW's equivalent HttpRequestHandler type.