strawberry-graphql / strawberry-sqlalchemy

A SQLAlchemy Integration for strawberry-graphql
MIT License
91 stars 26 forks source link

Bump strawberry-graphql from 0.202.0 to 0.205.0 #30

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps strawberry-graphql from 0.202.0 to 0.205.0.

Release notes

Sourced from strawberry-graphql's releases.

🍓 0.205.0

strawberry codegen previously choked for inputs that used the strawberry.UNSET sentinal singleton value as a default. The intent here is to say that if a variable is not part of the request payload, then the UNSET default value will not be modified and the service code can then treat an unset value differently from a default value, etc.

For codegen, we treat the UNSET default value as a GraphQLNullValue. The .value property is the UNSET object in this case (instead of the usual None). In the built-in python code generator, this causes the client to generate an object with a None default. Custom client generators can sniff at this value and update their behavior.

Releases contributed by @​mgilson via #3050

🍓 0.204.0

Adds a new flag to export-schema command, --output, which allows the user to specify the output file. If unset (current behavior), the command will continue to print to stdout.

Releases contributed by @​stillmatic via #3033

🍓 0.203.3

Mark pydantic constrained list test with need_pydantic_v1 since it is removed in pydantic V2

Releases contributed by @​tjeerddie via #3034

🍓 0.203.2

Enhancements:

  • Improved pydantic conversion compatibility with specialized list classes.
    • Modified StrawberryAnnotation._is_list to check if the annotation extends from the list type, enabling it to be considered a list.
    • in StrawberryAnnotation Moved the _is_list check before the _is_generic check in resolve to avoid unsupported error in _is_generic before it checked _is_list.

This enhancement enables the usage of constrained lists as class types and allows the creation of specialized lists. The following example demonstrates this feature:

import strawberry
from pydantic import BaseModel, ConstrainedList

class FriendList(ConstrainedList): min_items = 1

class UserModel(BaseModel): age: int friend_names: FriendList[str]

@​strawberry.experimental.pydantic.type(UserModel) class User: </tr></table>

... (truncated)

Changelog

Sourced from strawberry-graphql's changelog.

0.205.0 - 2023-08-24

strawberry codegen previously choked for inputs that used the strawberry.UNSET sentinal singleton value as a default. The intent here is to say that if a variable is not part of the request payload, then the UNSET default value will not be modified and the service code can then treat an unset value differently from a default value, etc.

For codegen, we treat the UNSET default value as a GraphQLNullValue. The .value property is the UNSET object in this case (instead of the usual None). In the built-in python code generator, this causes the client to generate an object with a None default. Custom client generators can sniff at this value and update their behavior.

Contributed by Matt Gilson via [PR #3050](strawberry-graphql/strawberry#3050)

0.204.0 - 2023-08-15

Adds a new flag to export-schema command, --output, which allows the user to specify the output file. If unset (current behavior), the command will continue to print to stdout.

Contributed by Chris Hua via [PR #3033](strawberry-graphql/strawberry#3033)

0.203.3 - 2023-08-14

Mark pydantic constrained list test with need_pydantic_v1 since it is removed in pydantic V2

Contributed by tjeerddie via [PR #3034](strawberry-graphql/strawberry#3034)

0.203.2 - 2023-08-14

Enhancements:

  • Improved pydantic conversion compatibility with specialized list classes.
    • Modified StrawberryAnnotation._is_list to check if the annotation extends from the list type, enabling it to be considered a list.
    • in StrawberryAnnotation Moved the _is_list check before the _is_generic check in resolve to avoid unsupported error in _is_generic before it checked _is_list.

This enhancement enables the usage of constrained lists as class types and allows the creation of specialized lists. The following example demonstrates this feature:

import strawberry
from pydantic import BaseModel, ConstrainedList

</tr></table>

... (truncated)

Commits
  • 6d86d1c Release 🍓 0.205.0
  • 8f79f4c Handle UNSET values in the strawberry schema. (#3050)
  • 8877b21 Remove 2.0.0 file (#3051)
  • 579a1d0 Release 🍓 0.204.0
  • 472d7fd feat: add output file for export-schema (#3033)
  • 4fe8537 Mark tests that are incompatible with pydantic v2 with need_pydantic_v1 (#3035)
  • 2ecaf8a Release 🍓 0.203.3
  • 28dfb2e Fix pydantic v2 test error ConstrainedList removed in v2 (#3034)
  • 5c2105b Release 🍓 0.203.2
  • fa71d81 Add pydantic conversion compatibility with specialized list class (#2909)
  • 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 show ignore conditions` will show all of the ignore conditions of the specified dependency - `@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 1 year ago

Looks like strawberry-graphql is up-to-date now, so this is no longer needed.