huge update with crud caching, common doForAll/getAll and deprecations in old ones doForAll

This commit is contained in:
2021-03-29 19:39:10 +06:00
parent 2d662f91b3
commit c1557cff27
14 changed files with 223 additions and 110 deletions

View File

@@ -4,11 +4,28 @@
* `Versions`:
* `Kotlin`: `1.4.31` -> `1.4.32`
* Add subproject `repos.cache`
* `Pagination`:
* New extensions `PaginationResult.changeResultsUnchecked` and `PaginationResult.changeResults` for mapping results
with the same parameters, but different data
* Extension `PaginationResult.thisPageIfNotEmpty` now is typed and will return `PaginationResult?` with the same
generic type as income `PaginationResult`
* New extension `PaginationResult.currentPageIfNotEmpty` - shortcut for `PaginationResult.thisPageIfNotEmpty`
* `Coroutines`:
* Rewrite `subscribeSafelyWithoutExceptions`
* Now `subscribeSafelyWithoutExceptions` will use default handler instead of skipping
* New extension `subscribeSafelySkippingExceptions`
* `Repos`
* New subproject `repos.cache` - this subproject will contain repos with data caching mechanisms
* `Pagination`
* New common functions. They were created as replacements for currently available for more comfortable work
with repos pagination:
* `doForAll`
* `doForAllWithNextPaging`
* `doForAllWithCurrentPaging`
* `getAll`
* `getAllWithNextPaging`
* `getAllWithCurrentPaging`
* Most old `doForAll` methods have been deprecated
## 0.4.30