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 41 of 119

0.137.1

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

Allowed `CustomScalar | None` syntax for python >= 3.10.

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

0.137.0

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

This release fixes errors when using Union-of-lazy-types

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

0.136.0

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

This release refactors the chalice integration in order to keep it consistent with
the other integrations.

Deprecation:

Passing `render_graphiql` is now deprecated, please use `graphiql` instead.

New features:

- You can now return a custom status by using `info.context["response"].status_code = 418`
- You can enabled/disable queries via get using `allow_queries_via_get` (defaults to `True`)

Changes:

Trying to access /graphql via a browser and with `graphiql` set to `False` will return a 404.

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

0.135.0

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

This release adds a new `MaskErrors` extension that can be used to hide error
messages from the client to prevent exposing sensitive details. By default it
masks all errors raised in any field resolver.

python
import strawberry
from strawberry.extensions import MaskErrors

schema = strawberry.Schema(
Query,
extensions=[
MaskErrors(),
],
)


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

0.134.5

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

This release improves the error message that you get when trying
to use an enum that hasn't been decorated with `strawberry.enum`
inside a type's field.

Contributed by [Rise Riyo](https://github.com/riseriyo) via [PR #2267](https://github.com/strawberry-graphql/strawberry/pull/2267/)

0.134.4

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

This release adds support for printing schema directives on an input type object, for example the following schema:

python
strawberry.schema_directive(locations=[Location.INPUT_FIELD_DEFINITION])
class RangeInput:
min: int
max: int


strawberry.input
class CreateUserInput:
name: str
age: int = strawberry.field(directives=[RangeInput(min=1, max=100)])


prints the following:

graphql
directive rangeInput(min: Int!, max: Int!) on INPUT_FIELD_DEFINITION

input Input sensitiveInput(reason: "GDPR") {
firstName: String!
age: Int! rangeInput(min: 1, max: 100)
}


Contributed by [Etty](https://github.com/estyxx) via [PR #2233](https://github.com/strawberry-graphql/strawberry/pull/2233/)

Page 41 of 119

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.