Strawberry-graphql

Latest version: v0.235.0

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

Scan your dependencies

Page 63 of 122

0.99.3

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

This release adds support for flask 2.x and also relaxes the requirements for Django, allowing to install newer version of Django without having to wait for Strawberry to update its supported dependencies list.

Contributed by [Guillaume Andreu Sabater](https://github.com/g-as) [PR #1687](https://github.com/strawberry-graphql/strawberry/pull/1687/)

0.99.2

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

This fixes the schema printer to add support for schema
directives on input types.

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

0.99.1

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

This release fixed a false positive deprecation warning related to our AIOHTTP class based view.

Contributed by [Jonathan Ehwald](https://github.com/DoctorJohn) [PR #1691](https://github.com/strawberry-graphql/strawberry/pull/1691/)

0.99.0

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

This release adds the following scalar types:

- `JSON`
- `Base16`
- `Base32`
- `Base64`

they can be used like so:

python
from strawberry.scalar import Base16, Base32, Base64, JSON


strawberry.type
class Example:
a: Base16
b: Base32
c: Base64
d: JSON


Contributed by [Paulo Costa](https://github.com/paulo-raca) [PR #1647](https://github.com/strawberry-graphql/strawberry/pull/1647/)

0.98.2

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

Adds support for converting pydantic conlist.
Note that constraint is not enforced in the graphql type.
Thus, we recommend always working on the pydantic type such that the validation is enforced.

python
import strawberry
from pydantic import BaseModel, conlist


class Example(BaseModel):
friends: conlist(str, min_items=1)


strawberry.experimental.pydantic.input(model=Example, all_fields=True)
class ExampleGQL: ...


strawberry.type
class Query:
strawberry.field()
def test(self, example: ExampleGQL) -> None:
friends may be an empty list here
print(example.friends)
calling to_pydantic() runs the validation and raises
an error if friends is empty
print(example.to_pydantic().friends)


schema = strawberry.Schema(query=Query)


The converted graphql type is

input ExampleGQL {
friends: [String!]!
}


Contributed by [James Chua](https://github.com/thejaminator) [PR #1656](https://github.com/strawberry-graphql/strawberry/pull/1656/)

0.98.1

-------------------

This release wasn't published on PyPI

Page 63 of 122

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.