Durability packages
The public avenceslau/durability repository publishes 4 focused npm packages.
| Package | Purpose | Install |
|---|---|---|
durability | Durable operations, named alarms, retries, results, and migrations | npm install durability |
@durability/transforms | Typed caller and callee transforms for Cloudflare RPC | npm install @durability/transforms |
@durability/lint | Oxlint rules for alarm delegation and SQLite migrations | npm install -D oxlint @durability/lint |
@durability/storage | Shared reversible migration types | npm install @durability/storage |
Compatibility
Section titled “Compatibility”The repository requires Node.js 22 or newer for development. Published runtime packages are ESM and target Cloudflare Workers. @durability/transforms uses optional peers for integrations that need them, including Vite, Wrangler, Better Result, and Cloudflare Worker types.
Versioning
Section titled “Versioning”Each package is versioned independently with Changesets. Pin package versions according to your application’s update policy; do not assume every package in the repository shares one version number.
Contributing
Section titled “Contributing”Clone the public repository and run its complete check:
git clone https://github.com/avenceslau/durability.gitcd durabilitypnpm installpnpm checkChanges to a published package need a Changeset:
pnpm changesetThe test suite includes local Workerd integration tests and does not require Cloudflare credentials.