Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## [1.2.0](v1.1.1...v1.2.0) (2023-11-25) ### Features * relax response error handler types ([5095993](5095993)) Relaxes the types of response error handlers. The first argument of a response error handler is now typed as `Error` instead of `ResponseError`. Only the type changes. The value is unchanged: the object will still be a `ResponseError` unless a previous response error handler changes it. Similarly, the return value for maintained errors now expects a `value` of type `Error` instead of requiring `ResponseError`. This makes it easier to use response error handler because you can now return custom error formats without angering the TypeScript compiler. ### Bug Fixes * only processing the first response success handler ([f4a1e06](f4a1e06)) Fixes an issue with response success handlers where only the first handler was processed. * processing more response error handlers after one corrected an error ([7567bc5](7567bc5)) Fixes an issue with the processing of response error handlers where if a handler corrected the error state, retrieve would continue processing the remaining handlers. This was unintentional and neither matched the behavior of request error handlers nor the documentation for response error handlers. * processing response success handlers in error case ([92567fb](92567fb)) Fixes an issue with response success handlers where handlers were executed even if the network response had an error status code.
- Loading branch information