Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update graphql-core to 3.2.1 #1394

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pyup-bot
Copy link
Collaborator

This PR updates graphql-core from 1.1 to 3.2.1.

Changelog

3.2.1

Patch-release GraphQL-core v3.2.1, based on GraphQL.js v16.3.0.

This patch-releases includes the changes in [GraphQL.js v16.3.0](https://github.com/graphql/graphql-js/releases), and the following fix:

- Serialize with maximum precision when converting float to FloatValue (164)

Thanks to bennyweise for contributing and all who are sponsoring me (Cito) for maintaining this project.

3.2.0

Final release of GraphQL-core v3.2.0, based on GraphQL.js v16.2.0.

See [v3.2.0rc1](https://github.com/graphql-python/graphql-core/releases/tag/v3.2.0rc1), [v3.2.0rc2](https://github.com/graphql-python/graphql-core/releases/tag/v3.2.0rc2), [v3.2.0rc3](https://github.com/graphql-python/graphql-core/releases/tag/v3.2.0rc3), [v3.2.0rc4](https://github.com/graphql-python/graphql-core/releases/tag/v3.2.0rc4), [v3.2.0rc5](https://github.com/graphql-python/graphql-core/releases/tag/v3.2.0rc5) and the changelog of [GraphQL.js](https://github.com/graphql/graphql-js/releases) for a complete list of changes.

Thanks to all who contributed and are sponsoring me (Cito) for maintaining this project.

3.2.0rc5

Pre-release GraphQL-core v3.2.0rc5, based on GraphQL.js v16.1.0.

In addition to porting the recent changes in GraphQL.js,
this pre-release also contains the following improvements:

- Add flag for using enum names or members as values (73)
- Add typed dicts for to_kwargs results (99)
- Add `ast_to_dict` utility function (136)
- Make `print_block_string` work with string proxy objects (153)
- Prevent infinite loop in `OverlappingFieldsCanBeMergedRule` (fetched ahead)

Please test this pre-release and report any issues, the final release is imminent.

3.2.0rc4

Pre-release GraphQL-core v3.2.0rc4, based on GraphQL.js v16.0.1.

In addition to porting the recent changes in GraphQL.js,
this pre-release also contains the following improvements:

- Use typed dictionaries for introspection results (99)
- Deprecate FrozenDict/List, use tuples as node lists (112)
- Experimental support for async iterables as list values (123)
- Make print_block_string work with string proxy objects (153)

Note that the use of tuples may break code that tries to modify the AST.

Please test this pre-release and report any issues, the final release is imminent.

3.2.0rc3

Pre-release GraphQL-core v3.2.0rc3, based on GraphQL.js v16.0.0rc3.

In addition to porting the recent changes in GraphQL.js,
this pre-release also contains the following improvements:

* Add sync and async execution benchmarks (141)
* Minor code simplifications (146)
* Optimize node hash method through caching (150)
* Optimize performance of character class predicates
* Include Python 3.10 in default test matrix

3.2.0rc2

Pre-release GraphQL-core v3.2.0rc2, based on GraphQL.js v16.0.0rc2.

* Make thunk resolver simpler and backward compatible

3.2.0rc1

Pre-release GraphQL-core v3.2.0rc1, based on GraphQL.js v16.0.0rc2.

In addition to porting the recent changes in GraphQL.js,
this pre-release also contains the following improvements:

* Set enum value values to value names in build_client_schema (138)
* Fix camel to snake case conversion with digits (140)
* Support Python 3.10

3.1.7

Patch release GraphQL-core v3.1.7, based on GraphQL.js v15.8.0.

This release includes minor changes and improvements, in particular:

- Set enum value values to value names in build_client_schema (138)
- Fix camel to snake case conversion with digits (140)
- Preserve `deprecation_reason` on `GraphQLInputFields` (d1ffaef2ec3e5e475cb8ae52397489fd05ea6a12)
- Add missing `__Directive.args(includeDeprecated)` (0df0a32fe9cae2edafdd985f099490b55dca13e2)
- Fix `original_error.extensions` overriding `extensions` argument (810d712ca53e5356027e6930b9585cf56152d3f5)

3.1.6

Patch release GraphQL-core v3.1.6, based on GraphQL.js v15.5.1.

This release includes only some minor changes and improvements.

3.1.5

Patch release GraphQL-core v3.1.5, based on GraphQL.js v15.4.0.

This release includes the following changes and imrovements:

- Default `parse_literal` of GraphQLScalarType now handles variables
- `build_ast_schema` now matches order of default types and directives
- Return formatted errors in formatted execution result (fixes 129)
- The `is_deprecated` property is now deprecated itself
- Input fields and arguments can now be marked as deprecated
- Handle case when MapAsyncIterator is cancelled (131)
- Improve return type for complete_list_value (132)
- Replace resolved types in lexicographic schema sort
- `EventEmitter` helper class has been replaces by `SimplePubSub`
- `print_ast` now breaks arguments over multiple lines

Special thanks to cancan101, mlorenzana,  wuyuanyi135  for contributing.

3.1.4

Patch release GraphQL-core v3.1.4, based on GraphQL.js v15.3.0.

This release fixes issues 125 and 126 regarding enum values.

Thanks to dkbarn for reporting the problem.

3.1.3

Patch release GraphQL-core v3.1.3, based on GraphQL.js v15.2.0.

This release includes the following improvements:

* Python 3.9 is now officially suported by GraphQL-core.
* `build_schema`: allow to reference introspection types
* Custom validation rules for "no schema introspection" and "no deprecated"
* Added `execute_sync()` as synchronous version of `execute()`
* Support deep copy of GraphQL schema (100)
* `build_ast_schema` now sets internal enum values (111)
* Do not double-wrap resolver errors any more (106)
* Use newer Sphinx version, fix for various autodoc issues (104)
* Fix example in docstring of GraphQLUnionType (105)
* Let default resolver check for Mapping instead of dict (102)

Thanks to everyone who helped with their feedback, particularly

berekuk, charmasaur, Checho3388, jstlaurent and pmantica1.

3.1.2

Patch release GraphQL-core v3.1.2, based on GraphQL.js v15.1.0.

This release includes the following improvements:

* Added specifiedBy directive
* Extended type definitions (89)
* Enum type for visitor return values (96)
* Visitors can now use class and static methods
* Lists in AST nodes are not optional any more (98)

Thanks to everyone who helped with their feedback.

3.1.1

Bugfix release GraphQL-core v3.1.1, based on GraphQL.js v15.0.0.

The following issues are fixed in this release:

* Fixed rendering of ReST in docstring (84, 85, 86, 87)
* Added type hint to default_field_resolver (88)
* Fixed memoization of collect_subfields (91)
* Fixed method name in Visitor docstring (92)

Contributors to this release were:

Cito, hoefling, nawatts, rafalp

Thanks to everyone who helped by sending bug reports or pull requests.

3.1.0

Final release of GraphQL-core v3.1.0, based on GraphQL.js v15.0.0.

See the three pre-releases [v3.1.0b0](https://github.com/graphql-python/graphql-core/releases/tag/v3.1.0b0), [v3.1.0b1](https://github.com/graphql-python/graphql-core/releases/tag/v3.1.0b1) and [v3.1.0b2](https://github.com/graphql-python/graphql-core/releases/tag/v3.1.0b2) for a complete list of changes.

3.1.0b2

Third beta release of GraphQL-core 3.1, based on GraphQL.js v15.0.0rc2.

In addition to incorporating the latest changes from the master branch of GraphQL.js, this release also contains the following improvements:

* Increased performance by using a faster `isawaitable()` function  (54).
* Nodes and some other objects are now extensible and weak-referencable (82).

We also renamed the repository on GitHub from graphql-python/graphql-core-next to graphql-python/graphql-core.

Contributors to this release were:

Cito, astronouth7303, Hellzed and qeternity

Thanks to everybody who contributed by sending bug reports or pull requests. Please continue to report any problems you find in this beta release, so that these can be fixed in the final v3.1 release.

3.1.0b1

Second beta release of GraphQL-core 3.1, based on GraphQL.js v15.0.0rc2.

In addition to incorporating the latest changes in [GraphQL.js v15.0.0rc2](https://github.com/graphql/graphql-js/releases/tag/v15.0.0-rc.2), this release also contains the following improvements and changes:

* Following a [change in GraphQL.js](https://github.com/graphql/graphql-js/pull/2410) to keep the order of user provided types, the type map reducer for the GraphQLSchema has been removed.
* We now support inheritance when evaluating the `__typename` attribute (25).
* FieldNodes and InputValueNodes are now only DefinitionNodes, not TypeDefinitionNodes.
* The test suite now has 100% coverage, and less coverage will count as failure.

Contributors to this release were:

Cito, Hellzed

Thanks to everybody who contributed by sending bug reports or pull requests. Please continue to report any problems you find in this beta release, so that these can be fixed in the final v3.1 release.

3.1.0b0

First beta release of GraphQL-core 3.1, based on GraphQL.js v15.0.0rc1.

In addition to incorporating the latest changes from GraphQL.js (see the list of changes in GraphQL.js [v15.0.0a1](https://github.com/graphql/graphql-js/releases/tag/v15.0.0-alpha.1), [v15.0.0a2](https://github.com/graphql/graphql-js/releases/tag/v15.0.0-alpha.2) and [v15.0.0rc1](https://github.com/graphql/graphql-js/releases/tag/v15.0.0-rc.1)), this release also contains the following improvements and changes:

* Change: Use `Undefined` instead of  `INVALID` which is now deprecated (77)
* Use explicit `Optional` type on arguments (76)
* Remove unnecessary result type annotation from `__init__` methods (python/mypy5677)
* Better docstring for `ast_from_value`
* Better docstring for `lexicographic_sort_schema` (75)
* Fixed a minor issue when coverting lists in `ast_from_value()`
* Fixed a minor issue with `MapAsyncIterator.athrow()`
* Improved test coverage (trying to reach 100% for final release)

Contributors to this release were:

Cito, hoefling

Thanks to everybody who contributed by sending bug reports or pull requests. Please continue to report any problems you find in this beta release, so that these can be fixed in the final v3.1 release.

3.0.6

Patch release GraphQL-core v3.0.6, based on GraphQL.js v14.7.0.

This release backports Python 3.9 and 3.10 support to the 3.0 branch.

3.0.5

Bugfix release GraphQL-core v3.0.5, based on GraphQL.js v14.6.0.

The following issues are fixed in this release:

* Added type hint to default_field_resolver (88)
* Fixed memoization of collect_subfields (91)
* Fixed method name in Visitor docstring (92)

Contributors to this release were:

Cito, hoefling, nawatts, rafalp

Thanks to everyone who helped by sending bug reports or pull requests.

3.0.4

Patch release of GraphQL-core 3, based on GraphQL.js v14.6.0.

The primary fix is the new repository address [github.com/graphql-python/graphql-core](https://github.com/graphql-python/graphql-core) in the meta data.

3.0.3

Patch release of GraphQL-core 3, based on GraphQL.js v14.6.0.

This is essentially the same as version 3.0.2 except for one minor change:

* Added `Undefined` as a forward compatible alias for `INVALID`, which should be imported from the top level.

3.0.2

Patch release of GraphQL-core 3, based on GraphQL.js v14.6.0.

This is essentially the same as version 3.0.1 except for one minor change:

* Added the missing validation rules that could not be imported from the `graphql` and `graphql.validation` packages.

Some requirements have also been updated, and we officially support Python 3.8 now.

3.0.1

Patch release of GraphQL-core 3, based on GraphQL.js v14.5.8.

This is essentially the same as version 3.0.0 except for one minor change:

* The `utilities.get_introspection_query` module has been renamed back to `utilities.introspection_query`, since that was the name used in GraphQL.js v14.5.8 - renaming the module will be postponed to a version that replicates GraphQL.js v15.0.0.

Note that the `introspection_query` *constant* was already deprecated in v14 and had not been ported to graphql-core, like some other deprecated features.

3.0.0

Final release of GraphQL-core 3, based on GraphQL.js v14.5.8.

GraphQL-core 3 is the successor to both GraphQL-core 2 and GraphQL-core-next.

In addition to porting the minor changes in GraphQL.js since v14.5.6, this release also contains the following improvements:

* GraphQL-core 3 now officially supports Python 3.8
* Use mypy 0.750 and the new semantic analyzer (67)
* Fix for possible sort errors in `build_response()` (68)
* Document the differences between GraphQL-core 3 and GraphQL.js (24)

See also the changes in [v3.0.0b0](https://github.com/graphql-python/graphql-core-next/releases/tag/v3.0.0b0) and [v3.0.0b1](https://github.com/graphql-python/graphql-core-next/releases/tag/v3.0.0b1).

Contributors to this release were:

Cito, tebanep

Thanks to everyone who sent bug reports or pull requests.

3.0.0b1

Second beta release of GraphQL-core 3, based on GraphQL.js v14.5.6.

GraphQL-core 3 is the successor to both GraphQL-core 2 and GraphQL-core-next.

In addition to incorporating the latest changes from GraphQL.js (see particularly the list of changes in GraphQL.js [v14.5.5](https://github.com/graphql/graphql-js/releases/tag/v14.5.5)), this release also contains the following improvements and changes:

* Changes: `format_error` now returns locations as a list of dicts (62)
* Bugs: Detect args passed to directive without args (63)

Contributors to this release were:

Cito, Dodobibi, ktosiek

Thanks to everybody who contributed by sending bug reports or pull requests. Please continue to report any problems you find in this beta release, so that these can be fixed in the final v3 release.

3.0.0b0

First beta release of GraphQL-core 3, based on GraphQL.js v14.5.0.

GraphQL-core 3 is the successor to both GraphQL-core 2 and GraphQL-core-next.

In addition to incorporating the latest changes from GraphQL.js (see particularly the list of changes in GraphQL.js [v14.5.0](https://github.com/graphql/graphql-js/releases/tag/v14.5.0)), this release also contains the following improvements and changes:

* Features: Support using lazy descriptions for GraphQL types (58)
* Performance: Add pytest-benchmark and port the benchmarks from GraphQL.js (55)
* Performance: Use identity instead of hash for caching subfields in collect_subfields (56)
* Changes: Use FrozenLists in AST nodes (45)
* Changes: Changed `is_nullish()` to make it play nice with numpy arrays (60)
* Bugs: Fixed issue 43 with getting `parse_literal` via `to_kwargs()`
* Bugs: Fix hash method for AST nodes (45)
* Docs: Fix typo in docs for using SDL (48)
* Docs: Update installation instructions (50)
* Docs: Run all code snippets as part of the test suite
* Polish: Run type check also for functions without type annotations

Contributors to this release were:

Cito, CorrosiveKid, delyanr, ktosiek, mvanlonden, qqi0O0, thomascobb 

Thanks to everybody who contributed by sending bug reports or pull requests. Please continue to report any problems you find in this beta release, so that these can be fixed in the final v3 release.

2.3.2

Patch release with these changes:

* Update dependencies (270)
* Change AsyncioExecutor loop argument type (273)
* ExecutionResults can now be stringified (277)
* Various mypy issues (278)
* Minor fixes regarding the test suite

Note that the repository for GraphQL v2 has been renamed
from graphql-core to graphql-core-legacy.
The graphql-core repository is now used gor GraphQL v3.

2.3.1

Patch release with these changes:

* Slight change in subscribe_fields() (242)
* Removed accidentally added code (263)
* Support Python 3.8
* Minor fixes and clean-ups

2.3.0

Minor release with these changes:

* Consistently translate Python enums to values (198)
* Reverted the removal of the `_value` postfix (234)
* Use built-in dict as OrderedDict for Py 3.7+ (248)
* Fixed crash when sending a query with type definitions (257)
* Added py.typed file to support type checking (259)
* A newer Promise version is required (260)
* Various minor fixes

2.2.1

Hotfix release with one fix:

* Require rx<3 since new version is not compatible (235)

2.2.0

Changelog

* Fix a typo in a deprecation warning 9202021fc87db9c175e115016cd53e5d9d085ac6
* Fix collections import for Python >3.3 cdb299df3efda82a09cbb282e561c6c8aaa2efdf
* Add dict support for the default resolver 1760eaf995e2623aee4afca48ad5be0cd9098fbe
* Fix UnicodeDecodeError in format_error 87b615605ac9724c4f945e220e67b5b2d0461424
* Add extensions support to GraphQLError 3ba7f9218bca7a039b109b103cf57b1511d970c7
* Add traceback to errors from failed promises 8f736b7a6b052c07347dbd57e00bc8221af71faa
* Lots of internal clean up

Full changelog: https://github.com/graphql-python/graphql-core/compare/v2.1.0...v2.2.0

2.1.0

Changelog
* Improved pre-commit integration (added `black` formatter) https://github.com/graphql-python/graphql-core/commit/04560ea333ab408502d3f89574cebb0c2add1ac8
* Added `flags` config to help know when certain features are available 9059ecd0a87e0bfaf4eff53217217879672adff3
* Added official support to Python 3.7 a7ce75e339a6aaf3a0bb52175c41776edd549bdc
* Improved `GraphQLEnumType` serialization allowing python `Enum` values https://github.com/graphql-python/graphql-core/commit/0cef6fb10c41d36d9042dae968d6a1c7f2b96b51 https://github.com/graphql-python/graphql-core/commit/24687b659e3dd2713e6cd397d2179b8b4ed51163
* Improved `ExecutionResult` typing https://github.com/graphql-python/graphql-core/commit/934deca6734b40519cff13b02054848cd808601e
* Set explicit order for middleware resolvers https://github.com/graphql-python/graphql-core/commit/c27daa5d69ab54d07ac629313a1a5ef7a5d0d7b1

Release's candidates Changelog
The following list includes the changes listed in each of the release candidates for `2.1`.

2.1rc3

Changelog
* Improved async generators 4d2f7e72bbb1f842fee4fd3178a4c1ed4e23eac6 (thanks ciscorn!)
* Added static typing with mypy fa4eeda36029680205e20059379e89189b946032 🎉
* Fixed errors in middleware when resolvers were not returning promises but Exceptions 6a3f9004362b51336e082e08b3b4a180c6a325c2

2.1rc2

Changelog
* Fixed `quiver_cloud` backend imports 79811e108da626bff749b27dae4a35ffd1f4b2a0
* Added `to_dict` method to `ExecutionResult` ff6b490d565124f08d7b7b8d42a421ad0c185b96
* Improved middleware init speed 24be647e0cf12b0a12d858c4791f34a9bd210be3

2.1rc1

Changelog
* Improved backend tests 37bcf6a1016f54f2662e839a49130e570c6ab47f
* Improved `format_error` function using six compatibility library 52de303855de695099362ff013f26ff2ce9045d0
* Added `get_operation_type` to GraphQLDocument 27e21e4d5023e0bfd1619537564cceed37dd8964

2.1rc0

Changelog
* Add path tracking in `ResolveInfo` 148 
* Add path to GraphQL raised errors 186 
* Fixed `GraphQLInt` description ea0dd0c2c653000761966faeb7c1c0a156e269d1
* Improved Enum support 163 
* Make `GraphQLEnumValue` importable from main module 9ec3d7cce6b41228699f6f58b9f014b9dc0d589d
* Fixed memory leak in executors f2c4f6d2103e7e929c9d9d0fc08e423f3d75fe7f
* Added official support to Python 3.6
* Added pre-commit 178 
* Added `is_deprecated` property to `GraphQLField` 175
* Added support for pluggable backends 185 

Docs
* Improved contributing docs 173

2.0.0

Changelog

* Moving context from the resolver arguments to `info.context` 133
* New resolvers API. Moving from `resolver(root, args, context, info)` to `resolver(root, info, **args)` 133
* Is Type of new syntax from `is_type_of(result, context, info)` to `is_type_of(result, info)` 133
* Resolve type new syntax `resolve_type(result, context, info)` to `resolve_type(result, info)` 133
* Subscriptions support 143
* Improved exceptions on promises

1.1.1

Bugfix release of GraphQL-core-next, based on GraphQL.js v14.4.0.

This release fixes a problem with getting `parse_literal` via `to_kwargs()` (43).

Future versions of GraphQL-core-next will be released as GraphQL-core version 3 and up.

GraphQL-core-next has been discontinued as separate distribution.
Links

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.

1 participant