From a8b108e0c94f2d97408a29144081e4b0801b0873 Mon Sep 17 00:00:00 2001 From: Botberry Date: Wed, 22 May 2024 14:17:57 +0000 Subject: [PATCH] =?UTF-8?q?Release=20=F0=9F=8D=93=200.229.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 26 ++++++++++++++++++++++++++ RELEASE.md | 21 --------------------- pyproject.toml | 2 +- 3 files changed, 27 insertions(+), 22 deletions(-) delete mode 100644 RELEASE.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 9636b8bf5f..83161c5b4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,32 @@ CHANGELOG ========= +0.229.2 - 2024-05-22 +-------------------- + +This release fixes an issue when using `Annotated` + `strawberry.lazy` + +deferred annotations such as: + +```python +from __future__ import annotations +import strawberry +from typing import Annotated + + +@strawberry.type +class Query: + a: Annotated["datetime", strawberry.lazy("datetime")] + + +schema = strawberry.Schema(Query) +``` + +Before this would only work if `datetime` was not inside quotes. Now it should +work as expected! + +Contributed by [Thiago Bellini Ribeiro](https://github.com/bellini666) via [PR #3507](https://github.com/strawberry-graphql/strawberry/pull/3507/) + + 0.229.1 - 2024-05-15 -------------------- diff --git a/RELEASE.md b/RELEASE.md deleted file mode 100644 index 5ce366cab8..0000000000 --- a/RELEASE.md +++ /dev/null @@ -1,21 +0,0 @@ -Release type: patch - -This release fixes an issue when using `Annotated` + `strawberry.lazy` + -deferred annotations such as: - -```python -from __future__ import annotations -import strawberry -from typing import Annotated - - -@strawberry.type -class Query: - a: Annotated["datetime", strawberry.lazy("datetime")] - - -schema = strawberry.Schema(Query) -``` - -Before this would only work if `datetime` was not inside quotes. Now it should -work as expected! diff --git a/pyproject.toml b/pyproject.toml index 01d01c5551..ccd5a4ea2a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "strawberry-graphql" packages = [ { include = "strawberry" } ] -version = "0.229.1" +version = "0.229.2" description = "A library for creating GraphQL APIs" authors = ["Patrick Arminio "] license = "MIT"