mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 21:01:52 +00:00
Adds agent family support to Bun's node-fetch override by: - Detecting when agent with family option is provided - Falling back to node:https (which now supports family) for DNS resolution - Maintaining performance by using Bun.fetch for non-agent requests - Supporting all family values (4, 6, etc.) This completes the fix for https://github.com/oven-sh/bun/issues/22019 Changes: - Enhanced src/js/thirdparty/node-fetch.ts with fetchViaNodeHttps fallback - Added comprehensive test suite for node-fetch agent support - Verified original user code now works correctly The fix now handles both: ✅ https.request() with family option (original fix) ✅ node-fetch() with family option (new fallback implementation) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>