Fastapi-pagination

Latest version: v0.12.32

Safety actively analyzes 682487 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 11

0.12.26

* Fix issue with passing `count_query` into `sqlalchemy`/`sqlmodel`. [1194](https://github.com/uriyyo/fastapi-pagination/pull/1194)
* Add ability to use async `length_function` with `async_paginator`. [1204](https://github.com/uriyyo/fastapi-pagination/pull/1204)
* Fix incorrect total number in page when paginating `beanie` query with `fetch_links=True`. [1199](https://github.com/uriyyo/fastapi-pagination/pull/1199)

Thanks to moumoutte and IterableTrucks!

0.12.25

* Fix issue with databases + sqlalchemy 2.0. [1160](https://github.com/uriyyo/fastapi-pagination/pull/1160)
* Move FastAPI to dev dependencies. [1175](https://github.com/uriyyo/fastapi-pagination/pull/1175)
* Add UseAdditionalFields customization. [1180](https://github.com/uriyyo/fastapi-pagination/pull/1180)

0.12.24

* Improve `resolve_params` exc message. [1129](https://github.com/uriyyo/fastapi-pagination/pull/1129)
* Add `odmantic` integration. [1130](https://github.com/uriyyo/fastapi-pagination/pull/1130)

0.12.23

* Add limit to CursorParams.size field. [1119](https://github.com/uriyyo/fastapi-pagination/pull/1119)
* Strip extra lines before and after the `_WARNING_MSG`. [1117](https://github.com/uriyyo/fastapi-pagination/pull/1117)

Thanks to [barsikus007](https://github.com/barsikus007) and [frost-nzcr4](https://github.com/frost-nzcr4)!

**Breaking changes:**

`CursorPage` now has default upper limit for `size` query param (size should be <= 100).

If you want to remove this restriction and use old behavior, you can customize `CursorPage`:
py
from fastapi_pagination.cursor import CursorPage as BaseCursorPage
from fastapi_pagination.customization import UseParamsFields, CustomizedPage


CursorPage = CustomizedPage[
BaseCursorPage,
UseParamsFields(
size=Query(50, ge=0),
),
]

0.12.22

* Fix issue when custom OpenAPI schema is overrided. [1105](https://github.com/uriyyo/fastapi-pagination/pull/1105)
* Fix issue when params field name is keyword. [1112](https://github.com/uriyyo/fastapi-pagination/pull/1112)

0.12.21

* Return `fastapi.ext.sqlalchemy.paginate_query` function. [1093](https://github.com/uriyyo/fastapi-pagination/pull/1093)

Page 2 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.