Just released v3.0 of @small-tech/state
(A tiny – 42 lines of code¹ – JavaScript state management class.)
https://codeberg.org/small-tech/state
The state class is no longer a proxy itself but instead uses a proxy to guard access/update of states. This means instances/subclasses of State can now be persisted in JavaScript Database (JSDB)² objects. e.g., for use in Kitten³ apps.
¹ Sans comments and empty lines.
² https://codeberg.org/small-tech/jsdb
³ https://codeberg.org/kitten/app