Packages

msw

3.0.7 · 18 Nov 2026MIT36M / weekRepositoryHomepagenpmAtom feed

Upgrading msw From 0.26.2 to 0.27.0

1 release in betweenevery note read

Other targets from 0.26.2Newest 0.x0.49.3Latest3.0.7
  1. 0.26.2yours
  2. 0.27.0target

Before you upgrade

Tick each one off as you go
  • Breaking0.27.0
  • Breaking0.27.0

Release by release

  1. 0.27.0

    Migration needed25 Feb 20213 new · 2 fixes
    • Breaking

      The Promise returned by worker.start() will now reject in the case of any errors during the worker registration (#607).

    • Breaking

      The values of the MockedRequest type no longer have the params key (#561). Please use the RestRequest type to annotate REST API requests instead.

    • New

      Supports automatic worker script updates (#606). Respects the msw.workerDirectory property in your package.json:

    • New

      Intercepts requests originating from an iframe (#589).

    • New

      Adds virtual cookie store to ensure the persistency of cookies received from the same domains across multiple requests (#435, #469).

    • Fixed

      Fixes an issue when a request body type generic had no effect on the response composition chain validation.

    • Fixed

      Fixes an issue when a 204 response threw an exception when the library emitted its response:* life-cycle events (#570).

5 other lines we could not sort, mostly version bumps
  • RestRequestType, use RestRequest instead.

    0.27.0
  • GraphQLMockedRequest, use GraphQLRequest instead.

    0.27.0
  • GraphQLMockedContext, use GraphQLContext instead.

    0.27.0
  • GraphQLRequestPayload, use GraphQLRequestBody instead.

    0.27.0
  • GraphQLRequestParsedResult, use ParsedGraphQLRequest instead.

    0.27.0

3 internal lines (docs, tests, tooling) left out.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.