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.152.0 #398

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps strawberry-graphql from 0.133.5 to 0.152.0.

Release notes

Sourced from strawberry-graphql's releases.

๐Ÿ“ 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""" ...

def load_persisted_query(doc_id: str) -> str: """Implement this load a query by document ID. For example, from a database.""" ...

class PersistedQuery(Extension): def on_request_start(self): request = self.execution_context.context.request

    doc_id = get_doc_id(request)

    self.execution_context.query = load_persisted_query(doc_id)

Releases contributed by @โ€‹jthorniley via #2431

๐Ÿ“ 0.151.3

This release adds support for FastAPI 0.89.0

Releases contributed by @โ€‹patrick91 via #2440

๐Ÿ“ 0.151.2

This release fixes @strawberry.experimental.pydantic.type and adds support for the metadata attribute on fields.

Example:

@strawberry.experimental.pydantic.type(model=User)
class UserType:
    private: strawberry.auto = strawberry.field(metadata={"admin_only": True})
    public: strawberry.auto

Releases contributed by @โ€‹huyz via #2415

๐Ÿ“ 0.151.1

... (truncated)

Changelog

Sourced from strawberry-graphql's changelog.

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.

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""" ...

def load_persisted_query(doc_id: str) -> str: """Implement this load a query by document ID. For example, from a database.""" ...

class PersistedQuery(Extension): def on_request_start(self): request = self.execution_context.context.request

    doc_id = get_doc_id(request)

    self.execution_context.query = load_persisted_query(doc_id)

Contributed by James Thorniley via [PR #2431](strawberry-graphql/strawberry#2431)

0.151.3 - 2023-01-09

This release adds support for FastAPI 0.89.0

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

0.151.2 - 2022-12-23

This release fixes @strawberry.experimental.pydantic.type and adds support for the metadata attribute on fields.

Example:

@strawberry.experimental.pydantic.type(model=User)
</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 #400.