Skip to content

Commit

Permalink
Release 🍓 0.212.0
Browse files Browse the repository at this point in the history
  • Loading branch information
botberry committed Nov 7, 2023
1 parent 35d671e commit 25ae2b4
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 19 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
CHANGELOG
=========

0.212.0 - 2023-11-07
--------------------

This release changes how we check for generic types. Previously, any type that
had a generic typevar would be considered generic for the GraphQL schema, this
would generate un-necessary types in some cases. Now, we only consider a type
generic if it has a typevar that is used as the type of a field or one of its arguments.

For example the following type:

```python
@strawberry.type
class Edge[T]:
cursor: strawberry.ID
some_interna_value: strawberry.Private[T]
```

Will not generate a generic type in the schema, as the typevar `T` is not used
as the type of a field or argument.

Contributed by [Patrick Arminio](https://github.com/patrick91) via [PR #3202](https://github.com/strawberry-graphql/strawberry/pull/3202/)


0.211.2 - 2023-11-06
--------------------

Expand Down
18 changes: 0 additions & 18 deletions RELEASE.md

This file was deleted.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
name = "strawberry-graphql"
packages = [ { include = "strawberry" } ]
version = "0.211.2"
version = "0.212.0"
description = "A library for creating GraphQL APIs"
authors = ["Patrick Arminio <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 25ae2b4

Please sign in to comment.