Skip to content

v3.0.0

Latest

Choose a tag to compare

@chadly chadly released this 06 Dec 22:29
· 1 commit to master since this release

New Features

  • Return statusText, status from hook results
  • Return full response (not a POJO) on error object returned when can't parse JSON as a result of a non-200 status code

Breaking Changes

  • checkStatus utility function no longer exported
  • The error returned from the hook now only includes the response when it can't parse the JSON. For other errors, the original response is not included. This is because the hook is already returning the interesting things from the response: headers, body, status, statusText