Skip to content

Update dependency com.freeletics.flowredux:compose to v1.2.0 #996

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 28, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.freeletics.flowredux:compose 1.1.0 -> 1.2.0 age adoption passing confidence

⚠ Dependency Lookup Warnings ⚠

Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information.


Release Notes

freeletics/FlowRedux (com.freeletics.flowredux:compose)

v1.2.0

Compare Source

DSL additions
  • Added new condition block that allows specifying additional condition for a state. The block
    supports all the same methods that inState supports.
    spec {
      inState<MyState> {
        // general onEnter/onAction/... methods
    
        condition({ state -> state.value == "condition" }) { 
          // onEnter/onAction/... methods that will only be triggered when the condition is true
        }
      }
    }
  • Added new untilIdentityChanges block. This allows to give a state object an identity
    like an id and will re-trigger anything running in that block whenever the identity changes.
    spec {
      inState<MyState> {
        // general onEnter/onAction/... methods
    
        untilIdentityChanges({ state -> state.searchQuery }) { 
          // triggered whenever `searchQuery` changes
          onEnterEffect { state ->
            sendAnalyticsEvent(state.searchQuery)
          }
          
          // whenever `searchQuery` changes the collection is stopped and a new flow is built and collected
          collectWhileInState({ state -> loadSearchResults(state.searchQuery )}) { result, state ->
            // update state based on result
          }
        }
      }
    }
Internal re-write
  • The internals of FlowRedux have been completely rewritten and simplified. The library behavior
    is now much more consistent and predictable.
  • Cancellation of a running block like collectWhileInState is now guaranteed to happen before
    anything in the new state starts.
Other changes
  • The collectWhileInState method that has a lambda parameter to build the collected Flow.
    now receives S instead of Flow<S> as its parameter.
  • The compose artifact now a multiplatform library with support for all platform supported
    by compose-multiplatform.
Deprecations
  • inState with additionalIsInState has been deprecated in favor of the condition block.
  • inStateWithCondition has been deprecated in favor of the condition block.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from a team as a code owner July 28, 2023 14:14
@renovate renovate bot requested review from jmartinesp and removed request for a team July 28, 2023 14:14
@renovate renovate bot added the PR-Dependencies Pull requests that update a dependency file label Jul 28, 2023
@ElementBot
Copy link
Collaborator

ElementBot commented Jul 28, 2023

Warnings
⚠️

gradle/libs.versions.toml#L26 - A newer version of androidx.compose.compiler:compiler than 1.4.8 is available: 1.5.0

Generated by 🚫 dangerJS against a0411e0

@codecov
Copy link

codecov bot commented Jul 28, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (a4e2b7a) 56.68% compared to head (a0411e0) 56.68%.
Report is 3 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #996   +/-   ##
========================================
  Coverage    56.68%   56.68%           
========================================
  Files          981      981           
  Lines        24901    24901           
  Branches      5055     5055           
========================================
  Hits         14116    14116           
  Misses        8548     8548           
  Partials      2237     2237           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions
Copy link
Contributor

📱 Scan the QR code below to install the build (arm64 only) for this PR.
QR code
If you can't scan the QR code you can install the build via this link:

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Member

@jmartinesp jmartinesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ganfra ganfra added this pull request to the merge queue Jul 31, 2023
@julioromano julioromano removed this pull request from the merge queue due to a manual request Jul 31, 2023
@julioromano julioromano added this pull request to the merge queue Jul 31, 2023
Merged via the queue into develop with commit 90598af Jul 31, 2023
@julioromano julioromano deleted the renovate/com.freeletics.flowredux branch July 31, 2023 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR-Dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants