Strawberry-graphql

Latest version: v0.229.1

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

Scan your dependencies

Page 59 of 119

0.103.1

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

This release adds support for MyPy 0.941 under Python 3.10

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

0.103.0

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

This release adds an experimental codegen feature for queries.
It allows to combine a graphql query and Strawberry schema to generate
Python types or TypeScript types.

You can use the following command:

bash
strawberry codegen --schema schema --output-dir ./output -p python query.graphql


to generate python types that correspond to your GraphQL query.

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

0.102.3

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

This release makes StrawberryOptional and StrawberryList hashable,
allowing to use strawberry types with libraries like dacite and
dataclasses_json.

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

0.102.2

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

Add support for postponed evaluation of annotations
([PEP-563](https://www.python.org/dev/peps/pep-0563/)) to `strawberry.Private`
annotated fields.

Example

This release fixes Issue 1586 using schema-conversion time filtering of
`strawberry.Private` fields for PEP-563. This means the following is now
supported:

python
strawberry.type
class Query:
foo: "strawberry.Private[int]"


Forward references are supported as well:

python
from __future__ import annotations

from dataclasses import dataclass


strawberry.type
class Query:
private_foo: strawberry.Private[SensitiveData]

strawberry.field
def foo(self) -> int:
return self.private_foo.visible


dataclass
class SensitiveData:
visible: int
not_visible: int


Contributed by [San Kilkis](https://github.com/skilkis) via [PR #1684](https://github.com/strawberry-graphql/strawberry/pull/1684/)

0.102.1

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

This PR improves the support for scalars when using MyPy.

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

0.102.0

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

Added the response object to `get_context` on the `flask` view. This means that in fields, something like this can be used;

python
strawberry.field
def response_check(self, info: strawberry.Info) -> bool:
response: Response = info.context["response"]
response.status_code = 401

return True

Page 59 of 119

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.