From 11b44315c7f87082465898730fe8c1abf2a03563 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Sopi=C5=84ski?= Date: Tue, 22 Aug 2023 12:42:34 +0200 Subject: [PATCH 1/3] Add missing changelog entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 66030276..463c44d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - 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 `BeforeValidator` and `PlainSerializer`. Added `scalars_module_name` option. Replaced `generate_scalars_parse_dict` and `generate_scalars_serialize_dict` with `generate_scalar_annotation` and `generate_scalar_imports` plugin 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. From 5be00b5970529dd1d631f4c4ea25a10eaa869633 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Sopi=C5=84ski?= Date: Tue, 22 Aug 2023 12:43:44 +0200 Subject: [PATCH 2/3] Change pydantic version to accept any 2.x.x --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f5928cc2..b3a6910a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,7 @@ dependencies = [ "graphql-core>=3.2.0,<3.3", "toml~=0.10", "httpx~=0.23", - "pydantic~=2.0", + "pydantic>=2.0.0,<3.0.0", "black", "isort", "autoflake", From 82c8e283aa0cb9873deed5819a2f2178d756625a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Sopi=C5=84ski?= Date: Tue, 22 Aug 2023 12:44:23 +0200 Subject: [PATCH 3/3] Release 0.8.0 --- CHANGELOG.md | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 463c44d5..b2b48ddb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # CHANGELOG -## UNRELEASED +## 0.8.0 (2023-08-22) - Added support for `Upload` scalar. Added support for file uploads to `AsyncBaseClient` and `BaseClient`. - Added validation of defined operations against the schema. diff --git a/pyproject.toml b/pyproject.toml index b3a6910a..da3a9a26 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" name = "ariadne-codegen" description = "Generate fully typed GraphQL client from schema, queries and mutations!" authors = [{ name = "Mirumee Software", email = "hello@mirumee.com" }] -version = "0.7.1" +version = "0.8.0" readme = "README.md" license = { file = "LICENSE" } classifiers = [