Skip to content

Releases: hoc081098/FlowExt

0.8.1

11 May 18:33
Compare
Choose a tag to compare

Changed

Added

  • Add Flow.catchAndReturn, Flow.catchAndResume operators.
  • Add Flow.mapToResult, Flow.mapResultCatching, Flow.throwFailure operators.

Changed

  • Flow.chunked(bufferSize: Int) / Flow.bufferCount(bufferSize: Int): reduce unnecessary allocations.
Changelog relative to version [0.8.1-Beta]
  • Flow.mapResultCatching now does not catch CancellationException
    thrown from the transform lambda.

  • Kotlin 1.9.24.

0.8.1-Beta

23 Mar 10:38
Compare
Choose a tag to compare

Changed

Added

  • Add Flow.catchAndReturn, Flow.catchAndResume operators.
  • Add Flow.mapToResult, Flow.mapResultCatching, Flow.throwFailure operators.

0.8.0

24 Feb 09:05
Compare
Choose a tag to compare

Changed

Added

  • New: Add support for Kotlin/Wasm (wasmJs target) 🎉.

Fixed

  • withLatestFrom: fix a bug where the other Flow is not cancelled after the main Flow is completed.

0.7.5

28 Jan 13:31
Compare
Choose a tag to compare

Changed

  • Update dependencies

    • Kotlin to 1.9.22.
  • Optimize the implementation of flowFromSuspend and flowFromNonSuspend,
    it is just an internal change, it does not affect the public API and behavior.

0.7.4

12 Nov 10:24
Compare
Choose a tag to compare

Changed

  • Update dependencies
    • Kotlin to 1.9.20.

Removed

  • Remove now-unsupported targets: iosArm32, watchosX86.

Added

  • Add Flow.plus operator, it is an alias to concatWith operator
    (thanks to @hoangchungk53qx1).

  • Add flowFromNonSuspend, the non-suspend version of flowFromSuspend.

0.7.3

29 Oct 11:00
Compare
Choose a tag to compare

Changed

  • Update dependencies

    • Kotlin to 1.9.10.
    • Gradle to 8.4.
  • Annotate Symbol and NULL_VALUE with @DelicateFlowExtApi.

Added

  • Add Flow.chunked operator, it is an alias to Flow.bufferCount operator.

  • Add Flow.pairwise(transform) operator - a variant of Flow.pairwise() operator,
    which allows the transformation of the pair of values via the transform lambda parameter.

  • Add Flow.zipWithNext() operator, it is an alias to Flow.pairwise() operator.

  • Add Flow.zipWithNext(transform) operator, it is an alias to Flow.pairwise(transform) operator.

0.7.2

07 Oct 09:55
Compare
Choose a tag to compare

Changed

  • Update dependencies
    • Gradle to 8.3.

Added

  • Add Flow.ignoreElements operator.
  • Add Flow.scanWith operator.
  • Add Flow.safeCast operator (thanks to @hoangchungk53qx1)

Fixed

  • Flow.select: avoid calling sub-selectors when the previous state is the same as the current state
    (aka. distinctUntilChanged).

0.7.1

01 Aug 09:01
Compare
Choose a tag to compare

Changed

  • Update dependencies
    • Kotlin to 1.9.0.
    • KotlinX Coroutines to 1.7.3.
    • Gradle to 8.2.

Added

  • Add Flow.repeat operator.

0.7.0

31 Jul 06:29
Compare
Choose a tag to compare

Changed

  • Update dependencies
    • Kotlin to 1.9.0.
    • KotlinX Coroutines to 1.7.3.
    • Gradle to 8.2.

Added

  • Add Flow.repeat operator.

0.6.1

18 May 10:09
Compare
Choose a tag to compare

Changed

  • Update dependencies
    • Kotlin to 1.8.21.
    • KotlinX Coroutines to 1.7.1.
    • Gradle to 8.1.1.