Releases: square/workflow
Releases · square/workflow
v0.19.0
v0.18.0
Kotlin
Core API changes:
- Added builder functions for creating stateful workflows. (#441)
- Introduce Kotlin Flows:
- Add
Completable.asWorker()
operator. (#423) - Rename
WorkflowAction.noop()
tonoAction()
. (#420) - Change
RenderContext.onEvent
return type to be a raw function type. (#387) - Moves
Named.key
up toCompatible.compatibilityKey
. (#429)
Runtime changes:
- Replace
WorkflowHost
with thelaunchWorkflowIn
function. (#447) - Delete
flatMapWorkflow
. (#377) - Allow specifying a different
CoroutineDispatcher
in theWorkflowRunner
. (#379)
Version changes:
- Bump Kotlin to latest version (1.3.41), along with Dokka and detekt. (#451)
- Migrate to AndroidX. (#59, #469 - thanks @charbgr!)
- Bump AGP to latest beta version (3.5.0-beta05). (#427)
- Update coroutines dependency to 1.3.0-M2. (#409)
Other changes:
- Don't throw from
runningWorker
when the worker finishes. (#456) - Less hacky lifecycle search in
ModalContainer
. (#448) - Fix Worker backpressure (too much buffering). (#446)
- Set up a teardown hook for dialogs. (#432)
- Artifact name changes (#419)
- Add -jvm suffixes to all modules that could be MPP one day.
- Add the -core suffix to the artifact for workflow-ui-core.
- Remove (incorrect) manual implementation of
ensureActive
. (#378) - Fix
WorkflowPool
to work withConflatedBroadcastChannel
. (#475)
Swift
- Rename
AnyWorkflowAction.identity
tonoAction
(#444)
v0.17.3
v0.17.2
v0.17.1
v0.17.0
2019-5-29
Kotlin
- Add a Worker.createSideEffect helper for Nothing-type workers. (#366)
- Add a Worker.timer function to create simple delay workers. (#368)
- testRender can now test arbitrary event handlers and automatically calculate initial state. (#372)
- Allow specifying the CoroutineDispatcher used by WorkflowRunnerViewModel. (#375)
Swift
v0.16.1
v0.16.0
Kotlin
- Breaking change: remove the
CoroutineScope
parameter toinitialState
, removeonTeardown
. (#289) - Breaking change: made
LifecycleWorker
methods non-suspending. (#328) - Removed must nullability restrictions from parameter types. (#334, #352)
- Marked
workflow-ui-core
andworkflow-ui-android
APIs as experimental. (#345) - Breaking change: removed deprecated
Screen
classes. (#347) - Add experimental support for input from Flow streams. (#280)
- Introduce alternative testing infrastructure to test single render passes. (#349)
- Add
Emitter.emitAll
extension to consume RxJava streams from within custom workers. (#354) - Breaking change: simpler / richer
WorkflowActivityRunner
API.PickledWorkflow
no longer public. (#355, #358) - Breaking change: make the
RenderContext
parameter toWorkflow.stateless
the receiver instead. (#357) - Introduces
WorkflowFragment
. (#344, #358)
Swift
- Add Action and Render testing helpers. (#330)
v0.15.0
Kotlin
- Introduce Workers as the new and only way to subscribe to external stream and future types. (#289, #321, #322, #323, #324)
- Rename WorkflowContext to RenderContext. (#309)
- Fix for stale workflow output handlers being invoked in later render passes. (#314)
WorkflowTester
improvements:
Swift
- Rename
compose
torender
and update docs. (#301)