chore(deps): update dependency gql to v4 #3252
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
>=3.5.0,<4
->>=4,<5
==3.5.3
->==4.0.0
Release Notes
graphql-python/gql (gql)
v4.0.0
Compare Source
Breaking Changes
This is a big change:
gql
anddsl_gql
methods will now return aGraphQLRequest
instead of aDocument
Nodea
GraphQLRequest
is an object containing the document and optionalvariable_values
andoperation_name
execute
andsubscribe
methods now receive aGraphQLRequest
as main argument instead ofa
DocumentNode
,variable_values
andoperation_name
argumentsvariable_values
as an argument ofexecute
orsubscribe
still works but is deprecatedSee https://gql.readthedocs.io/en/latest/usage/variables.html for the new syntax.
Previously if a task was cancelled while a subscription task was active,
the
asyncio.CancelledError
Exception would be swallowed by our code.This is not the case anymore so you should now trap that Exception yourself.
The file upload functionality has been modified to require
FileVar
instancesfor uploaded files (the old method still works but is deprecated).
See https://gql.readthedocs.io/en/latest/usage/file\_upload.html
Now gql will trap Exceptions raised by dependencies when executing a request and will
encapsulate that Exception into the
TransportConnectionFailed
ExceptionTransportConnectionClosed
Exception replacingConnectionClosed
Exception (#536)websocket
attribute removed from transport, now using_connected
instead (#536)Features
Batching requests is now fully supported, on sync or async transports, with automatic batching:
See https://gql.readthedocs.io/en/latest/advanced/batching\_requests.html
Fixes
Fix httpx test deprecated warning (#542)
Refactor websockets transports (#536) :
Refactor WebSockets Transport with Dependency Injection Architecture
This major architectural improvement implements dependency injection patterns across the WebSockets transport layer, creating a more modular, testable, and extensible system:
Misc
Configuration
📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.