edgedb / edgedb-examples

EdgeDB example projects for different stacks
62 stars 22 forks source link

Bump strawberry-graphql from 0.114.2 to 0.116.2 #77

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps strawberry-graphql from 0.114.2 to 0.116.2.

Release notes

Sourced from strawberry-graphql's releases.

๐Ÿ“ 0.116.2

Reimplement StrawberryResolver.annotations property after removal in v0.115.

Library authors who previously relied on the public annotations property can continue to do so after this fix.

๐Ÿ“ 0.116.1

This release fixes a breaking internal error in mypy plugin for the following case.

  • using positional arguments to pass a resolver for strawberry.field() or strawberry.mutation()
failed: str = strawberry.field(resolver)
successed: str = strawberry.field(resolver=resolver)

now mypy returns an error with "field()" or "mutation()" only takes keyword arguments message rather than an internal error.

๐Ÿ“ 0.116.0

This release adds a link from generated GraphQLCore types to the Strawberry type that generated them.

From a GraphQLCore type you can now access the Strawberry type by doing:

strawberry_type: TypeDefinition = graphql_core_type.extensions[GraphQLCoreConverter.DEFINITION_BACKREF]

๐Ÿ“ 0.115.0

This release changes how we declare the info argument in resolvers and the value argument in directives.

Previously we'd use the name of the argument to determine its value. Now we use the type annotation of the argument to determine its value.

Here's an example of how the old syntax works:

def some_resolver(info) -> str:
    return info.context.get("some_key", "default")

@โ€‹strawberry.type class Example: a_field: str = strawberry.resolver(some_resolver)

and here's an example of how the new syntax works:

from strawberry.types import Info
</tr></table> 

... (truncated)

Changelog

Sourced from strawberry-graphql's changelog.

0.116.2 - 2022-07-03

Reimplement StrawberryResolver.annotations property after removal in v0.115.

Library authors who previously relied on the public annotations property can continue to do so after this fix.

Contributed by San Kilkis via [PR #1990](strawberry-graphql/strawberry#1990)

0.116.1 - 2022-07-03

This release fixes a breaking internal error in mypy plugin for the following case.

  • using positional arguments to pass a resolver for strawberry.field() or strawberry.mutation()
failed: str = strawberry.field(resolver)
successed: str = strawberry.field(resolver=resolver)

now mypy returns an error with "field()" or "mutation()" only takes keyword arguments message rather than an internal error.

Contributed by cake-monotone via [PR #1987](strawberry-graphql/strawberry#1987)

0.116.0 - 2022-07-03

This release adds a link from generated GraphQLCore types to the Strawberry type that generated them.

From a GraphQLCore type you can now access the Strawberry type by doing:

strawberry_type: TypeDefinition = graphql_core_type.extensions[GraphQLCoreConverter.DEFINITION_BACKREF]

Contributed by Paulo Costa via [PR #1766](strawberry-graphql/strawberry#1766)

0.115.0 - 2022-07-01

This release changes how we declare the info argument in resolvers and the value argument in directives.

Previously we'd use the name of the argument to determine its value. Now we use

... (truncated)

Commits
  • 72ff80d Release ๐Ÿ“ 0.116.2
  • 249b230 Reimplement annotations property on StrawberryResolver (#1990)
  • 8a0bc96 Release ๐Ÿ“ 0.116.1
  • 41b9072 fix a breaking internal error in mypy for positional arguments in field() (#1...
  • b504625 Release ๐Ÿ“ 0.116.0
  • 19346bb Add link from GraphQL types to Strawberry types (#1766)
  • 1d45453 Bump typing-extensions from 4.2.0 to 4.3.0 (#1981)
  • 6f16443 Release ๐Ÿ“ 0.115.0
  • 52dcfb5 Fix first directive argument from being cut off (#1713)
  • e48bc57 Release ๐Ÿ“ 0.114.7
  • Additional commits viewable in compare view


Dependabot compatibility score

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)
dependabot[bot] commented 2 years ago

Superseded by #88.