Packages

msw

3.0.7 · 18 Nov 2026MIT36M / weekRepositoryHomepagenpmAtom feed

Your version

0.15.0

29 Apr 2020Where it was published

0.49.3 is the newest release of 0.15.x.

In short

1 deprecated

  • Deprecated

    The usage of composeMocks() function is deprecated. Please use the setupWorker() function instead:

Release note

Changes

  • Deprecated

    The usage of composeMocks() function is deprecated. Please use the setupWorker() function instead:

- import { composeMocks, rest } from 'msw'
+ import { setupWorker, rest } from 'msw'

- const { start } = composeMocks(...)
+ const { start } = setupWorker(...)

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.