Skip to content

Releases: uriyyo/fastapi-pagination

0.15.2

06 Dec 13:54
6a99220

Choose a tag to compare

  • Use AsyncItemsTransformer type annotation in piccolo ext. #1666

0.15.1

03 Dec 17:03
8f589e5

Choose a tag to compare

  • Add support for pydantic.v1. #1658
  • Support cursor pagination for CompoundSelect (UNION) queries. #1659

0.15.0

28 Oct 19:06

Choose a tag to compare

  • Remove deprecation warning for sqlalchemy.orm.Query.
  • Bump deprecation removal version from v0.15.0 to v0.16.0.
  • Drop python 3.9 support. #1621
  • Add UseResponseHeaders customizer. #1622

0.14.3

08 Oct 10:57
57a9673

Choose a tag to compare

  • Fix compatibility issue with pydantic v2.12.0. #1607
  • Fix deprecation warning for python 3.14. #1601 (Thanks to @nphilipp ๐Ÿ™Œ)

0.14.2

29 Sep 16:20
13c2ca2

Choose a tag to compare

  • Fix compatibility issue with FastAPI v0.118.0. #1599

0.14.1

03 Sep 10:08
a2e5037

Choose a tag to compare

  • Fix falsy callable handling in length_function parameter. #1584

0.14.0

20 Aug 17:55
fd1388c

Choose a tag to compare

Breaking Changes in v0.14.0

1. total becomes required by default

total field now becomes required in Page and LimitOffsetPage classes.
It was previously optional, but now it is required for non-optional pages.

2. UseIncludeTotal updates total field type.

UseIncludeTotal customization now updates total field to required or optional based on its value.

3. CursorPage now includes total field by default

CursorPage class now includes total field by default.
Now all pages have same default behavior regarding total field.

You can still use UseIncludeTotal to disable total field in CursorPage.

from typing import TypeVar

from fastapi_pagination.cursor import CursorPage
from fastapi_pagination.customization import UseIncludeTotal, CustomizedPage

T = TypeVar("T")

CursorPageNoTotal = CustomizedPage[
    CursorPage[T],
    UseIncludeTotal(False),
]

4. beanie min version update

beanie package now requires version 2.0.0 or higher.

0.14.0b1

26 Jul 10:58

Choose a tag to compare

0.14.0b1 Pre-release
Pre-release

First beta version of v0.14.0 version.

Breaking Changes in v0.14

1. total becomes required by default

total field now becomes required in Page and LimitOffsetPage classes.
It was previously optional, but now it is required for non-optional pages.

2. UseIncludeTotal updates total field type.

UseIncludeTotal customization now updates total field to required or optional based on its value.

3. CursorPage now includes total field by default

CursorPage class now includes total field by default.
Now all pages have same default behavior regarding total field.

You can still use UseIncludeTotal to disable total field in CursorPage.

from typing import TypeVar

from fastapi_pagination.cursor import CursorPage
from fastapi_pagination.customization import UseIncludeTotal, CustomizedPage

T = TypeVar("T")

CursorPageNoTotal = CustomizedPage[
    CursorPage[T],
    UseIncludeTotal(False),
]

4. beanie min version update

beanie package now requires version 2.0.0 or higher.

0.13.3

25 Jun 21:21

Choose a tag to compare

  • Add pymongo aggregate paginate functions. #1540

0.13.2

07 Jun 09:30
12a04ea

Choose a tag to compare

  • Add async pymongo integration. #1544
  • Added aggregation filter end to mongodb extensions. #1538

Thanks to @ilovemesomeramen!