Releases: mirumee/ariadne-codegen
Releases · mirumee/ariadne-codegen
Release list
0.7
CHANGELOG
- Added support for subscriptions as async generators.
- Changed how fragments are handled to generate separate module with fragments as mixins.
- Fixed
ResultTypesGeneratorto triggergenerate_result_classfor each result model. - Changed processing of models fields to trim leading underscores.
- Added
ShorterResultsPluginto 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'spydantic_encoder. - Removed
mixindirective from operation string sent to server. - Fixed
ShorterResultsPluginthat 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_schemaplugin hook.
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_nameplugin hook.
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_ssloption. - Changed how default values for inputs are generated to handle potential cycles.
- Fixed
BaseModelincorrectly callingparseandserializemethods on entire list instead of its items forList[Scalar].
0.4
CHANGELOG
- Fixed generating models from interfaces with inline fragments.
- Added default
Nonevalues for generated methods optional arguments. - Added basic plugin system.
- Added
InitFileGenerator,EnumsGenerator,ClientGeneratorandArgumentsGeneratorplugin hooks. - Added
InputTypesGeneratorandResultTypesGeneratorplugin hooks. - Added
ScalarsDefinitionsGeneratorandPackageGeneratorplugin hooks. - Added support for
[tool.ariadne-codegen]section key. Deprecated[ariadne-codegen]. - Added support for environment variables to remote schema headers values.
- Added
--configargument toariadne-codegenscript, to support reading configuration from custom path.
0.3
0.2.1
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_urlandremote_schema_headerssettings to support reading remote schemas. - Added
headersargument to__init__methods ofBaseClientandAsyncBaseClient.
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!