fill CHANGELOG.md

This commit is contained in:
InsanusMokrassar 2020-10-14 21:41:51 +06:00
parent 3c393fdd21
commit de97872d41

View File

@ -8,6 +8,16 @@ Inited :)
* `Versions`: * `Versions`:
* `kotlinx.serialization`: `1.0.0-RC2` -> `1.0.0` * `kotlinx.serialization`: `1.0.0-RC2` -> `1.0.0`
* `Pagination`
* `Common`
* Function `calculatePage` for calculating page based on size of page and index of first element
* Extension `List#createPaginationResult` which use index of first element to calculate current page and other
info in `PaginationResult` object
* Factory `emptyPaginationResult` for empty `PaginationResult`
* Extensions `paginate` for creating of `PaginationResult` which use as source one of next types:
* `Iterable`
* `List`
* `Set`
* `Repos` * `Repos`
* `Common` * `Common`
* Extensions `doForAll` and `getAll` were added for all current types of repos: * Extensions `doForAll` and `getAll` were added for all current types of repos:
@ -15,3 +25,13 @@ Inited :)
* `StandardReadKeyValueRepo` * `StandardReadKeyValueRepo`
* `OneToManyReadKeyValueRepo` * `OneToManyReadKeyValueRepo`
* `StandardReadKeyValueRepo` methods `values` and `keys` now have default value for `reversed` parameter `false` * `StandardReadKeyValueRepo` methods `values` and `keys` now have default value for `reversed` parameter `false`
* New `Flow`'s in `OneToManyWriteKeyValueRepo`:
* `onNewValue`
* `onValueRemoved`
* `onDataCleared`
* New function `ReadStandardCRUDRepo#count`
* `In Memory`
* Package has been created:) you can connect it via `implementation "dev.inmo:micro_utils.repos.inmemory"`
* `MapCRUDRepo` class as implementation of `StandardCRUDRepo` on top of `MutableMap` has been added
* `MapKeyValueRepo` class as implementation of `StandardKeyValueRepo` on top of `MutableMap` has been added
* `MapOneToManyKeyValueRepo` class as implementation of `OneToManyKeyValueRepo` on top of `MutableMap` has been added