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"