graphql-rust / juniper

GraphQL server library for Rust
Other
5.72k stars 425 forks source link

Update rocket requirement from =0.5.0-rc.3 to =0.5.0-rc.4 #1205

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Updates the requirements on rocket to permit the latest version.

Changelog

Sourced from rocket's changelog.

Version 0.5.0-rc.4 (Nov 1, 2023)

Major Features and Improvements

  • Introduced request connection upgrade APIs.

    The APIs allow responders to handle upgrade requests by registering IoHandlers for upgraded protocols. The IoHandler can perform raw byte I/O with the client. This functionality is used to implement WebSocket support by the newly introduced rocket_ws library.

  • Introduced WebSocket support: rocket_ws.

    The newly introduced rocket_ws contrib library -- entirely external to Rocket itself -- provides complete, multi-modal support for interacting with clients over WebSockets. Modalities include async streams:

    #[get("/echo?compose")]
    fn echo_compose(ws: ws::WebSocket) -> ws::Stream!['static] {
        ws.stream(|io| io)
    }
    

    And generator syntax, among others:

    #[get("/echo?stream")]
    fn echo_stream(ws: ws::WebSocket) -> ws::Stream!['static] {
        ws::Stream! { ws =>
            for await message in ws {
                yield message?;
            }
        }
    }
    

Breaking Changes

  • The types of responders in [response::status] were unified to all be of the form Status<R>(R).

    Previously, some responders were of the form Status<R>(Option<R>).

  • [Custom form errors] must now specify an associated Status.

... (truncated)

Commits
  • 24ca5e8 New version: 0.5.0-rc.4.
  • 208848d Add CHANGELOG for 0.5.0-rc.4.
  • 2ae91b9 Update UI tests.
  • 11fed5a Document '&[u8]' form/data guard, limits.
  • 8ed64d0 Fix typo in pastebin tutorial: 'route' -> 'wrote'.
  • 6f9d671 Add a "clear message" button to cookies example.
  • 654b1c3 Set 'SameSite' to 'Lax' on removal cookies.
  • df3a4e0 Qualm various emerging unused warnings.
  • 186ec84 Improve forwarding status code precision.
  • b6430e9 Rename 'Outcome::Failure' to 'Outcome::Error'.
  • Additional commits viewable in compare view


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 show ignore conditions` will show all of the ignore conditions of the specified dependency - `@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)