@rules-cascade/common
v1.0.0-alpha.11
Published
Rule Cascade's shared contract: the rule, bundle and manifest types and the five-field cron schedule that core, client and server all use.
Maintainers
Readme
@rules-cascade/common
The contract the other Rule Cascade packages share. It has no dependencies and evaluates nothing.
| Export | What it is |
|---|---|
| The types | RuleSetDocument, Rule, Bundle, Manifest, EvaluationRequest, EvaluationResult, Finding, Operators and the rest of the specification's shapes |
| @rules-cascade/common/cron | The five-field cron schedule the manifest client and the rule server run on: parseCron, startCronTimer, checkTimeZone, CronSchedule, CronError. Also exported from the main entry |
| VERSION | The version every package of this release carries |
import type { Manifest, EvaluationRequest } from '@rules-cascade/common';
import { parseCron } from '@rules-cascade/common/cron';
parseCron('*/15 * * * *').next(new Date('2026-10-05T10:07:00Z')); // 2026-10-05T10:15:00.000ZYou rarely install it on its own: @rules-cascade/core re-exports
everything in it, and @rules-cascade/client and
@rules-cascade/server depend on it.
