Packages

msw

3.0.7 · 18 Nov 2026MIT36M / weekRepositoryHomepagenpmAtom feed

Your version

0.22.0

18 Nov 2020Where it was published

0.49.3 is the newest release of 0.22.x.

In short

2 breaking2 new1 fixed

  • Breaking

    Service Worker now short-circuits navigation requests (#412, #417).

  • Breaking

Release note

Breaking changes

Features

  • Supports setting both ctx.data and ctx.errors in GraphQL responses (#401, #403).

graphql.query('GetUser', (req, res, ctx) => {
  return res(
    ctx.data({ id: 'abc-123' }),
    ctx.errors([
      { message: 'Failed to get user posts' }
    ])
  )
})
  • Supports creation of custom response transformers (#440, #441).

Bug fixes

  • Fixes an issue that resulted into inferred response status texts always set to "OK" (#438).

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.