mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 05:12:29 +00:00
Implements a version checker that runs during HTTP thread idle periods: - Checks for Bun version updates at random intervals (30-180 seconds) - Only runs when HTTP thread is idle (no active requests) - Ensures only one check per idle period using state tracking - Integrates with existing usockets sweep timer (4-second intervals) - Uses existing HTTP infrastructure for version checking - Includes basic test coverage The checker activates during HTTP thread idle periods, making efficient use of the existing 4-second sweep timer cycle. This provides automatic update notifications without impacting performance during active usage. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>