Skip to content
Snippets Groups Projects

Bump strawberry-graphql[fastapi] from 0.239.2 to 0.240.2

Bumps strawberry-graphql[fastapi] from 0.239.2 to 0.240.2.

Release notes

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

:strawberry: 0.240.2

This release updates how we check for GraphQL core's version to remove a dependency on the packaging package.

Releases contributed by @​bollwyvl via #3622

:strawberry: 0.240.1

This release adds support for Python 3.13 (which will be out soon!)

Releases contributed by @​patrick91 via #3510

:strawberry: 0.240.0

This release adds support for schema-extensions in subscriptions.

Here's a small example of how to use them (they work the same way as query and mutation extensions):

import asyncio
from typing import AsyncIterator
import strawberry
from strawberry.extensions.base_extension import SchemaExtension
@strawberry.type
class Subscription:
@strawberry.subscription
async def notifications(self, info: strawberry.Info) -> AsyncIterator[str]:
for _ in range(3):
yield "Hello"
class MyExtension(SchemaExtension):
async def on_operation(self):
# This would run when the subscription starts
print("Subscription started")
yield
# The subscription has ended
print("Subscription ended")
schema = strawberry.Schema(
query=Query, subscription=Subscription, extensions=[MyExtension]
)

Releases contributed by @​nrbnlulu via #3554

Changelog

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

0.240.2 - 2024-09-11

This release updates how we check for GraphQL core's version to remove a dependency on the packaging package.

Contributed by Nicholas Bollweg via [PR #3622](strawberry-graphql/strawberry#3622)

0.240.1 - 2024-09-11

This release adds support for Python 3.13 (which will be out soon!)

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

0.240.0 - 2024-09-10

This release adds support for schema-extensions in subscriptions.

Here's a small example of how to use them (they work the same way as query and mutation extensions):

import asyncio
from typing import AsyncIterator
import strawberry
from strawberry.extensions.base_extension import SchemaExtension
@strawberry.type
class Subscription:
@strawberry.subscription
async def notifications(self, info: strawberry.Info) -> AsyncIterator[str]:
for _ in range(3):
yield "Hello"
class MyExtension(SchemaExtension):
async def on_operation(self):
# This would run when the subscription starts
print("Subscription started")
yield
# The subscription has ended
print("Subscription ended")
</tr></table>

... (truncated)

Commits

Merge request reports

Pipeline #15723 passed

Pipeline: Flux de données ANCT

#15725

    Pipeline passed for b20a8490 on dependabot-pip-strawberry-graphql-fastapi--0.240.2

    Merged by Ronan AmicelRonan Amicel Sep 12, 2024 (Sep 12, 2024 12:36pm UTC)

    Loading

    Pipeline #15740 passed

    Pipeline: Flux de données ANCT

    #15741

      Pipeline passed for 5d31720d on main

      Deployed to produ‎ction‎ Sep 12, 2024

      Activity

      Filter activity
      • Approvals
      • Assignees & reviewers
      • Comments (from bots)
      • Comments (from users)
      • Commits & branches
      • Edits
      • Labels
      • Lock status
      • Mentions
      • Merge request status
      • Tracking
      Please register or sign in to reply
      Loading