v2.1 - Audit trail + event stream (beta). First release with inline per-method sinceVersion / deprecatedInVersion metadata surfaced as badges across the SDK reference.
Highlights
audit.getTrail(id)- fetches the WORM evidence chain for a settlement. Returns anAuditEntry[]sorted by timestamp.events.on(type, callback)- beta typed event subscription over WebSocket. Returns an unsubscribe function.- Per-method version metadata surfaces in
<AllSdkMethods>,<SdkMethodComparison>, and/docs/sdk/history.
Breaking changes
- None - v2.1 is fully backwards-compatible with v2.0.
Upgrading
Bump @tetrafi/sdk to ^2.1.0. No code changes required; new methods are additive.