febus982 / bootstrap-python-fastapi

A python service built using Clean Architecture and SOLID principles
https://febus982.github.io/bootstrap-python-fastapi
40 stars 2 forks source link

Update dependency strawberry-graphql to v0.227.3 - autoclosed #156

Closed renovate[bot] closed 6 months ago

renovate[bot] commented 6 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
strawberry-graphql (source, changelog) 0.224.1 -> 0.227.3 age adoption passing confidence

Release Notes

strawberry-graphql/strawberry (strawberry-graphql) ### [`v0.227.3`](https://togithub.com/strawberry-graphql/strawberry/blob/HEAD/CHANGELOG.md#02273---2024-05-01) [Compare Source](https://togithub.com/strawberry-graphql/strawberry/compare/0.227.2...0.227.3) This release adds an optimization to `ListConnection` such that only queries with `edges` or `pageInfo` in their selected fields triggers `resolve_edges`. This change is particularly useful for the `strawberry-django` extension's `ListConnectionWithTotalCount` and the only selected field is `totalCount`. An extraneous SQL query is prevented with this optimization. Contributed by [Eric Uriostigue](https://togithub.com/euriostigue) via [PR #​3480](https://togithub.com/strawberry-graphql/strawberry/pull/3480/) ### [`v0.227.2`](https://togithub.com/strawberry-graphql/strawberry/blob/HEAD/CHANGELOG.md#02272---2024-04-21) [Compare Source](https://togithub.com/strawberry-graphql/strawberry/compare/0.227.1...0.227.2) This release fixes a minor issue where the docstring for the relay util `to_base64` described the return type incorrectly. Contributed by [Gavin Bannerman](https://togithub.com/gbannerman) via [PR #​3467](https://togithub.com/strawberry-graphql/strawberry/pull/3467/) ### [`v0.227.1`](https://togithub.com/strawberry-graphql/strawberry/blob/HEAD/CHANGELOG.md#02271---2024-04-20) [Compare Source](https://togithub.com/strawberry-graphql/strawberry/compare/0.227.0...0.227.1) This release fixes an issue where annotations on `@strawberry.type`s were overridden by our code. With release all annotations should be preserved. This is useful for libraries that use annotations to introspect Strawberry types. Contributed by [Patrick Arminio](https://togithub.com/patrick91) via [PR #​3003](https://togithub.com/strawberry-graphql/strawberry/pull/3003/) ### [`v0.227.0`](https://togithub.com/strawberry-graphql/strawberry/blob/HEAD/CHANGELOG.md#02270---2024-04-19) [Compare Source](https://togithub.com/strawberry-graphql/strawberry/compare/0.226.2...0.227.0) This release improves the schema codegen, making it more robust and easier to use. It does this by introducing a directed acyclic graph for the schema codegen, which should reduce the amount of edits needed to make the generated code work, since it will be able to generate the code in the correct order (based on the dependencies of each type). Contributed by [Patrick Arminio](https://togithub.com/patrick91) via [PR #​3116](https://togithub.com/strawberry-graphql/strawberry/pull/3116/) ### [`v0.226.2`](https://togithub.com/strawberry-graphql/strawberry/blob/HEAD/CHANGELOG.md#02262---2024-04-19) [Compare Source](https://togithub.com/strawberry-graphql/strawberry/compare/0.226.1...0.226.2) This release updates our Mypy plugin to add support for Pydantic >= 2.7.0 Contributed by [Patrick Arminio](https://togithub.com/patrick91) via [PR #​3462](https://togithub.com/strawberry-graphql/strawberry/pull/3462/) ### [`v0.226.1`](https://togithub.com/strawberry-graphql/strawberry/blob/HEAD/CHANGELOG.md#02261---2024-04-19) [Compare Source](https://togithub.com/strawberry-graphql/strawberry/compare/0.226.0...0.226.1) This releases fixes a bug in the mypy plugin where the `from_pydantic` method was not correctly typed. Contributed by [Corentin-Br](https://togithub.com/Corentin-Br) via [PR #​3368](https://togithub.com/strawberry-graphql/strawberry/pull/3368/) ### [`v0.226.0`](https://togithub.com/strawberry-graphql/strawberry/blob/HEAD/CHANGELOG.md#02260---2024-04-17) [Compare Source](https://togithub.com/strawberry-graphql/strawberry/compare/0.225.1...0.226.0) Starting with this release, any error raised from within schema extensions will abort the operation and is returned to the client. This corresponds to the way we already handle field extension errors and resolver errors. This is particular useful for schema extensions performing checks early in the request lifecycle, for example: ```python class MaxQueryLengthExtension(SchemaExtension): MAX_QUERY_LENGTH = 8192 async def on_operation(self): if len(self.execution_context.query) > self.MAX_QUERY_LENGTH: raise StrawberryGraphQLError(message="Query too large") yield ``` Contributed by [Jonathan Ehwald](https://togithub.com/DoctorJohn) via [PR #​3217](https://togithub.com/strawberry-graphql/strawberry/pull/3217/) ### [`v0.225.1`](https://togithub.com/strawberry-graphql/strawberry/blob/HEAD/CHANGELOG.md#02251---2024-04-15) [Compare Source](https://togithub.com/strawberry-graphql/strawberry/compare/0.225.0...0.225.1) This change fixes GET request queries returning a 400 if a content_type header is supplied Contributed by [Nathan John](https://togithub.com/vethan) via [PR #​3452](https://togithub.com/strawberry-graphql/strawberry/pull/3452/) ### [`v0.225.0`](https://togithub.com/strawberry-graphql/strawberry/blob/HEAD/CHANGELOG.md#02250---2024-04-14) [Compare Source](https://togithub.com/strawberry-graphql/strawberry/compare/0.224.2...0.225.0) This release adds support for using FastAPI APIRouter arguments in GraphQLRouter. Now you have the opportunity to specify parameters such as `tags`, `route_class`, `deprecated`, `include_in_schema`, etc: ```python import strawberry from fastapi import FastAPI from strawberry.fastapi import GraphQLRouter @​strawberry.type class Query: @​strawberry.field def hello(self) -> str: return "Hello World" schema = strawberry.Schema(Query) graphql_app = GraphQLRouter(schema, tags=["graphql"]) app = FastAPI() app.include_router(graphql_app, prefix="/graphql") ``` Contributed by [Nikita Paramonov](https://togithub.com/nparamonov) via [PR #​3442](https://togithub.com/strawberry-graphql/strawberry/pull/3442/) ### [`v0.224.2`](https://togithub.com/strawberry-graphql/strawberry/blob/HEAD/CHANGELOG.md#02242---2024-04-13) [Compare Source](https://togithub.com/strawberry-graphql/strawberry/compare/0.224.1...0.224.2) This releases fixes a bug where schema extensions where not running a LIFO order. Contributed by [ני×Ø](https://togithub.com/nrbnlulu) via [PR #​3416](https://togithub.com/strawberry-graphql/strawberry/pull/3416/)

Configuration

šŸ“… Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

šŸš¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.

ā™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

šŸ”• Ignore: Close this PR and you won't be reminded about these updates again.



This PR has been generated by Mend Renovate. View repository job log here.

codeclimate[bot] commented 6 months ago

Code Climate has analyzed commit 50bd6ab6 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (100% is the threshold).

This pull request will bring the total coverage in the repository to 100.0% (0.0% change).

View more on Code Climate.