Skip to content

fix(deps): update dependency gql to v4#5233

Open
red-hat-konflux[bot] wants to merge 1 commit intomasterfrom
konflux/mintmaker/master/gql-4.x
Open

fix(deps): update dependency gql to v4#5233
red-hat-konflux[bot] wants to merge 1 commit intomasterfrom
konflux/mintmaker/master/gql-4.x

Conversation

@red-hat-konflux
Copy link
Contributor

@red-hat-konflux red-hat-konflux bot commented Oct 6, 2025

This PR contains the following updates:

Package Change Age Confidence
gql ==3.1.0 -> ==4.0.0 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

graphql-python/gql (gql)

v4.0.0

Compare Source

Breaking Changes
  • Change transports prototype using GraphQLRequest (#​551)
  • Using GraphQLRequest instead of DocumentNode for gql, execute, subscribe methods (#​556):
    This is a big change:
    • the gql and dsl_gql methods will now return a GraphQLRequest instead of a Document Node
      a GraphQLRequest is an object containing the document and optional variable_values and operation_name
    • ALL the execute and subscribe methods now receive a GraphQLRequest as main argument instead of
      a DocumentNode, variable_values and operation_name arguments
    • The old method of sending variable_values as an argument of execute or subscribe still works but is deprecated
      See https://gql.readthedocs.io/en/latest/usage/variables.html for the new syntax.
  • Fix subscription task cancel exception swallow (#​548):
    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.
  • Clean up the file upload interface with FileVar class (#​549):
    The file upload functionality has been modified to require FileVar instances
    for uploaded files (the old method still works but is deprecated).
    See https://gql.readthedocs.io/en/latest/usage/file_upload.html
  • Set logging level to DEBUG for all transports (#​552)
  • introspection now requests deprecated input fields by default (#​553)
    Note that some backends might not support this and return Unknown argument includeDeprecated. See #​564
  • Trapping dependencies Exceptions into TransportConnectionFailed (#​558):
    Now gql will trap Exceptions raised by dependencies when executing a request and will
    encapsulate that Exception into the TransportConnectionFailed Exception
  • Set ssl=True by default for AIOHTTPTransport (#​538) (issue #​529)
  • New TransportConnectionClosed Exception replacing ConnectionClosed Exception (#​536)
  • websocket attribute removed from transport, now using _connected instead (#​536)
  • Upgrade lastest websockets and Exceptions overhaul (#​543)
Features

Batching requests is now fully supported, on sync or async transports, with automatic batching:

  • Implementation of execute_batch for async transports (#​550)
  • Implementation of automatic batching for async (#​554)

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:

    • Created abstract AdapterConnection interface in common/adapters/connection.py
    • Implemented concrete WebSocketsAdapter to wrap the websockets library
    • Moved websockets_base.py to common/base.py maintaining better structure which is independant of the websockets library used
    • Added new TransportConnectionClosed exception for clearer error handling
    • Reorganized code with proper separation of concerns:
    • Moved common functionality into dedicated adapters folder
    • Isolated connection handling from transport business logic
    • Separated ListenerQueue into its own file for better modularity
Misc
  • Remove MIT license classifier (#​555)
  • Refactor transports (#​557)
  • bump aiohttp to 3.11.2 (#​541)
  • Bumping all the dev dependencies to latest versions (#​540)
  • Bump test dependencies (#​539)
  • Update pytest to 8.3.4 and pytest-asyncio to 0.25.3 (#​537)

v3.5.3

Compare Source

  • Bump graphql-core to v3.2.6 #​547

v3.5.2

Compare Source

Now supporting graphql-core v3.2.4 again (See issue #​534)

  • Allow graphql-core 3.2.4 by retrofitting introspection commits #​535

v3.5.1

Compare Source

3.5.1

Issue #​529 reported that by default the AIOHTTPTransport was not validating ssl certificates
(a self-certificate was accepted by default).

This version adds a warning to warn users (See PR #​533).

As a workaround, using ssl=True in the transport arguments fix the issue.

graphql-core has been restricted to <3.2.4 to fix tests.

A new stable version will be made shortly.

v3.5.0

Compare Source

IMPORTANT: graphql-core has been reverted to the stable versions 3.2.x
See #​427
A new pre-release version will be made shortly with the graphql-core versions 3.3.x

New features
  • Add execute-timeout argument for gql-cli (#​349)
  • Add HTTPX transport (#​370)
  • Don't try to close the aiohttp session if connector_owner is False (#​382)
  • Feature allow to set the content-type of file uploads (#​386)
  • Allow to configure the introspection query sent to recover the schema (#​402)
  • Python 3.11 support (#​410)
  • Make retry backoff and status codes customizable for the requests transport (#​421)
  • Support batching queries using sync transports (#​431)
  • Support automatic batching of sync requests coming from different threads (#​436)
  • httpx transport now working with trio (#​455)
    new anyio dependency added
Bug fixes
  • Fix KeyError when errors is not iterable (#​359)
  • Handle JSON response being None (#​365)
  • Get response headers even with 4xx return code (#​367)
  • TransportQueryError should extend TransportError (#​392)
  • Fix sync subscribe graceful shutdown (#​395)
  • Restrict urllib3 to versions 1.x (#​413)
    This should fix the problems which appeared when requests version 2.30 bumped urllib3 to a 2.x version.
  • DSLSchema transform type attribute assert into AttributeError (#​409)
  • Fix typo response_headers in httpx transport (#​407)
  • Allow alias on DSLMetaField (#​405)
  • Fix parse_results with fragments (#​446)
  • Fix missing empty directives in DSL nodes (#​448)
Documentation
  • Add documentation on websockets level ping frames (#​345)
  • Minor Spelling Mistake (#​351)
  • Add phoenix channel transport example (#​354)
  • DOC minor typo (#​396)
Misc
  • Make AsyncTransport and Transport proper abstract base classes (#​350)
  • Update graphql-core to 3.3.0 and dropping support for Python 3.6 (#​363)
  • Update Sphinx dev dependency to 5.3.0 (#​371)
  • Update aiohttp minimum dependency version to 3.8.0 (#​393)
  • Bump websockets dependency to allow 11.x versions (#​424)
  • Adjust aiohttp pin (#​425)
  • Validate the argument of the gql function (#​435)
  • Switch ubuntu-latest to ubuntu-20.04 to fix github actions
  • Bump vcrpy and requests_toolbelt (#​440) : allows users to use urllib3 2.x versions
  • Fix automatic documentation build on readthedocs.io:
    readthedocs remove system_packages: true in config
  • DOC explain how to install pre-releases versions
  • Fix tests with Python 3.12 (#​442)
  • Adding node_tree method in utilities to debug and compare DocumentNode instances (#​449)

v3.4.1

Compare Source

Fixes
  • Restrict urllib3 to versions 1.x (#​413).
    This should fix the problems which appeared when requests version 2.30 bumped urllib3 to a 2.x version.

v3.4.0

Compare Source

New features
Bug fixes
  • Allow omitting optional arguments with serialize_variables=True (#​338)
Documentation
  • DOC Add basic example result in README (#​336)

v3.3.0

Compare Source

New features
  • DSL Add default method for variables (#​322)
Fixes
  • Check for errors during fetch_schema() (#​328)
  • Fix parsing of None with parse_results=True (#​326)
Documentation
  • Add doc to install gql with conda (#​321)

v3.2.0

Compare Source

New features
  • DSL: support custom names for root operation types (#​320)
Fixes
  • Fix gql-cli signal issue on windows (fixed in #​311)
  • Represent serialized floats to approximately python float precision (#​318)
Maintenance
  • Update black dev dependency to 22.3.0 (#​313)
  • replace use of scripts with entry_points (#​311)
  • build Python wheel (#​312)
Documentation
  • DSL add note for arguments with Python keywords (#​317)

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

To execute skipped test pipelines write comment /ok-to-test.


Documentation

Find out how to configure dependency updates in MintMaker documentation or see all available configuration options in Renovate documentation.

@red-hat-konflux red-hat-konflux bot force-pushed the konflux/mintmaker/master/gql-4.x branch from ff35b8f to 2bb1250 Compare October 17, 2025 16:14
@red-hat-konflux red-hat-konflux bot force-pushed the konflux/mintmaker/master/gql-4.x branch 6 times, most recently from 55738ee to d978dc3 Compare November 17, 2025 08:16
@red-hat-konflux red-hat-konflux bot force-pushed the konflux/mintmaker/master/gql-4.x branch from d978dc3 to 4f66034 Compare January 20, 2026 12:17
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
@red-hat-konflux red-hat-konflux bot force-pushed the konflux/mintmaker/master/gql-4.x branch from 4f66034 to a4e5333 Compare January 26, 2026 08:16
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.

0 participants