This release fixes support for generics in arguments, see the following example:
T = TypeVar('T')
@​strawberry.type
class Node(Generic[T]):
@​strawberry.field
def data(self, arg: T) -> T: # arg is also generic
return arg
🍓 0.149.1
This release improves the performance of rich exceptions on custom scalars
by changing how frames are fetched from the call stack.
Before the change, custom scalars were using a CPU intensive call to the
inspect module to fetch frame info which could lead to serious CPU spikes.
🍓 0.149.0
This release does some internal refactoring of the HTTP views, hopefully it
doesn't affect anyone. It mostly changes the status codes returned in case of
errors (e.g. bad JSON, missing queries and so on).
It also improves the testing, and adds an entirely new test suite for the HTTP
views, this means in future we'll be able to keep all the HTTP views in sync
feature-wise.
🍓 0.148.0
This release changes the get_context, get_root_value and process_result
methods of the Flask async view to be async functions. This allows you to use
async code in these methods.
🍓 0.147.0
This release introduces a encode_json method on all the HTTP integrations.
This method allows to customize the encoding of the JSON response. By default we
use json.dumps but you can override this method to use a different encoder.
It also deprecates json_encoder and json_dumps_params in the Django and
Sanic views, encode_json should be used instead.
🍓 0.146.0
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.
This release improves the performance of rich exceptions on custom scalars
by changing how frames are fetched from the call stack.
Before the change, custom scalars were using a CPU intensive call to the
inspect module to fetch frame info which could lead to serious CPU spikes.
This release does some internal refactoring of the HTTP views, hopefully it
doesn't affect anyone. It mostly changes the status codes returned in case of
errors (e.g. bad JSON, missing queries and so on).
It also improves the testing, and adds an entirely new test suite for the HTTP
views, this means in future we'll be able to keep all the HTTP views in sync
feature-wise.
This release changes the get_context, get_root_value and process_result
methods of the Flask async view to be async functions. This allows you to use
async code in these methods.
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.149.2.
Release notes
Sourced from strawberry-graphql's releases.
... (truncated)
Changelog
Sourced from strawberry-graphql's changelog.
... (truncated)
Commits
9b1635f
Release 🍓 0.149.24b9aa37
Fix for generic types to be used as argument annotations. (#2316)2bdfacf
Add test for async resolve reference (#2392)d379415
Add FAQ docs (#765) (#2262)4dc99cc
Add FAQ page (#1722)6176976
Release 🍓 0.149.132974cd
Optimization: Improve performance of rich exceptions on custom scalar (#2390)bf045ad
Release 🍓 0.149.07ae27ab
Create initial structure for unified HTTP tests (#1840)c8f44e5
Release 🍓 0.148.0Dependabot 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)