Skip to content

Bump github.com/hasura/go-graphql-client from 0.8.0 to 0.9.2 #9

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

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 18, 2023

Bumps github.com/hasura/go-graphql-client from 0.8.0 to 0.9.2.

Release notes

Sourced from github.com/hasura/go-graphql-client's releases.

v0.9.2

This release adds new callback events for the subscription client that are useful for debugging and testing.

// OnConnectionAlive event is triggered whenever the WebSocket connection 
// receives a connection alive message (differs per protocol)
client.OnConnectionAlive(fn func())
// OnSubscriptionComplete event is triggered when the subscription receives
// a terminated message from the server
client.OnSubscriptionComplete(fn func(sub Subscription))

New settings are also added to control the retry and exit behaviors of the subscription client.

client.WithoutLogTypes(graphql.GQLData, graphql.GQLConnectionKeepAlive).
    // the client should exit when all subscriptions were closed, default true
    WithExitWhenNoSubscription(false).
    // WithRetryStatusCodes allow retrying the subscription connection when receiving one of these codes
    // the input parameter can be a number string or range, e.g 4000-5000 
   WithRetryStatusCodes("4000", "4000-4050")

Changelog

  • add OnConnectionAlive event to the subscription client (#77) @​sermojohn
  • fix: prevent panic on late message after unsubscribed subscription (#79) @​sermojohn
  • improve the subscription life cycle events and add new settings (#82) @​hgiasac

v0.9.1

Changelog

  • improve the subscription client, fix goroutine leaks and data race issues (hasura/go-graphql-client#76) @​hgiasac
  • merge the reset subscription logic into the Run method. If you call the Run method when the subscription client is running, the client will restart the current connection.
  • print the extra Extensions information in the Error object

v0.9.0

Highlight

Support graphql-ws protocol

The subscription client now supports 2 protocols:

The protocol can be switchable by the WithProtocol function. By default, the subscription client uses the subscriptions-transport-ws protocol.

client := graphql.NewSubscriptionClient("wss://example.com/graphql").
</tr></table> 

... (truncated)

Commits
  • 0acd9d9 improve the subscription life cycle event and add new settings (#82)
  • 3bcda95 fix: prevent panic on late message after unsubscribed (#79)
  • aa8b2bc feat: provide callback for connection alive messages (#77)
  • bb54675 subscription improvement, merge reset subscription logic into Run (#76)
  • 10471cf patch gin v1.7.7 to fix the security issue (#75)
  • 0418b98 Allow using custom HTTP clients (#68)
  • 1265577 support graphql-ws protocol (#67)
  • 0ea43e0 docs: clarify usage of structs as variables (#66)
  • 7943bd6 Fix typo in Events section of the readme file (#63)
  • 4e08b2d refactor: expose jsonutil (#62)
  • 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)

Bumps [github.com/hasura/go-graphql-client](https://github.com/hasura/go-graphql-client) from 0.8.0 to 0.9.2.
- [Release notes](https://github.com/hasura/go-graphql-client/releases)
- [Commits](hasura/go-graphql-client@v0.8.0...v0.9.2)

---
updated-dependencies:
- dependency-name: github.com/hasura/go-graphql-client
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

codecov bot commented Mar 18, 2023

Codecov Report

Merging #9 (8ecd22e) into main (62dc60d) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main       #9   +/-   ##
=======================================
  Coverage   97.39%   97.39%           
=======================================
  Files           8        8           
  Lines         882      882           
=======================================
  Hits          859      859           
  Misses         17       17           
  Partials        6        6           
Flag Coverage Δ
unittests 97.39% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Apr 28, 2023

Superseded by #11.

@dependabot dependabot bot closed this Apr 28, 2023
@dependabot dependabot bot deleted the dependabot/go_modules/github.com/hasura/go-graphql-client-0.9.2 branch April 28, 2023 00:09
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.

0 participants