Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump strawberry-graphql from 0.243.1 to 0.253.1 #222

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 4, 2024

Bumps strawberry-graphql from 0.243.1 to 0.253.1.

Release notes

Sourced from strawberry-graphql's releases.

🍓 0.253.1

Description: Fixed a bug in the OpenTelemetryExtension class where the _span_holder dictionary was incorrectly shared across all instances. This was caused by defining _span_holder as a class-level attribute with a mutable default value (dict()).

Releases contributed by @​conglei via #3716

🍓 0.253.0

In this release, the return types of the get_root_value and get_context methods were updated to be consistent across all view integrations. Before this release, the return types used by the ASGI and Django views were too generic.

Releases contributed by @​DoctorJohn via #3712

🍓 0.252.0

The view classes of all integrations now have a decode_json method that allows you to customize the decoding of HTTP JSON requests.

This is useful if you want to use a different JSON decoder, for example, to optimize performance.

Releases contributed by @​DoctorJohn via #3709

🍓 0.251.0

Starting with this release, the same JSON encoder is used to encode HTTP responses and WebSocket messages.

This enables developers to override the encode_json method on their views to customize the JSON encoder used by all web protocols.

Releases contributed by @​DoctorJohn via #3708

🍓 0.250.1

This release refactors part of the legacy graphql-ws protocol implementation, making it easier to read, maintain, and extend.

Releases contributed by @​DoctorJohn via #3704

🍓 0.250.0

In this release, we migrated the graphql-transport-ws types from data classes to typed dicts. Using typed dicts enabled us to precisely model null versus undefined values, which are common in that protocol. As a result, we could remove custom conversion methods handling these cases and simplify the codebase.

Releases contributed by @​DoctorJohn via #3701

🍓 0.249.0

After a year-long deprecation period, the SentryTracingExtension has been removed in favor of the official Sentry SDK integration.

To migrate, remove the SentryTracingExtension from your Strawberry schema and then follow the official Sentry SDK integration guide.

... (truncated)

Changelog

Sourced from strawberry-graphql's changelog.

0.253.1 - 2024-12-03

Description: Fixed a bug in the OpenTelemetryExtension class where the _span_holder dictionary was incorrectly shared across all instances. This was caused by defining _span_holder as a class-level attribute with a mutable default value (dict()).

Contributed by Conglei via [PR #3716](strawberry-graphql/strawberry#3716)

0.253.0 - 2024-11-23

In this release, the return types of the get_root_value and get_context methods were updated to be consistent across all view integrations. Before this release, the return types used by the ASGI and Django views were too generic.

Contributed by Jonathan Ehwald via [PR #3712](strawberry-graphql/strawberry#3712)

0.252.0 - 2024-11-22

The view classes of all integrations now have a decode_json method that allows you to customize the decoding of HTTP JSON requests.

This is useful if you want to use a different JSON decoder, for example, to optimize performance.

Contributed by Jonathan Ehwald via [PR #3709](strawberry-graphql/strawberry#3709)

0.251.0 - 2024-11-21

Starting with this release, the same JSON encoder is used to encode HTTP responses and WebSocket messages.

This enables developers to override the encode_json method on their views to customize the JSON encoder used by all web protocols.

Contributed by Jonathan Ehwald via [PR #3708](strawberry-graphql/strawberry#3708)

0.250.1 - 2024-11-19

This release refactors part of the legacy graphql-ws protocol implementation, making it easier to read, maintain, and extend.

Contributed by Jonathan Ehwald via [PR #3704](strawberry-graphql/strawberry#3704)

... (truncated)

Commits

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 <dependency name> 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)

Summary by Sourcery

Bump strawberry-graphql from version 0.243.1 to 0.253.1, introducing new features like custom JSON decoding and consistent JSON encoding across protocols, fixing a bug in OpenTelemetryExtension, and enhancing type consistency and protocol implementations.

New Features:

  • Introduce a decode_json method in view classes for custom HTTP JSON request decoding.
  • Enable the use of a consistent JSON encoder for both HTTP responses and WebSocket messages.

Bug Fixes:

  • Fix a bug in the OpenTelemetryExtension class where the _span_holder dictionary was incorrectly shared across instances.

Enhancements:

  • Update return types of get_root_value and get_context methods for consistency across view integrations.
  • Refactor the legacy graphql-ws protocol implementation for improved readability and maintainability.
  • Migrate graphql-transport-ws types from data classes to typed dicts for better handling of null and undefined values.

Chores:

  • Remove the deprecated SentryTracingExtension in favor of the official Sentry SDK integration.

Bumps [strawberry-graphql](https://github.com/strawberry-graphql/strawberry) from 0.243.1 to 0.253.1.
- [Release notes](https://github.com/strawberry-graphql/strawberry/releases)
- [Changelog](https://github.com/strawberry-graphql/strawberry/blob/main/CHANGELOG.md)
- [Commits](strawberry-graphql/strawberry@0.243.1...0.253.1)

---
updated-dependencies:
- dependency-name: strawberry-graphql
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Dec 4, 2024
Copy link
Contributor

sourcery-ai bot commented Dec 4, 2024

Reviewer's Guide by Sourcery

This PR updates the strawberry-graphql dependency from version 0.243.1 to 0.253.1. The update includes several significant improvements to the library, including bug fixes, API consistency improvements, and new customization features for JSON handling.

Class diagram for OpenTelemetryExtension bug fix

classDiagram
    class OpenTelemetryExtension {
        - _span_holder: dict
        + _span_holder: instance-level dict
    }
    note for OpenTelemetryExtension "Fixed bug by moving _span_holder from class-level to instance-level."
Loading

Class diagram for view integration updates

classDiagram
    class ViewIntegration {
        + get_root_value(): ReturnType
        + get_context(): ReturnType
        + decode_json(): CustomDecoder
        + encode_json(): CustomEncoder
    }
    note for ViewIntegration "Updated return types for get_root_value and get_context. Added decode_json and encode_json methods."
Loading

File-Level Changes

Change Details Files
Fixed a critical bug in OpenTelemetry integration
  • Fixed shared dictionary bug in OpenTelemetryExtension class
  • Corrected _span_holder implementation to prevent incorrect sharing across instances
poetry.lock
Improved API consistency and type safety across view integrations
  • Standardized return types for get_root_value and get_context methods
  • Updated ASGI and Django views to use more specific types
poetry.lock
Enhanced JSON handling capabilities
  • Added customizable decode_json method for HTTP JSON requests
  • Unified JSON encoder usage across HTTP responses and WebSocket messages
  • Added ability to override encode_json method for all web protocols
poetry.lock
Removed deprecated features and improved protocol implementations
  • Removed SentryTracingExtension after deprecation period
  • Refactored graphql-ws protocol implementation for better maintainability
  • Migrated graphql-transport-ws types to typed dicts for better null handling
poetry.lock

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. It seems to have been created by a bot (hey, dependabot[bot]!). We assume it knows what it's doing!

Copy link

codspeed-hq bot commented Dec 4, 2024

CodSpeed Performance Report

Merging #222 will not alter performance

Comparing dependabot/pip/strawberry-graphql-0.253.1 (77ce9dc) with main (2133fd7)

Summary

✅ 1 untouched benchmarks

Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 13, 2024

Superseded by #225.

@dependabot dependabot bot closed this Dec 13, 2024
@dependabot dependabot bot deleted the dependabot/pip/strawberry-graphql-0.253.1 branch December 13, 2024 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants