Files
bun.sh/test/js/node
Claude Bot ffb3b3ea89 Implement complete fix for IPv6 family support in node-fetch
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>
2025-08-21 07:53:34 +00:00
..
2025-05-26 21:18:22 -07:00
2025-08-19 21:51:25 -07:00
2025-08-04 19:42:40 -07:00
2025-05-22 21:12:43 -07:00