Skip to content

Bump EmbedIO from 2.2.7 to 2.7.4#344

Merged
JohnnyCrazy merged 3 commits intomasterfrom
dependabot/nuget/EmbedIO-2.7.4
Jun 3, 2019
Merged

Bump EmbedIO from 2.2.7 to 2.7.4#344
JohnnyCrazy merged 3 commits intomasterfrom
dependabot/nuget/EmbedIO-2.7.4

Conversation

@dependabot-preview
Copy link
Contributor

Bumps EmbedIO from 2.2.7 to 2.7.4.

Release notes

Sourced from EmbedIO's releases.

Mark Obsolete items and WebSocket subprotocol selector

Some extensions methods, properties, and classes are marked as Obsolete because they are no longer part of the next major version of EmbedIO. One important breaking change is we are no longer supporting Wildcard routing so we encourage to change your code to Regex routing.

Also, this version includes a subprotocol selector for WebSocket #285.

Update dependencies

Fix issue with SWAN JSON issues updating this dependency.

Update WebApiController

Breaking changes

This version replaces the logic of how WebApiController works but introducing new Extension Methods and how the Request and Response are handles in the controller's method.

The core change is that WebApiController is no longer implementing the interface IHttpContext. Instead of this, the WebApiController contains a property HttpContext where this instance is located. This affect how you can, for example, response a JSON:

[WebApiHandler(HttpVerbs.Post, "/api/data")]
public async Task<bool> PostData() 
{
    // previous code
    return await this.JsonResponseAsync(new { error = "Invalid Product" });

    // new code
    return await HttpContext.JsonResponseAsync(new { error = "Invalid Product" });
    // or using the new virtual methods
    return await Ok(new { error = "Invalid Product" });
}

Add Items to IHttpContext

  • Add Items to IHttpContext
  • Add virtual methods to WebApiController
  • Fix #278 (Thanks @​rdeago)

Improvements to StaticFileModule

Thanks to @​rdeago for the PR #275 (Issue #272).

Smaller EmbedIO

Remove the WebSocket client and fix several issues.

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.


Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking Bump now in your Dependabot dashboard.

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 ignore this [patch|minor|major] version will close this PR and stop Dependabot creating any more for this minor/major 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 use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Finally, you can contact us by mentioning @dependabot.


Dependabot has been acquired by GitHub  🎉

@JohnnyCrazy
Copy link
Owner

Needs some refactoring in the code

@dependabot-preview
Copy link
Contributor Author

A newer version of EmbedIO exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

@JohnnyCrazy JohnnyCrazy merged commit 94d84e1 into master Jun 3, 2019
@JohnnyCrazy JohnnyCrazy deleted the dependabot/nuget/EmbedIO-2.7.4 branch June 3, 2019 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant