Releases: strawberry-graphql/strawberry
🍓 0.238.1
Fix an issue where StrawberryResolver.is_async
was returning False
for a
function decorated with asgiref's @sync_to_async
.
The root cause is that in python >= 3.12 coroutine functions are market using
inspect.markcoroutinefunction
, which should be checked with
inspect.iscoroutinefunction
instead of asyncio.iscoroutinefunction
Releases contributed by @shmoon-kr via #3599
🍓 0.238.0
This release removes the integration of Starlite, as it
has been deprecated since 11 May 2024.
If you are using Starlite, please consider migrating to Litestar (https://litestar.dev) or another alternative.
Releases contributed by @patrick91 via #3609
🍓 0.237.3
🍓 0.237.2
🍓 0.237.1
🍓 0.237.0
🍓 0.236.2
🍓 0.236.1
This release fixes an issue where optional lazy types using | None
were
failing to be correctly resolved inside modules using future annotations, e.g.
from __future__ import annotations
from typing import Annotated, TYPE_CHECKING
import strawberry
if TYPE_CHECKING:
from types import Group
@strawberry.type
class Person:
group: Annotated["Group", strawberry.lazy("types.group")] | None
This should now work as expected.
Releases contributed by @bellini666 via #3576
🍓 0.236.0
This release changes some of the internals of Strawberry, it shouldn't
be affecting most of the users, but since we have changed the structure
of the code you might need to update your imports.
Thankfully we also provide a codemod for this, you can run it with:
strawberry upgrade update-imports
This release also includes additional documentation to some of
the classes, methods and functions, this is in preparation for
having the API reference in the documentation ✨
Releases contributed by @patrick91 via #3546