v1.5.0
What's Changed
🚀 Features
- export request factory functions (e6802ef)
- add getArrayBuffer method to BaseRequest (d931aa1)
- export api and request factory functions as named exports (69967f6)
- add cause support to RequestError and preserve original error messages (d4925cd)
- add caching for response body methods (dce4ea9)
- add API builder for creating configured request instances (8b66ed1)
🐛 Bug Fixes
- make path parameter optional in ApiBuilder HTTP methods (b453373)
- prevent array mutation in response and error interceptors (4e74f7f)
- update error messages (57df51d)
- handle HTTP status 0 as network error instead of "HTTP 0" (b443cbc)
- resolve TypeScript linter errors in test files (251fc3d)
- export CacheMode enum from main entry point (65884f8)
- resolve linter errors and warnings (86306f9)
♻️ Code Refactoring
- reduce library size by shortening error messages (55091f1)
- make isTimeout and isAborted always boolean (658cf8c)
- apiBuilder (797c7ee)
- simplify URL resolution logic (00fe6a6)
- simplify method implementations by delegating to base methods (12fcb2e)
- extract duplicate body consumption check into helper method (af35853)
📝 Documentation
- update package size (8648e10)
- add Named Exports and Tree-Shaking Guide sections (f7020c4)
- add developer experience section comparing fluent API to object-based config (acda768)
- improve JSDoc for public APIs with enhanced IDE hints (54b5df8)
- add mental model section to README (306f195)
- add package size impact reporting requirement (2a26f8a)
- reorganize sections into Advanced Usage (7b2292f)
🧪 Tests
- add comprehensive test coverage for edge cases (24abff1)
- improve coverage for BaseRequest edge cases and remove dead code (9e97b0b)
- add body caching tests and update existing tests (2ab20c8)
🏗️ Build System & CI
- add pre-commit hook for lint and test checks (cae23e5)
- add prepack script (ea1849f)
- add publish:rc script and fix publish scripts commit messages (2d13852)
- add publish:rc script and fix publish:beta tag - Fix publish:beta to use --tag beta instead of --tag latest - Add publish:rc script for release candidate publishing (4235bf0)
- update husky hook to v9 format (1ebe1fe)
🔧 Chores
- add package keywords for better discoverability (9a86ba5)
- upgrade TypeScript ecosystem to latest versions (ce7914e)
Full Changelog: v1.4.2...v1.5.0