diff --git a/CHANGELOG.md b/CHANGELOG.md index d4037655d2..21e536fa7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,25 @@ CHANGELOG ========= +0.205.0 - 2023-08-24 +-------------------- + +`strawberry codegen` previously choked for inputs that used the +`strawberry.UNSET` sentinal singleton value as a default. The intent +here is to say that if a variable is not part of the request payload, +then the `UNSET` default value will not be modified and the service +code can then treat an unset value differently from a default value, +etc. + +For codegen, we treat the `UNSET` default value as a `GraphQLNullValue`. +The `.value` property is the `UNSET` object in this case (instead of +the usual `None`). In the built-in python code generator, this causes +the client to generate an object with a `None` default. Custom client +generators can sniff at this value and update their behavior. + +Contributed by [Matt Gilson](https://github.com/mgilson) via [PR #3050](https://github.com/strawberry-graphql/strawberry/pull/3050/) + + 0.204.0 - 2023-08-15 -------------------- diff --git a/RELEASE.md b/RELEASE.md deleted file mode 100644 index 9b09c43906..0000000000 --- a/RELEASE.md +++ /dev/null @@ -1,14 +0,0 @@ -Release type: minor - -`strawberry codegen` previously choked for inputs that used the -`strawberry.UNSET` sentinal singleton value as a default. The intent -here is to say that if a variable is not part of the request payload, -then the `UNSET` default value will not be modified and the service -code can then treat an unset value differently from a default value, -etc. - -For codegen, we treat the `UNSET` default value as a `GraphQLNullValue`. -The `.value` property is the `UNSET` object in this case (instead of -the usual `None`). In the built-in python code generator, this causes -the client to generate an object with a `None` default. Custom client -generators can sniff at this value and update their behavior. diff --git a/pyproject.toml b/pyproject.toml index 2c70c8bff1..23e3ce375c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "strawberry-graphql" packages = [ { include = "strawberry" } ] -version = "0.204.0" +version = "0.205.0" description = "A library for creating GraphQL APIs" authors = ["Patrick Arminio "] license = "MIT"