mswjs/msw
### [`v0.47.3`](https://togithub.com/mswjs/msw/releases/tag/v0.47.3)
[Compare Source](https://togithub.com/mswjs/msw/compare/v0.47.2...v0.47.3)
#### v0.47.3 (2022-09-15)
##### Bug Fixes
- update "headers-polyfill" and "[@mswjs/interceptors](https://togithub.com/mswjs/interceptors)" to fix "/lib" issue ([#1407](https://togithub.com/mswjs/msw/issues/1407)) ([`41d8c08`](https://togithub.com/mswjs/msw/commit/41d8c0895e5ca7bf12da86a8a94b974e19b93d5d))
### [`v0.47.2`](https://togithub.com/mswjs/msw/releases/tag/v0.47.2)
[Compare Source](https://togithub.com/mswjs/msw/compare/v0.47.1...v0.47.2)
#### v0.47.2 (2022-09-13)
##### Bug Fixes
- fix a typo in the "listHandlers" method jsdoc ([#1403](https://togithub.com/mswjs/msw/issues/1403)) ([`c90eafb`](https://togithub.com/mswjs/msw/commit/c90eafb5caf0d27b81eced6cae4d1a257a7757b6))
### [`v0.47.1`](https://togithub.com/mswjs/msw/releases/tag/v0.47.1)
[Compare Source](https://togithub.com/mswjs/msw/compare/v0.47.0...v0.47.1)
#### v0.47.1 (2022-09-10)
##### Bug Fixes
- print response log only when response arrives ([#1392](https://togithub.com/mswjs/msw/issues/1392)) ([`638fad9`](https://togithub.com/mswjs/msw/commit/638fad9640885c0a85153c1b9ade61495d4295bb))
### [`v0.47.0`](https://togithub.com/mswjs/msw/releases/tag/v0.47.0)
[Compare Source](https://togithub.com/mswjs/msw/compare/v0.46.1...v0.47.0)
#### v0.47.0 (2022-09-04)
##### Features
- add explicit `exports` map in package.json ([#1383](https://togithub.com/mswjs/msw/issues/1383)) ([`5e1c1a6`](https://togithub.com/mswjs/msw/commit/5e1c1a6a9ab4450073adf571d4b68978d177bf52))
### [`v0.46.1`](https://togithub.com/mswjs/msw/releases/tag/v0.46.1)
[Compare Source](https://togithub.com/mswjs/msw/compare/v0.46.0...v0.46.1)
#### v0.46.1 (2022-09-01)
##### Bug Fixes
- **deps:** include "graphql" as a dependency ([#1381](https://togithub.com/mswjs/msw/issues/1381)) ([`8436515`](https://togithub.com/mswjs/msw/commit/8436515fd93e3f372205815b52ffc3a572da2690))
### [`v0.46.0`](https://togithub.com/mswjs/msw/releases/tag/v0.46.0)
[Compare Source](https://togithub.com/mswjs/msw/compare/v0.45.0...v0.46.0)
#### v0.46.0 (2022-08-31)
##### Features
- fix a typo in the worker script ([`62f7c4d`](https://togithub.com/mswjs/msw/commit/62f7c4d885c73c7401af85ca2e5da2db9f2cf212))
- support typescript v4.8 ([#1375](https://togithub.com/mswjs/msw/issues/1375)) ([`631f629`](https://togithub.com/mswjs/msw/commit/631f6297979e0b398d1353963ad7b4166e53f40c))
##### Features
- add "listHandlers" method to server and worker ([#1369](https://togithub.com/mswjs/msw/issues/1369)) ([`18f5778`](https://togithub.com/mswjs/msw/commit/18f57789f6ff620c0b1c2ee472673eb85d0575c9))
```js
server.listHandlers()
worker.listHandlers()
```
### [`v0.45.0`](https://togithub.com/mswjs/msw/releases/tag/v0.45.0)
[Compare Source](https://togithub.com/mswjs/msw/compare/v0.44.2...v0.45.0)
#### v0.45.0 (2022-08-22)
##### Features
- make GraphQL a peer dependency, support GraphQL v15.0 ([#1356](https://togithub.com/mswjs/msw/issues/1356)) ([`ca0e2e0`](https://togithub.com/mswjs/msw/commit/ca0e2e074d8156a6cbd212501e28130b9118f824))
### [`v0.44.2`](https://togithub.com/mswjs/msw/releases/tag/v0.44.2)
[Compare Source](https://togithub.com/mswjs/msw/compare/v0.44.1...v0.44.2)
#### v0.44.2 (2022-07-19)
##### Bug Fixes
- transfer mocked response as ArrayBuffer to the worker ([#1337](https://togithub.com/mswjs/msw/issues/1337)) ([`95be5f8`](https://togithub.com/mswjs/msw/commit/95be5f8ac1c0f02b2d4b5e6e0dd02d2cf7342008))
### [`v0.44.1`](https://togithub.com/mswjs/msw/releases/tag/v0.44.1)
[Compare Source](https://togithub.com/mswjs/msw/compare/v0.44.0...v0.44.1)
#### v0.44.1 (2022-07-14)
##### Bug Fixes
- super call stack overflow ([#1328](https://togithub.com/mswjs/msw/issues/1328)) ([`6a3f442`](https://togithub.com/mswjs/msw/commit/6a3f442bdea1d4ba615020ccece22a9e091e5f3c))
### [`v0.44.0`](https://togithub.com/mswjs/msw/releases/tag/v0.44.0)
[Compare Source](https://togithub.com/mswjs/msw/compare/v0.43.1...v0.44.0)
#### v0.44.0 (2022-07-13)
##### Breaking changes
- `req.destination` default value is now `""` (empty string), previously `"document"`.
- `req.redirect` default value is now `""follow"`, previously `"manual"`.
- The library no longer exports the `parseIsomorphicRequest()` function ([#1316](https://togithub.com/mswjs/msw/issues/1316)). Please use `MockedRequest` class instead.
##### Features
- adhere to [Fetch API "Request"](https://developer.mozilla.org/en-US/docs/Web/API/Request) in response resolver ([#1316](https://togithub.com/mswjs/msw/issues/1316), [@95th](https://togithub.com/95th)) ([`fc7f00c`](https://togithub.com/mswjs/msw/commit/fc7f00c96e79ad0be83cbaf7c82ceff23f0c4355)). This means the addition of a few properties on the `req` instance:
- [`req.priority`](https://developer.mozilla.org/en-US/docs/Web/API/Request/priority), indicates a priority of request relatively to other requests (default `"auto"`);
- [`req.text()`](https://developer.mozilla.org/en-US/docs/Web/API/Request/text), reads the request body as plain text;
- [`req.json()`](https://developer.mozilla.org/en-US/docs/Web/API/Request/json), reads the request body as JSON;
- [`req.arrayBuffer()`](https://developer.mozilla.org/en-US/docs/Web/API/Request/arrayBuffer), reads the request body as `ArrayBuffer`;
- [`req.clone()`](https://developer.mozilla.org/en-US/docs/Web/API/Request/clone), clones a request instance (i.e. so its body could be read multiple times).
- remove unnecessary stringification of worker-client messages ([#1320](https://togithub.com/mswjs/msw/issues/1320)) ([`6990c3a`](https://togithub.com/mswjs/msw/commit/6990c3a57a1f515fe977c2eaa7741005b885b8af))
##### Deprecations
- **`req.body` is deprecated**. Please use explicit request body reading methods: `req.text()`, `req.json()`, `req.arrayBuffer()` (other methods, like `req.formData()` are currently not supported).
```js
rest.post('/user', async (req, res, ctx) => {
const newUser = await req.json()
})
```
> `req.body` is still present for compatibility reasons but will be removed in the next releases.
Configuration
📅 Schedule: Branch creation - "after 10:30 before 18:00 every weekday except after 13:00 before 14:00" in timezone Asia/Tokyo, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
^0.43.1
->^0.47.3
Release Notes
mswjs/msw
### [`v0.47.3`](https://togithub.com/mswjs/msw/releases/tag/v0.47.3) [Compare Source](https://togithub.com/mswjs/msw/compare/v0.47.2...v0.47.3) #### v0.47.3 (2022-09-15) ##### Bug Fixes - update "headers-polyfill" and "[@mswjs/interceptors](https://togithub.com/mswjs/interceptors)" to fix "/lib" issue ([#1407](https://togithub.com/mswjs/msw/issues/1407)) ([`41d8c08`](https://togithub.com/mswjs/msw/commit/41d8c0895e5ca7bf12da86a8a94b974e19b93d5d)) ### [`v0.47.2`](https://togithub.com/mswjs/msw/releases/tag/v0.47.2) [Compare Source](https://togithub.com/mswjs/msw/compare/v0.47.1...v0.47.2) #### v0.47.2 (2022-09-13) ##### Bug Fixes - fix a typo in the "listHandlers" method jsdoc ([#1403](https://togithub.com/mswjs/msw/issues/1403)) ([`c90eafb`](https://togithub.com/mswjs/msw/commit/c90eafb5caf0d27b81eced6cae4d1a257a7757b6)) ### [`v0.47.1`](https://togithub.com/mswjs/msw/releases/tag/v0.47.1) [Compare Source](https://togithub.com/mswjs/msw/compare/v0.47.0...v0.47.1) #### v0.47.1 (2022-09-10) ##### Bug Fixes - print response log only when response arrives ([#1392](https://togithub.com/mswjs/msw/issues/1392)) ([`638fad9`](https://togithub.com/mswjs/msw/commit/638fad9640885c0a85153c1b9ade61495d4295bb)) ### [`v0.47.0`](https://togithub.com/mswjs/msw/releases/tag/v0.47.0) [Compare Source](https://togithub.com/mswjs/msw/compare/v0.46.1...v0.47.0) #### v0.47.0 (2022-09-04) ##### Features - add explicit `exports` map in package.json ([#1383](https://togithub.com/mswjs/msw/issues/1383)) ([`5e1c1a6`](https://togithub.com/mswjs/msw/commit/5e1c1a6a9ab4450073adf571d4b68978d177bf52)) ### [`v0.46.1`](https://togithub.com/mswjs/msw/releases/tag/v0.46.1) [Compare Source](https://togithub.com/mswjs/msw/compare/v0.46.0...v0.46.1) #### v0.46.1 (2022-09-01) ##### Bug Fixes - **deps:** include "graphql" as a dependency ([#1381](https://togithub.com/mswjs/msw/issues/1381)) ([`8436515`](https://togithub.com/mswjs/msw/commit/8436515fd93e3f372205815b52ffc3a572da2690)) ### [`v0.46.0`](https://togithub.com/mswjs/msw/releases/tag/v0.46.0) [Compare Source](https://togithub.com/mswjs/msw/compare/v0.45.0...v0.46.0) #### v0.46.0 (2022-08-31) ##### Features - fix a typo in the worker script ([`62f7c4d`](https://togithub.com/mswjs/msw/commit/62f7c4d885c73c7401af85ca2e5da2db9f2cf212)) - support typescript v4.8 ([#1375](https://togithub.com/mswjs/msw/issues/1375)) ([`631f629`](https://togithub.com/mswjs/msw/commit/631f6297979e0b398d1353963ad7b4166e53f40c)) ##### Features - add "listHandlers" method to server and worker ([#1369](https://togithub.com/mswjs/msw/issues/1369)) ([`18f5778`](https://togithub.com/mswjs/msw/commit/18f57789f6ff620c0b1c2ee472673eb85d0575c9)) ```js server.listHandlers() worker.listHandlers() ``` ### [`v0.45.0`](https://togithub.com/mswjs/msw/releases/tag/v0.45.0) [Compare Source](https://togithub.com/mswjs/msw/compare/v0.44.2...v0.45.0) #### v0.45.0 (2022-08-22) ##### Features - make GraphQL a peer dependency, support GraphQL v15.0 ([#1356](https://togithub.com/mswjs/msw/issues/1356)) ([`ca0e2e0`](https://togithub.com/mswjs/msw/commit/ca0e2e074d8156a6cbd212501e28130b9118f824)) ### [`v0.44.2`](https://togithub.com/mswjs/msw/releases/tag/v0.44.2) [Compare Source](https://togithub.com/mswjs/msw/compare/v0.44.1...v0.44.2) #### v0.44.2 (2022-07-19) ##### Bug Fixes - transfer mocked response as ArrayBuffer to the worker ([#1337](https://togithub.com/mswjs/msw/issues/1337)) ([`95be5f8`](https://togithub.com/mswjs/msw/commit/95be5f8ac1c0f02b2d4b5e6e0dd02d2cf7342008)) ### [`v0.44.1`](https://togithub.com/mswjs/msw/releases/tag/v0.44.1) [Compare Source](https://togithub.com/mswjs/msw/compare/v0.44.0...v0.44.1) #### v0.44.1 (2022-07-14) ##### Bug Fixes - super call stack overflow ([#1328](https://togithub.com/mswjs/msw/issues/1328)) ([`6a3f442`](https://togithub.com/mswjs/msw/commit/6a3f442bdea1d4ba615020ccece22a9e091e5f3c)) ### [`v0.44.0`](https://togithub.com/mswjs/msw/releases/tag/v0.44.0) [Compare Source](https://togithub.com/mswjs/msw/compare/v0.43.1...v0.44.0) #### v0.44.0 (2022-07-13) ##### Breaking changes - `req.destination` default value is now `""` (empty string), previously `"document"`. - `req.redirect` default value is now `""follow"`, previously `"manual"`. - The library no longer exports the `parseIsomorphicRequest()` function ([#1316](https://togithub.com/mswjs/msw/issues/1316)). Please use `MockedRequest` class instead. ##### Features - adhere to [Fetch API "Request"](https://developer.mozilla.org/en-US/docs/Web/API/Request) in response resolver ([#1316](https://togithub.com/mswjs/msw/issues/1316), [@95th](https://togithub.com/95th)) ([`fc7f00c`](https://togithub.com/mswjs/msw/commit/fc7f00c96e79ad0be83cbaf7c82ceff23f0c4355)). This means the addition of a few properties on the `req` instance: - [`req.priority`](https://developer.mozilla.org/en-US/docs/Web/API/Request/priority), indicates a priority of request relatively to other requests (default `"auto"`); - [`req.text()`](https://developer.mozilla.org/en-US/docs/Web/API/Request/text), reads the request body as plain text; - [`req.json()`](https://developer.mozilla.org/en-US/docs/Web/API/Request/json), reads the request body as JSON; - [`req.arrayBuffer()`](https://developer.mozilla.org/en-US/docs/Web/API/Request/arrayBuffer), reads the request body as `ArrayBuffer`; - [`req.clone()`](https://developer.mozilla.org/en-US/docs/Web/API/Request/clone), clones a request instance (i.e. so its body could be read multiple times). - remove unnecessary stringification of worker-client messages ([#1320](https://togithub.com/mswjs/msw/issues/1320)) ([`6990c3a`](https://togithub.com/mswjs/msw/commit/6990c3a57a1f515fe977c2eaa7741005b885b8af)) ##### Deprecations - **`req.body` is deprecated**. Please use explicit request body reading methods: `req.text()`, `req.json()`, `req.arrayBuffer()` (other methods, like `req.formData()` are currently not supported). ```js rest.post('/user', async (req, res, ctx) => { const newUser = await req.json() }) ``` > `req.body` is still present for compatibility reasons but will be removed in the next releases.Configuration
📅 Schedule: Branch creation - "after 10:30 before 18:00 every weekday except after 13:00 before 14:00" in timezone Asia/Tokyo, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.