Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 20 Oct 09:43
· 4 commits to main since this release

2.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)

    Add a new data property to ResponseErrors 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 }, ...).