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

chore(deps): bump skwas.MockHttp from 3.1.0-rc0001 to 4.0.0 #19

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 3, 2023

Bumps skwas.MockHttp from 3.1.0-rc0001 to 4.0.0.

Release notes

Sourced from skwas.MockHttp's releases.

v4.0.0

What's Changed

  • Add new Fluent response API by @​skwasjer in skwasjer/MockHttp#10 See also #9 This is a complete replacement of the old response builder API's, and thus likely will require you to refactor your tests (I'm sorry but such is the price of improvement sometimes :( ). See wiki for new API docs/examples. The request matching API's have largely stayed the same, but some extension methods were renamed for consistency. E.g.:
    MockHttpHandler mockHttp = new MockHttpHandler();
    // Configure setup(s).
    mockHttp
    .When(matching => matching
    .Method("GET")
    .RequestUri("http://localhost/controller/*")
    .QueryString("id", 123)
    )
    .Respond(with => with
    .StatusCode(200)
    .JsonBody(new { id = 123, firstName = "John", lastName = "Doe" })
    )
    .Verifiable();
    The new response API also comes with some new features/improvements:

    • .ClientTimeout(100.Milliseconds())
    • .ServerTimeout(100.Milliseconds())
    • .Latency(NetworkLatency.FiveG)
  • Added .NET 7 target framework
  • Add stream that rate limits response streams. by @​skwasjer in skwasjer/MockHttp#17 E.g.:
    using Stream stream = File.OpenRead(...); // A big stream
    mockHttpHandler
    .When(matching => ...)
    .Respond(with => with.Body(() => new RateLimitedStream(stream, 512000))); // Rate limited to 512 kbps

  • Additional guards (Argument(Null)Exception) for certain extensions.
  • Fix static code analysis warnings.
  • Bump Microsoft.AspNet.WebApi.Client from 5.2.7 to 5.2.9 by @​dependabot in skwasjer/MockHttp#23
  • Enable nullable by @​skwasjer in skwasjer/MockHttp#27
  • Remove obsolete/deprecated code by @​skwasjer in skwasjer/MockHttp#16

Full Changelog: skwasjer/MockHttp@v3.0.1...v4.0.0

The changes above were previously pre-released as v3.1.0-rcXXX but there are numerous (breaking) changes that warrant a major release.

v4.0.0-pre1

What's Changed

  • Add new Fluent response API by @​skwasjer in skwasjer/MockHttp#10 See also #9 This is a complete replacement of the old response builder API's, and thus likely will require you to refactor your tests (I'm sorry but such is the price of improvement sometimes :( ). See wiki for new API docs/examples. The request matching API's have largely stayed the same, but some extension methods were renamed for consistency.
  • Added .NET 7 target framework

... (truncated)

Changelog

Sourced from skwas.MockHttp's changelog.

v4.0.0

  • Add new Fluent response API by @​skwasjer in #10 See also #9 This is a complete replacement of the old response builder API's, and thus likely will require you to refactor your tests (I'm sorry but such is the price of improvement sometimes :( ). See wiki for new API docs/examples. The request matching API's have largely stayed the same, but some extension methods were renamed for consistency.
  • Added .NET 7 target framework
  • Add stream that rate limits response streams. by @​skwasjer in #17
  • Additional guards (Argument(Null)Exception) for certain extensions.
  • Fix static code analysis warnings.
  • Bump Microsoft.AspNet.WebApi.Client from 5.2.7 to 5.2.9 by @​dependabot in #23
  • Enable nullable by @​skwasjer in #27
  • Remove obsolete/deprecated code (+semver:major) by @​skwasjer in #16
  • Removed obsolete ObjectResponseStrategy and its extensions.
  • Removed obsolete MockHttpHandler.VerifyNoOtherCalls(). Use the replacement VerifyNoOtherRequests()
  • Removed obsolete UrlMatcher and its extensions.

v3.1.0-rc0003

  • Added .XmlBody() response builder extension for LINQ to XML.

v3.1.0-rc0002

  • fix: allow zero timespan in ServerTimeout() and ClientTimeout().
  • fix: do not allow RateLimitedStream if the underlying stream is not seekable (except for via stream factory).
Commits

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)

Bumps [skwas.MockHttp](https://github.com/skwasjer/MockHttp) from 3.1.0-rc0001 to 4.0.0.
- [Release notes](https://github.com/skwasjer/MockHttp/releases)
- [Changelog](https://github.com/skwasjer/MockHttp/blob/main/CHANGELOG.md)
- [Commits](https://github.com/skwasjer/MockHttp/commits/v4.0.0)

---
updated-dependencies:
- dependency-name: skwas.MockHttp
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 3, 2023
@skwasjer
Copy link
Owner

skwasjer commented Sep 2, 2023

@dependabot recreate

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 2, 2023

Superseded by #23.

@dependabot dependabot bot closed this Sep 2, 2023
@dependabot dependabot bot deleted the dependabot/nuget/main/skwas.MockHttp-4.0.0 branch September 2, 2023 09:13
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant