Skip to content

Commit 20c40e9

Browse files
author
Michal Svrček
committed
fixed documentation, updated version, added changelog
1 parent ad437ea commit 20c40e9

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# CHANGELOG
2+
3+
## 1.3.0 ( Jun 14, 2016 )
4+
- added warning to not use first interceptor argument as `getState` function
5+
- added `dispatch` and `action` to first interceptor argument - [#26](https://github.com/svrcekmichal/redux-axios-middleware/pull/26)
6+
7+
## 1.2.0 ( Jun 7, 2016 )
8+
- provide ability to specify failure interceptors that run when request fails [#20](https://github.com/svrcekmichal/redux-axios-middleware/issues/20)
9+
- fixed interceptors default values
10+
11+
## 1.1.0 ( Jun 1, 2016 )
12+
- support for multiple client [#6](https://github.com/svrcekmichal/redux-axios-middleware/issues/6)
13+
- configuration of middleware on all layers (middleware, client, action)
14+
- Fixes throw uncaught exception in axios error with `returnRejectedPromiseOnError` options
15+
16+
## 1.0.0
17+
- first stable version of middleware

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ Legend:
241241
| getClientName | function | returns `action.payload.client` OR `'default'` | `M` `C` `A` | attempts to resolve used client name or use defaultClientName |
242242
| defaultClientName | every possible object key type | `'default'` | `M` | key which define client used if `getClienName` returned false value |
243243
| getRequestOptions | function | return `action.payload.options` | `M` `C` | returns options object from action to override some values |
244-
| interceptors | object `{request: [], response: []}` | | `M` `C` | You can pass axios request and response interceptors. Take care, first argument of interceptor is different from default axios interceptor, first received argument is `getState` function |
244+
| interceptors | object `{request: [], response: []}` | | `M` `C` | You can pass axios request and response interceptors. Take care, first argument of interceptor is different from default axios interceptor, first received argument is object with `getState`, `dispatch` and `action` keys |
245245

246246
## License
247247

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redux-axios-middleware",
3-
"version": "1.2.0",
3+
"version": "1.3.0",
44
"description": "Redux middleware for fetching data with axios HTTP client",
55
"main": "lib/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)