Repository navigation
Highlights
- Durable event dispatch (Node) — select events with
tags.durableEventand registerresources.durableEventBridgeto run ordinary event emissions as durable workflows. Hook membership and order are persisted, completed steps are reused on replay, and parent workflow emissions are deduplicated. Hooks can declare.compensate(...)for recoverable rollback. Existing executions retain their saved hook plan across deployments. (#149, guide) - Successful workflow history collection — configure
retention.onCompleteto retain history, collect it immediately, or collect it after a delay. Memory, file-persisted memory, and Redis stores preserve completion results, receipts, and idempotency mappings so late waiters and parent replay still work. Background collection is configurable throughgarbageCollection. (#149, guide) - Durable step concurrency —
StepOptions.concurrencysupports numeric limits, named pools shared across workflows, and fixed-window callback-start limits across workers sharing a store. Saturated steps suspend their attempt and release workflow admission; interruption and replay preserve lease ownership checks and callback retry budgets. (#145, guide) - RPC retry budgets —
retry.totalTimeoutMsbounds the whole call across attempts and delays, transport retries honorRetry-After, and cancellation interrupts retry waits. Buffered JSON and browser multipart requests share timeout and cancellation handling. (#144)
Fixes and Maintenance
- Preserve RabbitMQ delivery ownership through overlapping logical duplicates, retries, and reconnects; handle publisher confirmation and channel backpressure safely. (#144)
- Reduce repeated work during definition construction and startup by reusing successfully deep-frozen immutable graphs. Recursive freezing still handles shallow-frozen objects, cycles, incomplete traversals, and mutable opaque instances. This includes the fix prepared for the unpublished 6.8.1 GitHub release. (#147)
- Update locked
amqplibto 2.2.0 andcron-parserto 5.10.3. (#146, #148, #150) - Refresh development dependencies and the durable-workflows example lockfile, upgrade the CI JUnit reporter, and use patched esbuild/glob/matcher dependencies. API documentation now uses TypeDoc's public conversion API while preserving compiler and validation checks. (#152)
- Expand the dedicated infrastructure workflow with real Redis retention races and RabbitMQ duplicate-delivery ownership checks.
Compatibility and Migration
- RPC calls keep three total attempts by default. For effects that are unsafe to repeat, explicitly configure
retry: { maxAttempts: 1 }or provide downstream deduplication: a lost response can follow a committed remote effect. Lane-routed Node uploads use one transport attempt because their input may already be consumed; the overall timeout budget still applies. - Queued event authentication now defaults to a 24-hour token lifetime.
auth.messageTtlMstakes precedence overauth.tokenTtlMs; explicit existing lifetimes remain respected. RPC authentication keeps its 60-second default. Keep verification keys available across the configured queue backlog/retry window, and account for the longer replay window. - Durable event dispatch, history deletion, and step limits are opt-in. History is retained by default. Step limits need polling enabled in at least one worker sharing the store so blocked executions resume.
- The event bridge currently supports sequential, named exact-event hooks. Global/selector hooks, competing remote routes, hook-owned waits, and nested durable emission from hook bodies fail explicitly. External effects still require idempotency or reconciliation.
- History collection retains completion receipts, results, and deduplication mappings indefinitely. Failed/cancelled executions, continuation predecessors, and children whose cross-backend parent cannot be verified retain their details. The default collector processes up to 100 executions per minute, and Redis collection enumerates timer metadata per batch; tune and capacity-test larger workloads.
Validation
- GitHub CI passed on the release commit: 5,780 tests passed, 29 skipped, zero failures, and 100% instrumented coverage. This includes Redis/RabbitMQ integration tests, lint, type checks, benchmark-comparison and documentation-generator tests, and API documentation generation.
- The Security and Benchmark Regression workflows passed on the same commit.
- Fresh local
npm run qapassed: 5,752 tests passed, 57 skipped, zero failures, and 100% instrumented coverage; all five benchmark-comparison tests, six documentation-generator tests, lint, type checks, platform builds, standalone entry points, and browser/Node consumer bundles passed. - The npm tarball was packed and inspected: version 6.9.0, 786 files, all 16 declared export targets, and materialized documentation references for the published skill.
Full changelog: 6.8.0...6.9.0