Skip to content

SafeBox 1.2.0-alpha01

Compare
Choose a tag to compare
@harrytmthy harrytmthy released this 25 Aug 16:22
· 40 commits to main since this release
2288d7e

What's new in v1.2.0-alpha01

This alpha focuses on single-instance behavior and ergonomic access.

  • Single instance per filename
    SafeBox.create(...) is now atomic and idempotent: repeated calls return the same instance. (#58)

  • New getter APIs
    Retrieve without a Context using SafeBox.get(fileName) or SafeBox.getOrNull(fileName). (#64)

  • Deprecated CLOSED state
    No longer emitted. close() and closeWhenIdle() are no-ops. (#58)

  • Stability roll-up
    Includes the 1.1.1–1.1.3 fixes (e.g. serialized .apply() / .commit() writes). (#60, #51, #54)

// Initialize once
SafeBox.create(context, "prefs")

// Retrieve anywhere later
val prefs = SafeBox.get("prefs") // or SafeBox.getOrNull("prefs")

If you're evaluating or contributing to SafeBox, we would love your feedback!