Files
bitvid/scripts
thePR0M3TH3ANandClaude Opus 4.8 87a29b8ff8 refactor(subscriptions): extract helpers from subscriptions (6/10)
File-size decomposition (no behavior change). Move the state-free TinyEventEmitter,
the decrypt-retry helpers (isTransientDecryptError, computeRetryDelay + tables),
the normalize helpers (normalizeHexPubkey, normalizeEncryptionToken), and the
subscription-list codec (serializeSubscriptionTagMatrix, parseSubscriptionPlaintext,
parseCachedSubscriptionSnapshot) into js/subscriptionsHelpers.js.

subscriptions.js: 2584 -> 2361 lines (below its original 2426 baseline;
re-recorded to 2361 to lock the reduction).

Build + full unit suite green.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-19 16:22:08 -04:00
..
2026-02-21 21:03:49 -05:00
2026-01-23 11:08:38 -05:00