@nebutra/audit 2.0.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +6 -3
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -112,10 +112,13 @@ interface AuditEvent {
112
112
 
113
113
  ## Storage
114
114
 
115
- Audit logs are stored in:
115
+ Provider is resolved from the environment (`AUDIT_PROVIDER`, or auto-detected —
116
+ see `src/providers/index.ts`):
116
117
 
117
- - **Primary:** Supabase (queryable)
118
- - **Archive:** S3/R2 (long-term retention)
118
+ - **Postgres** (via Prisma, `DATABASE_URL`) — default durable backend
119
+ - **ClickHouse** (`CLICKHOUSE_URL` + `AUDIT_USE_CLICKHOUSE=true`) — high-volume
120
+ append-only storage
121
+ - **Memory** — dev/test fallback only, not durable
119
122
 
120
123
  ## Related
121
124
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nebutra/audit",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "Audit logging for sensitive operations",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -48,7 +48,7 @@
48
48
  ],
49
49
  "dependencies": {
50
50
  "zod": "^4.3.6",
51
- "@nebutra/logger": "2.0.0"
51
+ "@nebutra/logger": "3.0.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/node": "^22.19.15",