Commit graph

5 commits

Author SHA1 Message Date
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
0941d85d53 Add version sync script and update to 0.1.3
- Created automated version sync script in scripts/sync-version.js
- Updates all website version references automatically
- Added sync-version npm script for easy usage
- All files now synced to version 0.1.3
2025-07-20 16:16:49 -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
d8c5e4a1d5 Fix CommonJS exports and content negotiation
- Add CommonJS build (index.cjs) to support both ESM and CJS imports
- Enhanced markdown plugin to serve JSON content for LLMs at /docs endpoint
- Bump version to 0.1.1 for package compatibility fixes
2025-07-20 15:52:29 -04:00
88e06d820a fixed package again for new npm org and updated readme links 2025-07-20 12:55:21 -04:00