Changelogs » Graphene-django

PyUp Safety actively tracks 263,166 Python packages for vulnerabilities and notifies you when to upgrade.

Graphene-django

3.0.0b6

This release brings the v3 changes up to date with the changes in v2.13.0

3.0.0b5

This release brings the v3 changes up to date with the changes in v2.

3.0.0b4

Changes
  
  * Move to_const function from Graphene into Graphene-Django (992) (996)

3.0.0b3

Changes
  
  * Fix that generated schemas could contain empty descriptions (v3) (984)
  * Start raising DeprecationWarnings for using only_fields and and exclude_fields (v3) (980)
  * Make v3 django choice field enum naming default (v3) (982)
  * Warn if `fields` or `exclude` are not defined on `DjangoObjectType` (981)

3.0.0b2

This beta release brings v3 up to date with [v2.10.1](https://github.com/graphql-python/graphene-django/releases/tag/v2.10.1).
  
  Additional changes:
  
  * Cast potentially translated strings used as descriptions (976)
  * Default camelcase errors (968)

3.0.0b1

The first beta release of Graphene Django v3
  
  Breaking changes ‼️
  
  This release uses Graphene v3 which drops support for Python 2 and uses the v3 version of graphql-core. See https://github.com/graphql-python/graphene/issues/1127 for more details.
  
  There are also some other smaller breaking changes which will be documented in the final release notes.
  
  ⚠️ This is a beta release so there may be bugs and things are subject to change. Please do try it out in your projects and report back with any issues that you find.

2.13.0

New features
  
  * Extract query function from GraphQLTestCase making it possible to use in a pytest fixture (1015)
  * Add headers support to GraphiQL (1016)
  * Add converter for Django 3.1 JSONField (1017)
  
  Bugfixes
  
  * Fix Connection/Edge naming and add unit test (1012)
  
  Huge thanks to tcleonard, radekwlsk and nikolaik for helping!
  
  Full changelog: https://github.com/graphql-python/graphene-django/compare/v2.12.1...v2.13.0

2.12.1

Changes
  
  * Remove operation name from the regex and default to query (1004)
  
  Thank you jkimbo for fixing subscriptions without a name.
  
  Full changelog: https://github.com/graphql-python/graphene-django/compare/v2.12.0...v2.12.1

2.12.0

Changes
  No breaking changes
  
  * Update GraphiQL, add GraphiQL subscription support (1001)
  * GraphiQL cleanup (1002)
  
  Thank you eabruzzese for adding native subscription support and documentation.
  
  Full changelog: https://github.com/graphql-python/graphene-django/compare/v2.11.1...v2.12.0

2.11.1

Bugfix
  
  * Do not break when after is greater than list_length (999)
  
  Thanks for the fix bellini666 !

2.11.0

Changes
  
  * Fix error in signature of callproc() and execute() in debug sql tracking (966)
  * DjangoConnectionField slice: use max_limit first, if set (965, 986 and 993)
  * Update setup.py classifiers (987)
  * fix(converter): wrap field with NonNull for postgres ArrayFields (545)
  * Fix filtering with GlobalIDFilter (977)
  * Move to_const function from Graphene into Graphene-Django (992)
  
  Huge thanks to pcraciunoiu, hubertsiuzdak, ulgens, helloqiu and pauricthelodger for helping!
  
  Full changelog: https://github.com/graphql-python/graphene-django/compare/v2.10.1...v2.11.0

2.10.1

Bugfixes
  
  * Do not access the internals of `SimpleLazyObject` (945)
  
  Full changelog: https://github.com/graphql-python/graphene-django/compare/v2.10.0...v2.10.1

2.10.0

New features
  
  * Disable system checks for graphql_schema management command (939)
  * Convert nullable BooleanField to nullable Boolean field (777)
  * Improve DjangoListField (929)
  * Allow defining fields as an empty list (871)
  
  Bugfixes
  
  * Switch `operation_name` to `operationName` in GraphQLTestCase (936)
  * GraphQlView: Do not 'instantiate_middleware' if middleware is already a MiddlewareManager (952)
  
  Huge thanks to millar, noelleleigh, ganwell, jckw and msimon for helping!
  
  Full changelog: https://github.com/graphql-python/graphene-django/compare/v2.9.1...v2.10.0

2.9.1

Bugfixes
  
  * Fix error with DjangoModelFormMutation (915)
  
  Full changelog: https://github.com/graphql-python/graphene-django/compare/v2.9.0...v2.9.1

2.9.0

New features
  
  * Add options to override how Django Choice fields are converted to Enums (860)
  * Detect schema export format from output file path (to support exporting .graphql files) (868)
  
  Bugfixes
  
  * Allow string references in DjangoListField (885)
  * Use actual root/variables/context args of the execute method (878)
  * Include form data in DjangoFormMutation responses (811)
  * Exclude read_only fields from input in DRF mutation (882)
  * Fix a typo in the warning (884)
  * Use to_representation in favor of get_attribute (848)
  
  Huge thanks to B4rtware, fulaphex, knabben, protasovse, GeyseR and rip-the-jacker for helping!
  
  Full changelog: https://github.com/graphql-python/graphene-django/compare/v2.8.2...v2.9.0

2.8.2

Bugfixes
  
  * Check exclude fields correctly (873)
  * Adding support for disabling enum creation on SerializerMutation (851)
  * Allow for easier template overrides in graphiql (863)
  
  Huge thanks to benhowes and leewardbound for helping!
  
  Full changelog: https://github.com/graphql-python/graphene-django/compare/v2.8.1...v2.8.2

2.8.1

Bugfixes
  
  * Raise exception early if DjangoModelFormMutation doesn't find a model type (839)
  * Resolve django translation deprecation warnings (847)
  * Resolve django encoding deprecation warnings (853)
  * Fix force_str deprecation warning (858)
  * Only warn don't throw if a field doesn't exist on the Django model (862)
  
  Huge thanks to luto and zhelyabuzhsky for helping!
  
  Full changelog: https://github.com/graphql-python/graphene-django/compare/v2.8.0...v2.8.1

2.8.0

Changelog
  
  New features
  
  * Add headers arg to GraphQLTestCase.query (827)
  * Read csrftoken from DOM if no cookie is set in graphiql browser (826)
  * Add support for partial updates when using Django Rest Framework serializers (731)
  * Raise exceptions if fields defined in Meta.fields and Meta.exclude on DjangoObjectType don't exist (842)
  
  Full changelog: https://github.com/graphql-python/graphene-django/compare/v2.7.1...v2.8.0

2.7.1

Changelog
  
  Bugfixes
  
  * Keep original queryset on DjangoFilterConnectionField (816)
  
  Full changelog: https://github.com/graphql-python/graphene-django/compare/v2.7.0...v2.7.1

2.7.0

Changelog
  
  New features
  
  * Support for Django v3 (793)
  
  Bugfixes
  
  * Fix bug with django filter lookup expressions (805)
  * Fix multiple bugs with the DjangoConnectionField not supporting annotations (796)
  
  Full changelog: https://github.com/graphql-python/graphene-django/compare/v2.6.0...v2.7.0

2.6.0

Changelog
  
  Another release before v3. Fingers crossed we'll get v3 out soon!
  
  New features
  
  * Extend DjangoListField to use model queryset if none defined (732)
  * Convert DRF ChoiceField to Enum (537)
  * Adds variables arg to GraphQLTestCase.query (699)
  
  Bugfixes
  
  * Handle isnull filters differently (753)
  * Pin higher version of graphene for proper graphql-core version r… (768)
  
  Full changelog: https://github.com/graphql-python/graphene-django/compare/v2.5.0...v2.6.0

2.5.0

Changelog
  
  Squeezing in another release before v3. Mostly bug fixes but also a change to the parts that are required in DjangoConnectionField and DjangoFilterConnectionField which might require a schema update.
  
  New features
  
  * Set converted Django connections to required (610)
  
  Bugfixes
  
  * Fix choices enum: if field can be blank then it isn't required (714)
  * Check for filters defined on base filterset classes (730)
  * Make DjangoDebugContext wait for nested fields (591)
  
  Full changelog: https://github.com/graphql-python/graphene-django/compare/v2.4.0...v2.5.0

2.4.0

Changelog
  
  Some great new features and lots of bugfixes in this release. A massive thanks to all the contributors that helped out! This release will probably be the last one before v3 (see https://github.com/graphql-python/graphene-django/issues/705)
  
  New features
  
  * Add support for write_only fields in SerializerMutation (555)
  * Enhanced support for proxy models (603)
  * Add support for filterset_class meta parameter (600)
  * Add watch option to graphql_schema management command (656)
  * Add `convert_choices_to_enum` option on DjangoObjectType Meta class (674)
  * Add option `CAMELCASE_ERRORS` to camel case field names in DRF errors (514 and 689)
  * Mark content of ManyTo* relationships as NonNull (690)
  * Alias `only_fields` as `fields` and `exclude_fields` as `exclude` (691)
  
  Bugfixes
  
  * Stop enforcing csrf checks in GraphQLTestCase (658)
  * Correctly propagate help_text as description for many-to-* relations (579)
  * Fix Django manager check in DjangoConnectionField (which was preventing `prefetch_related` optimisations from working) (693)
  * Remove duplicate ErrorType (701)
  * Ensure correct filter types for DjangoFilterConnectionFields (682)
  * Fix error of multiple inputs with the same type. When using same serializer. (530)
  
  Full changelog: https://github.com/graphql-python/graphene-django/compare/v2.3.1...v2.4.0

2.3.2

Identical to 2.3.1 except we fixed the PyPi uploading.

2.3.1

Fixes one to one reverse relation resolution

2.3.0

Changelog
  
  * Fix import issue with `GraphQLTestCase`
  * Stores the GraphiQL query in the URL fragment, rather than the query, so that sensitive data won't be logged to web server logs. 508
  * Moves GraphiQL JS to a separate file to enable stricter Content Security Policies. 508
  * Fix parameter order 526
  * Provide a way to dump schema to stdout 512
  * Removed old Django compatibility code 619
  * Added staticfiles to MANIFESTS.IN 601
  * Update GraphiQL to use 0.13.0 646
  * Change `__debug` to `_debug` to avoid conflicts 646
  
  Documentation improvements
  
  * Django debug types 513
  * Updated cookbook examples to be compatible with Django 2.1
  * Improved testing documentation 608
  * Vastly improved documentation throughout.

2.2.0

Changelog
  This version adds official support for Django 2.1 (and `django_filter` latest version)
  
  * Exclude `id` from mutations if is in `exclude_fields` 21bad6105c5f5def317fd16c908b85dc43dd7b5b
  * Added compatibility with `django_filter>=2` in Python 3 e45708b44e15db3c70d68b912823dd9efc5b8339
  * Removed official support for `Django<1.11` (only `1.11`, `2.0`, `2.1` and upwards will be supported)
  
  Docs
  * Improved authorization docs f6dba3942c104d1b37479ffa417b88ffaf003349
  * Reword abstract to mixin for reusable fields 1ba9652f382ba99cd40a534167976ee64d0ad29b

2.1.0

Changelog
  * Reformatted files using `black` https://github.com/graphql-python/graphene-django/commit/dc561c68c49d1a91637503f765857d819c36769a
  * Pin `django-filter` version to < 2 https://github.com/graphql-python/graphene-django/commit/f0705e2c25a07024334ea810562d263496ebbd9e https://github.com/graphql-python/graphene-django/commit/96789b291f647cd848816888ffa963ffd56d37f3
  
  Docs
  * Fixed links https://github.com/graphql-python/graphene-django/commit/3e3584565f7f363cb940b8f040fb7c38e25d3bca
  * Make examples diff more clear https://github.com/graphql-python/graphene-django/commit/3e3584565f7f363cb940b8f040fb7c38e25d3bca

2.1rc1

Changelog
  
  * Fixed non-deterministic setup.py (that causes dependency issues when using Python 3 and Django 2) https://github.com/graphql-python/graphene-django/commit/26cfa88f3a4b3fc62df76b60b39397efb229c0bd
  
  Thanks sciyoshi for reporting the issue in https://github.com/graphql-python/graphene-django/issues/427issuecomment-395539715  :)

2.1rc0

This is the first RC after almost 8 months from the previous release, apologizes for the long delay.
  This Release Candidate should be good to start using, please let me know if you find any issues before doing the stable release `2.1.0`.
  
  Thanks to all the contributors for pushing the project forward: grantmcconnaughey pizzapanther jkimbo patrick9 faassen spockNinja BossGrand mongkok mbarrientos eyal0803 jm2242 danyx23 pjdelport 🎉
  
  Changelog
  * Update requirements to use `Graphene>=2.1` and `graphql-core>=2.1rc1`
  * Added support for pluggable backends 449 https://github.com/graphql-python/graphene-django/commit/490ed929ad1e4fc1fe0d2fa593aa71d3affafbbc
  * Added support for `models.FilePathField` https://github.com/graphql-python/graphene-django/commit/4e7b269b762bf73134805e1c709f003c6ae35845
  * Django Rest Framework serializer fixes https://github.com/graphql-python/graphene-django/commit/a480a39713d3392dc3a7cee9565989a713d05856 https://github.com/graphql-python/graphene-django/commit/53546a27de9f9a8220a704219c24102b8f246621 https://github.com/graphql-python/graphene-django/commit/b19308b1c22fa06aca10051e0e92e947569825e9
  * Inheritance support for GraphQLView https://github.com/graphql-python/graphene-django/commit/70dffa94e7367400ff379b11c8d10232000e274d
  * Support ListSerializer fields in SerializerMutation https://github.com/graphql-python/graphene-django/commit/fdb7d5a253619df3478832032bf7b340cb6dc97b
  * Fixes `rel` available in  `ForeignKey` 400 https://github.com/graphql-python/graphene-django/commit/34ddc6ce858b97bf96dfde080d7556adee8975fb
  * GraphQLView, Fix qfactor rankings for `HTTP-ACCEPT` 340 https://github.com/graphql-python/graphene-django/commit/dbd3957a9f622573b2b106546f3accc48f5d5b41
  * Update GraphiQL 356 https://github.com/graphql-python/graphene-django/commit/5b17e98217c1c4742097c78cdcc307e03b04a574
  * Added Proxy Model support 373 https://github.com/graphql-python/graphene-django/commit/c0edb0c927fb5206c3747e0cce40984c2c4d9d49
  * Handle conversion to `Date`, `DateTime` and `Time` types properly 335 368 https://github.com/graphql-python/graphene-django/commit/94ee97085f98c1db318bfca0cae372978665b995 https://github.com/graphql-python/graphene-django/commit/adde4008938f9ff1694a845c901e84cbabaa70cf
  * Improve ErrorType in DRF mutation errors 382  https://github.com/graphql-python/graphene-django/commit/c585982a1a9c1897d13cc0b90e14a9c22cd9f5b8
  * Make it compatible with Django 2.0.1 377 https://github.com/graphql-python/graphene-django/commit/e05f069b3b5fceebc9aff32cc82631cd27db90be
  * Remove Django 1.7 shims 339 https://github.com/graphql-python/graphene-django/commit/961404f3975fd33d240ae0c8d5abf1f12ec4fb67
  * Fix build tests 338 https://github.com/graphql-python/graphene-django/commit/b54e02c9ba5925a116a56786897a5d3d33c68dfd
  * Avoid `Enum` duplication for choice fields 156  https://github.com/graphql-python/graphene-django/commit/5661db88d1ef0f75a5a4810defcb3284ccd9da51
  * Fixed batch endpoint issue 278 https://github.com/graphql-python/graphene-django/commit/14dca8297d0106c85933c0cee9c535f176efd6fa
  * Pass context object to `Filterset` queryset 232 https://github.com/graphql-python/graphene-django/commit/bc59d0ad8e925e89e7f15490aefa3d97b9e808d6
  * Fix `select_related` with filtering 224 https://github.com/graphql-python/graphene-django/commit/9e26aaf6adc404f2f0f45626b87a29284dea83de
  * Allow `DjangoObjectType` to use an Abstract connection class 313 https://github.com/graphql-python/graphene-django/commit/94e2a5c49f74f302cd0a04e988202957335f6346
  * Fix `DjangoFilterConnectionField` to ignore annotations, `.reverse` 315 https://github.com/graphql-python/graphene-django/commit/e666d849be3bdf73df6cf9a85b138e69b551a8f6
  
  
  Docs
  * Updated docs template https://github.com/graphql-python/graphene-django/commit/134d6c6d3251dac32d4ed64139edf94e87b8906e
  * Updated cookbook tutorial https://github.com/graphql-python/graphene-django/commit/9812c58a8630a260c4f1b50e8fa95fcb9741c8e9
  * Fixed bad documented `SerializerMutation` https://github.com/graphql-python/graphene-django/commit/f0451476adc8c1842cb6de38b2f017f62e5b8d6e
  * Fix context-dependent filtering example in docs https://github.com/graphql-python/graphene-django/commit/8151fe75b8116bf284e9dab0051f99d2bce54a53
  * Fixed authorization docs https://github.com/graphql-python/graphene-django/commit/e9a40f2ae95723165bb588e071d72a39021b8570
  * Update example project doc link 359 https://github.com/graphql-python/graphene-django/commit/5a92330164b407cdd24a1272b1946c54b65ec4d9
  * Updated function signature fix https://github.com/graphql-python/graphene-django/commit/c63dbea34b3136e6f88066c557435b4bafb934c9
  * Fix drop usage of `AbstractType` in docs https://github.com/graphql-python/graphene-django/commit/31679df08cc817b44075fa64fdb72b3b60258bf3
  * Fixed docs typos https://github.com/graphql-python/graphene-django/commit/dfa0a06cce20ca0e07972c95433d5297aef3727a https://github.com/graphql-python/graphene-django/commit/ec2cea1afa5f14ba2eb123eb76f3f04c5b53914f https://github.com/graphql-python/graphene-django/commit/24706f50d4f7d44e576edc0cd96d1fde046e3cce https://github.com/graphql-python/graphene-django/commit/bc15439e3dcff174c72d9e8907a4f236da5585c7 https://github.com/graphql-python/graphene-django/commit/f0f117663cd3849b3b3d23ad0d4fd7306aef36a0