From 19f79ec94f3c985369eef5694a51cc0ba1848180 Mon Sep 17 00:00:00 2001 From: Botberry Date: Mon, 11 Oct 2021 11:28:52 +0000 Subject: [PATCH] =?UTF-8?q?Release=20=F0=9F=8D=93=200.82.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 28 ++++++++++++++++++++++++++++ RELEASE.md | 23 ----------------------- pyproject.toml | 2 +- 3 files changed, 29 insertions(+), 24 deletions(-) delete mode 100644 RELEASE.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e10b486eb..289ec64c84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,34 @@ CHANGELOG ========= +0.82.0 - 2021-10-11 +------------------- + +Adds support for the `auto` type annotation described in #1192 to the Pydantic +integration, which allows a user to define the list of fields without having to +re-specify the type themselves. This gives better editor and type checker +support. If you want to expose every field you can instead pass +`all_fields=True` to the decorators and leave the body empty. + +```python +import pydantic +import strawberry +from strawberry.experimental.pydantic import auto + +class User(pydantic.BaseModel): + age: int + password: str + + +@strawberry.experimental.pydantic.type(User) +class UserType: + age: auto + password: auto +``` + +Contributed by [Matt Allen](https://github.com/Matt343) [PR #1280](https://github.com/strawberry-graphql/strawberry/pull/1280/) + + 0.81.0 - 2021-10-04 ------------------- diff --git a/RELEASE.md b/RELEASE.md deleted file mode 100644 index cbe1f71aea..0000000000 --- a/RELEASE.md +++ /dev/null @@ -1,23 +0,0 @@ -Release type: minor - -Adds support for the `auto` type annotation described in #1192 to the Pydantic -integration, which allows a user to define the list of fields without having to -re-specify the type themselves. This gives better editor and type checker -support. If you want to expose every field you can instead pass -`all_fields=True` to the decorators and leave the body empty. - -```python -import pydantic -import strawberry -from strawberry.experimental.pydantic import auto - -class User(pydantic.BaseModel): - age: int - password: str - - -@strawberry.experimental.pydantic.type(User) -class UserType: - age: auto - password: auto -``` diff --git a/pyproject.toml b/pyproject.toml index adf6e0bb72..6803a3ec6c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "strawberry-graphql" packages = [ { include = "strawberry" } ] -version = "0.81.0" +version = "0.82.0" description = "A library for creating GraphQL APIs" authors = ["Patrick Arminio "] license = "MIT"