This release updates the Sanic integration and includes some breaking changes.
You might need to update your code if you are customizing get_context or
process_result
get_context
get_context now receives the request as the first argument and the response as
the second argument.
process_result
process_result is now async and receives the request and the GraphQL execution
result.
This change is needed to align all the HTTP integrations and reduce the amount
of code needed to maintain. It also makes the errors consistent with other
integrations.
It also brings a new feature and it allows to customize the HTTP status code
by using info.context["response"].status_code = YOUR_CODE.
It also removes the upper bound on the Sanic version, so you can use the latest
version of Sanic with Strawberry.
🍓 0.145.0
This release introduced improved errors! Now, when you have a syntax error in
your code, you'll get a nice error message with a line number and a pointer to
the exact location of the error. ✨
This is a huge improvement over the previous behavior, which was providing a
stack trace with no clear indication of where the error was. 🙈
You can enable rich errors by installing Strawberry with the cli extra:
pip install strawberry-graphql[cli]
🍓 0.144.3
This release fixes an issue with type duplication of generics.
You can now use a lazy type with a generic even if
the original type was already used with that generic in the schema.
This release updates the Sanic integration and includes some breaking changes.
You might need to update your code if you are customizing get_context or
process_result
get_context
get_context now receives the request as the first argument and the response as
the second argument.
process_result
process_result is now async and receives the request and the GraphQL execution
result.
This change is needed to align all the HTTP integrations and reduce the amount
of code needed to maintain. It also makes the errors consistent with other
integrations.
It also brings a new feature and it allows to customize the HTTP status code
by using info.context["response"].status_code = YOUR_CODE.
It also removes the upper bound on the Sanic version, so you can use the latest
version of Sanic with Strawberry.
This release introduced improved errors! Now, when you have a syntax error in
your code, you'll get a nice error message with a line number and a pointer to
the exact location of the error. ✨
This is a huge improvement over the previous behavior, which was providing a
stack trace with no clear indication of where the error was. 🙈
You can enable rich errors by installing Strawberry with the cli extra:
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps strawberry-graphql from 0.133.5 to 0.146.0.
Release notes
Sourced from strawberry-graphql's releases.
... (truncated)
Changelog
Sourced from strawberry-graphql's changelog.
... (truncated)
Commits
fa6cc85
Release 🍓 0.146.02192f3a
Refactor sanic view (#2273)be45bf3
Release 🍓 0.145.03c2700d
Initial implementation of friendlier errors (#2027)39edd31
Release 🍓 0.144.36bcadf4
Fix duplication of generics with lazy types (#2381)63eb008
Release 🍓 0.144.21ff74af
Generic types allowed in schema's extra types. (#2294)b8f99c2
Bump types-ujson from 5.5.0 to 5.6.0.0 (#2376)9196cc6
Bump types-chardet from 5.0.4 to 5.0.4.1 (#2377)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)