Skip to content

Commit

Permalink
chore(release): 2.0.0 [skip ci]
Browse files Browse the repository at this point in the history
## [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
semantic-release-bot committed Oct 20, 2024
1 parent 5cc3ed6 commit acf1c1c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## [2.0.0](https://github.com/kleinfreund/retrieve/compare/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](https://github.com/kleinfreund/retrieve/commit/bdddbdc5190442d4a7a357629e95eeaa763d5a1b))

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 }, ...)`.

## [1.2.1](https://github.com/kleinfreund/retrieve/compare/v1.2.0...v1.2.1) (2023-12-05)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "retrieve",
"version": "1.2.1",
"version": "2.0.0",
"license": "MIT",
"description": "A convenience wrapper around fetch",
"author": {
Expand Down

0 comments on commit acf1c1c

Please sign in to comment.