github TechSquidTV/Tuvix-RSS v0.0.31

latest releases: v0.6.1, v0.6.0, v0.5.5...
one month ago

✨ Key Improvements

  1. Centralized Session Management (refactor)
  • Implemented router context architecture to fetch session once at root level
  • Eliminates redundant authClient.getSession() calls in child routes
  • Performance gain: ~200ms faster navigation (2 fewer API roundtrips)
  • Code reduction: Simplified route guards (admin route: 45 → 18 lines)
  1. Extended Session Caching (performance)
  • Increased client-side session cache from 5 minutes to 15 minutes
  • Added stale-while-revalidate behavior for seamless UX
  • Disabled unnecessary refetch-on-mount
  • Performance gain: 66% reduction in session refetches
  1. Comprehensive Error Monitoring (observability)
  • Added Sentry integration to Better Auth session plugin
  • Monitors session fetch failures at root level
  • Tracks email verification check errors
  • Fail-open strategy prioritizes availability over strict enforcement
  • Benefit: Improved visibility into authentication issues in production

📊 Performance Impact

Metric Before After Improvement
Session API calls per navigation 3-4 1 70-75% ↓
Session refetch frequency Every 5min Every 15min 66% ↓
Total session API load Baseline ~10% ~90% ↓
Navigation speed Baseline -200ms Faster

🏗️ Architecture Changes

Before:
User navigates → Root (fetch session)
→ /app (fetch session)
→ /app/admin (fetch session)
Result: 3 API calls, ~600ms of network overhead

After:
User navigates → Root (fetch session, store in context)
→ /app (read from context)
→ /app/admin (read from context)
Result: 1 API call, ~200ms of network overhead

Full Changelog: v0.0.30...v0.0.31

Don't miss a new Tuvix-RSS release

NewReleases is sending notifications on new releases.