strawberry-graphql / strawberry-sqlalchemy

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

Bump strawberry-graphql from 0.205.0 to 0.206.0 #41

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps strawberry-graphql from 0.205.0 to 0.206.0.

Release notes

Sourced from strawberry-graphql's releases.

🍓 0.206.0

strawberry codegen can now operate on multiple input query files. The previous behavior of naming the file types.js and types.py for the builtin typescript and python plugins respectively is preserved, but only if a single query file is passed. When more than one query file is passed, the code generator will now use the stem of the query file's name to construct the name of the output files. e.g. my_query.graphql -> my_query.js or my_query.py. Creators of custom plugins are responsible for controlling the name of the output file themselves. To accomodate this, if the __init__ method of a QueryCodegenPlugin has a parameter named query or query_file, the pathlib.Path to the query file will be passed to the plugin's __init__ method.

Finally, the ConsolePlugin has also recieved two new lifecycle methods. Unlike other QueryCodegenPlugin, the same instance of the ConsolePlugin is used for each query file processed. This allows it to keep state around how many total files were processed. The ConsolePlugin recieved two new lifecycle hooks: before_any_start and after_all_finished that get called at the appropriate times.

Releases contributed by @​mgilson via #2911

Changelog

Sourced from strawberry-graphql's changelog.

0.206.0 - 2023-09-13

strawberry codegen can now operate on multiple input query files. The previous behavior of naming the file types.js and types.py for the builtin typescript and python plugins respectively is preserved, but only if a single query file is passed. When more than one query file is passed, the code generator will now use the stem of the query file's name to construct the name of the output files. e.g. my_query.graphql -> my_query.js or my_query.py. Creators of custom plugins are responsible for controlling the name of the output file themselves. To accomodate this, if the __init__ method of a QueryCodegenPlugin has a parameter named query or query_file, the pathlib.Path to the query file will be passed to the plugin's __init__ method.

Finally, the ConsolePlugin has also recieved two new lifecycle methods. Unlike other QueryCodegenPlugin, the same instance of the ConsolePlugin is used for each query file processed. This allows it to keep state around how many total files were processed. The ConsolePlugin recieved two new lifecycle hooks: before_any_start and after_all_finished that get called at the appropriate times.

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

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 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)
codecov-commenter commented 1 year ago

Codecov Report

Merging #41 (a8069c4) into main (479c50d) will not change coverage. The diff coverage is n/a.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #41 +/- ## ======================================= Coverage 77.38% 77.38% ======================================= Files 10 10 Lines 734 734 Branches 107 107 ======================================= Hits 568 568 Misses 136 136 Partials 30 30 ```
dependabot[bot] commented 1 year ago

Superseded by #43.