Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency strawberry-graphql to ^0.253.0 #62

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 19, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
strawberry-graphql (source, changelog) ^0.235.0 -> ^0.253.0 age adoption passing confidence

Release Notes

strawberry-graphql/strawberry (strawberry-graphql)

v0.253.0

Compare Source

In this release, the return types of the get_root_value and get_context
methods were updated to be consistent across all view integrations. Before this
release, the return types used by the ASGI and Django views were too generic.

Contributed by Jonathan Ehwald via PR #​3712

v0.252.0

Compare Source

The view classes of all integrations now have a decode_json method that allows
you to customize the decoding of HTTP JSON requests.

This is useful if you want to use a different JSON decoder, for example, to
optimize performance.

Contributed by Jonathan Ehwald via PR #​3709

v0.251.0

Compare Source

Starting with this release, the same JSON encoder is used to encode HTTP
responses and WebSocket messages.

This enables developers to override the encode_json method on their views to
customize the JSON encoder used by all web protocols.

Contributed by Jonathan Ehwald via PR #​3708

v0.250.1

Compare Source

This release refactors part of the legacy graphql-ws protocol implementation, making it easier to read, maintain, and extend.

Contributed by Jonathan Ehwald via PR #​3704

v0.250.0

Compare Source

In this release, we migrated the graphql-transport-ws types from data classes to typed dicts.
Using typed dicts enabled us to precisely model null versus undefined values, which are common in that protocol.
As a result, we could remove custom conversion methods handling these cases and simplify the codebase.

Contributed by Jonathan Ehwald via PR #​3701

v0.249.0

Compare Source

After a year-long deprecation period, the SentryTracingExtension has been
removed in favor of the official Sentry SDK integration.

To migrate, remove the SentryTracingExtension from your Strawberry schema and
then follow the
official Sentry SDK integration guide.

Contributed by Jonathan Ehwald via PR #​3672

v0.248.1

Compare Source

This release fixes the following deprecation warning:

Failing to pass a value to the 'type_params' parameter of 'typing._eval_type' is deprecated,
as it leads to incorrect behaviour when calling typing._eval_type on a stringified annotation
that references a PEP 695 type parameter. It will be disallowed in Python 3.15.

This was only trigger in Python 3.13 and above.

Contributed by Patrick Arminio via PR #​3692

v0.248.0

Compare Source

In this release, all types of the legacy graphql-ws protocol were refactored.
The types are now much stricter and precisely model the difference between null and undefined fields.
As a result, our protocol implementation and related tests are now more robust and easier to maintain.

Contributed by Jonathan Ehwald via PR #​3689

v0.247.2

Compare Source

This release fixes the issue that some coroutines in the WebSocket protocol handlers were never awaited if clients disconnected shortly after starting an operation.

Contributed by Jonathan Ehwald via PR #​3687

v0.247.1

Compare Source

Starting with this release, both websocket-based protocols will handle unexpected socket disconnections more gracefully.

Contributed by Jonathan Ehwald via PR #​3685

v0.247.0

Compare Source

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.

Contributed by Jonathan Ehwald via PR #​3670

v0.246.3

Compare Source

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.

Contributed by Arthur via PR #​3674

v0.246.2

Compare Source

This release tweaks the Flask integration's render_graphql_ide method to be stricter typed internally, making type checkers ever so slightly happier.

Contributed by Jonathan Ehwald via PR #​3666

v0.246.1

Compare Source

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

v0.246.0

Compare Source

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.

Contributed by Jonathan Ehwald via PR #​3661

v0.245.0

Compare Source

This release removes the dated subscriptions_enabled setting from the Django and Channels integrations.
Instead, WebSocket support is now enabled by default in all GraphQL IDEs.

Contributed by Jonathan Ehwald via PR #​3660

v0.244.1

Compare Source

Fixes an issue where the codegen tool would crash when working with a nullable list of types.

Contributed by Jacob Allen via PR #​3653

v0.244.0

Compare Source

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.

Contributed by Jonathan Ehwald via PR #​3638

v0.243.1

Compare Source

This releases adds support for Pydantic 2.9.0's Mypy plugin

Contributed by Krisque via PR #​3632

v0.243.0

Compare Source

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.

Contributed by Jonathan Ehwald via PR #​3645

v0.242.0

Compare Source

Starting with this release, clients using the legacy graphql-ws subprotocol will receive an error when they try to send binary data frames.
Before, binary data frames were silently ignored.

While vaguely defined in the protocol, the legacy graphql-ws subprotocol is generally understood to only support text data frames.

Contributed by Jonathan Ehwald via PR #​3633

v0.241.0

Compare Source

You can now configure your schemas to provide a custom subclass of
strawberry.types.Info to your types and queries.

import strawberry
from strawberry.schema.config import StrawberryConfig

from .models import ProductModel

class CustomInfo(strawberry.Info):
    @​property
    def selected_group_id(self) -> int | None:
        """Get the ID of the group you're logged in as."""
        return self.context["request"].headers.get("Group-ID")

@​strawberry.type
class Group:
    id: strawberry.ID
    name: str

@​strawberry.type
class User:
    id: strawberry.ID
    name: str
    group: Group

@​strawberry.type
class Query:
    @​strawberry.field
    def user(self, id: strawberry.ID, info: CustomInfo) -> Product:
        kwargs = {"id": id, "name": ...}

        if info.selected_group_id is not None:

### Get information about the group you're a part of, if
### available.
            kwargs["group"] = ...

        return User(**kwargs)

schema = strawberry.Schema(
    Query,
    config=StrawberryConfig(info_class=CustomInfo),
)

Contributed by Ethan Henderson via PR #​3592

v0.240.4

Compare Source

This release fixes how we check for multipart subscriptions to be
in line with the latest changes in the spec.

Contributed by Patrick Arminio via PR #​3627

v0.240.3

Compare Source

This release fixes an issue that prevented extensions to receive the result from
the execution context when executing operations in async.

Contributed by ניר via PR #​3629

v0.240.2

Compare Source

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

v0.240.1

Compare Source

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

Contributed by Patrick Arminio via PR #​3510

v0.240.0

Compare Source

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]
)

Contributed by ניר via PR #​3554

v0.239.2

Compare Source

This release fixes a TypeError on Python 3.8 due to us using a
asyncio.Queue[Tuple[bool, Any]](1) instead of asyncio.Queue(1).

Contributed by Daniel Szoke via PR #​3615

v0.239.1

Compare Source

This release fixes an issue with the http multipart subscription where the
status code would be returned as None, instead of 200.

We also took the opportunity to update the internals to better support
additional protocols in future.

Contributed by Patrick Arminio via PR #​3610

v0.239.0

Compare Source

This release adds support for multipart subscriptions in almost all[^1] of our
http integrations!

Multipart subcriptions
are a new protocol from Apollo GraphQL, built on the
Incremental Delivery over HTTP spec,
which is also used for @defer and @stream.

The main advantage of this protocol is that when using the Apollo Client
libraries you don't need to install any additional dependency, but in future
this feature should make it easier for us to implement @defer and @stream

Also, this means that you don't need to use Django Channels for subscription,
since this protocol is based on HTTP we don't need to use websockets.

[^1]: Flask, Chalice and the sync Django integration don't support this.

Contributed by Patrick Arminio via PR #​3076

v0.238.1

Compare Source

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

Contributed by Hyun S. Moon via PR #​3599

v0.238.0

Compare Source

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.

Contributed by Patrick Arminio via PR #​3609

v0.237.3

Compare Source

This release fixes the type of the ASGI request handler's scope argument, making type checkers ever so slightly happier.

Contributed by Jonathan Ehwald via PR #​3581

v0.237.2

Compare Source

This release makes the ASGI and FastAPI integrations share their HTTP request adapter code, making Strawberry ever so slightly smaller and easier to maintain.

Contributed by Jonathan Ehwald via PR #​3582

v0.237.1

Compare Source

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.

Contributed by ניר via PR #​3570

v0.237.0

Compare Source

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

Contributed by Martin Roy via PR #​3562

v0.236.2

Compare Source

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.

Contributed by Bradley Oesch via PR #​3144

v0.236.1

Compare Source

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.

Contributed by Thiago Bellini Ribeiro via PR #​3576

v0.236.0

Compare Source

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 ✨

Contributed by Patrick Arminio via PR #​3546


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/strawberry-graphql-0.x branch 5 times, most recently from 5a76afa to d818fb7 Compare July 24, 2024 12:36
@renovate renovate bot changed the title Update dependency strawberry-graphql to ^0.236.0 Update dependency strawberry-graphql to ^0.237.0 Jul 24, 2024
@renovate renovate bot force-pushed the renovate/strawberry-graphql-0.x branch 2 times, most recently from 9a42440 to 53d5d50 Compare July 26, 2024 18:11
@renovate renovate bot force-pushed the renovate/strawberry-graphql-0.x branch 4 times, most recently from f202ddf to dec4fea Compare August 7, 2024 06:54
@renovate renovate bot force-pushed the renovate/strawberry-graphql-0.x branch 2 times, most recently from ce9de84 to dcc1404 Compare August 17, 2024 06:11
@renovate renovate bot force-pushed the renovate/strawberry-graphql-0.x branch 2 times, most recently from 1856faa to 9b0c0da Compare August 26, 2024 03:21
@renovate renovate bot force-pushed the renovate/strawberry-graphql-0.x branch from 9b0c0da to 1ce2b2c Compare August 31, 2024 02:17
@renovate renovate bot changed the title Update dependency strawberry-graphql to ^0.237.0 Update dependency strawberry-graphql to ^0.238.0 Aug 31, 2024
@renovate renovate bot force-pushed the renovate/strawberry-graphql-0.x branch from 1ce2b2c to 947955a Compare August 31, 2024 12:28
@renovate renovate bot changed the title Update dependency strawberry-graphql to ^0.238.0 Update dependency strawberry-graphql to ^0.239.0 Aug 31, 2024
@renovate renovate bot force-pushed the renovate/strawberry-graphql-0.x branch 3 times, most recently from 679db3d to 656cdcc Compare September 10, 2024 22:59
@renovate renovate bot changed the title Update dependency strawberry-graphql to ^0.239.0 Update dependency strawberry-graphql to ^0.240.0 Sep 10, 2024
@renovate renovate bot force-pushed the renovate/strawberry-graphql-0.x branch 4 times, most recently from b341d3c to eac4441 Compare September 16, 2024 17:26
@renovate renovate bot changed the title Update dependency strawberry-graphql to ^0.240.0 Update dependency strawberry-graphql to ^0.241.0 Sep 16, 2024
@renovate renovate bot force-pushed the renovate/strawberry-graphql-0.x branch from eac4441 to 74de8de Compare September 17, 2024 04:05
@renovate renovate bot force-pushed the renovate/strawberry-graphql-0.x branch 7 times, most recently from bf6ef18 to 8854b4c Compare October 16, 2024 23:37
@renovate renovate bot force-pushed the renovate/strawberry-graphql-0.x branch 2 times, most recently from e7ec76d to 4b0272b Compare October 21, 2024 17:40
@renovate renovate bot changed the title Update dependency strawberry-graphql to ^0.246.0 Update dependency strawberry-graphql to ^0.247.0 Oct 21, 2024
@renovate renovate bot force-pushed the renovate/strawberry-graphql-0.x branch 2 times, most recently from b3ac91a to 17c5dfb Compare October 29, 2024 03:26
@renovate renovate bot force-pushed the renovate/strawberry-graphql-0.x branch 2 times, most recently from fe7cff3 to 8a1b02f Compare November 7, 2024 14:22
@renovate renovate bot changed the title Update dependency strawberry-graphql to ^0.247.0 Update dependency strawberry-graphql to ^0.248.0 Nov 7, 2024
@renovate renovate bot force-pushed the renovate/strawberry-graphql-0.x branch 3 times, most recently from 06ebc63 to 3fa198f Compare November 18, 2024 16:24
@renovate renovate bot changed the title Update dependency strawberry-graphql to ^0.248.0 Update dependency strawberry-graphql to ^0.249.0 Nov 18, 2024
@renovate renovate bot force-pushed the renovate/strawberry-graphql-0.x branch from 3fa198f to 18ab9c4 Compare November 18, 2024 19:37
@renovate renovate bot changed the title Update dependency strawberry-graphql to ^0.249.0 Update dependency strawberry-graphql to ^0.250.0 Nov 18, 2024
@renovate renovate bot force-pushed the renovate/strawberry-graphql-0.x branch from 18ab9c4 to 252af7f Compare November 21, 2024 11:32
@renovate renovate bot changed the title Update dependency strawberry-graphql to ^0.250.0 Update dependency strawberry-graphql to ^0.251.0 Nov 21, 2024
@renovate renovate bot force-pushed the renovate/strawberry-graphql-0.x branch 2 times, most recently from 35edb4d to ee8dbbd Compare November 22, 2024 12:01
@renovate renovate bot changed the title Update dependency strawberry-graphql to ^0.251.0 Update dependency strawberry-graphql to ^0.252.0 Nov 22, 2024
@renovate renovate bot force-pushed the renovate/strawberry-graphql-0.x branch from ee8dbbd to 86075cb Compare November 23, 2024 16:05
@renovate renovate bot changed the title Update dependency strawberry-graphql to ^0.252.0 Update dependency strawberry-graphql to ^0.253.0 Nov 23, 2024
@renovate renovate bot force-pushed the renovate/strawberry-graphql-0.x branch from 86075cb to e3288bb Compare December 2, 2024 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants