Changelogs » Graphene

Graphene

3.0.0a0

First graphene release compatible with graphql-core v3 (graphql-core-next)

2.1.8

Changelog

* Bump pinned aniso8601 version
* Allow mutations to apply the interfaces META argument to have the payload object type implement the desired interfaces

2.1.7

Update graphql-relay dependency to fix incompatibility.

2.1.6

Changelog

* Fix malformed version on aniso8601 requirement (995) 431e93c

Documentation

* Revise documentation (969) 5cb7d91
* Expose livehtml autobuild in Makefile + Add API autodoc (971) da1359e

Full changelog: https://github.com/graphql-python/graphene/compare/v2.1.5...v2.1.6

2.1.5


      

2.1.3

Changelog
* Added `crunch` and `deduplicator` utitlities https://github.com/graphql-python/graphene/commit/fa5f5b0acbede77a27d2f6e24d651ac8d6ea8c74 https://github.com/graphql-python/graphene/commit/2e41db8d95daa3ab09c294118e20b7c38387e00a
* Permit subclassing arguments from Mutations https://github.com/graphql-python/graphene/commit/4346832f71564b63d6025c2c9ff88d1ffd241136
* Added precommit https://github.com/graphql-python/graphene/commit/ae7395f9da812a68f873f92cfaf8279896ce1d64
* Moved `Enum` library to `graphql-core`, use `graphql-core>=2.1` https://github.com/graphql-python/graphene/commit/d28dc68abca5597f44274e1dbd6d000ff3826084

Documentation
* Improved docs https://github.com/graphql-python/graphene/commit/9da46e8c998c14ec603fef2060af41530af5d45c
* Updated interface docs https://github.com/graphql-python/graphene/commit/9efdf4c46e26aa478ced7150d0f963d77c086ac7
* Improved Mutation Output docs https://github.com/graphql-python/graphene/commit/1b746e64609e4bc9d9baf880954415452b476812

2.1.2

Bugfix release to fix a couple of issues.
Thanks to the effort of contributors for this new release jlowin nxtman123 danpalmer   dan98765 femesq 🎉

Changelog
* Don't overwrite fields on InputObject 752
* Incorrectly formatted error message 751
* Fix warning output 748

Docs and Internal
* Update contributing docs about using tox and sync tox pytest cmd with travis 744
* Add isort precommit hook & run on all files 743
* Add flake8 pre-commit hook and manually edit files to pass flake8 validation 746
* Add pyupgrade pre-commit hook and run on all files 736
* Update README Contributing section to encourage use of virtualenv 765
* Fix parameter order for Relay's Root-field 754
* Add python3.6 classifier to setup.py 763

2.1.1

A small bugfix release to fix a couple of issues.
Thanks to the effort of contributors for this new release nikordaris dan98765 femesq devArtoria 🎉

Changelog
* Fix `default_value` on `NonNull` fields (9408ba70d165284ff7ab5efd159a62e1d40a9a7f)
* Add pre-commit tool to repository, and run on all files (730)
* Added partial support to Dynamic type (725)

Docs
* Improve v2 migrations docs (732)
* Add Graphene-Mongo to integrations list (711)

2.1.0

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 a16c5ba00be1d963d438c5e96962b79d1b145cc3
* Raise better error if type is missing from Schema d6968c2e92486dda40725c9ef99f450557003f2b
* Allow ObjectType to set connection name a2178dc22098a36e56d4cec021f984f4cae3649c
* Fixed `to_camel_case ` utility function be1f7d72a46f29eb491d3a6110fd955d0b72dea4
* Add py36 to tox envlist 113cf8da38dcac755599d4b26432e3eaccadc72a
* Enable extra options in mutation fields a7a4ba62af4cb8b00ffa6a9f8cf79bd87dfb5e95
* Improved support / assertion for GraphQL types in Schema 0971a05b33bf65cbc89038eebd85de5fec4e1dcf
* Fixed `required=True` in `ConnectionField` 8c7ca74c6f083007a7c83c843f494357aec69371
* Exclude examples module in package 79f7cc08e3c173e78ab33abe0d49404242f8d26d
* Made `Date`, `DateTime` and `Time` scalars to fail with `GraphQLError` is format is invalid 84fbf5dc23351c26a852271aa6529a60bce13735 9973fd314f6134a96a78617fee1caf21d592b6af
* Fixed `Meta` included in `Enum` members 2594cdb61409f8ecedf0958ee959f8f8ded3efbc
* Fixed deprecations url in deprecation message a96ed550bd0c67b7a9ec0b9f636f71c530441e5f
* Fixed `str` on abstract types, improved `repr` 562cafc14f66bbad7f76e7600fa0acd71d00194e
* Use `aniso8601` instead of `iso8601` b4255e55fd28ca5b31f86876fe3f95f38f0f0838
* Expose `Date`, `DateTime` and `Time` from main package


Docs
* Updated docs layout d6df14923dd47df69f7bec7909cb70809f31eea0
* Relay documentation reflect latest 2.0 API ec32c252e7fdb7354e42ac931a7a7ee412d4d56c
* Use pythonic terminology in middleware 834d52f9d3ca49e2a39fdf89da945f296b160c60
* Added `Date` scalar to documentation 98366c6add10fa1532301145e9768bffcbb09dc5
* Document functional middleware 92f6a496c5b0bb08ea976e5a675cc3310b85e585
* Improved `Scalar` documentation 5036d164b74038ad4ef82add05beb73def11c317
* Fixed typos in relay Node examples 7afeaa052bf90f9fabb5ded21f63cc724f1d1180
* Fixed Relay links 8123c4ad8f945ec2154ce6368e3ec78e4c76700a
* Updated middleware example to support introspection 035ff7ef885e9e158093359e93e5723298ab177e
* Fix broken Github link tags 4fa0df401af289c43ff7e3ec73492455446c275e
* Added documentation in `NonNull` lists e26c0a3717c4ff3f90ed8bd710436f8cb6ff4713
* Fixed relay `Node` example d3b708533d05ef13a6b15e7a3f29eac23f812a09

2.0.1

Changelog
* Prevent breaking changes for future releases 71177fe9776d8cf958ac3054885f891f49c1ef4d
* Support for Enum description lambda f79eb57c063f1e2d1594fc19d1c1863feb5fc862
* Added `Date` type in datetime 045d5fffbec0d32550b19421fa01a088f5cd0d8c
* Improved ObjectType Container initialization 3ee94131ae511d2d83116730dcc4a50258ced5af (Fix for 585)
* Non provided fields in `InputObjectType` value should be `None` (rather than the Field) b5abccb1dc733522df19d56e0906890531a700d3
* Improved tests for nested `InputObjectType` f6697188ee9cbbe22df5e6971ef9686b589f4daf

Docs
* Fix minor gramatical error ef507c7932db6f4c90c34589f8d8af2167975f7b
* Fix example of file upload 98c2af3fcc563fbdad75f15a04e69c38b9e61045
* Fixed args example in docs middleware 1555c988e05049e49f119d7684fc0172e469c283
* Fix Union docs 3412dba31fdd5e57dd545eebeb6a116f40f1cf37

2.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!!

1.4.1

Changelog
* Added type consistency for `Argument`s 467
* Include LICENSE in manifest for source bundles d7dff53f46967601a9b289a075a8bf7190431282
* Improved test framework to support thenables returned when executing queries 645bfddfe955e5a51b13a7d2e58714cdbb7166ab
* Improved ClientIDMutation tests 6c2b940a03ee708bb8788836bb7a298d5aed9c57
* Fixed Argument output name 985252920ce2e2701388e2e20f3cc74419ff3b85 (**important**, please check 490)

Docs
* Update Relay doc link 5052536787503290fee145ada575ec8810fdf308
* Fixed typo in docs execution bad6f5a18873c5ef6488910b8f58728b8ff1ac1e
* Improved Upgrade guide to 1.0 b5d15b635eabcf6004e222e77c6eb9ad0963cb32
* Fixed typo in `DataLoader` docs 0a9dbb608a0ee71dd556c0bd206a0b39bd5a337d

1.4.0

Changelog

* Improved `Enum`s comparison and getters afed25a18015643749439288a9536235232dd493
* First version of Graphene test `Client` (`graphene.test.Client`) dfcd7f256340301d7551e2af383e4e84454db097
* Added `possible_types` option in `ObjectType.Meta` that mimics `is_type_of` -> `isinstance(root, possible_types)` a7511d3a2c2eb59ad8342d3db85f18ea477ae379
* Allow node inner types to be lazy e92b03bed5e1a12c558d5b1c8a03b92eecff3218
* 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 06757f10c6cbfb3885531b02a2c93e94491380a5
* Added testing docs (with snapshot testing) 60e29028a8c7e025d5bbfe1d9f730c937829c98c 038f81e8e1931e1f5fb55cad80773bf6c2d2d09c

1.3.0

Changelog
* Fix docstring whitespace 62e58bd95325604186563f54c898736db9d39585
* Added optional default_resolver in `ObjectType` 98825fa4bc0f2fd6f88d11796b1093e0d63a51ee
* Fix `ObjectType` inheritance with custom Meta ad251e9a8dd46d212e39da67945df4fc3e02b361 48efec307ce245bfe692f75b5dc07c14d8bce15b
* Fixed circular Union/Interfaces d4d8a76a0936b8b8b90e6b316003c31c21e30500
* Improved `lazy_import` to accept also dotted attributes d594a0eca86102ce2ebf9633018437eef8997f42
* Use `Promise.resolve` instead of `promisify` (so we adapt to Promise 2.0) bd0d418986cf69b51801f8e4d361c0c9a5dbc17c
* Improved lazy types support in `Field`, `InputField`, `List` and `NonNull` accepting also now string attributes (will be treated as imports, like: `Field("graphene.String")` 4b714659225a93ea44e95ccdd9ad1b5ea9e36c05

Docs
* Added Sphinx to requirements in docs e405a20e3dad7862ae315077150f23b63293a8ea
* Fix indent in mutation docs 3a198d052acc01a8469dc03d0c0d798612830be2
* Spelling/Grammar fix in docs 313a0041414c729fba8c2270359628b1251ce960
* Fixed typo in link to graphql.org d86bbd8a8647bbcf9d668968977cc35c64f67f12

1.2.0

Changelog
- `partial` functions can be now passed as type to `Field` 774e9bf4639ca459d0a12a10e090d9ab671b6459
- Added a generic scalar type: `GenericScalar` (based on hung-phan work for `JSON`)
- Refactor mounted type logic 27cd00b9f9b9050b10f9c3c86841c5e4199be086
- Set `Union` as `UnmountedType` 2ef0e23dcf036aa41e7ee96dd2468c7177021829
- Allow class method to be used as field source f728542ce7d431359ed32f3522bea12d629eb329
- Added a `test` packages to setup.py as `extra_requires` (so it's easier to install tests dependencies) 256c84a9a535e62a04942d2e96f6972ea269bd78
- Improved `Node.get_node_from_global_id` e8fc58afd6f67d904cf40cf8a81bab4747c54fb8
- Allow `Dynamic` Field to optionally include the schema on type creation and improved `TypeMap` validator 2f87698a0b4951cdc685f22db0a28cae7090c08b
- Improved assertion messages ba29de567041d21cb4d033fb28364c085c9d3bdd
- Added `lazy_import` to graphene 74400642ed8cc0b3d84fa326cf609de35f3b42fc

Docs improvements
- Fixed typos and some improvements in the docs dda3237e0a6306ba2cb675d3cfecd00413562538
- Fixed mutations example input code a749d02663a078552dbc21ae035ff75afdf286e2
- Grammar fix on README 02eb6856ed72841f87bd532e91fe1dc123c0c9d2
- Added docs on how to accept files in a mutation 1232ff3ee1e4006a262be5e50664f44c6e635200
- Fix typos in `Node` docs 8dff91d4c689ea6a92c13a5a5520c1ce9c360e04
- Added Apollo as a supported official client of Graphene 81c1cf3d61e47527ff49a15e97cfdbabe88a8755
- Improved Mutation docs 8b0cd488d426dfec398a95f1c4b478ecee8c55cd
- Added docs for `List` and `NonNull` e2cdd80a5cc5524af0a45273fd257c08b0ff8bc2

1.1.3

Changelog
- Added new `Time` type to `graphene.types.datetime` 692d7e76ad06b0b0eb777c14197d041913519868
- Fixed promise-like compatibility in relay Connections 3df62d26a7962f1273df972da21b25ac75bc9cf3 (Related `promise` fix: https://github.com/syrusakbary/promise/commit/8b0d5da3dca2d99671b820478ef74353ac24c97b)

1.1.2

Changelog
- Added type getter in the schema when accessing its attrs. 5e0923b56073f42ce25da6628c46ebed120b0654

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

Breaking changes
- Removed `register` method from `graphene.Schema` df2900e215c88f78dc3fe213df78c8ea9832f3ea

1.1.1

Changelog
- Fixed resolved interfaces and unions that have `is_type_of` defined in the inner types when used inside `List` or `NonNull` 67c0872c9fceed737b2300d118e6950ee20e97fe

1.1.0

Changelog
- Updated datetime with tests 95280e4f7c2a4b372902d590f0b0f8bc13a57a85
- Improved Dynamic Field tests 822b030938533d4b2b182bd6bf64172f8816c0f4
- Fixed Dynamic Arguments 0a80119f5eabbee2e34d0aa755afb9847ae2cf2c
- Improved Promise Connection abstraction 760ccc83587396df9a2cbf5806b7f4fa73ba620e
- Relay Edges should be non null 495361ef53ffc3edb3ffa0966cdcb0f67618056c
- Fixed TOX dependencies d1a9bdb5c3d4c0bd04e165aff506d458b4ac93fe
- Fixed typo in Union initialization 937e257d609c51ad81675168a38792b6083d0e2f
- Node simplifications a22c9276e5ea033bf56f11c7b08e4a5ba034f03d
- Improved `List`/`NonNull` inner type exceptions 2e58f53f18050230f5947159334edf2528f78dca

Docs
- Fixed docs for unmounted instances 77e4ead0d76de2e7d0e99b4553140ad02b21b9b8
- Improved docs in unmounted types 47d7adf7b0f64efb9f687dd4a9574b4be39ba764
- Added middleware docs adfbffb267b8e4c7bf6067c743a22a1e3c990d90
- Fixed sentences to be more readable 3f0c01ed3c4775019c81b686c77734ff54a29900
- Added link to GraphQL.org c1f567c4e4ba86cf4525dd2acbf1518cacb0d616
- Added context example b1bffc4f8da66a143e43aeb7893293a2911526d3
- Added execution context cc776e8def58b0130e161c1bf244b39c5acab89a

And...
Added automatic PyPI upload 90e8e30a3a343e57789a4f2695ccf7eab1e3a29f :)

1.0.2

Changelog
- Connection resolvers can now return a Connection instance instead of a Iterator c7929234294a181993158b4439c24006e9ed1ebd
- Improved Arguments and List, NonNull instances to be comparable bd207b5f06a64dbbd610ea901f0d76c5b4918734
- Fixed overwritten `ConnectionField` arguments c961f0b3c60c3a7a6223d5218c912d69585aef5c
- Fixed unbound `mutate` method in `Mutation` 999bca84c98d452634dd530e374ea6b649167c64

1.0.1

Changelog
- Fixed requiring an overwrite of the `is_type_of` method in `ObjectType` in the case the resolver was returning an object that was not an instance of the type. [8030fea44318b9dfcda854c96dfa5091b266f95e]

1.0

More info here!

http://graphene-python.org/blog/graphene-production-ready/

Upgrade Guide

https://github.com/graphql-python/graphene/blob/master/UPGRADE-v1.0.md

0.10.2

Changelog
- Fixed unregistered types in `graphene.Schema` https://github.com/graphql-python/graphene/commit/da09bc321001213f5dc7e199e63378283f8ba501
- Improved Django choices:
- Use Django forcetext for choices https://github.com/graphql-python/graphene/commit/7f6598518e3704f256d966bcd4b136a109066216
- Fixed Django converter of field with grouped choices https://github.com/graphql-python/graphene/commit/9e715cd902be6c5bc8fd88d9783dfb92ad80e0f5
- Fixed ClientIDMutation GraphQL type name. https://github.com/graphql-python/graphene/commit/b9695c877abaf8a22d78ccb06f4c5be86de1f38d
- Fixed DDT double cursors for SQL debugging https://github.com/graphql-python/graphene/commit/7df1f8a88d1c8f3f9c2b2a5fc9841fd9e5bb74e8

0.10.1

Changelog
- Fixed bug when no middlewares are present https://github.com/graphql-python/graphene/commit/feb0825a639876ed02ea0914d4ce1163d1fd20ca
- Add test for auto_camelcase flag https://github.com/graphql-python/graphene/commit/161f19845163ca0323483d7045e26bf52df1c6c9

0.10.0

Changelog

Breaking:
- Removed the plugin functionality, replaced by with Middleware. 176

Bug fixes:
- Support `with_context` on ClientIDMutation.mutate_and_get_payload. https://github.com/graphql-python/graphene/commit/61e7beee7b9c83c55b7b47c3814f120e421400b6
- Added interfaces field into a ObjectType https://github.com/graphql-python/graphene/commit/10304eb8cf67f1bc563fe62aac8975ad23037f97
- Allow string references in InputTypes https://github.com/graphql-python/graphene/commit/d6740e9ff5a9c532dc58445a620a6ab9fb24bb0d
- Fixed django OneToOne inverse relationship conversion https://github.com/graphql-python/graphene/commit/b431bfe477282a261a57277adedcc10c3abd4bdc
- Allow numbers in to_constant https://github.com/graphql-python/graphene/commit/ae8a23bfb8c6d512f4ef94838a399d9d54904027
- Fix context arg in connections https://github.com/graphql-python/graphene/commit/89074492e0bf828e3ce1899c9542fe8dd247f4f1

0.9.1

Changelog
- Fixed package compatibility issue 71153061568dddd166276cff9390f237fc3d7525

0.9.0

Changelog
- Updated graphql-core version to `0.5.0`, with a improved way for executing queries
- Added the `with_context` decorator for having the context appended into the resolver arguments

0.8.0

Changelog

This Graphene version improves the Django integration
- Improved Django choice converter to GraphQL Enum type 68a9fb9fc4d25e0bbcd059183633c4531d7bbf3d
- Added ability for a Enum to be mounted as a instance (field) in `ObjectTypes`,`InputObjectTypes` or an argument e1a693e57c86e73ff42611c87d66cffca103dfa9
- Added FileField support in Django models a1dd2b629320ad70de618c82dab8a0050b38f56d
- Added support for Postgres fields in Django models 7f965003538c61614b5d31ad09c4e9d69fc831a0
- Added custom scalars `DateTime` and `JSONString` 12c69c0635e67225df9382dc19dbca62b96381e2

Fixes
- Allow empty list in SQLAlchemyConnectionField 653e67de97e2e0045051032548d919321ae400dd
- Fixed PageInfo and Connection constructors 21ec1163b9aca3518068e3d65f370e4e3c454772 131
- Fixed default query value in SQLAlchemyConnection integration 1f548f188dda776e0f638fd68184c8b2604e4679
- Documentation improvements 8c3954333068247d2f028bcf89a4411cc9d6d93e 4f5de4963a8c5e3609c0262c0856992e687e5d9e b358e4cb5ad8299eb5687d3b1df204ac5ed2f766

0.7.3

Changelog
- Fix Connections and Filters for use a manager as default value
- Fixed `raw_sql` tracking code for Django Debug Plugin
- Improved documentation and fixed typos

0.7.2

Changelog
- Fixed querying and slicing when using `DjangoConnectionField` or `DjangoFilterConnectionField`. 314703d7b5380c80fe2ee1e2ad4a3eb3d9ed7fc4
- Fixed empty sql when using Django-Debug-Toolbar and `DjangoDebug` plugin at the same time c5b15cec2f0a7082006b94314ca45ee1322af60d
- Fixed `Scalar` instance usage 7b06e01cb31d61727e40dc8d6aeec736e040237d