Skip to content

v0.2.0

Choose a tag to compare

@luantaraschi luantaraschi released this 19 Aug 02:27
· 11 commits to main since this release

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 via SET NX PX and 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/core at deploy time, so the demo cannot drift from the code.

Changed

  • CI now checks formatting, enforces a coverage floor, and runs publint and attw against 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.