Releases: mswjs/msw
Releases · mswjs/msw
v0.11.0
Features
- The library now runs an integrity check against the Service Worker registered in your application (#81). This is necessary to warn you when the Service Worker must be updated according to the latest published release of the library. Please follow the update instructions when such occur in your browser's console.
0.9.0
Features
- Added support for Response patching
- Mocked
req
object now contains new properties:integrity
,destination
,keepalive
,bodyUsed
Bug fixes
- Fixed an issue that resulted into
req.params
beingnull
, causing an exception when trying to access an existing parameter
v0.8.2
Features
- Running
start()
andstop()
functions now returns a Promise that corresponds to the Service Worker registration/unregistration status
import { composeMocks, rest } from 'msw'
const { start, stop } = composeMocks(
rest.get(...)
)
start.then(() => {/* Your logic here */})
stop.then(() => {/* Your logic here */})
v0.8.1
v0.8.0
v0.7.0
v0.6.0
v0.6.0