v0.2.0
Shared state, a documented API, and a page you can run the library on.
Added
redisStore(), from@luantaraschi/lull/redis. State shared across instances, with locks taken viaSET NX PXand released with a compare-and-delete script, so a critical section that outlives its own TTL cannot delete the lock its successor is holding. The client is typed structurally, so the package still has zero runtime dependencies and works with ioredis or a six line shim over another client.- A serverless recipe (
npm run example:serverless) for platforms where no process stays alive: drive the pure core from a stateless handler and let an external scheduler deliver the ticks. - An API reference covering every export, option and event.
- A showcase page that runs this library's own reducer in the browser, compiled from
src/coreat deploy time, so the demo cannot drift from the code.
Changed
- CI now checks formatting, enforces a coverage floor, and runs
publintandattwagainst the packed tarball. The published shape used to be verified by hand, which is to say rarely.
Installing from the repository works today (npm i luantaraschi/lull), including both subpaths. The npm release is still pending.