MicroUtils/CHANGELOG.md

340 lines
12 KiB
Markdown
Raw Permalink Normal View History

2020-09-30 09:47:45 +00:00
# Changelog
2020-12-07 16:36:32 +00:00
## 0.4.11
2020-12-07 16:39:23 +00:00
* `Common`
* Add `clamp` function
2020-12-05 11:25:43 +00:00
## 0.4.10
2020-12-05 11:29:49 +00:00
* `Versions`:
* `Klock`: `2.0.0` -> `2.0.1`
* `Repo`
* Repo `WriteStandardKeyValueRepo` got new method `unsetWithValues`
2020-12-05 11:29:49 +00:00
2020-12-02 10:13:54 +00:00
## 0.4.9
2020-12-02 10:21:31 +00:00
* `Versions`:
* `Ktor`: `1.4.2` -> `1.4.3`
2020-12-02 11:28:59 +00:00
* `Coroutines`:
* `launchSynchronously` has been added in JVM
* `Repo`
* `Common`
* In repos different usages of `BroadcastChannel`s has been replaced with `MutableSharedFlow`
* `Exposed`
* `asObject` open fun has been added in CRUD realization
2020-12-02 10:21:31 +00:00
2020-12-01 09:11:18 +00:00
## 0.4.8
2020-12-01 09:38:44 +00:00
* `Versions`:
* `Coroutines`: `1.4.1` -> `1.4.2`
* `UUID`: `0.2.2` -> `0.2.3`
2020-12-01 09:34:12 +00:00
* `Pagination`
* Add `PaginatedIterable` and `PaginatedIterator`
2020-11-27 05:57:40 +00:00
## 0.4.7
2020-11-27 07:30:02 +00:00
* `Ktor`
* `Client`
* New class `UnifiedRequester`
2020-11-27 08:35:00 +00:00
* `Server`
* New class `UnifiedRouter`
2020-11-27 07:30:02 +00:00
* `Repos`
* `Ktor`
* `Client`
* Rewriting of all clients on new `UnifiedRequester`
2020-11-27 08:35:00 +00:00
* `Server`
* Rewriting of all clients on new `UnifiedRouter`
2020-11-27 07:30:02 +00:00
2020-11-26 09:00:32 +00:00
## 0.4.6
2020-11-26 12:01:12 +00:00
* `Common`
* New annotation `Warning` has been added
2020-11-26 09:01:45 +00:00
* `Pagination`
* `Common`
* `Pagination` got new extension: `Pagination#isFirstPage`
2020-11-26 09:02:30 +00:00
* `Coroutines`:
* New extension `FlowCollector#invoke` has been added
2020-11-26 09:03:40 +00:00
* `Repos`
* `Common`
* `JVM` (and `Android` since `Android API 26`):
* `FileStandardKeyValueRepo` has been added
2020-11-26 09:32:00 +00:00
* Add several `typealias`es for each type of repos
2020-11-26 09:01:45 +00:00
2020-11-23 11:15:21 +00:00
## 0.4.5
2020-11-23 11:24:02 +00:00
* `Android`
* `Alerts`
2020-11-23 12:32:14 +00:00
* `Common`
* Project has been created
* `RecyclerView`
2020-11-23 12:10:53 +00:00
* Project has been created
2020-11-23 11:39:17 +00:00
* `Common`
* Annotation `PreviewFeature` has been added
* `Android`
* Added tools to work with visibility in more comfortable way
* Added tools to work with disabled/enabled state in more comfortable way
* Added tools to work with expanded/collapsed state in more comfortable way (in preview mode)
2020-11-23 11:24:02 +00:00
2020-11-22 11:49:39 +00:00
## 0.4.4
* `Versions`:
* `Klock`: `1.12.1` -> `2.0.0`
2020-11-22 18:36:37 +00:00
* `Commons`:
* Update left items functionality to include work with `GridLayoutManager`
2020-11-22 13:07:37 +00:00
* `Repos`:
* Add interface `VersionsRepo`
* Add default realization of `VersionsRepo` named `StandardVersionsRepo` which use `StandardVersionsRepoProxy`
to get access to some end-store
* Add default realization of `StandardVersionsRepoProxy` based on `KeyValue` repos
* Add realizations of `StandardVersionsRepoProxy` for exposed and android (`SQL` and `SharedPreferences`)
2020-11-22 15:51:33 +00:00
* `Commons`:
2020-11-22 17:42:01 +00:00
* In Android fully reworked transactions functions
* Now `DatabaseCoroutineContext` is a shortcut for `Dispatchers.IO`
2020-11-22 13:07:37 +00:00
2020-11-20 04:20:35 +00:00
## 0.4.3
2020-11-20 07:10:32 +00:00
* `Versions`:
* `Kotlin`: `1.4.10` -> `1.4.20`
2020-11-20 04:23:32 +00:00
* `Common`:
* Two new extensions for Android:
* `Resources#getSp`
* `Resources#getDp`
2020-11-18 14:07:54 +00:00
## 0.4.2
2020-11-18 14:27:29 +00:00
* `Repos`:
* Add `WriteOneToManyKeyValueRepo#set` function and extensions
2020-11-16 13:46:50 +00:00
## 0.4.1
* `Repos`:
* Fixed error in `ExposedKeyValueRepo` related to negative size of shared flow
2020-11-16 14:05:22 +00:00
* Fixed error in `ExposedKeyValueRepo` related to avoiding of table initiation
2020-11-14 10:18:22 +00:00
## 0.4.0
2020-11-14 10:44:28 +00:00
* `Repos`:
* `ReadOneToManyKeyValueRepo` got `keys` method with value parameter
* All implementations inside of this library has been updated
* `ReadStandardKeyValueRepo` got `keys` method with value parameter
* All implementations inside of this library has been updated
2020-11-14 11:35:11 +00:00
* New extensions `withMapper`
2020-11-14 10:44:28 +00:00
2020-11-12 16:10:41 +00:00
## 0.3.3
2020-11-12 16:16:21 +00:00
* `Coroutines`:
* New extension `Flow<T>#plus`
2020-11-11 05:34:45 +00:00
## 0.3.2
* `Versions`:
* `Coroutines`: `1.4.1` -> `1.4.2`
2020-11-11 06:03:14 +00:00
* `Repos`:
* `Common`:
* New inline function `mapper` for simplier creating of `MapperRepo` objects
* Extensions `withMapper` for keyvalue repos and onetomany repos
2020-11-11 05:34:45 +00:00
2020-11-09 15:46:58 +00:00
## 0.3.1
2020-11-10 13:49:21 +00:00
**ANDROID PACKAGES**
* `Android`:
* `RecyclerView`:
* Library has been created
* `Common`
* Now available package `dev.inmo:micro_utils.common-android`
* `Coroutines`
* Now available package `dev.inmo:micro_utils.coroutines-android`
* `Ktor`
* `Common`
* Now available package `dev.inmo:micro_utils.ktor.common-android`
* `Client`
* Now available package `dev.inmo:micro_utils.ktor.client-android`
* `MimeTypes`
* Now available package `dev.inmo:micro_utils.mime_types-android`
* `Pagination`
* `Common`
* Now available package `dev.inmo:micro_utils.pagination.common-android`
* `Ktor`
* `Common`
* Now available package `dev.inmo:micro_utils.pagination.ktor.common-android`
* `Repos`
* `Common`
* Now available package `dev.inmo:micro_utils.repos.common-android`
* Now it is possible to use default realizations of repos abstractions natively on android
* `Inmemory`
* Now available package `dev.inmo:micro_utils.repos.inmemory-android`
* `Ktor`
* `Common`
* Now available package `dev.inmo:micro_utils.repos.ktor.common-android`
* `Common`
* Now available package `dev.inmo:micro_utils.repos.ktor.client-android`
## 0.3.0
2020-11-08 14:44:40 +00:00
2020-11-08 18:46:26 +00:00
All deprecations has been removed
* `Repos`:
2020-11-08 18:46:26 +00:00
* `Common`:
* `KeyValue` and `OneToMany` repos lost their deprecated methods
* `OneToMany` write repos got additional extensions for mutation of repo
* `KeyValue` write repos got additional extensions for mutation of repo
* New interface `MapperRepo` and new classes which are using this:
* `KeyValue`
* `MapperReadStandardKeyValueRepo`
* `MapperWriteStandardKeyValueRepo`
* `MapperStandardKeyValueRepo`
* `OneToMany`
* `MapperReadOneToManyKeyValueRepo`
* `MapperWriteOneToManyKeyValueRepo`
* `MapperOneToManyKeyValueRepo`
* `Exposed`:
* CRUD realizations replaced their channels to shared flows
2020-11-04 12:47:42 +00:00
## 0.2.7
2020-11-06 20:25:50 +00:00
* `Versions`:
* `Coroutines`: `1.4.0` -> `1.4.1`
* `Repos`:
* `WriteStandardKeyValueRepo` got new methods `set` and `unset` with collections
* All standard realizations of repos got collections methods realizations
2020-11-06 20:27:54 +00:00
* All old usages of `BroadcastFlow` and `BroadcastChannel` has been replaced with `MutableSharedFlow`
2020-11-06 20:25:50 +00:00
* `Ktor`:
* `Server`:
* Fixed incorrect answer for `keyvalue`
2020-11-03 12:35:22 +00:00
## 0.2.6
2020-11-03 12:37:50 +00:00
* `Pagination`
* Fixes in function `List#paginate`
* Extension property `Pagination#lastIndexExclusive`
2020-11-03 12:37:50 +00:00
2020-11-02 15:24:20 +00:00
## 0.2.5
2020-11-02 15:25:33 +00:00
* `Coroutines`
* Function `safelyWithoutExceptions`
2020-11-02 15:32:04 +00:00
* Extension `CoroutineScope#safeActor`
2020-11-02 15:25:33 +00:00
2020-10-31 18:41:02 +00:00
## 0.2.4
2020-10-31 18:41:57 +00:00
* `Versions`
* `Serialization`: `1.0.0` -> `1.0.1`
2020-11-01 18:12:37 +00:00
* `Common`
* Full rework of `DiffUtils`
* Data class `Diff` has been added
* Extension `Iterable#calculateDiff` has been added
* Extension `Iterable#calculateStrictDiff` as replacement for `Iterable#calculateDiff` with
`strictComparison` mode enabled
* Functions `Diff` (as analog of `Iterable#calculateDiff`) and `StrictDiff` (as analog of
`Iterable#calculateStrictDiff`)
* `Coroutines`
* `BroadcastFlow` now is deprecated
* `BroadcastStateFlow` now is deprecated
2020-10-31 18:54:07 +00:00
* New extensions for `Flow`s:
* `Flow#subscribe`
* `Flow#subscribeSafely`
* `Flow#subscribeSafelyWithoutExceptions`
2020-10-31 18:41:57 +00:00
2020-10-28 07:55:49 +00:00
## 0.2.3
2020-10-28 07:58:23 +00:00
* `Versions`
* `Coroutines`: `1.3.9` -> `1.4.0`
* `Exposed`: `0.27.1` -> `0.28.1`
* `Common`
* `K/JS`
* Add several extensions for `Element` objects to detect that object is on screen viewport
* Add several extensions for `Element` objects to detect object visibility
2020-10-28 08:17:39 +00:00
* `Coroutines`
* `BroadcastStateFlow` now use different strategy for getting of state and implements `replayCache`
2020-10-25 15:52:36 +00:00
## 0.2.2
2020-10-25 16:21:23 +00:00
* `Repos`
* `Common`
* Several new methods `ReadOneToManyKeyValueRepo#getAll`
* Several new method `WriteOneToManyKeyValueRepo#add` and several extensions
* Several new method `WriteOneToManyKeyValueRepo#remove` and several extensions
2020-10-22 08:38:53 +00:00
## 0.2.1
2020-10-22 08:39:39 +00:00
* `Pagination`
* `Common`:
* Extension `Pagination#reverse` has been added
* Factory `PaginationByIndexes`
* Shortcut `calculatePagesNumber` with reversed parameters
2020-10-22 11:57:27 +00:00
* Value `emptyPagination` for empty `SimplePagination` cases
2020-10-22 08:39:39 +00:00
2020-10-17 11:20:11 +00:00
## 0.2.0
2020-09-30 09:47:45 +00:00
2020-10-17 11:50:54 +00:00
* `Repos`
* `Exposed`
* Now this project depend on `micro_utils.coroutines`
* Typealias `ColumnAllocator` has been replaced to root exposed package
* Interface `ExposedRepo` has been added
* `ExposedCRUDRepo` now extends `ExposedRepo` instead of simple `Repo`
* New extension `initTable` for classes which are `Table` and `ExposedRepo` at the same time
* `KeyValue`:
2020-10-17 12:53:20 +00:00
* `tableName` parameter
2020-10-17 11:50:54 +00:00
* Class `AbstractExposedReadKeyValueRepo`
* Renamed to `ExposedReadKeyValueRepo`
* Changed incoming types to `ColumnAllocator`
* `open` instead of `abstract`
* Implements `ExposedRepo`
* Class `AbstractExposedKeyValueRepo`
* Renamed to `ExposedKeyValueRepo`
* Changed incoming types to `ColumnAllocator`
* `open` instead of `abstract`
* `OneToMany`:
2020-10-17 12:53:20 +00:00
* `tableName` parameter
2020-10-17 11:50:54 +00:00
* Class `AbstractExposedReadOneToManyKeyValueRepo`
* Renamed to `ExposedReadOneToManyKeyValueRepo`
* Changed incoming arguments order
* Implements `ExposedRepo`
* Class `AbstractExposedOneToManyKeyValueRepo`
* Renamed to `ExposedKeyValueRepo`
* Changed incoming arguments order
* `open` instead of `abstract`
* Release for every `Flow` in parent interfaces
2020-10-17 11:20:11 +00:00
## 0.1.1
2020-09-30 09:56:24 +00:00
* `Versions`:
* `kotlinx.serialization`: `1.0.0-RC2` -> `1.0.0`
2020-10-14 15:41:51 +00:00
* `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`
2020-09-30 09:56:24 +00:00
* `Repos`
* `Common`
2020-10-14 16:02:10 +00:00
* Interfaces related to `OneToManyKeyValueRepo` were renamed with convenience to `Read`/`Write` modifier before name
* All subclasses were renamed
2020-10-14 16:29:03 +00:00
* Interfaces related to `StandartKeyValueRepo` were renamed with convenience to `Read`/`Write` modifier before name
* All subclasses were renamed
* Extensions `doForAll` and `getAll` were added for all current types of repos:
* `ReadStandardCRUDRepo`
2020-10-14 16:02:10 +00:00
* `ReadStandardKeyValueRepo`
* `ReadOneToManyKeyValueRepo`
* `ReadStandardKeyValueRepo` methods `values` and `keys` now have default value for `reversed` parameter `false`
* New `Flow`'s in `WriteOneToManyKeyValueRepo`:
2020-10-14 15:41:51 +00:00
* `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
2020-10-17 11:20:11 +00:00
## 0.1.0
2020-11-22 17:42:01 +00:00
Inited :)