Releases: yiisoft/data
Releases · yiisoft/data
Version 2.0.0
- New #150: Extract
withLimit()fromReadableDataInterfaceintoLimitableDataInterface(@vjik) - New #153, #154: Add
KeysetPaginator::withFilterCallback()method that allows set closure for preparing filter passed to
the data reader (@vjik) - New #153: Add
Compare::withValue()method (@vjik) - New #158: Add methods
PaginatorInterface::isSortable()andPaginatorInterface::withSort()(@vjik) - New #160: Add
Sort::hasFieldInConfig()method that checks for the presence of a field in the sort config (@vjik) - New #161: Add
PageNotFoundException(@vjik) - New #164: Add methods
PaginatorInterface::isFilterable()andPaginatorInterface::withFilter()(@vjik) - New #173, #184, #220: Add
$caseSensitiveparameter toLikefilter to control whether the search must be
case-sensitive or not (@arogachev, @vjik) - New #176: Add
OrderHelper(@vjik) - New #200: Add matching mode parameter to
Likefilter (@samdark, @vjik) - New #213: Add
nextPage()andpreviousPage()methods toPaginatorInterface(@samdark) - New #223: Add
Sort::getDefaultOrder()method (@vjik) - New #224: Add filtering by nested values support in
IterableDataReader(@vjik) - New #232: Add
AllandNonefilters (@vjik) - New #236: Add
PaginatorInterface::getFilter()method (@vjik) - New #237: Add
Stringabletype support to filter values (@vjik) - Chg #151: Rename
isRequired()method inPaginatorInterfacetoisPaginationRequired()(@vjik) - Chg #154: Raise the minimum required PHP version to 8.1 (@vjik)
- Chg #159: Replace
withNextPageToken()andwithPreviousPageToken()ofPaginatorInterfacewithwithToken(),
getNextPageToken()withgetNextToken(),getPreviousPageToken()withgetPreviousToken(), and addgetToken().
These methods use newPageTokenclass (@vjik) - Chg #161:
PaginatorInterface::getCurrentPageSize()returns 0 instead throws exception if page specified is
not found (@vjik) - Chg #163, #241: Remove
FilterableDataInterface::withFilterHandlers()(@samdark, @vjik) - Chg #165: Simplify
FilterInterfaceandFilterHandlerInterface(@vjik) - Chg #166: Remove
EqualsEmptyfilter (@vjik) - Chg #187: Add
FilterableDataInterface::getFilter(),LimitableDataInterface::getLimit(),
OffsetableDataInterface::getOffset()(@samdark) - Chg #187:
LimitableDataInterface::withLimit()now acceptsnullto indicate "no limit".0is now a valid limit
value meaningreturn nothing(@samdark) - Chg #211, #221, #240: Change PHP constraint in
composer.jsonto8.1 - 8.5(@vjik) - Chg #219: Narrow type of page size in
PaginatorInterface::withPageSize()method to positive int by psalm
annotation and throwInvalidArgumentExceptionif non-positive value is passed (@vjik) - Chg #219: Throw
InvalidArgumentExceptioninstead ofPaginatorExceptioninOffsetPaginator::withCurrentPage()
method when non-positive value is passed (@vjik) - Chg #219: Don't check correctness of current page in
PaginatorInterface::isOnLastPage()method (@vjik) - Chg #219: Rename
PaginatorExceptiontoInvalidPageException(@vjik) - Chg #224: Change
$iterableFilterHandlersto context object inIterableFilterHandlerInterface::match()(@vjik) - Chg #225: Rename classes:
AlltoAndX,AnytoOrX. RemoveGroupclass (@vjik) - Chg #226: Refactor filter classes to use readonly properties instead of getters (@vjik)
- Chg #233: Remove nullable types from
withFilter()andgetFilter()methods ofFilterableDataInterface(@vjik) - Chg #241: Remove
FilterHandlerInterfaceinterface (@vjik) - Chg #242, #244: Change
IterableDataReader::withAddedFilterHandlers()to$extraFilterHandlersconstructor parameter
(@vjik) - Enh #150:
PaginatorInterfacenow extendsReadableDataInterface(@vjik) - Enh #161: Add more specified psalm annotations to
CountableDataInterface::count(),
PaginatorInterface::getCurrentPageSize()andOffsetPaginator::getTotalItems()(@vjik) - Enh #187, #196: Limit set in data reader is now taken into account by offset paginator. Keyset paginator throws
an exception in this case (@samdark, @vjik) - Enh #190: Use
str_containsfor case-sensitive match inLikeHandler(@samdark) - Enh #194: Improve psalm annotations in
LimitableDataInterface(@vjik) - Enh #201: Disable sorting when limit is set explicitly in a paginator (@samdark)
- Enh #202: Check that correct sort is passed to
withSort()of keyset paginator (@samdark) - Enh #207: More specific Psalm type for
OffsetPaginator::withCurrentPage()(@samdark) - Enh #207: More specific Psalm type for
OffsetPaginator::withCurrentPage()parameter (@samdark) - Enh #210: More specific Psalm type for
PaginatorInterface::getPageSize()result (@vjik) - Enh #214: Improved interface hierarchy (@samdark)
- Enh #219: Add page to message of
PageNotFoundExceptionexception (@vjik) - Enh #223:
KeysetPaginatornow uses default order fromSortwhen no sort is set (@vjik) - Bug #155: Fix
Sortconfiguration preparation (@vjik) - Bug #155: Fix same named order fields in
Sortwere not overriding previous ones (@vjik) - Bug #195: Fix invalid count in
IterableDataReaderwhen limit or/and offset used (@vjik) - Bug #234: Fix handling of
nullvalues inIterableDataReader(@vjik)
Version 1.0.1
Version 1.0.0
- Initial release.