Skip to content

v0.5.2 — Enum keys in reactive APIs

Choose a tag to compare

@paulomtts paulomtts released this 07 Jun 02:55
· 313 commits to master since this release

Summary (#23)

  • reacts_to and dirtied accept str or Enum keys — both normalize through coerce_reactive_key (.value, then str).
  • load() / render(key) use the same coercion, so instance keys are always str framework-side, matching the mounted manifest and the load cache. coerce_load_key is now an alias of coerce_reactive_key, and invalidate() coerces dirtied keys before eviction — cache keys and invalidation stay consistent across the framework.
  • Docs and tests updated for enum/string reactive keys (tests/47_reactive_keys_and_enum_load_test.py).

Install

pip install pyjinhx==0.5.2

Full changelog: v0.5.1...v0.5.2