Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Bump msw from 0.26.2 to 0.27.1 #157

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 9, 2021

Bumps msw from 0.26.2 to 0.27.1.

Release notes

Sourced from msw's releases.

v0.27.1

Changes

  • Exports the RestHandler class publicly.

Bug fixes

  • Fixes an issue that caused a Uncaught ReferenceError: process is not defined exception when calling worker.start() (#609, #629).
  • Fixes an issue that caused a TypeScript violation in the PickLastInTuple type (#615, #627).
  • Fixes an issue that caused an TypeError: Object.fromEntries is not a function error when running MSW in Node.js v10 (#625, #633).

Internals

v0.27.0

Breaking changes

  • The Promise returned by worker.start() will now reject in the case of any errors during the worker registration (#607).
  • The library no longer exports the following TypeScript declarations:
    • RestRequestType, use RestRequest instead.
    • GraphQLMockedRequest, use GraphQLRequest instead.
    • GraphQLMockedContext, use GraphQLContext instead.
    • GraphQLRequestPayload, use GraphQLRequestBody instead.
    • GraphQLRequestParsedResult, use ParsedGraphQLRequest instead.
    • GraphQLResponseResolver

Features

  • Supports automatic worker script updates (#606). Respects the msw.workerDirectory property in your package.json:
{
  "msw": {
    "workerDirectory": "public"
  }
}

Starting from this release, whenever you install msw, it will try to locate the msw.workerDirectory property in your package.json and copy the relevant worker script (mockServiceWorker.js) to that directory.

Whenever running msw init now, you will be prompted to save your public directory choice to package.json.

  • When running msw init you can pass the —save option to automatically save the public directory in your package.json for future worker updates (#606). You can alternatively use --no-save to bail out this step.
  • Intercepts requests originating from an iframe (#589).
  • Adds virtual cookie store to ensure the persistency of cookies received from the same domains across multiple requests (#435, #469).

Bug fixes

  • Fixes an issue when a request body type generic had no effect on the response composition chain validation.
  • Fixes an issue when a 204 response threw an exception when the library emitted its response:* life-cycle events (#570).

Internal

  • Rebuilds the Request Handler API from ground-up (#561). Does not introduce any breaking changes in how you use the handlers.

... (truncated)

Commits
  • b17a6d4 v0.27.1
  • ec64cdd Replace Object.fromEntries()
  • 10cccc0 Update delay.ts
  • 5d72b51 RequestHandler: Removes unsused "ResponseTransformer" type
  • fa0704e Sets "process.env.NODE_ENV" to "development" during the build
  • 48fd5d3 compose: Fixes the last tuple type getter
  • eb3b825 Updates "typescript" to 4.2.2
  • 505bd94 RequestHandler: Fixes a "parsedResult" typo
  • e46fc81 Uses "Node.js" over "NodeJS"
  • 4d90221 Exports the "RestHandler" class
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Mar 9, 2021
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/msw-0.27.1 branch from ee2450f to b20ac26 Compare March 9, 2021 07:28
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Mar 10, 2021

Looks like msw is up-to-date now, so this is no longer needed.

@dependabot dependabot bot closed this Mar 10, 2021
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/msw-0.27.1 branch March 10, 2021 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants