Skip to content

Releases: uriyyo/fastapi-pagination

0.12.21

19 Mar 20:19
ef212e0
Compare
Choose a tag to compare
  • Return fastapi.ext.sqlalchemy.paginate_query function. #1093

0.12.20

19 Mar 09:20
a7a9668
Compare
Choose a tag to compare
  • Add ability to paginate raw sqlalchemy queries. #1085

0.12.19

05 Mar 12:30
b25f688
Compare
Choose a tag to compare
  • Suppress undefined annotation exception for pydantic v2. #1069

0.12.18

04 Mar 18:19
19bb7d5
Compare
Choose a tag to compare
  • Bump 'beanie' version. #1043
  • Add better exception message for sqlalchemy non-hashable rows. #1048
  • Implement new page customization. #1046

Important changes

Current release changes way how to customize page. New customization allows to customize pages in typing-compatible way that will not require to use # type: ignore or if TYPE_CHECKING workarounds, for more information, please check docs - link.

Old way

from fastapi_pagination import Page

CustomPage = Page.with_custom_options(
    cls_name="CustomPage",
    size=10,
)

New way:

from fastapi_pagination import Page
from fastapi_pagination.customization import CustomizedPage, UseName, UseParamsFields


CustomPage = CustomizedPage[
    Page,
    UseName("CustomPage"),
    UseParamsFields(size=10),
]

0.12.17

22 Feb 08:17
49c3f4d
Compare
Choose a tag to compare
  • Add async analog of default paginate. #1039
  • Fix piccolo issue when filter by foreign field. #1038

0.12.16

19 Feb 09:56
5af275f
Compare
Choose a tag to compare
  • Add set_params function. #1029

0.12.15

11 Feb 13:08
Compare
Choose a tag to compare
  • Add python 3.12 official support. #1023
  • Fix issue with paginate empty sequence using optional params. #1022

0.12.14

17 Dec 14:11
ef227ef
Compare
Choose a tag to compare
  • Fix issue with default value fitler_field for pymongo. #955
  • Raise 400 error on invalid cursor value. #957
  • Fix issue with zero page size. #959

0.12.13

27 Nov 09:45
5699273
Compare
Choose a tag to compare
  • Bump sqlmodel version. #933

0.12.12

30 Oct 09:43
e181114
Compare
Choose a tag to compare
  • Remove usage of deprecated pydantic v2 field. #896
  • Add support for pydantic v2 aliases. #897
  • Add ability to control total fetching. #898
  • Add wrapper for app lifespan. #899