Strawberry-graphql

Latest version: v0.229.1

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

Scan your dependencies

Page 28 of 119

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

0.173.0

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

This releases adds an extension for [PyInstrument](https://github.com/joerick/pyinstrument). It allows to instrument your server and find slow code paths.

You can use it like this:

python
import strawberry
from strawberry.extensions import pyinstrument

schema = strawberry.Schema(
Query,
extensions=[
pyinstrument.PyInstrument(report_path="pyinstrument.html"),
],
)


Contributed by [Peyton Duncan](https://github.com/Helithumper) via [PR #2727](https://github.com/strawberry-graphql/strawberry/pull/2727/)

0.172.0

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

This PR adds a MaxAliasesLimiter extension which limits the number of aliases in a GraphQL document.

Usage example:

python
import strawberry
from strawberry.extensions import MaxAliasesLimiter

schema = strawberry.Schema(
Query,
extensions=[
MaxAliasesLimiter(max_alias_count=15),
],
)


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

0.171.3

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

This release adds missing annotations in class methods, improving
our type coverage.

Contributed by [Kai Benevento](https://github.com/benesgarage) via [PR #2721](https://github.com/strawberry-graphql/strawberry/pull/2721/)

0.171.2

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

`graphql_transport_ws`: Cancelling a subscription no longer blocks the connection
while any subscription finalizers run.

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

Page 28 of 119

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.