1.0.0 - Sep 22, 2024
This is our first stable release! Thanks everyone for using FlowExt, reporting bugs, providing feedback and sending PRs.
-
Update dependencies:
-
Promote
Flow.repeatoperators to stable. -
Event.ValueandEvent.Errorare now normal classes annotated with @Poko (previously they weredata classes).
1.0.0-RC - May 30, 2024
-
Update dependencies:
-
Promote
Flow.repeatoperators to stable.
0.8.1 - May 11, 2024
- Update dependencies:
- Kotlin
1.9.24. - KotlinX Coroutines
1.8.1. Gradleto8.7.
- Kotlin
- Add
Flow.catchAndReturn,Flow.catchAndResumeoperators. - Add
Flow.mapToResult,Flow.mapResultCatching,Flow.throwFailureoperators.
Flow.chunked(bufferSize: Int)/Flow.bufferCount(bufferSize: Int): reduce unnecessary allocations.
Changelog relative to version 0.8.1-Beta
-
Flow.mapResultCatchingnow does not catchCancellationExceptionthrown from thetransformlambda.
0.8.1-Beta - Mar 23, 2024
- Update dependencies:
- Kotlin
1.9.23. - KotlinX Coroutines
1.8.1-Beta. Gradleto8.7.
- Kotlin
- Add
Flow.catchAndReturn,Flow.catchAndResumeoperators. - Add
Flow.mapToResult,Flow.mapResultCatching,Flow.throwFailureoperators.
0.8.0 - Feb 24, 2024
- Update dependencies:
- New: Add support for Kotlin/Wasm (
wasmJstarget) 🎉.
withLatestFrom: fix a bug where the otherFlowis not cancelled after the mainFlowis completed.
0.7.5 - Jan 28, 2024
-
Update dependencies
Kotlinto1.9.22.
-
Optimize the implementation of
flowFromSuspendandflowFromNonSuspend, it is just an internal change, it does not affect the public API and behavior.
0.7.4 - Nov 12, 2023
- Update dependencies
Kotlinto1.9.20.
- Remove now-unsupported targets:
iosArm32,watchosX86.
-
Add
Flow.plusoperator, it is an alias toconcatWithoperator (thanks to @hoangchungk53qx1). -
Add
flowFromNonSuspend, the non-suspend version offlowFromSuspend.
0.7.3 - Oct 29, 2023
-
Update dependencies
Kotlinto1.9.10.Gradleto8.4.
-
Annotate
SymbolandNULL_VALUEwith@DelicateFlowExtApi.
-
Add
Flow.chunkedoperator, it is an alias toFlow.bufferCountoperator. -
Add
Flow.pairwise(transform)operator - a variant ofFlow.pairwise()operator, which allows the transformation of the pair of values via thetransformlambda parameter. -
Add
Flow.zipWithNext()operator, it is an alias toFlow.pairwise()operator. -
Add
Flow.zipWithNext(transform)operator, it is an alias toFlow.pairwise(transform)operator.
0.7.2 - Oct 7, 2023
- Update dependencies
Gradleto8.3.
- Add
Flow.ignoreElementsoperator. - Add
Flow.scanWithoperator. - Add
Flow.safeCastoperator (thanks to @hoangchungk53qx1).
Flow.select: avoid calling sub-selectors when the previous state is the same as the current state (aka.distinctUntilChanged).
- Update dependencies
Kotlinto1.9.0.KotlinX Coroutinesto1.7.3.Gradleto8.2.
- Add
Flow.repeatoperator.
0.6.1 - May 18, 2023
- Update dependencies
Kotlinto1.8.21.KotlinX Coroutinesto1.7.1.Gradleto8.1.1.
0.6.0 - Mar 28, 2023
-
Update dependencies
Kotlinto1.8.10.KotlinX Coroutinesto1.7.0-Beta.Gradleto8.0.2.
-
Only support JS IR.
-
Supports more targets:
linuxArm64watchosDeviceArm64androidNativeArm32androidNativeArm64androidNativeX86androidNativeX64
Flow.groupByoperator. See Readme#groupBy for more details.
0.5.0 - Nov 7, 2022
-
Update dependencies
Kotlinto1.7.20(The new Kotlin/Native memory manager enabled by default).Gradleto7.5.1.
-
Remove unnecessary
@ExperimentalCoroutinesApiand@ExperimentalTimeonskipUntil/dropUntil.
Flow.selectoperator (from1to5). See Readme#select for more details.
0.4.0 - Jul 22, 2022
-
Update
KotlinX Coroutinesto1.6.4.Gradleto7.5.
-
Add
defer.flowFromSuspend.mapEager,flatMapConcatEager,flattenConcatEager.skipUntil,dropUntil.pairwise.NeverFlowinterface andNeverFlow.Companionobject.cast,castNotNull,castNullable.combineversions for6 - 12Flows.
-
Refactor
neverFlow()now returnsNeverFlow.takeUntil: changenotifier's type toFlow<Any?>
-
Internal fix for
AtomicRef: freezevalueifAtomicRefis frozen. -
Support for Apple Silicon targets
iosSimulatorArm64.macosArm64.tvosSimulatorArm64.watchosSimulatorArm64.
-
Enable compatibility with non-hierarchical multiplatform projects.
0.3.0 - May 2, 2022
-
Update
Kotlinto1.6.21.KotlinX Coroutinesto1.6.1.Gradleto7.4.2.
-
Refactor
withLatestFrom's implementation. -
Move
NULL_VALUEtocom.hoc081098.flowext.utilspackage. -
Add
Symbolclass. -
Add
Flow.throttleTime.Event.flatMap.Event.valueOrDefault.Event.valueOrElse.race,amb.Flow.raceWith,Flow.ambWith.Flow.mapToUnit.Flow.startWith { }that accepts a lambda parameter.
-
Add and update docs.
-
Add more test cases, increase code coverage.
-
Internal bug fixes.
0.2.0 - Jan 3, 2022
-
Update
Kotlinto1.6.10.KotlinX Coroutinesto1.6.0.Gradleto7.3.3.
-
Do not propagate cancellation to the upstream in Flow
flatMapFirstoperators (Related to Kotlin/kotlinx.coroutines#2964). -
Remove unnecessary
@ExperimentalCoroutinesApis,@ExperimentalTimes. -
Rename
NULL_ValuetoNULL_VALUE. -
Add
Flow.mapIndexed. -
Add
DelayStrategy.Flow.retryWhenWithDelayStrategy.Flow.retryWhenWithExponentialBackoff.Flow.retryWithExponentialBackoff.
0.1.0 - Nov 13, 2021
- Update
Kotlinto1.5.31.KotlinX Coroutinesto1.5.2.Gradleto7.3.
- Add
bufferCount.Event.concat.concatWith.startWith.interval.mapTo.materialize.dematerialize.neverFlow.NULL_Value.
- Add docs and docs site.
- Internal bug fixes.
- Test for Publishing.