Packages

msw

3.0.7 · 18 Nov 2026MIT36M / weekRepositoryHomepagenpmAtom feed

Upgrading msw From 0.17.2 to 0.18.0

1 release in betweenevery note read

Other targets from 0.17.2Newest 0.x0.49.3Latest3.0.7
  1. 0.17.2yours
  2. 0.18.0target
0
changes to make
0
advisories fixed
1
new
2
fixes

Release by release

  1. 0.18.0

    30 May 20201 new · 2 fixes
    • New

      Adds support for one-time request handlers using res.once(). Such handles will respond with a given mocked response only once upon request match:

    • Fixed

      Fixes an issue that resulted into the following TypeScript error when installing msw (#185, #186 ):

    • Fixed

      Fixes an outdated GitHub repository link in the mockServiceWorker.js file.

3 other lines we could not sort, mostly version bumps
  • .use() to prepend any request handlers. Any prepended request handlers take priority over existing ones, if their predicate match.

    0.18.0
  • .restoreHandlers() to mark any used one-time request handlers as unused, allowing them to affect network again.

    0.18.0
  • .resetHandlers() to remove any request handlers added on runtime. Optionally accepts a list of next request handlers that replace the initial handlers passed to setupServer/setupWorker call.

    0.18.0

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.