Repository navigation
v1.2.0
Minor Changes
-
7cbaa0b: Add lifecycle hooks to fetch implementation and update README
- Introduced lifecycle hooks: pre-request, post-response success, and post-response error, allowing for enhanced request and response handling.
- Updated README with detailed descriptions of lifecycle hooks and examples demonstrating their usage.
- Refactored fetch implementation to integrate hooks, improving flexibility and error handling capabilities.
Patch Changes
-
7cbaa0b: Enhance README and fetch implementation with new options
-
Added detailed section on opinionated defaults for the fetch function, including retry configuration, timeout settings, and rate limit retry options.
-
Updated examples to demonstrate usage of new options in fetch requests.
-
Introduced
RequestInitWithOptionstype to support additional options in fetch requests, within the same fetch argument footprint. -
Improved error handling and response type inference in the fetch implementation.
This update aims to provide better guidance for users and enhance the flexibility of the fetch functionality.
-