fix(deps): update dependency strawberry-graphql-django to v0.82.1#51
Open
renovate[bot] wants to merge 1 commit intodevelopfrom
Open
fix(deps): update dependency strawberry-graphql-django to v0.82.1#51renovate[bot] wants to merge 1 commit intodevelopfrom
renovate[bot] wants to merge 1 commit intodevelopfrom
Conversation
90bbc18 to
599e7de
Compare
8272e17 to
d441361
Compare
e54dc55 to
d547cf4
Compare
d547cf4 to
540644c
Compare
540644c to
eeb07cf
Compare
eeb07cf to
663b022
Compare
663b022 to
5b56e9c
Compare
5b56e9c to
e0f1f20
Compare
e0f1f20 to
b9dde91
Compare
aa3542a to
3d8ef27
Compare
3d8ef27 to
bc664f0
Compare
bc664f0 to
0b84557
Compare
0b84557 to
1c6a5a8
Compare
1c6a5a8 to
531f767
Compare
531f767 to
48d4706
Compare
aeacd0b to
1080ba2
Compare
1080ba2 to
fbf8cc2
Compare
fbf8cc2 to
743eeca
Compare
743eeca to
101d7fe
Compare
101d7fe to
9da5806
Compare
9da5806 to
a21c5aa
Compare
f9c64e3 to
1fab5b9
Compare
1fab5b9 to
a6e39e9
Compare
a6e39e9 to
a088c3d
Compare
a088c3d to
c7b7c8c
Compare
c7b7c8c to
58e588f
Compare
58e588f to
c18636d
Compare
04dc53e to
abe3361
Compare
abe3361 to
2d6d13a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==0.47.1→==0.82.1Release Notes
strawberry-graphql/strawberry-django (strawberry-graphql-django)
v0.82.1Compare Source
Fix
FieldErrorwhen using the optimizer withdjango-polymorphicmodels.The optimizer now uses the CamelCase model name for polymorphic optimization hints (e.g.,
ArtProject___fieldinstead ofapp_label__artproject___field). This ensures thatdjango-polymorphiccorrectly handles mismatched optimization hints during the realization of mixed querysets by raising anAssertionError(which it catches) instead of an unhandledFieldError. This change also avoids potential name collisions with lowercase reverse relations in multi-table inheritance.A
polymorphicoptional dependency extra has been added, which sets the lower limit version to4.0.0. Install withpip install strawberry-graphql-django[polymorphic]to pull indjango-polymorphic.This release was contributed by @valkrypton in #894
Additional contributors: @bellini666
v0.82.0Compare Source
Fix
FieldExtensionarguments being silently lost onStrawberryDjangoField.When a
FieldExtensionappended arguments tofield.argumentsin itsapply()method, the arguments worked withstrawberry.fieldbut silently disappeared withstrawberry_django.field. This was because the mixin chain (Pagination → Ordering → Filters → Base) created a new list on every.argumentsaccess, so.append()mutated a temporary copy.Added a caching
argumentsproperty toStrawberryDjangoFieldso that the first access computes and caches the full arguments list, and subsequent accesses (including.append()from extensions) operate on the same cached list.This release was contributed by @bellini666 in #892
v0.81.0Compare Source
Fix
StrFilterLookupso it can be used without a type parameter (e.g.,name: StrFilterLookup | None). Previously this raisedTypeError: "StrFilterLookup" is generic, but no type has been passedat schema build time.This release was contributed by @bellini666 in #891
v0.80.0Compare Source
Add support for graphql-core 3.3.x alongside existing 3.2.x support.
The minimum supported version of strawberry-graphql has been increased to 0.310.1.
When using the graphql-core 3.3.x series, the minimum supported version is 3.3.0a12.
This release was contributed by @bellini666 in #850
v0.79.2Compare Source
Fix docs example for
process_filterscustom filter method whereprefixwas missing a trailing__, causing DjangoFieldError. Also add aUserWarninginprocess_filters()when a non-empty prefix doesn't end with__to help users catch this mistake early.This release was contributed by @Ckk3 in #883
v0.79.1Compare Source
Fix FK
_idfields (e.g.color_id: auto) in input types failing withmutations.create(). Previously,prepare_create_update()didn't recognize FK attnames, causing the value to be silently dropped andfull_clean()to fail. Now attname fields are mapped and their raw PK values are passed through directly.This release was contributed by @bellini666 in #880
v0.79.0Compare Source
Pass
Infoinstead ofGraphQLResolveInfoto callables provided inprefetch_relatedandannotatearguments ofstrawberry_django.field.This is technically a breaking change because the argument type passed to these callables has changed. However,
Infoacts as a proxy forGraphQLResolveInfoand is compatible with the utilities typically used within prefetch or annotate functions, such asoptimize.This release was contributed by @rcybulski1122012 in #872
v0.78.0Compare Source
Add
skip_queryset_filterparameter tofilter_field()for declaring virtual (non-filtering) fields on filter types.Fields marked with
skip_queryset_filter=Trueappear in the GraphQL input type but are not applied as database filters. They are accessible viaself.<field>in custom filter methods, making them useful for passing parameters like thresholds or configuration values.This release was contributed by @bellini666 in #876
v0.77.0Compare Source
Automatically inject FK fields into
.only()on user-providedPrefetchquerysetswhen the
onlyoptimization is enabled.This prevents N+1 queries caused by Django re-fetching the FK field needed to match
prefetched rows back to parent objects.
The optimizer now correctly resolves reverse relations by
related_nameand restrictsFK injection to
ManyToOneRel,OneToOneRel, andGenericRelation.This release was contributed by @bellini666 in #874
v0.76.2Compare Source
Fix N+1 queries when using
optimize()inside aPrefetchobject with.only()optimization. The optimizer now correctly auto-adds the FK field needed by Django to match prefetched objects back to their parent.This release was contributed by @bellini666 in #873
v0.76.1Compare Source
Fix optimizer skipping optimization entirely for aliased fields. When a GraphQL query uses aliases for the same field (e.g.,
a: milestones { id }andb: milestones { id }), the optimizer now merges them into a single prefetch instead of skipping optimization, preventing N+1 queries.Aliases with different arguments (e.g.,
a: issues(filters: {search: "Foo"})andb: issues(filters: {search: "Bar"})) are still skipped, since a single prefetch cannot satisfy both filter sets and optimizing one would produce wrong results for the other.This release was contributed by @bellini666 in #871
v0.76.0Compare Source
Add native federation support via
strawberry_django.federationmodule.New decorators that combine
strawberry_djangofunctionality with Apollo Federation:strawberry_django.federation.type- Federation-aware Django type with auto-generatedresolve_referencestrawberry_django.federation.interface- Federation-aware Django interfacestrawberry_django.federation.field- Federation-aware Django field with directives like@external,@requires,@providesExample usage:
The auto-generated
resolve_referencemethods support composite keys and multiple keys, and integrate with the query optimizer.Note: This release requires
strawberry-graphql>=0.303.0.v0.75.3Compare Source
Add support for strawberry-graphql 0.307.x.
Also, the deprecated
asserts_errorsparameter has been removed from test clientquery()methods. Useassert_no_errorsinstead.This release was contributed by @bellini666 in #870
Additional contributors: @Copilot
v0.75.2Compare Source
Fixes compatibility with
strawberry-graphql>=0.296.0by ensuring properInfotype resolution.Infois now imported at runtime and resolver arguments include explicit type annotations.This aligns with the updated behavior where parameter injection is strictly type-hint based rather than name-based.
Before, resolvers relying on implicit name-based injection could fail under newer Strawberry versions.
After this change, resolvers work correctly with the stricter type-based injection system introduced in newer releases.
This release was contributed by @daudln in #866
Additional contributors: @pre-commit-ci[bot]
v0.75.1Compare Source
Fix
DuplicatedTypeNameerrors when usingFilterLookup[str]by:StrFilterLookupfrom the top-levelstrawberry_djangomoduleFilterLookup[str]orFilterLookup[uuid.UUID]Users should migrate from:
To:
This release was contributed by @bellini666 in #851
v0.75.0Compare Source
Adds support for Django-style relationship traversal in
strawberry_django.field(field_name=...)usingLOOKUP_SEP(__). You can now flatten related objects or scalar fields without custom resolvers.Examples:
The traversal returns
Noneif an intermediate relationship isNone. Documentation and tests cover the new behavior, including optimizer query counts.This release was contributed by @bellini666 in #852
v0.74.3Compare Source
v0.74.2Compare Source
Fix offset pagination extensions so they receive pagination, order, and filter
arguments consistently with connection fields. This allows extensions to inspect
filters for permission/validation while keeping resolvers tolerant of missing
params.
v0.74.1Compare Source
Pagination
pageInfo.limitnow returns the actual limit applied (after defaults and max caps), not the raw request value.For example, with
PAGINATION_DEFAULT_LIMIT=20,PAGINATION_MAX_LIMIT=50:{ fruits(pagination: { limit: null }) { pageInfo { limit } } }Before:
{ "data": { "fruits": { "pageInfo": { "limit": null } } } }After:
{ "data": { "fruits": { "pageInfo": { "limit": 20 } } } }Also fixes
limit: nullto usePAGINATION_DEFAULT_LIMITinstead ofPAGINATION_MAX_LIMIT.This release was contributed by @bellini666 in #848
v0.74.0Compare Source
Add configurable
PAGINATION_MAX_LIMITsetting to cap pagination requests, preventing clients from requesting unlimited data vialimit: nullor excessive limits.This addresses security and performance concerns by allowing projects to enforce a maximum number of records that can be requested through pagination.
Configuration:
When set, any client request with
limit: null, negative limits, or limits exceeding the configured maximum will be capped toPAGINATION_MAX_LIMIT. Defaults toNone(unlimited) for backward compatibility, though setting a limit is recommended for production environments.Works with both offset-based and window-based pagination.
This release was contributed by @bellini666 in #847
v0.73.1Compare Source
This release fixes a bug, which caused nested prefetch_related hints to get incorrectly merged
in certain cases.
This release was contributed by @diesieben07 in #839
v0.73.0Compare Source
Nothing changed, testing the new release process using
autopub.v0.72.2Compare Source
Nothing changed, testing the new release process using
autopub.This release was contributed by @bellini666 in #837
v0.72.0Compare Source
v0.71.0Compare Source
v0.70.1Compare Source
v0.70.0Compare Source
v0.69.0Compare Source
v0.68.0Compare Source
v0.67.2Compare Source
v0.67.1Compare Source
v0.67.0Compare Source
v0.66.2Compare Source
v0.66.1Compare Source
v0.66.0Compare Source
v0.65.1Compare Source
v0.65.0Compare Source
v0.64.0Compare Source
v0.63.0Compare Source
v0.62.0Compare Source
v0.61.0Compare Source
v0.60.0Compare Source
v0.59.1Compare Source
v0.59.0Compare Source
v0.58.0Compare Source
v0.57.1Compare Source
v0.57.0Compare Source
v0.56.0Compare Source
v0.55.2Compare Source
v0.55.1Compare Source
v0.55.0Compare Source
v0.54.0Compare Source
v0.53.3Compare Source
v0.53.2Compare Source
v0.53.1Compare Source
v0.53.0Compare Source
v0.52.1Compare Source
v0.52.0Compare Source
v0.51.0Compare Source
v0.50.0Compare Source
v0.49.1Compare Source
v0.49.0Compare Source
v0.48.0Compare Source
v0.47.2Compare Source
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 is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.