Skip to content

Commit

Permalink
v6.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wangcch committed Jul 5, 2022
1 parent d40c7a9 commit 754b737
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
## [6.1.0](https://github.com/axios-use/react/compare/v6.0.0...v6.1.0) (2022-07-05)


### Features

* feat(useRequest): return all response. ([e9317ce](https://github.com/axios-use/react/commit/e9317ce246a0c286c6e548d2f153dbc2cd8411b6))
```diff
interface CreateRequest {
// Promise function
- ready: () => Promise<[Payload<TRequest>, AxiosRestResponse]>;
+ ready: () => Promise<[Payload<TRequest>, AxiosResponse]>;
// Axios Canceler. clear current request.
cancel: Canceler;
}
```

```diff
- const [{ data, error, isLoading, other }] = useResource(...)
+ const [{ data, error, isLoading, response }] = useResource(...)
```

No BREAKING CHANGES. Will keep `other` value, but deprecated.



# [6.0.0](https://github.com/axios-use/react/compare/v5.1.0...v6.0.0) (2022-05-15)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@axios-use/react",
"version": "6.0.0",
"version": "6.1.0",
"description": "A React hook plugin for Axios. Lightweight, cancelable and less change",
"contributors": [
"Matheus Schettino <[email protected]>",
Expand Down

0 comments on commit 754b737

Please sign in to comment.