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

chore(deps): bump fastapi-pagination from 0.12.27 to 0.12.29 in /src #10

Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 7, 2024

Bumps fastapi-pagination from 0.12.27 to 0.12.29.

Release notes

Sourced from fastapi-pagination's releases.

0.12.29

  • Fix issue with sqlalchemy scalar select detection. #1313
  • Add unwrap mode for sqlalchemy ext. #1316

New Feature

sqlalchemy unwrap_mode allows you to control how to unwrap result rows before passing them to items transformer and page creation.

unwrap_mode can be set to one of the following values:

  • None - will use auto mode for default queries, and legacy for text and from_statement queries.
  • "auto" - will unwrap only in case if you are selecting single model.
  • "legacy" - will use old behavior, where row will be unwrapped if it contains only one element.
  • "unwrap" - will always unwrap row, even if it contains multiple elements.
  • "no-unwrap" - will never unwrap row, even if it contains only one element.

0.12.28

  • Add better logic for sqlalchemy scalars unwrapping. #1281
  • Fix issue with sqlalchemy imports for gino ext. #1282
  • Fix issue with incorrect body schema. #1299

Breaking changes

sqlachemy extension no longer requires to use items_transformer when selecting scalar field:

This code is no longer valid:

paginate(session, select(User.name), transformer=lambda items: [{'name': item} for item in items])

The correct version now is:

paginate(session, select(User.name))
Commits
  • 894b38c Update pyproject.toml
  • 954f1e8 Add unwrap mode for sqlalchemy ext (#1316)
  • 40ddbe5 Fix issue with SQLAlchemy scalar select detection (#1313)
  • b9919c8 Merge pull request #1315 from uriyyo/dependabot/pip/faker-30.1.0
  • 13d3907 Bump faker from 30.0.0 to 30.1.0
  • 0d69107 Update first-steps.md (#1310)
  • e7cd474 Merge pull request #1308 from uriyyo/dependabot/pip/uvicorn-0.31.0
  • 625e840 Bump uvicorn from 0.30.6 to 0.31.0
  • 291c3cd Merge pull request #1309 from uriyyo/dependabot/pip/mkdocs-material-9.5.39
  • 0ed825b Bump mkdocs-material from 9.5.38 to 9.5.39
  • 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 <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)

Bumps [fastapi-pagination](https://github.com/uriyyo/fastapi-pagination) from 0.12.27 to 0.12.29.
- [Release notes](https://github.com/uriyyo/fastapi-pagination/releases)
- [Commits](uriyyo/fastapi-pagination@0.12.27...0.12.29)

---
updated-dependencies:
- dependency-name: fastapi-pagination
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Oct 7, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Oct 14, 2024

Superseded by #13.

@dependabot dependabot bot closed this Oct 14, 2024
@dependabot dependabot bot deleted the dependabot/pip/src/fastapi-pagination-0.12.29 branch October 14, 2024 09:09
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 python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants