KundaPanda / strawberry-django-jwt

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

Bump strawberry-graphql from 0.133.5 to 0.154.0 #400

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps strawberry-graphql from 0.133.5 to 0.154.0.

Release notes

Sourced from strawberry-graphql's releases.

🍓 0.154.0

Support constrained float field types in Pydantic models.

i.e.

import pydantic

class Model(pydantic.BaseModel): field: pydantic.confloat(le=100.0) equivalent_field: float = pydantic.Field(le=100.0)

Releases contributed by @​airwoodix via #2455

🍓 0.153.0

This change allows clients to define connectionParams when making Subscription requests similar to the way Apollo-Server does it.

With Apollo-Client (React) as an example, define a Websocket Link:

import { GraphQLWsLink } from '@apollo/client/link/subscriptions';
import { createClient } from 'graphql-ws';

const wsLink = new GraphQLWsLink(createClient({ url: 'ws://localhost:4000/subscriptions', connectionParams: { authToken: user.authToken, }, }));

and the JSON passed to connectionParams here will appear within Strawberry's context as the connection_params attribute when accessing info.context within a Subscription resolver.

Releases contributed by @​tsmith023 via #2380

🍓 0.152.0

This release adds support for updating (or adding) the query document inside an extension's on_request_start method.

This can be useful for implementing persisted queries. The old behavior of returning a 400 error if no query is present in the request is still supported.

Example usage:

from strawberry.extensions import Extension

def get_doc_id(request) -> str: """Implement this to get the document ID using your framework's request object""" ...

</tr></table>

... (truncated)

Changelog

Sourced from strawberry-graphql's changelog.

0.154.0 - 2023-01-13

Support constrained float field types in Pydantic models.

i.e.

import pydantic

class Model(pydantic.BaseModel): field: pydantic.confloat(le=100.0) equivalent_field: float = pydantic.Field(le=100.0)

Contributed by Etienne Wodey via [PR #2455](strawberry-graphql/strawberry#2455)

0.153.0 - 2023-01-13

This change allows clients to define connectionParams when making Subscription requests similar to the way Apollo-Server does it.

With Apollo-Client (React) as an example, define a Websocket Link:

import { GraphQLWsLink } from '@apollo/client/link/subscriptions';
import { createClient } from 'graphql-ws';

const wsLink = new GraphQLWsLink(createClient({ url: 'ws://localhost:4000/subscriptions', connectionParams: { authToken: user.authToken, }, }));

and the JSON passed to connectionParams here will appear within Strawberry's context as the connection_params attribute when accessing info.context within a Subscription resolver.

Contributed by Tommy Smith via [PR #2380](strawberry-graphql/strawberry#2380)

0.152.0 - 2023-01-10

This release adds support for updating (or adding) the query document inside an extension's on_request_start method.

This can be useful for implementing persisted queries. The old behavior of returning a 400 error if no query is present in the request is still supported.

... (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 #401.