Strawberry-graphql

Latest version: v0.235.0

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

Scan your dependencies

Page 77 of 122

0.77.11

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

Fixes returning "500 Internal Server Error" responses to requests with malformed json when running with ASGI integration.

Contributed by [Olesia Grydzhuk](https://github.com/Zlira) [PR #1260](https://github.com/strawberry-graphql/strawberry/pull/1260/)

0.77.10

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

This release adds `python_name` to the `Info` type.

Contributed by [Joe Freeman](https://github.com/joefreeman) [PR #1257](https://github.com/strawberry-graphql/strawberry/pull/1257/)

0.77.9

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

Fix the Pydantic conversion method for Enum values, and add a mechanism to specify an interface type when converting from Pydantic. The Pydantic interface is really a base dataclass for the subclasses to extend. When you do the conversion, you have to use `strawberry.experimental.pydantic.interface` to let us know that this type is an interface. You also have to use your converted interface type as the base class for the sub types as normal.

Contributed by [Matt Allen](https://github.com/Matt343) [PR #1241](https://github.com/strawberry-graphql/strawberry/pull/1241/)

0.77.8

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

Fixes a bug with the `selected_fields` property on `info` when an operation
variable is not defined.

Issue [1248](https://github.com/strawberry-graphql/strawberry/issues/1248).

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

0.77.7

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

Fix issues ([1158][issue1158] and [1104][issue1104]) where Generics using LazyTypes
and Enums would not be properly resolved

These now function as expected:

Enum

python
T = TypeVar("T")


strawberry.enum
class VehicleMake(Enum):
FORD = "ford"
TOYOTA = "toyota"
HONDA = "honda"


strawberry.type
class GenericForEnum(Generic[T]):
generic_slot: T


strawberry.type
class SomeType:
field: GenericForEnum[VehicleMake]


LazyType

`another_file.py`
python
strawberry.type
class TypeFromAnotherFile:
something: bool


`this_file.py`
python
T = TypeVar("T")


strawberry.type
class GenericType(Generic[T]):
item: T


strawberry.type
class RealType:
lazy: GenericType[LazyType["TypeFromAnotherFile", "another_file.py"]]


[issue1104]: https://github.com/strawberry-graphql/strawberry/issues/1104
[issue1158]: https://github.com/strawberry-graphql/strawberry/issues/1158

Contributed by [ignormies](https://github.com/BryceBeagle) [PR #1235](https://github.com/strawberry-graphql/strawberry/pull/1235/)

0.77.6

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

This release adds fragment and input variable information to the
`selected_fields` attribute on the `Info` object.

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

Page 77 of 122

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.