Skip to content

3.4.0

Latest

Choose a tag to compare

@Nek-12 Nek-12 released this 23 Nov 12:06
0a11cd9

FlowMVI 3.4.0 adds store metrics for diagnosing slow intent processing and state updates, and stabilizes the core decorators.

Highlights

  • Store metrics (experimental). Added the metrics module. Use collectMetrics to measure queue times, latency percentiles, dropped intents, and undelivered actions. For a store that starts in its configured initial state, time to first state measures how long it takes to transition away from that state. Export snapshots in Prometheus, OpenMetrics, or OpenTelemetry formats. See the metrics guide.
  • Debugger. Added per-store metrics charts alongside the event timeline in the IDE plugin and desktop app, and added debugger plugin support for Kotlin/JS and Wasm JS. The debugger groups named stores by name, so use distinct names to inspect stores separately. This release includes standalone installers for macOS, Windows, and Linux (.deb). See the debugger guide.
  • Decorators. Added debounceIntents with a fixed or per-intent delay, and removed the experimental opt-in from the core decorators and their installation DSL. See the decorator guide.
  • Plugins. Added hooks to filter or replace intents before enqueue and actions before delivery. Shutdown callbacks gained access to the lifecycle of the run that ended. Contextual intent and action send() and emit() extensions became available in common code.
  • Fixes. Fixed missing onUndeliveredAction notifications. Fixed a debugger disconnect when a WebSocket message could not be decoded.
  • Guides. Added guides for migrating from MVVM, testing stores and plugins, and using FlowMVI with coding agents.

Upgrading from 3.2.1

  • Kotlin Multiplatform: Use Kotlin 2.5.0-RC to build JS and Wasm projects against 3.4.0. The iosX64, macosX64, tvosX64, and watchosX64 library targets were removed. Use the supported Arm64 targets for Apple devices and simulators.
  • Android: Set compileSdk to API 37 with minor API level 2. The library supports devices on API 23 and up.
  • JVM and Android: Recompile modules that call the contextual send() or emit() extensions. Already-compiled callers reference the old JVM classes and can fail at runtime.
  • Handwritten StorePlugin implementations: Change pipeline and shutdown overrides from extension receivers to context parameters, for example context(ctx: PipelineContext<S, I, A>) override suspend fun onIntent(intent: I): I?. Lambdas passed to plugin {} and decorator {} keep their receivers. In decorators, forward callbacks directly on the wrapped plugin, for example onIntent { chain, intent -> chain.onIntent(intent) }.
  • Batching: Use a positive size for BatchingMode.Amount and a positive duration for BatchingMode.Time. Invalid values throw at construction.
  • Debugger: Upgrade the IDE plugin or desktop debugger alongside the app's debugger dependency to view metrics. The IDE plugin requires a JetBrains IDE build 242 or newer and a Java 21 runtime.
  • Tests: PluginTestScope changed from a class to an interface. Recompile test utilities that reference it.
Generated changelog since 3.3.0-alpha03

🚀 New Features

  • add flowMVI agent skill and docs page
  • add TTFS state metrics\n\nCloses #190
  • add TTFS state metrics (#206)
  • add resourceAttributes support to OpenMetricsSink and PrometheusSink
  • add resourceAttributes support to OpenMetricsSink and PrometheusSink (#213)
  • feat!: stabilize decorators with contextual plugin callbacks
  • expose contextual intent and action extensions in common code

🧨 Api Changes

  • remove the experimental opt-in from core decorators
  • pass plugin callback scopes as context parameters

🐞 Bug Fixes

  • make signing secrets optional for basic checks
  • unblock wasm release upgrade build
  • align plugin compatibility metadata
  • restore FlowMVIDSL function target
  • restore docs typechecking and patch Tinypool
  • preserve wrapper verification and docs URLs during dependency updates
  • preserve plugin source API and decorator pipeline receivers
  • stop production Wasm sample fetching missing resources and debugger metrics
  • use single-line desktop sample package description

❔ Other

  • bump actions/checkout from 4 to 6
  • update usage guidance for ai-agents.md
  • fix llms.txt link casing (#199)
  • remove static resourceAttributes in favor of resourceAttributesProvider
  • Merge branch 'master' into feature/metrics-metadata-structured-sinks
  • bump actions/checkout from 4 to 6 (#181)
  • update github actions deps
  • update github actions deps (#214)
  • update deps
  • remove .mcp.json that is getting pulled by claude code as plugin dependency
  • update deps
  • fix breaking changes after deps update
  • attach debugger installers to releases (#222)
  • update dependencies for 3.4.0 release
  • try Kotlin 2.4.0-RC
  • update dependencies for 3.4.0 release (#223)
  • clean up post-upgrade warnings
  • ignore builder plans
  • remove devcontainer config
  • clean up post-upgrade warnings (#226)
  • update GitHub org references
  • update GitHub owner references
  • configure Kent skills for FlowMVI
  • migrate Android multiplatform builds to AGP 9 and Gradle 9.9
  • migrate to Detekt 2
  • provision local build inputs in Kent worktrees
  • upgrade to Kotlin 2.5.0-RC
  • update release and build workflow dependencies
  • refresh documentation npm dependencies
  • update release dependencies and Compose
  • remove Kodein integration references
  • enable compatible Kotlin 2.5 compiler features
  • refresh Compose, Gradle and project dependencies
  • upgrade llms plugin and preserve Markdown URLs
  • compile the IDE plugin with the system JDK
  • restore decorators to master
  • satisfy detekt on restored decorator sources
  • forward decorator callbacks directly to the wrapped plugin
  • use pipeline context parameters in private metrics callbacks
  • add new test, update ide settings
  • clear compiler and Gradle warnings for 3.4.0
  • apply release configuration review
  • centralize Kotlin error suppression warning policy
  • disable consumer skill in the framework checkout
  • 3.4.0 (#228)
  • Fix desktop sample packaging for 3.4.0 (#229)

📚 Docs

  • fix llms.txt link casing
  • mention metrics module in quickstart
  • add metrics module to quickstart (#200)
  • clarify metrics snapshot downgrade
  • add migration docs for mvvm to flowmvi
  • update MVVM migration doc per code review comments
  • add migration docs for mvvm to flowmvi (#220)
  • update decorator examples and contextual callback signatures
  • correct Kotlin context syntax in callback reference
  • require prior human approval for public API changes
  • remove obsolete opt-ins from core decorator examples
  • clarify internal API compatibility policy
  • show direct decorator forwarding and contextual plugin signatures