v2.9.0
Features:
- Introduce Request Caching (see Settings in the Readme file for more information)
- Introduce Request Polling (see Settings in the Readme file for more information)
- Support for array of multiple different error interceptors
- Docs revamp for easier access to Settings and Examples
Improvements:
- Decrease bundle size by up to 5% for previous functionality (excluding caching)
- Improve config checks and prioritization of per-request settings
- Add custom fetcher typings
- urlPathParams can now accept numbers and underscores
- typings for config and responses within interceptors
- interceptors do not need to return any value anymore
Fixes:
- Properly bind response instance to fetch responses
- apiUrl alias should be accepted in per-request configs
- Global interceptors for requests and responses were called twice
- Fixed typings for interceptors
- Allow empty objects in Query Params, Body and URL Path Params
Docs:
- Update readme with latest values in the Plugin Comparison Table
- Mark baseURL (apiUrl) as safe to use on per-request basis
- Improve documentation of all existing settings
- Add example of direct fetchf() call with interceptor
- Add example using custom fetcher
Potentially breaking:
ErrorHandlerInterceptor
renamed toErrorInterceptor
What's Changed
- Decrease bundle size + update readme by @MattCCC in #54
- Introduce polling by @MattCCC in #55
- Introduce cache by @MattCCC in #56
- Improve interceptors by @MattCCC in #57
- Update docs about Cache and Retries by @MattCCC in #58
Full Changelog: v2.8.0...v2.9.0