Skip to content

Releases: strawberry-graphql/strawberry

🍓 0.237.1

24 Jul 16:14
Compare
Choose a tag to compare

This release adds support for GraphQL-core v3.3 (which has not yet been
released). Note that we continue to support GraphQL-core v3.2 as well.

Releases contributed by @nrbnlulu via #3570

🍓 0.237.0

24 Jul 10:41
Compare
Choose a tag to compare

This release ensures using pydantic 2.8.0 doesn't break when using experimental
pydantic_type and running mypy.

Releases contributed by @lindycoder via #3562

🍓 0.236.2

23 Jul 21:39
Compare
Choose a tag to compare

Update federation entity resolver exception handling to set the result to the original error instead of a GraphQLError, which obscured the original message and meta-fields.

Releases contributed by @bradleyoesch via #3144

🍓 0.236.1

23 Jul 21:05
Compare
Choose a tag to compare

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

17 Jul 16:46
Compare
Choose a tag to compare

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

🍓 0.235.2

08 Jul 11:03
Compare
Choose a tag to compare

This release removes an unnecessary check from our internal GET query parsing logic making it simpler and (insignificantly) faster.

Releases contributed by @DoctorJohn via #3558

🍓 0.235.1

26 Jun 13:44
Compare
Choose a tag to compare

This release improves the performance when returning a lot of data, especially
when using generic inputs (where we got a 7x speedup in our benchmark!).

Releases contributed by @patrick91 via #3549

🍓 0.235.0

10 Jun 16:46
Compare
Choose a tag to compare

This release adds a new configuration to disable field suggestions in the error
response.

@strawberry.type
class Query:
    name: str


schema = strawberry.Schema(
    query=Query, config=StrawberryConfig(disable_field_suggestions=True)
)

Trying to query { nam } will not suggest to query name instead.

Releases contributed by @patrick91 via #3537

🍓 0.234.3

10 Jun 14:54
Compare
Choose a tag to compare

Fixes a bug where pydantic models as the default value for an input did not print the proper schema.
See this issue.

Releases contributed by @ppease via #3499

🍓 0.234.2

07 Jun 14:23
Compare
Choose a tag to compare

This release fixes an issue when trying to retrieve specialized type vars from a
generic type that has been aliased to a name, in cases like:

@strawberry.type
class Fruit(Generic[T]): ...


SpecializedFruit = Fruit[str]

Releases contributed by @bellini666 via #3535