Packages

msw

3.0.7 · 18 Nov 2026MIT36M / weekRepositoryHomepagenpmAtom feed

Your version

0.21.3

18 Oct 2020Where it was published

0.49.3 is the newest release of 0.21.x.

In short

2 new1 fixed

Release note

Features

  • Adds support for type annotation of path parameters (#393, #421).

rest.get<RequestType, ResponseType, RequestParamsType>(url, resolver)
  • Validates the value given to the setupWorker/setupServer functions to be a spread list of handlers, not an Array (#400, #402).

Bug fixes

  • Fixes an issue that caused a TypeScript compilation to fail when importing the graphql handler by exporting the GraphQLRequestParsedResult type from the package (#425).

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.