Releases: mirumee/ariadne-codegen
Releases · mirumee/ariadne-codegen
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 triggergenerate_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'spydantic_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
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
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 callingparse
andserialize
methods on entire list instead of its items forList[Scalar]
.
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
andArgumentsGenerator
plugin hooks. - Added
InputTypesGenerator
andResultTypesGenerator
plugin hooks. - Added
ScalarsDefinitionsGenerator
andPackageGenerator
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 toariadne-codegen
script, 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_url
andremote_schema_headers
settings to support reading remote schemas. - Added
headers
argument to__init__
methods ofBaseClient
andAsyncBaseClient
.
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!