Add randomUUID to CryptoProvider for edge runtime compatibility (#1404)
## Summary Fixes #1403 - Adds `randomUUID()` abstract method to `CryptoProvider` interface - Implements in `NodeCryptoProvider` using Node's `crypto.randomUUID()` - Implements in `SubtleCryptoProvider` using `randomBytes(16)` with UUID v4 bit manipulation - Updates `AuditLogs` to use `getCryptoProvider().randomUUID()` instead of direct Node crypto import This ensures the audit-logs idempotency key generation works across all supported runtimes including edge environments (Convex, Cloudflare Workers) that cannot import the Node "crypto" package.
N
Nick Nisi committed
0658b5e691cb2c4a89d416e3432f3d21773fa4cd
Parent: b8ee00c
Committed by GitHub <noreply@github.com>
on 12/2/2025, 12:35:20 AM