Skip to content

v2.0.0

Compare
Choose a tag to compare
@exah exah released this 13 Nov 14:33
· 37 commits to master since this release

Breaking changes

  • πŸ’₯ Drop support for CJS module format
  • πŸ’₯ Extend custom errors from Error class
  • πŸ’₯ Convert YF to namespace export
  • πŸ’₯ Rename prefixUrl -> resource
  • πŸ’₯ Remove getHeaders (use onRequest)
  • πŸ’₯ Remove options from the second argument of onResponse, onSuccess, and onFailure
  • πŸ’₯ Remove isResponseError, isTimeoutError, isTimeoutError
  • πŸ’₯ Target es6 (use v1 if you need older browser support)

Improvements

  • ✨ Default search params serialisation can handle arrays
  • ✨ Better extend behaviour: merge resource strings, headers and params
  • ✨ Modify any option before the request using onRequest option
  • πŸ“– Improve documentation with better examples and detailed explaination

v1.7.2...v2.0.0