From 8e5e0f9c675fb55d8ab1cbf31401d603c20ca1a7 Mon Sep 17 00:00:00 2001 From: Botberry Date: Tue, 16 Jul 2019 06:42:49 +0000 Subject: [PATCH] =?UTF-8?q?Release=20=F0=9F=8D=93=200.13.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 23 +++++++++++++++++++++++ RELEASE.md | 21 --------------------- pyproject.toml | 2 +- 3 files changed, 24 insertions(+), 22 deletions(-) delete mode 100644 RELEASE.md diff --git a/CHANGELOG.md b/CHANGELOG.md index f308e8bdeb..60e51647ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,29 @@ CHANGELOG ========= +0.13.0 - 2019-07-16 +------------------- + +This release adds field support for permissions + +```python +import strawberry + +from strawberry.permission import BasePermission + +class IsAdmin(BasePermission): + message = "You are not authorized" + + def has_permission(self, info): + return False + +@strawberry.type +class Query: + @strawberry.field(permisson_classes=[IsAdmin]) + def hello(self, info) -> str: + return "Hello" +``` + 0.12.0 - 2019-06-25 ------------------- diff --git a/RELEASE.md b/RELEASE.md deleted file mode 100644 index b29809b0e9..0000000000 --- a/RELEASE.md +++ /dev/null @@ -1,21 +0,0 @@ -Release Type: minor - -This release adds field support for permissions - -```python -import strawberry - -from strawberry.permission import BasePermission - -class IsAdmin(BasePermission): - message = "You are not authorized" - - def has_permission(self, info): - return False - -@strawberry.type -class Query: - @strawberry.field(permisson_classes=[IsAdmin]) - def hello(self, info) -> str: - return "Hello" -``` diff --git a/pyproject.toml b/pyproject.toml index 8a2abc7e6d..3023334e8f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "strawberry-graphql" packages = [ { include = "strawberry" } ] -version = "0.12.0" +version = "0.13.0" description = "A library for creating GraphQL APIs" authors = ["Patrick Arminio "] license = "MIT"