Skip to content

v2.9.0

Compare
Choose a tag to compare
@MattCCC MattCCC released this 22 Sep 00:34
· 84 commits to master since this release

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 to ErrorInterceptor

What's Changed

Full Changelog: v2.8.0...v2.9.0