Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

chore(deps): bump msw to ^0.49.0 #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Dec 4, 2021

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
msw (source) ^0.35.0 -> ^0.49.0 age adoption passing confidence

Release Notes

mswjs/msw (msw)

v0.49.3

Compare Source

v0.49.3 (2023-01-19)

Bug Fixes

v0.49.2

Compare Source

v0.49.2 (2022-12-13)
Bug Fixes

v0.49.1

Compare Source

v0.49.1 (2022-11-28)

Bug Fixes

v0.49.0

Compare Source

v0.49.0 (2022-11-19)

Features

v0.48.3

Compare Source

v0.48.3 (2022-11-15)

Bug Fixes

v0.48.2

Compare Source

v0.48.2 (2022-11-13)

Bug Fixes

v0.48.1

Compare Source

v0.48.1 (2022-11-10)

Bug Fixes

v0.48.0

Compare Source

v0.48.0 (2022-11-08)

Features

v0.47.4

Compare Source

v0.47.4 (2022-10-04)

Bug Fixes

v0.47.3

Compare Source

v0.47.3 (2022-09-15)

Bug Fixes

v0.47.2

Compare Source

v0.47.2 (2022-09-13)

Bug Fixes

v0.47.1

Compare Source

v0.47.1 (2022-09-10)

Bug Fixes

v0.47.0

Compare Source

v0.47.0 (2022-09-04)

Features

v0.46.1

Compare Source

v0.46.1 (2022-09-01)

Bug Fixes

v0.46.0

Compare Source

v0.46.0 (2022-08-31)

Features
server.listHandlers()
worker.listHandlers()

v0.45.0

Compare Source

v0.45.0 (2022-08-22)

Features
  • make GraphQL a peer dependency, support GraphQL v15.0 (#​1356) (ca0e2e0)

v0.44.2

Compare Source

v0.44.2 (2022-07-19)

Bug Fixes
  • transfer mocked response as ArrayBuffer to the worker (#​1337) (95be5f8)

v0.44.1

Compare Source

v0.44.1 (2022-07-14)

Bug Fixes

v0.44.0

Compare Source

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). Please use MockedRequest class instead.
Features
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).
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.

v0.43.1

Compare Source

v0.43.1 (2022-07-07)

Bug Fixes
  • support multiple response cookies using "ctx.cookie()" (#​1311) (66c3ad8)

v0.43.0

Compare Source

v0.43.0 (2022-07-04)

Features
  • send mocked response body as ReadableStream to the worker (#​1288) (78c7d7e)

v0.42.3

Compare Source

v0.42.3 (2022-06-22)

Bug Fixes

v0.42.2

Compare Source

v0.42.2 (2022-06-22)

Bug Fixes
  • setupServer: reference interceptors to support fast refresh (#​1299) (72f0b25)

v0.42.1

Compare Source

v0.42.1 (2022-06-07)

Bug Fixes

v0.42.0

Compare Source

v0.42.0 (2022-05-30)

Features
Bug Fixes

v0.41.1

Compare Source

v0.41.1 (2022-05-27)

Bug Fixes

v0.41.0

Compare Source

v0.41.0 (2022-05-22)

Features

v0.40.2

Compare Source

v0.40.2 (2022-05-20)

Bug Fixes

v0.40.1

Compare Source

v0.40.1 (2022-05-19)

Bug Fixes

v0.40.0

Compare Source

v0.40.0 (2022-05-17)

Breaking changes
  • Returning undefined, or early returns, from response resolvers, now does not perform request as-is, and is instead treated as a handler that didn't do anything. Please return req.passthrough() if you wish to bypass a request.
rest.get('/resource', (req, res, ctx) => {
// I want to perform this intercepted request as-is.
-  return
+  return req.passthrough()
})
Features
Bug Fixes
  • setupWorker: warn on multiple "worker.start" and "worker.stop" calls (#​1238) (cfe0709)
  • remove console.log from "setRequestCookies" (6f7ed98)
  • set "credentials" to "same-origin" for "ClientRequest" (#​1159) (c3cd80a)

v0.39.2

Compare Source

Bug Fixes

v0.39.1

Compare Source

Bug Fixes

v0.39.0

Compare Source

Breaking changes
Bug Fixes
  • setupWorker: resolve the "start" promise after the worker has activated (#​1146) (f6e709c)

v0.38.2

Compare Source

Bug Fixes

v0.38.1

Compare Source

Bug Fixes
  • handleRequest: bypass request only if "x-msw-bypass" header equals "true" (#​1110) (1a7bc36)

v0.38.0

Compare Source

Features
worker.start({
  onUnhandledRequest(request, print) {
    // Ignore unhandled warnings/errors from asset requests.
    if (request.url.href.includes('/assets/') {
      return
    }

    // Otherwise, execute the default warning/error/ strategy.
   print.warning() // or "print.error()" 
  }
})

v0.36.8

Compare Source

Bug Fixes

v0.36.7

Compare Source

Bug Fixes

v0.36.5

Compare Source

Bug Fixes
  • parse request body with letter case Content-Type header value (#​1064) (7796418)

v0.36.4

Compare Source

Bug fixes

  • Fixes an issue that resulted in port numbers being treated as path parameters (#​1036, #​1028).

v0.36.3

Compare Source

Bug fixes

  • Fixes an issue that resulted in the CORS policy violation due to the library appending the x-msw-request-id request header (#​713, #​1022, #​1024).

Internal

  • No longer sets the x-msw-request-id header on the request (#​1024). Relies on the request.id set by the interceptors (Node.js) or the requestId generated by the worker (browser).

v0.36.2

Compare Source

Bug fixes

  • Fixes an issue that resulted in the "TypeError: expected.toLowerCase() is not a function" exception when using the rest.all() request handler (#​1020, #​1021).

v0.36.1

Compare Source

Bug fixes

  • Fixes an issue that resulted in the "SyntaxError: Invalid group specified name" exception in Safari (#​1018, #​1019 ).

v0.36.0

Compare Source

Breaking changes
  • Uses path-to-regexp for URL matching (#​691, #​888). This makes the path matching experience identical to such in ExpressJS, and enabled various new features:
    • Optional path segments (/foo/bar?);
    • Repeating groups (/foo/bar+).
  • Request path parameters are now annotated as ambiguous string | string[] (#​999).
  • The RequestParams generic now follows the RequestBodyType generic, changing its order (#​999):
rest.post<RequestBodyType, RequestParams, ResponseBodyType>() {}
  • Removes the RequestParams type (#​999). Please use the PathParams type instead.
- import { RequestParams } from 'msw'
+ import { PathParams } from 'msw'
  • Relative requests are now resolved against document.baseURI (previously location.origin) in a browser-like environments (#​1007, #​1008).
Features
  • Adds a new rest.all() request handler (#​896). This handler captures all REST API requests regardless of method.
import { rest } from 'msw'

rest.all('/api/*', (req, res, ctx) => {
  // Intercepts all requests to "/api/*"
  // regardless of their method.
})
  • Supports encoded request path components (#​980).
  • Supports mocking GraphQL extensions (#​981).
graphql.query('GetUser', (req, res, ctx) => {
  return res(
    ctx.extensions({
      message: 'Mocked extension',
      tracking: { version: '1.2.3' }
    })
  )
})
  • Exports SetupWorkerApi and SetupServerApi from the browser and Node.js modules respectively (#​994).
Bug fixes
  • Specifies typescript as a peerDependency to control supported TypeScript versions (#​985).
  • Fixes an issue that resulted in graphql.operation handler producing a warning unable to intercept anonymous operations (#​918, #​904).
  • Locks inquirer dependency version to 8.1.5 to propagate the fix for the Unexpected token “?” issue when using MSW CLI (#​917).
  • Fixes an issue that resulted in the TypeError: Failed to execute 'XXX' on 'Response': body stream already read error when reading the original response body in the fallback mode (https://github.com/mswjs/interceptors/pull/152).
Internal
  • Lists @mswjs/cookies and @mswjs/interceptors as external packages so that their updates propagate to you automatically upon new installations of msw.
  • Updates dependencies.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies label Dec 4, 2021
@renovate renovate bot force-pushed the renovate/msw-0.x branch from efed63e to b1f188f Compare March 7, 2022 16:04
@renovate renovate bot changed the title chore(deps): bump msw to ^0.36.0 chore(deps): bump msw to ^0.38.0 Mar 7, 2022
@renovate renovate bot changed the title chore(deps): bump msw to ^0.38.0 chore(deps): bump msw to ^0.39.0 Mar 26, 2022
@renovate renovate bot force-pushed the renovate/msw-0.x branch from b1f188f to 1c37cad Compare March 26, 2022 15:41
@renovate renovate bot force-pushed the renovate/msw-0.x branch from 1c37cad to eed9ebf Compare June 18, 2022 20:04
@renovate renovate bot changed the title chore(deps): bump msw to ^0.39.0 chore(deps): bump msw to ^0.42.0 Jun 18, 2022
@renovate renovate bot force-pushed the renovate/msw-0.x branch from eed9ebf to f3fa4e8 Compare September 25, 2022 14:33
@renovate renovate bot changed the title chore(deps): bump msw to ^0.42.0 chore(deps): bump msw to ^0.47.0 Sep 25, 2022
@renovate renovate bot force-pushed the renovate/msw-0.x branch from f3fa4e8 to 7b7d7c9 Compare November 20, 2022 09:49
@renovate renovate bot changed the title chore(deps): bump msw to ^0.47.0 chore(deps): bump msw to ^0.49.0 Nov 20, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants