Strawberry-graphql

Latest version: v0.235.0

Safety actively analyzes 638452 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 30 of 122

0.176.1

Not secure
--------------------

This release improves the `graphql-transport-ws` implementation by starting the sub-protocol timeout only when the connection handshake is completed.

Contributed by [Kristján Valur Jónsson](https://github.com/kristjanvalur) via [PR #2703](https://github.com/strawberry-graphql/strawberry/pull/2703/)

0.176.0

Not secure
--------------------

This release parses the input arguments to a field earlier so that Field
Extensions recieve instances of Input types rather than plain dictionaries.

Example:

python
import strawberry
from strawberry.extensions import FieldExtension


strawberry.input
class MyInput:
foo: str


class MyFieldExtension(FieldExtension):
def resolve(
self, next_: Callable[..., Any], source: Any, info: strawberry.Info, **kwargs
):
kwargs["my_input"] is instance of MyInput
...


strawberry.type
class Query:
strawberry.field
def field(self, my_input: MyInput) -> str:
return "hi"


Contributed by [Jonathan Kim](https://github.com/jkimbo) via [PR #2731](https://github.com/strawberry-graphql/strawberry/pull/2731/)

0.175.1

Not secure
--------------------

This release adds a missing parameter to `get_context`
when using subscriptions with ASGI.

Contributed by [Patrick Arminio](https://github.com/patrick91) via [PR #2739](https://github.com/strawberry-graphql/strawberry/pull/2739/)

0.175.0

Not secure
--------------------

Do not display graphiql view in fastapi doc if graphiql parameter is deactivated

Contributed by [yak-toto](https://github.com/yak-toto) via [PR #2736](https://github.com/strawberry-graphql/strawberry/pull/2736/)

0.174.0

Not secure
--------------------

This PR adds a MaxTokensLimiter extension which limits the number of tokens in a GraphQL document.

Usage example:

python
import strawberry
from strawberry.extensions import MaxTokensLimiter

schema = strawberry.Schema(
Query,
extensions=[
MaxTokensLimiter(max_token_count=1000),
],
)


Contributed by [reka](https://github.com/reka) via [PR #2729](https://github.com/strawberry-graphql/strawberry/pull/2729/)

0.173.1

Not secure
--------------------

This release bumps the version of typing_extensions to >= `4.0.0` to fix the
error: `"cannot import Self from typing_extensions"`.

Contributed by [Tien Truong](https://github.com/tienman) via [PR #2704](https://github.com/strawberry-graphql/strawberry/pull/2704/)

Page 30 of 122

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.