Just released version 2 of my tiny JavaScript state management class.
```js
import State from '@small-tech/state'
const state = new State({
UNKNOWN: {},
OK: {},
NOT_OK: {}
})
state.is(state.UNKNOWN) // true
state.set(state.NOT_OK, { error: 'This is just not ok.' })
state.now.error // This is just not ok.
```
New: types via JSDoc, lives at Codeberg, licensed under AGPL, dropped Svelte support.
Source and documentation: https://codeberg.org/small-tech/state