Skip to content

better_effect_flutter 0.4.0

Latest

Choose a tag to compare

@github-actions github-actions released this 21 Aug 13:34
· 38 commits to main since this release

Published on pub.dev: https://pub.dev/packages/better_effect_flutter/versions/0.4.0

  • Added the repository-level normative semantic contract and an independent
    cross-package conformance suite for Command authority, one-shot delivery, and
    Flutter Runtime ownership alongside the core lifecycle rules.

  • Semantic compatibility changes now require the matching conformance scenario,
    affected package changelog entries, and a semantic migration ledger entry.

  • Added BetterEffectFeatureScope for feature-owned child Runtimes with
    loading/error/retry startup, nested feature environments, and generation-safe
    restart behavior.

  • ViewModels and Commands inside a feature automatically bind to the child
    environment, while feature disposal never closes the parent Runtime.

  • Added EffectCommandSelector with strongly typed state and snapshot selection.

  • Added default == and custom equality strategies for selected values.

  • Added EffectCommandBuilder.buildWhen and matching Consumer support.

  • Added read-only EffectCommandSnapshot updates for pending, queued, and trigger-pending counts without artificial state revisions.

  • Added immutable CommandPolicy.drop, latest, and queue
    coordination without adding new Command classes.

  • Added optional cooperative previous-execution interruption for
    CommandPolicy.latest(cancelPrevious: true).

  • Added typed-input debounce and throttle triggers driven by the
    contextual EffectClock service.

  • Added bounded FIFO queues with explicit reject-newest,
    drop-newest, and drop-oldest overflow decisions.

  • Policy replacement and rejection use ExitInterrupted instead
    of inventing domain failures or a new Exit variant.

  • Added EffectCommandPolicyEvent, shared/local policy observers,
    EffectCommandPolicyProbe, and deterministic ManualEffectClock
    regression coverage.

  • Existing EffectCommandConcurrency call sites remain source
    compatible and translate exactly to the corresponding policies.