build: update dependency msw to v0.35.0 - autoclosed
This MR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
msw (source) | 0.30.1 -> 0.35.0 |
Release Notes
mswjs/msw
v0.35.0
Breaking changes
- The Life-cycle events are now exposed from the
.events
property on the worker/server (#868).
-worker.on('request:start', listener)
+worker.events.on('request:start', listener)
-server.on('response:mocked', listener)
+server.events.on('response:mocked', listener)
Features
- Life-cycle events now support
.removeListener()
and.removeAllListeners()
methods (#868).
// Removes all life-cycle event listeners you've attached to this server instance.
server.events.removeAllListeners()
- The "error" strategy of the
onUnhandledRequest
option now throws an exception to halt running tests (#856).
Bug fixes
- Fixes an issue where a request handler with parenthesis in the URL wouldn't match an otherwise matching request (#857).
Security
- Updates the
@mswjs/interceptors
package to propagate thexmldom
security update (#876).
v0.34.0
Features
v0.33.3
Bug fixes
v0.33.2
Bug fixes
- Fixes an issue that resulted in the "color: inherit" being present in each request log in the browser's console (#842, #843).
v0.33.1
Bug fixes
- Fixes an issue that resulted in the NextJS development server becoming unresponsive due to cancelled SSR from webpack HMR (#834, #837).
v0.33.0
Features
- Setting a
Cookie
/Set-Cookie
response headers viactx.set
now produces a type violation (#819). Please usectx.cookie
instead.
Internal
- Supports
resolutionContext
option onhandleRequest
API to specify thebaseUrl
for all relative request handler URLs (#830).
v0.32.3
Bug fixes
- Fixes an issue when calling
setupServer
in React Native thrown an exception for using it in the wrong environment (#827).
v0.32.2
Features
- Exports internal utilities to be used in extensions (#824);
parseIsomorphicRequest()
handleRequest()
v0.32.1
Bug fixes
- Fixes an issue that resulted in corrupted original response bodies if they were compressed with gzip (https://github.com/mswjs/interceptors/pull/136, #822).
- Fixes an issue that resulted in a memory leak of event listeners when retrieving the
IncomingMessage
body of the original response in Node.js (https://github.com/mswjs/interceptors/pull/140, #785). - Fixes an issue that resulted in the "cannot run in a non-browser environment" error when running MSW in an Electron renderer process (#661, #817, #823).
v0.32.0
Bug fixes
- Fixes the
setTimeout
issue in Socket (https://github.com/mswjs/interceptors/pull/120, #812)
Internals
- Updates package dependencies.
v0.31.0
Bug fixes
Configuration
-
If you want to rebase/retry this MR, check this box.
This MR has been generated by Renovate Bot.
Edited by Common Ground Bot