Upgrading fastapi-pagination 0.15 to 0.16
Breaking0.15.16 → 0.16.1Breaking6New1Changed3Fixed4
BreakingUpgrade verdict
3 breaking changes.
In plain terms
- The library no longer works with pydantic version 1. You must use pydantic 2.13.4 or newer.
- If you called the async version of paginate, switch to apaginate.
- Several older database integrations are gone. Use the pymongo or sqlalchemy extensions instead.
Must act 3 items need code or config changes
fastapi-pagination publishes an official migration guide for version 0.16. It covers more than the release notes do.
V0.16 migration guide ↗What you must change
Breaking3
Drops pydantic v1 support; pydantic now requires version 2.13.4 or higher and v1 helpers are removed.
UsePydanticV1fastapi_pagination.pydanticpydanticRemoves async paginate functions deprecated in v0.15.0; use apaginate instead.
paginateapaginateRemoves motor, odmantic, bunnet, databases, orm, gino and pony extensions and their extras.
fastapi_pagination.ext.pymongofastapi_pagination.ext.sqlalchemymotorodmanticbunnetdatabasesormginopony