Skip to content

Releases: graphql-python/gql

v3.0.0a5

21 Nov 11:33
Compare
Choose a tag to compare
v3.0.0a5 Pre-release
Pre-release

Breaking Changes

  • The schema is now always fetched at the beginning of the first session if fetch_schema_from_transport is set to True (#167)
  • Complete Refactor of the DSL Module (#169):
    • The DSLSchema only needs a schema, a Client is no more needed.
    • New dsl_gql function to convert the DSL operations into a Document
    • This allows DSL queries to be executed in a session instead of a client (Solves #138)
    • Added typing annotations
    • Added code documentation and sphinx docs (Solves #82)
    • Supports Subscriptions
    • Fix nested input arguments
    • Allow to set the alias directly in the select method
    • Allow multiple operations in a document
    • Allow to set the operation name

Maintenance

  • Update aiohttp to >= 3.7.1 (currently 3.7.3)
  • Update yarl to >= 1.6.0

v3.0.0a4

01 Nov 12:53
Compare
Choose a tag to compare
v3.0.0a4 Pre-release
Pre-release

Breaking Changes:

  • Optional dependencies for transports (#158):
    • It is now necessary to request additional dependencies when installing gql
    • It is no more possible to import transports directly from gql (Sorry...)
    • Please check the new installation documentation

Improvements:

  • aiohttp and requests transports logging (#157)
  • Better transport exception messages (#155)

Documentation:

  • Adding IPython section (#165)
  • Adding Logging section (#157)

Maintenance:

  • Stable Python 3.9 support (#160)
  • Update aiohttp from 3.6.2 to 3.7.1 (#159)

v3.0.0a3

15 Oct 20:23
Compare
Choose a tag to compare
v3.0.0a3 Pre-release
Pre-release

Breaking changes:

  • gql-cli script
    • Now printing result as json
    • Now working with multi-lines queries, using Ctrl-D (EOF) to execute queries
    • Using --variables instead of --params

New features:

  • File upload support (#145)
  • improved gql-cli script (#148)

Bugs corrected:

  • DSL allow to use GraphQL keys named type (#151)
  • Yarl dependency restricted to <1.6

v3.0.0a2

27 Sep 20:08
Compare
Choose a tag to compare
v3.0.0a2 Pre-release
Pre-release

Another alpha release of the 3.0 branch.

Bugs corrected:

  • Fix running execute and subscribe of client in a Thread (#135)
  • Fix race condition in websocket transport close (#133)
  • DSL: Fixed bug where a nested GraphQLInputObjectType is causing infinite recursive calls (#132)
  • Raises "KeyError" when argument is invalid on DSL. (#121)

New features:

  • Adding a new transport class to handle Phoenix channels (#100)
  • add the data property in TransportQueryError (#136)

Other improvements:

  • Migrated from Travis to GitHub actions
  • Migrated from coveralls to codecov
  • New documentation generated with sphinx, hosted on readthedocs.io

v3.0.0a1

13 Jul 16:37
Compare
Choose a tag to compare
v3.0.0a1 Pre-release
Pre-release

This is the second alpha release of the "modern" 3.0 branch.

The main improvements in this version are:

  • Fix some issues with Hasura backend:
    • optional variables an operation name for aiohttp and websockets transports (#94)
    • ignoring keep-alive messages arriving before the connection_ack message (#110)
  • Using more specific exceptions (#95)
  • It is now possible to get all the returned errors in the TransportQueryError exception (#96)
  • Documentation: Improved README.md and added coding guidelines to CONTRIBUTING.md (#97 #114)
  • 100% tests coverage (#107)
  • Graceful shutdown for synchronous subscriptions (#99)
  • type_def argument in Client is now deprecated in favor of schema (#113)

v3.0.0a0

17 May 22:22
Compare
Choose a tag to compare
v3.0.0a0 Pre-release
Pre-release

This is the first alpha version in the "modern" branch of gql.

This branch is based on GraphQL-core 3 and supports Python 3.6+.

The main improvements in this version are:

  • Set use_json default true by default in requests transport (#16)
  • Support different operation names in requests transport (#21)
  • New websockets and http async transports using asyncio (#70)
  • Allow to pass arguments to websockets.connect (#83)
  • LocalSchemaTransport is now an AsyncTransport (#84)
  • New connect method in requests transports (#87)

Please give us your feedback so that we can publish beta and final releases soon.

v2.0.0

17 May 22:16
Compare
Choose a tag to compare

This is the first version in the "legacy" branch of gql.

This branch is based on GraphQL-core 2 and supports Python 2.7 and 3.5+.

We recommend upgrading to Python 3 and using the modern branch starting with v3.0.0.