Changelog
All notable changes to the Transmission library will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased]
[2.0.0-beta02] - 2026-11-30
Added
Contracts: declare a feature's state, queries and commands as delegated properties (val summary by query<CartState>()); handles are named after the object and property (Cart.summary).transformer(name) { }/transformer(contracts) { }builder:state(handle)returns aStateFlowthat publishes on change,on<T>handles signals and effects,answer/handleserve queries and commands, and handlers call handles directly (Catalog.productById(id),Cart.clear()). It builds a regularTransformer, so it works with every router API and mixes with the classic API through each handle'scontract.Transmission.Message, a sealed parent ofSignalandEffect; exhaustivewhenoverTransmissionis unaffected.awaitSignal<T>()in builder handlers: suspends until the nextTreaches the transformer and returns it, giving up the turn while waiting; variants withcancelOnandtimeoutreturnnullon cancel or timeout. Types a handler waits for are declared withaccepts<T>(). Replaces checkpoints for multi-step flows: no contracts, novalidatehandlers.transmission-test: a test DSL,transformer.test(dispatcher) { fake(...); send(...); awaitState(...); awaitEffect<T>() }, with fakes for queries, state and commands (which record their calls), and failure messages that list everything seen.CoroutineScope.router(name, transformers…) { global() }: a router cleared when its scope ends, so ViewModels need noRouterViewModelsubclass;router.state(handle)androuter.stream(handle)read a feature's state wherever its owner is, starting from the initial value declared withstate(initial)in theContractsobject;RouterViewModel.streamDataAsState(handle, initial)for subclasses.
Deprecated
- The classic API:
Transformersubclasses withconfigure { },onSignal/onEffect,Contractfactories,dataHolder,TransmissionRouter { },RouterViewModel(transmission-viewmodel) and theTransmissionTestharness. They keep working in 2.x; the docs map each to the builder API. - Checkpoints (
pauseOn,validate,Contract.checkpoint()/checkpointWithArgs()and the harness's checkpoint mocks), in favour ofawaitSignal. They will be removed in 3.0. Transformer'scapacityparameter is ignored: a transformer's mailbox is unbounded sosend,publishand executions never suspend. Set buffer sizes on the router withsetCapacity.
Changed
- Built with Kotlin 2.4.21, Android Gradle Plugin 9.5.3, Gradle 9.9.3, Compose Multiplatform 1.12.2, kotlinx.coroutines 1.11.0, Dokka 2.3.0 and KSP 2.3.14.
- Breaking: the
iosX64(Intel simulator) target is no longer published; the JetBrains libraries Transmission depends on dropped it.iosArm64andiosSimulatorArm64remain. - Breaking: Android minSdk is now 23 (was 21), matching current AndroidX.
transmission-viewmodeldepends onlifecycle-viewmodelinstead oflifecycle-viewmodel-compose, and no longer leakskotlinx-coroutines-test, JUnit and Turbine to apps.- Android targets use the Android-KMP library plugin (
com.android.kotlin.multiplatform.library). - The shop sample follows the AGP 9 layout:
shared,androidApp,desktopAppandiosApp. - IDE plugin: detects the builder API (
on<T>,accepts<T>(),awaitSignal<T>()andemit). - Docs lead with the builder API; the classic reference moved to a deprecated section.
- The build pins its daemon to JDK 21 (
gradle/gradle-daemon-jvm.properties); running Gradle needs JDK 17 or newer.
[2.0.0-beta01] - 2026-11-29
Migration
- Breaking: the Maven group is now
com.yigitozgumus(wascom.trendyol): usecom.yigitozgumus:transmission,com.yigitozgumus:transmission-viewmodelandcom.yigitozgumus:transmission-test. - Breaking: packages moved from
com.trendyol.transmission,com.trendyol.transmissionviewmodelandcom.trendyol.transmissiontesttocom.yigitozgumus.transmission,com.yigitozgumus.transmissionviewmodelandcom.yigitozgumus.transmissiontest. Replacingcom.trendyol.withcom.yigitozgumus.in imports is enough. - See the breaking changes below: global routing is opt-in, computations propagate failures, handlers freeze at bind, observer streams drop beyond capacity, and
RouterViewModelstate starts eagerly.
Added
Transformer.configure { ... }for class-friendly transformer composition.transformer { ... }factory for simple anonymous transformer definitions.- Router global registration controls with
registerToGlobalRouter(...)and duplicate global contract validation withvalidateGlobalContracts(...). - Cross-router effect and query routing through the global router registry.
- Comprehensive documentation with practical examples.
- Opt-in JVM benchmarks:
./gradlew :transmission:jvmTest -Pbenchmark. RouterViewModel.streamDataAsState(contract, initialValue): state that follows one data holder.RouterViewModelConfig.registerToGlobalRouter, so ViewModel-owned routers can join the global router.- Shop sample (
samples/shop, Android, desktop and iOS), replacing the counter and components samples. It covers data holders, cross-router effects and queries, targeted effects, checkpoints, error isolation and router isolation, with a live inspector. ContractNotFoundException, thrown to the caller when a queried data holder or computation exists in no router.
Changed
- Breaking: routers no longer register with the global router by default. Call
registerToGlobalRouter()on every router that should exchange effects or queries. - Breaking: a computation that throws now fails the caller's
compute(...)with the same exception instead of returningnull. The owner'sonErroris still called. - Breaking: handlers can no longer be changed after a transformer is bound to a router; doing so throws
IllegalStateExceptioninstead of being silently ignored. configure { onSignal<T> { } }andonEffect<T>now stack when called more than once for the same type, as documented, instead of replacing the earlier handler.- Each transformer now processes signals, effects and executions through one mailbox, one at a time and in arrival order. Previously signal and effect handlers of the same transformer ran in parallel, and executions ran outside the transformer.
send(data),publish(effect)andexecute(...)no longer suspend. Effects go straight into the target transformers' mailboxes.- Breaking: observer streams (
streamData,streamEffect) no longer apply backpressure to transformers. Up toCapacityitems are kept for observers that have not subscribed yet or are behind; beyond that the oldest are dropped. UseCapacity.Unlimitedto never drop. - Queries are answered directly instead of through router channels:
getDatareads the owner's storage, computations run in the caller's coroutine, and executions go to the owner's mailbox. Owners are found through an index built at initialization. Cancelling a caller now cancels its computation. RouterViewModel.streamDataAsStatenow starts eagerly by default (wasWhileSubscribed()), so state published while the UI is not collecting is kept, and it accepts nullable types.process,sendandtryProcessshare one ordered, unbounded router inbox: calls are routed in caller order, and transmissions sent before initialization completes are delivered once the router is ready.tryProcessis now all-or-nothing and returnsfalseonly afterclear().
Fixed
Transformer.clear()is idempotent, soonClearedruns once even when a transformer is cleared by both its router and the scope that created it. A router created withscope.router(...)clears its transformers even when the scope ends before the router finishes initializing.TransmissionRouter.streamDataAsState(contract, ...)starts from the holder's current value, so a value published before the state was created is no longer missed.transmission-test: tests using aStandardTestDispatcher(the default) no longer lose the data and effects of the transmission under test, and multi-step checkpoint flows no longer hang the harness.transmission-test: eachcheckpointWithArgsmock now validates only its own checkpoint.- A transformer that published many effects to itself deadlocked the router.
- A transformer stopped processing once about 128 data items were sent with no observer collecting them.
- A data holder's initial value could be published after its first update.
- A handler waiting on a checkpoint could never be released by its own transformer's later signals.
- Signal throughput improved from about 2–3.6M to 3.3–7.7M messages/s, and effects from about 0.9M to 1.4M/s (JVM, real dispatcher).
compute()round trip dropped from 22–54 µs to under 0.5 µs and no longer grows with the number of transformers.- A handler exception no longer stops the transformer from processing later signals and effects; it is reported through
onError. - Several handlers waiting on the same checkpoint are now released one per validation, in arrival order, instead of all but the latest waiting forever.
- A transformer querying a contract owned by another global router no longer hangs.
- Updated examples to use current
configure { ... },TransmissionRouter { ... },Capacity.Custom(...), and targetedsend(effect, identity)APIs. - Removed obsolete examples that referenced non-existent builder, generic transformer, and capacity enum APIs.
- Updated setup documentation to reflect Maven Central publication from version 1.6.0+.
- Improved testing documentation with correct TransmissionTest API.
- Enhanced documentation structure and navigation.
[1.6.0] - 2025-05-16
Added
- Kotlin Multiplatform Support: Complete migration to Kotlin Multiplatform
- iOS target support with native compilation
- Desktop (JVM) target support
- Maven Central Publication: Now published to Maven Central instead of JitPack
- New publication workflow with signing and verification
- Convention plugins for build configuration management
Changed
- Breaking: Migrated from Android-only to Kotlin Multiplatform
- Breaking: Publication moved from JitPack to Maven Central
- Breaking: Dependency coordinates changed to
com.trendyol:transmission - Refactored counter sample to Compose Multiplatform
- Updated build logic with new convention plugins
- Improved project structure for multiplatform development
Removed
- Legacy Android-only sample applications
- JitPack publication support for new versions
Migration Guide
- Update dependencies from
com.github.Trendyol:transmissiontocom.trendyol:transmission - Remove JitPack repository if only using Transmission
- For KMP projects, configure targets as needed (android, iosX64, iosArm64, iosSimulatorArm64, jvmDesktop)
[1.5.0] - 2025-03-24
Added
- One-shot Payload Sending: New API for sending payloads without persistent subscriptions
- Enhanced transmission processing capabilities
- New experimental annotations for evolving APIs
Changed
- Improved payload handling performance
- Updated version numbering system
[1.4.2] - 2025-03-14
Added
- Enhanced Testing Infrastructure: New
TransmissionTestclass replacing deprecatedTestSuite - New test methods for checkpoint validation
- Improved test assertion methods with better type safety
- Additional transformer testing capabilities
Changed
- Breaking: Deprecated
TestSuitein favor ofTransmissionTest - Updated testing API with fluent builder pattern
- Improved test method naming and organization
- Enhanced sample test implementations
Fixed
- Test indentation and formatting issues
- OutputTransformer test compatibility
- Broadcast functionality in testing scenarios
[1.4.0] - 2025-02-25
Added
- Transformer Lifecycle:
onCleared()callback for cleanup operations - Handler Extension API: Ability to extend and override handler behavior
- Stacked Lambda System: Advanced handler composition capabilities
- Value Class Optimization: Converted
Capacityto value class for better performance - Stream Extensions: New extension functions for data and effect streaming
Changed
- Breaking: Refactored handler extension API
- Breaking: Updated
UpdateHandlerScopeimplementation - Improved router internals for better performance
- Enhanced API naming conventions for handlers
- Updated README with new features
Fixed
- Removed redundant coroutine creation
- Fixed lambda versioning issues
- Improved memory management in handler chains
[1.3.0] - 2024-11-14
Added
- Checkpoint API (Experimental): Advanced flow control with checkpoints
@ExperimentalTransmissionApiand@InternalTransmissionApiannotations- CheckpointTracker for managing checkpoint state
- Checkpoint validation and frequency control
- Enhanced Contract system with checkpoint support
- Identity-based computation validation
- UUID-based identifier generation
Changed
- Breaking: Contract types converted to classes with internal constructors
- Breaking: Updated dataHolder API to remove manual key assignment
- Improved stability and thread safety
- Updated Kotlin to 2.0.20
- Enhanced Counter sample with better examples
Fixed
- Removed buffer-related issues in broadcast system
- Improved mutex locking in dataHolder operations
- Fixed tryEmit/trySend calls replaced with suspending alternatives
[1.2.1] - Previous Release
Added
- Core transmission framework
- Basic transformer functionality
- Router implementation
- Initial testing support
Changed
- API stabilization improvements
- Performance optimizations
[1.0.x Series] - Legacy Releases
Multiple releases focusing on: - Core functionality development - API refinements - Bug fixes and stability improvements - Initial testing framework
[0.0.x Series] - Early Development
Early development releases with: - Initial concept implementation - Proof of concept features - Experimental APIs
Breaking Changes Summary
1.6.0
- Publication: Moved from JitPack to Maven Central
- Dependencies: Changed from
com.github.Trendyol:transmissiontocom.trendyol:transmission - Platform: Migrated to Kotlin Multiplatform (supports Android, iOS, Desktop)
1.4.2
- Testing:
TestSuitedeprecated in favor ofTransmissionTest
1.4.0
- Handlers: Handler extension API redesigned
- Capacity: Converted to value class (source compatible)
1.3.0
- Contracts: Contract types changed from interfaces to classes
- DataHolder: Manual key assignment removed
Experimental Features
Some features are marked as experimental and may evolve:
- Checkpoint System (
@ExperimentalTransmissionApi): Advanced flow control - Handler Extensions: Dynamic handler modification
- Advanced Transformer Communication: Complex inter-transformer patterns
Migration Support
For detailed migration guides between major versions, see: - Setup Guide for dependency updates - Testing Guide for test migration - Transformer Guide for API changes
Contributing
We welcome contributions! See our GitHub repository for: - Bug reports and feature requests - Pull request guidelines - Development setup instructions
This changelog reflects the actual development history. For the latest releases, check the GitHub releases page.