Skip to content

v0.2.0

Choose a tag to compare

@lwj1994 lwj1994 released this 27 Jul 09:20
· 5 commits to main since this release

Highlights

  • Add a stable dependency binding owned by each parent ViewModel generation.
  • Preserve unkeyed child identity while shared-parent root owners join or leave.
  • Track direct and parent ownership paths independently with source-aware references.
  • Deduplicate synchronous watch propagation across diamond dependency graphs.
  • Make recycle global and preserve owners plus binding subscriptions during recreate.
  • Add construction rollback, cycle detection, reset-safe recreation, aligned docs, and serial test enforcement.

Migration notes

  • Repeated unkeyed specs of the same resolved ViewModel type now reuse one instance within a binding. Add distinct keys when multiple same-type instances are intentional.
  • Nested aliveForever dependencies now require an explicit key.
  • Resolve ViewModels through properties rather than by lazy or stored references so recycle/recreate can return the active generation.

Validation

  • :android-view-model:testDebugUnitTest
  • :android-view-model:assembleRelease
  • :android-view-model:lintRelease
  • :android-view-model:publishToMavenLocal