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): update module github.com/99designs/gqlgen to v0.17.29 #64

Merged
merged 1 commit into from
Apr 20, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 11, 2023

Mend Renovate

This PR contains the following updates:

Package Type Update Change
github.com/99designs/gqlgen require patch v0.17.28 -> v0.17.29

Release Notes

99designs/gqlgen

v0.17.29

Compare Source

7bc1f626 Read gqlgen.yml from io.Reader. (#​2607)
  • Update config.go

Add ReadConfig

  • Add tests

  • Update config_test.go

remove extra space to fix lint checks

  • Update config.go

Need to return the config

50c2829c Transport for application/x-www-form-urlencoded content type (#​2611)
  • Renamed 'form' transport to 'form_multipart'.

There are multiple ways form data can be encoded. 'multipart' is
just one of them - there are also 'application/x-www-form-urlencoded'
(which will be added in next commit) and 'text/plain' encodings.

Let each encoding have it's own form_xxxx file and tests.

  • Adds transport for application/x-www-form-urlencoded content type.

This commit adds transport that handles form POST with content
type set to 'application/x-www-form-urlencoded'.

Form body can be json, urlencoded parameters or plain text.

Example:

 curl -X POST 'http://server/query' -d '{name}' -H "Content-Type: application/x-www-form-urlencoded"

Enable it in your GQL server with:

srv.AddTransport(transport.UrlEncodedForm{})
  • golangci-lint: change ifElseChain to switch.

No other changes but this rewrite to switch.

8b38c0e9 Add on-close handler for websockets. (#​2612)
  • working without test

  • test

45488157 Transport for application/graphql contentType (#​2592)
  • Adds application/graphql transport layer

This commit adds 'application/graphql' transport. It is based
on POST metod and has only the 'query' part in it's body.

See: https://graphql.org/learn/serving-over-http/#post-request and
it's comment about this content-type.

An example of correct application/graphql query is:

curl 'http://host/graphql' -d '{time{now}}' -H "Content-Type: application/graphql"

Some clients prefix body with 'query=':

-d 'query={time{now}}'

Some clients html encode body payload:

-d 'query=%7Btime%7Bnow%7D%7D'

We cleanup both in cleanupBody() method.

Tests are in http_graphql_test.go file.

  • Adds tests for GRAPHQL transport response headers.

GRAPHQL transport (like GET, POST and MULTIPART transports) can
have specific response headers added.

This commit adds tests for it and changes doRequest() method
so that we can set inbound Content-Type. Graphql transport
uses 'application/graphql' content-type and not 'application/json'.

  • Adds GRAPHQL transfer to the documentation.
  • 21054eb Cleanup only non-gqlgen packages when reloading all packages (#​2598)

  • 1c6bf9b v0.17.28 postrelease bump


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@tessig tessig merged commit 941dc81 into master Apr 20, 2023
4 checks passed
@tessig tessig deleted the renovate/github.com-99designs-gqlgen-0.x branch April 20, 2023 13:05
@github-actions github-actions bot mentioned this pull request Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant