Commit graph

13 commits

Author SHA1 Message Date
9804ffe7f5 Improve request deduping and export coverage tests 2025-12-01 17:57:48 -05:00
034070481c Merge origin/main into branch 2025-11-13 01:27:59 -05:00
bf1ee5f907 Add built-in mocking utilities 2025-11-13 01:22:26 -05:00
6d25427319 Merge origin/main into branch 2025-11-13 00:49:42 -05:00
81a2d3cb1f Implement throttled response streaming 2025-11-13 00:35:21 -05:00
2c1b42c1ac Merge origin/main into branch 2025-11-12 22:41:32 -05:00
43d4ea78b3 Support fetch-style init for body helpers 2025-11-12 22:35:13 -05:00
a0ea156a5b fixed codex cloud merge conflicts 2025-11-12 22:19:40 -05:00
47c17ef7cb Add CLI and wire types into HTTP helpers 2025-11-12 21:56:37 -05:00
e771905024 feat: add presets, resources, and type snapshots 2025-11-12 21:29:44 -05:00
feeba8d1a0 feat: Release v0.2.0 - Major streaming and performance improvements
- Add native SSE streaming support with streamSSE() method
- Add POST body support to all streaming methods (stream, streamJSON, streamSSE)
- Add race() method for first successful response from multiple endpoints
- Add batch() method for efficient bulk operations with concurrency control
- Add parallel() method using Web Workers for true parallelism
- Add uploadResumable() with adaptive chunking and progress tracking
- Add uploadStream() for large file/model uploads
- Add throttled() method for bandwidth limiting
- Add streamWithReconnect() for resilient streaming with auto-reconnection
- Remove duplicate withExponentialBackoff (already in retry logic)
- Remove overly specialized AI methods (trackTokenUsage, parallelInference)
- Fix TypeScript strict mode compatibility
- Add comprehensive CHANGELOG.md
- Bundle size: 11KB gzipped (up from 8KB, still under 15KB target)

BREAKING CHANGES:
- Removed withExponentialBackoff() - use built-in retry config instead
- Removed trackTokenUsage() - too specialized for general HTTP client
- Removed parallelInference() - use generic parallel() method instead

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-20 18:34:01 -04:00
0459622c43 Fix streaming methods to support baseURL resolution
- Extract URL resolution logic into resolveUrl() helper method
- Fix stream() and streamJSON() to use baseURL for relative URLs
- Prevents 'Failed to parse URL' errors when using relative paths
- Bump version to 0.1.3
2025-07-20 16:15:36 -04:00
b85b9a63e2 Initial commit: TypedFetch - Zero-dependency, type-safe HTTP client
Features:
- Zero configuration, just works out of the box
- Runtime type inference and validation
- Built-in caching with W-TinyLFU algorithm
- Automatic retries with exponential backoff
- Circuit breaker for resilience
- Request deduplication
- Offline support with queue
- OpenAPI schema discovery
- Full TypeScript support with type descriptors
- Modular architecture
- Configurable for advanced use cases

Built with bun, ready for npm publishing
2025-07-20 12:35:43 -04:00