Packages

msw

3.0.7 · 18 Nov 2026MIT36.1M / weekRepositoryHomepagenpmAtom feed

Upgrading msw From 1.3.5 to 2.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 1.3.5Latest3.0.7
  1. 1.3.5yours
  2. 2.0.0target

Start here

Before you upgrade

Tick each one off as you go
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0

Release by release

  1. 2.0.0

    Migration needed23 Oct 20239 new · 10 fixes
    • Breaking

      This release is a BREAKING CHANGE.

    • Breaking

      Drops support for Node.js 16. Please upgrade to Node.js 18 or later to use the global Fetch API.

    • Breaking

      Drops support for TypeScript < 4.7.

    • Breaking

      All browser-side exports, like setupWorker, SetupWorkerApi, etc., must be imported from msw/browser now.

2 other lines we could not sort, mostly version bumps
  • context and related exports (defaultContext, restContext, graphqlContext).

    2.0.0
  • compose and createResponseComposition

    2.0.0

2 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.