Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## [2.0.0](v1.2.1...v2.0.0) (2024-10-20) ### ⚠ BREAKING CHANGES * Change the first parameter of `ResponseError` to expect a `RetrieveResponse` object instead of a `Response` object. **How to update**: Replace `new ResponseError(response, ...)` with `new ResponseError({ response, data: null }, ...)`. ### Features * add data to ResponseError ([bdddbdc](bdddbdc)) Add a new `data` property to `ResponseError`s holding the same deserialized value as the `data` property on `RetrieveResponse` objects. If an exception occurs during deserialization, the value will be `null`. **BREAKING CHANGE**: Change the first parameter of `ResponseError` to expect a `RetrieveResponse` object instead of a `Response` object. **How to update**: Replace `new ResponseError(response, ...)` with `new ResponseError({ response, data: null }, ...)`.
- Loading branch information