Skip to content

Conversation

@dependabot
Copy link
Contributor

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

Bumps fastapi-pagination from 0.12.27 to 0.12.34.

Release notes

Sourced from fastapi-pagination's releases.

0.12.34

  • Add ability to quote/unquote cursor. #1403

0.12.33

  • Add BaseSelect type hint for SQLModel paginate. #1365
  • Fix issue with sqlalchemy.paginate with session + session.query case. #1384
  • Bump dependencies versions. #1379

0.12.32

  • Add support for sqlalchemy CompoundSelect. #1361

0.12.31

  • Add NotImplementedError to ignored exc when resolving unwrap-mode. #1324

0.12.30

  • Fix issue when select model with single field. #1317

NOTE! This is last release before 0.13.0 version.

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])

... (truncated)

Commits
  • 6f2e867 Bump to next version [no ci]
  • 082a4dd Imports fix
  • de8ea56 Remove no_type_check decorator usage
  • 1d40bb4 Add ability to quote/unquote cursor (#1403)
  • 482fa9d Merge pull request #1404 from uriyyo/dependabot/pip/ruff-0.8.4
  • 53b4678 Bump ruff from 0.8.3 to 0.8.4
  • 7944b97 Merge pull request #1402 from uriyyo/dependabot/github_actions/codecov/codeco...
  • edc09d1 Bump codecov/codecov-action from 5.1.1 to 5.1.2
  • 1400271 Update lockfile
  • 5ab7b5e Bump to next-version
  • 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.34.
- [Release notes](https://github.com/uriyyo/fastapi-pagination/releases)
- [Commits](uriyyo/fastapi-pagination@0.12.27...0.12.34)

---
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 Dec 23, 2024
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.

1 participant