Skip to content

Commit f4a8866

Browse files
committed
Create kind-jars-lay.md
1 parent bdb0092 commit f4a8866

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.changeset/kind-jars-lay.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
"@evolu/common": patch
3+
---
4+
5+
Add owner usage tracking and storage improvements
6+
7+
### Breaking Changes
8+
9+
- Renamed `TransportConfig` to `OwnerTransport` and `WebSocketTransportConfig` to `OwnerWebSocketTransport` for clearer naming
10+
- Renamed `SqliteStorageBase` to `BaseSqliteStorage` and `createSqliteStorageBase` to `createBaseSqliteStorage`
11+
- Extracted storage table creation into separate functions: `createBaseSqliteStorageTables` and `createRelayStorageTables` to support serverless deployments where table setup must be separate from storage operations
12+
13+
### Features
14+
15+
- **Owner usage tracking** (in progress): Added `evolu_usage` table and `OwnerUsage` interface to track data consumption metrics per owner (stored bytes, received bytes, sent bytes, first/last timestamps). Table structure is in place but not yet fully implemented
16+
- **Identicon generation**: Added `createIdenticon` function that generates deterministic SVG identicons from any `Id`. Supports four styles: `"github"` (5x5 mirrored grid), `"quadrant"` (2x2 color blocks), `"gradient"` (diagonal stripes), and `"sutnar"` (compositional variants)
17+
- **Timestamp privacy documentation**: Added comprehensive privacy considerations explaining that timestamps are metadata visible to relays, with guidance on implementing local write queues for maximum privacy
18+
19+
### Performance
20+
21+
- **isSqlMutation optimization**: Added LRU cache (10,000 entries) to `isSqlMutation` function, restoring performance from 34k to 57k inserts/sec. Cache stores results of SQL mutation detection to avoid repeated comment removal and regex matching

0 commit comments

Comments
 (0)