Releases: mirumee/ariadne-codegen
Releases · mirumee/ariadne-codegen
Release list
0.14.0
- Added ClientForwardRefsPlugin to standard plugins.
- Re-added model_rebuild calls for input types with forward references.
- Fixed fragments on interfaces being omitted from generated client.
- Fixed @include directive result type when using convert_to_snake_case option.
- Added Custom query builder feature.
0.14.0.dev2
Second version of ariadne codegen custom query builder
0.14.0.dev1
- Experimental version of ariadne codegen custom query builder
0.13.0
CHANGELOG
- Fixed
str_to_snake_caseutility to capture fully capitalized words followed by an underscore. - Re-added
model_rebuildcalls for models with forward references. - Fixed potential name conflicts between field args and generated client's method code.
0.12
CHANGELOG
- Fixed
graphql-transport-wsprotocol implementation not waiting for theconnection_ackmessage on new connection. - Fixed
get_client_settingsmutatingconfig_dictinstance. - Added support to
graphqlschemafor saving schema as a GraphQL file. - Restored
model_rebuildcalls for top level fragment models.
0.11
CHANGELOG
- Removed
model_rebuildcalls for generated input, fragment and result models. - Added
NoReimportsPluginthat makes the__init__.pyof generated client package empty. - Added
include_all_inputsconfig flag to generate only inputs used in supplied operations. - Added
include_all_enumsconfig flag to generate only enums used in supplied operations. - Added
operationNameto payload sent by generated client's methods. - Fixed base clients to pass
mypy --strictwithout installed optional dependencies. - Renamed
GraphQlClientInvalidResponseErrortoGraphQLClientInvalidResponseError(breaking change). - Changed base clients to raise
GraphQLClientGraphQLMultiErrorfor payloads witherrorskey but nodata(breaking change).
0.10
CHANGELOG
- Fixed generating results for nullable fields with nullable directives.
- Changed
include_commentsoption to accept enum value, changed default to"stable", deprecated boolean support. Addedget_file_commentplugin hook. - Changed
str_to_snake_caseutility to correctly handle capitalized words. - Digits in Python names are now preceded by an underscore (breaking change).
- Fixed parsing of unions and interfaces to always add
__typenameto generated result models. - Added escaping of enum values which are Python keywords by appending
_to them. - Fixed
enums_module_nameoption not being passed to generators. - Added additional base clients supporting the Open Telemetry tracing. Added
opentelemetry_clientconfig option. - Changed generated client's methods to pass
**kwargsto base client'sexecuteandexecute_wsmethods (breaking change for custom base clients). - Added
operation_definitionargument togenerate_client_methodplugin hook. - Added
ExtractOperationsPluginthat extracts operation strings from client methods to separate module. - Added Python 3.12 to tested versions.
0.9
CHANGELOG
- Fixed generating operation string for nested inline fragments.
- Removed scalars module. Changed generated models and client to use annotated types for custom scalars. Removed
scalars_module_nameoption. Removedgenerate_scalars_module,generate_scalars_cod,generate_scalar_annotationandgenerate_scalar_importsplugin hooks. - Removed pydantic warnings for fields with
model_prefix. - Fixed generating result types with nullable directives.
0.8
CHANGELOG
- Added support for
Uploadscalar. Added support for file uploads toAsyncBaseClientandBaseClient. - Added validation of defined operations against the schema.
- Removed
mixindirective from fragment string included in operation string sent to server. - Added support for
mixindirective on fragments definitions. - Added support for fragments defined on subtype of field's type.
- Added default representation for a field name consisting only of underscores.
- Changed generated client and models to use pydantic v2.
- Changed custom scalars implementation to utilize pydantic's
BeforeValidatorandPlainSerializer. Addedscalars_module_nameoption. Replacedgenerate_scalars_parse_dictandgenerate_scalars_serialize_dictwithgenerate_scalar_annotationandgenerate_scalar_importsplugin hooks. - Unified annotations in generated client to be compatible with python < 3.9.
- Fixed generating default values of input types from remote schemas.
- Changed generating of input and result field names to add
_to names reserved by pydantic.