mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-11-22 16:23:50 +00:00
8.1 KiB
8.1 KiB
Changelog
0.3.3
Coroutines
:- New extension
Flow<T>#plus
- New extension
0.3.2
Versions
:Coroutines
:1.4.1
->1.4.2
Repos
:Common
:- New inline function
mapper
for simplier creating ofMapperRepo
objects - Extensions
withMapper
for keyvalue repos and onetomany repos
- New inline function
0.3.1
ANDROID PACKAGES
Android
:RecyclerView
:- Library has been created
Common
- Now available package
dev.inmo:micro_utils.common-android
- Now available package
Coroutines
- Now available package
dev.inmo:micro_utils.coroutines-android
- Now available package
Ktor
Common
- Now available package
dev.inmo:micro_utils.ktor.common-android
- Now available package
Client
- Now available package
dev.inmo:micro_utils.ktor.client-android
- Now available package
MimeTypes
- Now available package
dev.inmo:micro_utils.mime_types-android
- Now available package
Pagination
Common
- Now available package
dev.inmo:micro_utils.pagination.common-android
- Now available package
Ktor
Common
- Now available package
dev.inmo:micro_utils.pagination.ktor.common-android
- Now available package
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
- Now available package
Inmemory
- Now available package
dev.inmo:micro_utils.repos.inmemory-android
- Now available package
Ktor
Common
- Now available package
dev.inmo:micro_utils.repos.ktor.common-android
- Now available package
Common
- Now available package
dev.inmo:micro_utils.repos.ktor.client-android
- Now available package
0.3.0
All deprecations has been removed
Repos
:Common
:KeyValue
andOneToMany
repos lost their deprecated methodsOneToMany
write repos got additional extensions for mutation of repoKeyValue
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
0.2.7
Versions
:Coroutines
:1.4.0
->1.4.1
Repos
:WriteStandardKeyValueRepo
got new methodsset
andunset
with collections- All standard realizations of repos got collections methods realizations
- All old usages of
BroadcastFlow
andBroadcastChannel
has been replaced withMutableSharedFlow
Ktor
:Server
:- Fixed incorrect answer for
keyvalue
- Fixed incorrect answer for
0.2.6
Pagination
- Fixes in function
List#paginate
- Extension property
Pagination#lastIndexExclusive
- Fixes in function
0.2.5
Coroutines
- Function
safelyWithoutExceptions
- Extension
CoroutineScope#safeActor
- Function
0.2.4
Versions
Serialization
:1.0.0
->1.0.1
Common
- Full rework of
DiffUtils
- Data class
Diff
has been added - Extension
Iterable#calculateDiff
has been added- Extension
Iterable#calculateStrictDiff
as replacement forIterable#calculateDiff
withstrictComparison
mode enabled - Functions
Diff
(as analog ofIterable#calculateDiff
) andStrictDiff
(as analog ofIterable#calculateStrictDiff
)
- Extension
- Data class
- Full rework of
Coroutines
BroadcastFlow
now is deprecatedBroadcastStateFlow
now is deprecated- New extensions for
Flow
s:Flow#subscribe
Flow#subscribeSafely
Flow#subscribeSafelyWithoutExceptions
0.2.3
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
- Add several extensions for
Coroutines
BroadcastStateFlow
now use different strategy for getting of state and implementsreplayCache
0.2.2
Repos
Common
- Several new methods
ReadOneToManyKeyValueRepo#getAll
- Several new method
WriteOneToManyKeyValueRepo#add
and several extensions - Several new method
WriteOneToManyKeyValueRepo#remove
and several extensions
- Several new methods
0.2.1
Pagination
Common
:- Extension
Pagination#reverse
has been added - Factory
PaginationByIndexes
- Shortcut
calculatePagesNumber
with reversed parameters - Value
emptyPagination
for emptySimplePagination
cases
- Extension
0.2.0
Repos
Exposed
- Now this project depend on
micro_utils.coroutines
- Typealias
ColumnAllocator
has been replaced to root exposed package - Interface
ExposedRepo
has been addedExposedCRUDRepo
now extendsExposedRepo
instead of simpleRepo
- New extension
initTable
for classes which areTable
andExposedRepo
at the same time KeyValue
:tableName
parameter- Class
AbstractExposedReadKeyValueRepo
- Renamed to
ExposedReadKeyValueRepo
- Changed incoming types to
ColumnAllocator
open
instead ofabstract
- Implements
ExposedRepo
- Renamed to
- Class
AbstractExposedKeyValueRepo
- Renamed to
ExposedKeyValueRepo
- Changed incoming types to
ColumnAllocator
open
instead ofabstract
- Renamed to
OneToMany
:tableName
parameter- Class
AbstractExposedReadOneToManyKeyValueRepo
- Renamed to
ExposedReadOneToManyKeyValueRepo
- Changed incoming arguments order
- Implements
ExposedRepo
- Renamed to
- Class
AbstractExposedOneToManyKeyValueRepo
- Renamed to
ExposedKeyValueRepo
- Changed incoming arguments order
open
instead ofabstract
- Release for every
Flow
in parent interfaces
- Renamed to
- Now this project depend on
0.1.1
Versions
: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 inPaginationResult
object - Factory
emptyPaginationResult
for emptyPaginationResult
- Extensions
paginate
for creating ofPaginationResult
which use as source one of next types:Iterable
List
Set
- Function
Repos
Common
- Interfaces related to
OneToManyKeyValueRepo
were renamed with convenience toRead
/Write
modifier before name- All subclasses were renamed
- Interfaces related to
StandartKeyValueRepo
were renamed with convenience toRead
/Write
modifier before name- All subclasses were renamed
- Extensions
doForAll
andgetAll
were added for all current types of repos:ReadStandardCRUDRepo
ReadStandardKeyValueRepo
ReadOneToManyKeyValueRepo
ReadStandardKeyValueRepo
methodsvalues
andkeys
now have default value forreversed
parameterfalse
- New
Flow
's inWriteOneToManyKeyValueRepo
:onNewValue
onValueRemoved
onDataCleared
- New function
ReadStandardCRUDRepo#count
- Interfaces related to
In Memory
- Package has been created:) you can connect it via
implementation "dev.inmo:micro_utils.repos.inmemory"
MapCRUDRepo
class as implementation ofStandardCRUDRepo
on top ofMutableMap
has been addedMapKeyValueRepo
class as implementation ofStandardKeyValueRepo
on top ofMutableMap
has been addedMapOneToManyKeyValueRepo
class as implementation ofOneToManyKeyValueRepo
on top ofMutableMap
has been added
- Package has been created:) you can connect it via
0.1.0
Inited :)