Skip to content

Releases: mirumee/ariadne-codegen

0.7

01 Jun 10:57
587e492
Compare
Choose a tag to compare
0.7

CHANGELOG

  • Added support for subscriptions as async generators.
  • Changed how fragments are handled to generate separate module with fragments as mixins.
  • Fixed ResultTypesGenerator to trigger generate_result_class for each result model.
  • Changed processing of models fields to trim leading underscores.
  • Added ShorterResultsPlugin to standard plugins.
  • Fixed handling of inline fragments inside other fragments.
  • Changed generated unions to use pydantic's discriminated unions feature.
  • Replaced HTTPX's json= serializer for query payloads with pydantic's pydantic_encoder.
  • Removed mixin directive from operation string sent to server.
  • Fixed ShorterResultsPlugin that generated faulty code for discriminated unions.
  • Changed generator to ignore unused fragments which should be unpacked in queries.
  • Changed type hints for parse and serialize methods of scalars to typing.Any.
  • Added process_schema plugin hook.

0.6

18 Apr 09:52
fe5cbd6
Compare
Choose a tag to compare
0.6

CHANGELOG

  • Changed logic how custom scalar imports are generated. Deprecated import_ key.
  • Added escaping of GraphQL names which are Python keywords by appending _ to them.
  • Fixed parsing of list variables.
  • Changed base clients to remove unset arguments and input fields from variables payload.
  • Added process_name plugin hook.

0.5

05 Apr 10:15
a9ddc44
Compare
Choose a tag to compare
0.5

CHANGELOG

  • Added generation of GraphQL schema's Python representation.
  • Fixed annotations for lists.
  • Fixed support of custom operation types names.
  • Unlocked versions of black, isort, autoflake and dev dependencies
  • Added remote_schema_verify_ssl option.
  • Changed how default values for inputs are generated to handle potential cycles.
  • Fixed BaseModel incorrectly calling parse and serialize methods on entire list instead of its items for List[Scalar].

0.4

20 Mar 10:34
Compare
Choose a tag to compare
0.4

CHANGELOG

  • Fixed generating models from interfaces with inline fragments.
  • Added default None values for generated methods optional arguments.
  • Added basic plugin system.
  • Added InitFileGenerator, EnumsGenerator, ClientGenerator and ArgumentsGenerator plugin hooks.
  • Added InputTypesGenerator and ResultTypesGenerator plugin hooks.
  • Added ScalarsDefinitionsGenerator and PackageGenerator plugin hooks.
  • Added support for [tool.ariadne-codegen] section key. Deprecated [ariadne-codegen].
  • Added support for environment variables to remote schema headers values.
  • Added --config argument to ariadne-codegen script, to support reading configuration from custom path.

0.3

21 Feb 12:42
Compare
Choose a tag to compare
0.3

CHANGELOG

  • Changed generated code to pass mypy --strict.
  • Changed base clients to get full url from user.
  • Added support for custom scalars.

0.2.1

13 Feb 13:12
Compare
Choose a tag to compare

CHANGELOG

  • Fixed incorrectly raised exception when using custom scalar as query argument type.

0.2

02 Feb 15:09
Compare
Choose a tag to compare
0.2

This release brings support for remote schemas to the Ariadne Codegen and adds headers option to default Client, so workaround is no longer needed for it.

CHANGELOG

  • Added remote_schema_url and remote_schema_headers settings to support reading remote schemas.
  • Added headers argument to __init__ methods of BaseClient and AsyncBaseClient.

0.1

01 Feb 15:46
Compare
Choose a tag to compare
0.1

First release of Ariadne Codegen 🎉

Ariadne Codegen automates the process of writing GraphQL client boilerplate code, generating it from GraphQL operations instead.

It's already being used internally at Mirumee to implement services for our customers that integrate with Saleor, buts this is the time we are sharing it with the world!