SafeBox 1.2.0-alpha01
·
40 commits
to main
since this release
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 aContext
usingSafeBox.get(fileName)
orSafeBox.getOrNull(fileName)
. (#64) -
Deprecated
CLOSED
state
No longer emitted.close()
andcloseWhenIdle()
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!