From d5044283a853176df478d82dd126cc3f23980bde Mon Sep 17 00:00:00 2001 From: Botberry Date: Wed, 9 Oct 2024 10:36:32 +0000 Subject: [PATCH] =?UTF-8?q?Release=20=F0=9F=8D=93=200.246.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 30 ++++++++++++++++++++++++++++++ RELEASE.md | 25 ------------------------- pyproject.toml | 2 +- 3 files changed, 31 insertions(+), 26 deletions(-) delete mode 100644 RELEASE.md diff --git a/CHANGELOG.md b/CHANGELOG.md index ddaccdc0ad..3bd92715e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,36 @@ CHANGELOG ========= +0.246.1 - 2024-10-09 +-------------------- + +This release adds support for using raw Python enum types in your schema +(enums that are not decorated with `@strawberry.enum`) + +This is useful if you have enum types from other places in your code +that you want to use in strawberry. +i.e +```py +# somewhere.py +from enum import Enum + + +class AnimalKind(Enum): + AXOLOTL, CAPYBARA = range(2) + + +# gql/animals +from somewhere import AnimalKind + + +@strawberry.type +class AnimalType: + kind: AnimalKind +``` + +Contributed by [ניר](https://github.com/nrbnlulu) via [PR #3639](https://github.com/strawberry-graphql/strawberry/pull/3639/) + + 0.246.0 - 2024-10-07 -------------------- diff --git a/RELEASE.md b/RELEASE.md deleted file mode 100644 index fedbf0c263..0000000000 --- a/RELEASE.md +++ /dev/null @@ -1,25 +0,0 @@ -Release type: patch - -This release adds support for using raw Python enum types in your schema -(enums that are not decorated with `@strawberry.enum`) - -This is useful if you have enum types from other places in your code -that you want to use in strawberry. -i.e -```py -# somewhere.py -from enum import Enum - - -class AnimalKind(Enum): - AXOLOTL, CAPYBARA = range(2) - - -# gql/animals -from somewhere import AnimalKind - - -@strawberry.type -class AnimalType: - kind: AnimalKind -``` diff --git a/pyproject.toml b/pyproject.toml index 9d34ba1396..fe2177b5d0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "strawberry-graphql" packages = [ { include = "strawberry" } ] -version = "0.246.0" +version = "0.246.1" description = "A library for creating GraphQL APIs" authors = ["Patrick Arminio "] license = "MIT"