Releases: strawberry-graphql/strawberry
🍓 0.247.0
This release fixes a regression in the legacy GraphQL over WebSocket protocol.
Legacy protocol implementations should ignore client message parsing errors.
During a recent refactor, Strawberry changed this behavior to match the new protocol, where parsing errors must close the WebSocket connection.
The expected behavior is restored and adequately tested in this release.
Releases contributed by @DoctorJohn via #3670
🍓 0.246.3
This release addresses a bug where directives were being added multiple times when defined in an interface which multiple objects inherits from.
The fix involves deduplicating directives when applying extensions/permissions to a field, ensuring that each directive is only added once.
Releases contributed by @Speedy1991 via #3674
🍓 0.246.2
🍓 0.246.1
This release adds support for using raw Python enum types in your schema
(enums that are not decorated with @strawberry.enum
)
This is useful if you have enum types from other places in your code
that you want to use in strawberry.
i.e
# somewhere.py
from enum import Enum
class AnimalKind(Enum):
AXOLOTL, CAPYBARA = range(2)
# gql/animals
from somewhere import AnimalKind
@strawberry.type
class AnimalType:
kind: AnimalKind
🍓 0.246.0
The AIOHTTP, ASGI, and Django test clients' asserts_errors
option has been renamed to assert_no_errors
to better reflect its purpose.
This change is backwards-compatible, but the old option name will raise a deprecation warning.
Releases contributed by @DoctorJohn via #3661
🍓 0.245.0
🍓 0.244.1
🍓 0.244.0
Starting with this release, WebSocket logic now lives in the base class shared between all HTTP integrations.
This makes the behaviour of WebSockets much more consistent between integrations and easier to maintain.
Releases contributed by @DoctorJohn via #3638
🍓 0.243.1
🍓 0.243.0
Starting with this release, multipart uploads are disabled by default and Strawberry Django view is no longer implicitly exempted from Django's CSRF protection.
Both changes relieve users from implicit security implications inherited from the GraphQL multipart request specification which was enabled in Strawberry by default.
These are breaking changes if you are using multipart uploads OR the Strawberry Django view.
Migrations guides including further information are available on the Strawberry website.
Releases contributed by @DoctorJohn via #3645