February 11, 20260.1.20Jugg.ai
v0.1.20 — feat: enterprise compliance suite (audit, consent, deletion, legal, rate limiting)
Release v0.1.20: Enterprise Compliance Suite
Date: 2026-02-11
This release adds 1,110 lines of compliance infrastructure across 12 files.
What changed
- Audit logging — New
audit_logstable with JSONB metadata. Fire-and-forgetwriteAuditLog()utility. Clerk webhooks now loguser.created,user.updated, anduser.deletedevents. Queryable via newaudittRPC router with filtering by resource type, action, and time range. - GDPR consent management — Append-only
consent_recordstable tracking essential, analytics, and marketing consent. NewconsenttRPC router withgetStatus,update,updateBulk, andhistoryendpoints. Essential consent cannot be withdrawn. - Cascading data deletion — New
data_deletion_requeststable with 30-day grace period.executeUserDeletion()cascades deletes across all 15 tables. Clerkuser.deletedwebhook now triggers full cascade instead of just removing the user row. - Legal pages — New
/privacyand/termspages added as public routes. Footer updated with links to both. - Rate limiting — In-memory sliding-window rate limiter in Edge middleware. Tiered: API (100/min), tRPC mutations (30/min), webhooks (60/min), billing (10/hr), SSE (5/min). Returns 429 with
Retry-AfterandX-RateLimit-*headers.
Why it matters
These are table-stakes requirements for enterprise customers evaluating SOC 2, GDPR, and ISO 27001 compliance. Users now get audit trails, consent tracking, right-to-erasure support, legal pages, and abuse protection out of the box.
Technical notes
- Three new database tables:
audit_logs,consent_records,data_deletion_requests - Three new tRPC routers registered in root:
audit,consent,dataDeletion - Rate limiter uses separately typed
RateLimitConfigvariables to avoid TypeScript literal type inference issues withas constrecords
Release Notes
Successfully merged PR #59 and created release v0.1.20.
PR #59 — Enterprise Compliance Suite was squash-merged to main (SHA: f5d38290).
Release v0.1.20 published at: https://github.com/dwdavies/AnyApp/releases/tag/v0.1.20
What was released:
A comprehensive enterprise compliance suite with 1,110 lines of code across 12 files, implementing five critical features:
- Audit Logging (SOC 2 CC7.2/CC7.3) — New
audit_logstable, fire-and-forget logging utility, tRPC router, and Clerk webhook integration - GDPR Consent Management (Articles 6, 7, 8) — Append-only
consent_recordstable with full tRPC router for consent tracking - Cascading Data Deletion (GDPR Right to Erasure) — 30-day grace period deletion requests with cascading delete across all 15 database tables
- Privacy Policy & Terms of Service (GDPR Article 13) — New
/privacyand/termspages with footer links - Rate Limiting (ISO 27001) — Edge-compatible sliding-window rate limiter with tiered limits and proper 429 responses