KundaPanda / strawberry-django-jwt

[UNMAINTAINED] JSON Web Token (JWT) authentication for Django with Strawberry GraphQL
MIT License
37 stars 16 forks source link

Bump strawberry-graphql from 0.133.5 to 0.156.2 #409

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps strawberry-graphql from 0.133.5 to 0.156.2.

Release notes

Sourced from strawberry-graphql's releases.

🍓 0.156.2

This release updates the typing for the resolver argument in strawberry.fieldi to support async resolvers. This means that now you won't get any type error from Pyright when using async resolver, like the following example:

import strawberry

async def get_user_age() -> int: return 0

@​strawberry.type class User: name: str age: int = strawberry.field(resolver=get_user_age)

Releases contributed by @​patrick91 via #2528

🍓 0.156.1

Add GraphQLWebsocketCommunicator for testing websockets on channels. i.e:

import pytest
from strawberry.channels.testing import GraphQLWebsocketCommunicator
from myapp.asgi import application

@​pytest.fixture async def gql_communicator(): async with GraphQLWebsocketCommunicator( application=application, path="/graphql" ) as client: yield client

async def test_subscribe_echo(gql_communicator): async for res in gql_communicator.subscribe( query='subscription { echo(message: "Hi") }' ): assert res.data == {"echo": "Hi"}

Releases contributed by @​nrbnlulu via #2458

🍓 0.156.0

... (truncated)

Changelog

Sourced from strawberry-graphql's changelog.

0.156.2 - 2023-02-09

This release updates the typing for the resolver argument in strawberry.fieldi to support async resolvers. This means that now you won't get any type error from Pyright when using async resolver, like the following example:

import strawberry

async def get_user_age() -> int: return 0

@​strawberry.type class User: name: str age: int = strawberry.field(resolver=get_user_age)

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

0.156.1 - 2023-02-09

Add GraphQLWebsocketCommunicator for testing websockets on channels. i.e:

import pytest
from strawberry.channels.testing import GraphQLWebsocketCommunicator
from myapp.asgi import application

@​pytest.fixture async def gql_communicator(): async with GraphQLWebsocketCommunicator( application=application, path="/graphql" ) as client: yield client

async def test_subscribe_echo(gql_communicator): async for res in gql_communicator.subscribe( query='subscription { echo(message: "Hi") }' ): assert res.data == {"echo": "Hi"} </tr></table>

... (truncated)

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 1 year ago

Superseded by #410.