Skip to content

Build(deps): bump strawberry-graphql[fastapi] from 0.227.3 to 0.229.0

Bumps strawberry-graphql[fastapi] from 0.227.3 to 0.229.0.

Release notes

Sourced from strawberry-graphql[fastapi]'s releases.

🍓 0.229.0

This release improves our support for generic types, now using the same the same generic multiple times with a list inside an interface or union is supported, for example the following will work:

import strawberry
@strawberry.type
class BlockRow[T]:
items: list[T]
@strawberry.type
class Query:
@strawberry.field
def blocks(self) -> list[BlockRow[str] | BlockRow[int]]:
return [
BlockRow(items=["a", "b", "c"]),
BlockRow(items=[1, 2, 3, 4]),
]
schema = strawberry.Schema(query=Query)

Releases contributed by @​patrick91 via #3463

🍓 0.228.0

This releases updates the JSON scalar definition to have the updated specifiedBy URL.

The release is marked as minor because it will change the generated schema if you're using the JSON scalar.

Releases contributed by @​Birdi7 via #3478

🍓 0.227.7

This releases updates the field-extensions documentation's StrawberryField stability warning to include stable features.

The release is marked as patch because it only changes documentation.

Releases contributed by @​fireteam99 via #3496

🍓 0.227.6

Fix AssertionError caused by the DatadogTracingExtension whenever the query is unavailable.

The bug in question was reported by issue #3150. The datadog extension would throw an AssertionError whenever there was no query available. This could happen if, for example, a user POSTed something to /graphql with a JSON that doesn't contain a query field as per the GraphQL spec.

... (truncated)

Changelog

Sourced from strawberry-graphql[fastapi]'s changelog.

0.229.0 - 2024-05-12

This release improves our support for generic types, now using the same the same generic multiple times with a list inside an interface or union is supported, for example the following will work:

import strawberry
@strawberry.type
class BlockRow[T]:
items: list[T]
@strawberry.type
class Query:
@strawberry.field
def blocks(self) -> list[BlockRow[str] | BlockRow[int]]:
return [
BlockRow(items=["a", "b", "c"]),
BlockRow(items=[1, 2, 3, 4]),
]
schema = strawberry.Schema(query=Query)

Contributed by Patrick Arminio via [PR #3463](strawberry-graphql/strawberry#3463)

0.228.0 - 2024-05-12

This releases updates the JSON scalar definition to have the updated specifiedBy URL.

The release is marked as minor because it will change the generated schema if you're using the JSON scalar.

Contributed by Egor via [PR #3478](strawberry-graphql/strawberry#3478)

0.227.7 - 2024-05-12

This releases updates the field-extensions documentation's StrawberryField stability warning to include stable features.

The release is marked as patch because it only changes documentation.

Contributed by Ray Sy via [PR #3496](strawberry-graphql/strawberry#3496)

... (truncated)

Commits

Merge request reports