Skip to content

Releases: graphql-python/graphene

v2.1.0

30 Mar 06:00
Compare
Choose a tag to compare

This is a minor release, fixing a lot of small issues, with better support for Date, DateTime and Time scalars and tons of improvements on docs.
Thanks to the effort of contributors for this new release @jkimbo @danpalmer @g-- @dfee @Prince-Leto @simonwoerpel @pjdelport @anisjonischkeit @abawchen 🎉

Changelog

  • Extend support for subclassing InputObjectType meta a16c5ba
  • Raise better error if type is missing from Schema d6968c2
  • Allow ObjectType to set connection name a2178dc
  • Fixed to_camel_case utility function be1f7d7
  • Add py36 to tox envlist 113cf8d
  • Enable extra options in mutation fields a7a4ba6
  • Improved support / assertion for GraphQL types in Schema 0971a05
  • Fixed required=True in ConnectionField 8c7ca74
  • Exclude examples module in package 79f7cc0
  • Made Date, DateTime and Time scalars to fail with GraphQLError is format is invalid 84fbf5d 9973fd3
  • Fixed Meta included in Enum members 2594cdb
  • Fixed deprecations url in deprecation message a96ed55
  • Fixed str on abstract types, improved repr 562cafc
  • Use aniso8601 instead of iso8601 b4255e5
  • Expose Date, DateTime and Time from main package

Docs

  • Updated docs layout d6df149
  • Relay documentation reflect latest 2.0 API ec32c25
  • Use pythonic terminology in middleware 834d52f
  • Added Date scalar to documentation 98366c6
  • Document functional middleware 92f6a49
  • Improved Scalar documentation 5036d16
  • Fixed typos in relay Node examples 7afeaa0
  • Fixed Relay links 8123c4a
  • Updated middleware example to support introspection 035ff7e
  • Fix broken Github link tags 4fa0df4
  • Added documentation in NonNull lists e26c0a3
  • Fixed relay Node example d3b7085

v2.0.1

15 Nov 07:29
e71a521
Compare
Choose a tag to compare

Changelog

  • Prevent breaking changes for future releases 71177fe
  • Support for Enum description lambda f79eb57
  • Added Date type in datetime 045d5ff
  • Improved ObjectType Container initialization 3ee9413 (Fix for #585)
  • Non provided fields in InputObjectType value should be None (rather than the Field) b5abccb
  • Improved tests for nested InputObjectType f669718

Docs

  • Fix minor gramatical error ef507c7
  • Fix example of file upload 98c2af3
  • Fixed args example in docs middleware 1555c98
  • Fix Union docs 3412dba

v2.0.0

25 Oct 17:44
Compare
Choose a tag to compare

v2.0.0 🎉

Please read the upgrade guide to learn how to upgrade: https://github.com/graphql-python/graphene/blob/master/UPGRADE-v2.0.md

  • Simpler Graphene types implementation (thanks to __init_subclass__, and a polyfill implementation for Python 2).
  • Simplified resolver API
  • Type Options from class arguments (only available in Python 3)

And...
Subscriptions!!

v1.4.1

28 Jun 05:09
Compare
Choose a tag to compare

Changelog

  • Added type consistency for Arguments #467
  • Include LICENSE in manifest for source bundles d7dff53
  • Improved test framework to support thenables returned when executing queries 645bfdd
  • Improved ClientIDMutation tests 6c2b940
  • Fixed Argument output name 9852529 (important, please check #490)

Docs

  • Update Relay doc link 5052536
  • Fixed typo in docs execution bad6f5a
  • Improved Upgrade guide to 1.0 b5d15b6
  • Fixed typo in DataLoader docs 0a9dbb6

v1.4.0

20 Apr 08:03
Compare
Choose a tag to compare

Changelog

  • Improved Enums comparison and getters afed25a
  • First version of Graphene test Client (graphene.test.Client) dfcd7f2
  • Added possible_types option in ObjectType.Meta that mimics is_type_of -> isinstance(root, possible_types) a7511d3
  • Allow node inner types to be lazy e92b03b
  • Updated promise package requirement to 2.0
  • Updated graphql-core package requirement to 1.1

Docs

  • Added dataloader (N+1) docs
  • Update basic schema with arguments in tutorial doc 06757f1
  • Added testing docs (with snapshot testing) 60e2902 038f81e

v1.3.0

07 Apr 05:28
Compare
Choose a tag to compare

Changelog

  • Fix docstring whitespace 62e58bd
  • Added optional default_resolver in ObjectType 98825fa
  • Fix ObjectType inheritance with custom Meta ad251e9 48efec3
  • Fixed circular Union/Interfaces d4d8a76
  • Improved lazy_import to accept also dotted attributes d594a0e
  • Use Promise.resolve instead of promisify (so we adapt to Promise 2.0) bd0d418
  • Improved lazy types support in Field, InputField, List and NonNull accepting also now string attributes (will be treated as imports, like: Field("graphene.String") 4b71465

Docs

  • Added Sphinx to requirements in docs e405a20
  • Fix indent in mutation docs 3a198d0
  • Spelling/Grammar fix in docs 313a004
  • Fixed typo in link to graphql.org d86bbd8

v1.2.0

21 Feb 06:59
Compare
Choose a tag to compare

Changelog

  • partial functions can be now passed as type to Field 774e9bf
  • Added a generic scalar type: GenericScalar (based on @hung-phan work for JSON)
  • Refactor mounted type logic 27cd00b
  • Set Union as UnmountedType 2ef0e23
  • Allow class method to be used as field source f728542
  • Added a test packages to setup.py as extra_requires (so it's easier to install tests dependencies) 256c84a
  • Improved Node.get_node_from_global_id e8fc58a
  • Allow Dynamic Field to optionally include the schema on type creation and improved TypeMap validator 2f87698
  • Improved assertion messages ba29de5
  • Added lazy_import to graphene 7440064

Docs improvements

  • Fixed typos and some improvements in the docs dda3237
  • Fixed mutations example input code a749d02
  • Grammar fix on README 02eb685
  • Added docs on how to accept files in a mutation 1232ff3
  • Fix typos in Node docs 8dff91d
  • Added Apollo as a supported official client of Graphene 81c1cf3
  • Improved Mutation docs 8b0cd48
  • Added docs for List and NonNull e2cdd80

v1.1.3

02 Dec 05:23
Compare
Choose a tag to compare

Changelog

v1.1.2

23 Nov 07:42
Compare
Choose a tag to compare

Changelog

  • Added type getter in the schema when accessing its attrs. 5e0923b

    Now is possible to access Graphene types in a schema by typing schema.TYPE_NAME directly.

Breaking changes

  • Removed register method from graphene.Schema df2900e

Graphene 1.1.1 - Interface and Union fix

16 Nov 06:44
Compare
Choose a tag to compare

Changelog

  • Fixed resolved interfaces and unions that have is_type_of defined in the inner types when used inside List or NonNull 67c0872