@workpop/dux
Advanced tools
Comparing version 2.0.3 to 2.1.0
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="2.1.0"></a> | ||
# [2.1.0](https://github.com/Workpop/dux/compare/v2.0.3...v2.1.0) (2017-06-15) | ||
### Features | ||
* **FSA:** make reducers fsa compliant ([1d77e16](https://github.com/Workpop/dux/commit/1d77e16)) | ||
<a name="2.0.3"></a> | ||
@@ -7,0 +17,0 @@ ## [2.0.3](https://github.com/Workpop/dux/compare/v2.0.2...v2.0.3) (2017-04-04) |
@@ -17,2 +17,4 @@ 'use strict'; | ||
var _utils = require('./utils'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -50,3 +52,3 @@ | ||
case TYPE: | ||
return action.data; | ||
return (0, _utils.getDataFromAction)(action); | ||
default: | ||
@@ -71,3 +73,3 @@ return reducer(state, action); | ||
case TYPE: | ||
return _extends({}, (0, _merge3.default)(state, action.data)); | ||
return _extends({}, (0, _merge3.default)(state, (0, _utils.getDataFromAction)(action))); | ||
default: | ||
@@ -74,0 +76,0 @@ return reducer(state, action); |
@@ -34,2 +34,4 @@ 'use strict'; | ||
var _utils = require('./utils'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -162,2 +164,3 @@ | ||
var data = (0, _utils.getDataFromAction)(action); | ||
switch (action.type) { | ||
@@ -168,5 +171,5 @@ case TYPE: | ||
if (index < 0) { | ||
return [].concat(_toConsumableArray(state), [action.data]); | ||
return [].concat(_toConsumableArray(state), [data]); | ||
} | ||
return [].concat(_toConsumableArray(state.slice(0, index)), [action.data], _toConsumableArray(state.slice(index))); | ||
return [].concat(_toConsumableArray(state.slice(0, index)), [data], _toConsumableArray(state.slice(index))); | ||
} | ||
@@ -192,2 +195,3 @@ default: | ||
var data = (0, _utils.getDataFromAction)(action); | ||
switch (action.type) { | ||
@@ -198,5 +202,5 @@ case TYPE: | ||
if (index < 0) { | ||
return [].concat(_toConsumableArray(state), _toConsumableArray(action.data)); | ||
return [].concat(_toConsumableArray(state), _toConsumableArray(data)); | ||
} | ||
return [].concat(_toConsumableArray(state.slice(0, index)), _toConsumableArray(action.data), _toConsumableArray(state.slice(index))); | ||
return [].concat(_toConsumableArray(state.slice(0, index)), _toConsumableArray(data), _toConsumableArray(state.slice(index))); | ||
} | ||
@@ -222,2 +226,3 @@ default: | ||
var data = (0, _utils.getDataFromAction)(action); | ||
switch (action.type) { | ||
@@ -230,3 +235,3 @@ case TYPE: | ||
} | ||
var merged = (0, _merge3.default)(state[index], action.data); | ||
var merged = (0, _merge3.default)(state[index], data); | ||
return [].concat(_toConsumableArray(state.slice(0, index)), [merged], _toConsumableArray(state.slice(index + 1))); | ||
@@ -254,2 +259,3 @@ } | ||
var data = (0, _utils.getDataFromAction)(action); | ||
switch (action.type) { | ||
@@ -262,3 +268,3 @@ case TYPE: | ||
} | ||
return [].concat(_toConsumableArray(state.slice(0, index)), [action.data], _toConsumableArray(state.slice(index + 1))); | ||
return [].concat(_toConsumableArray(state.slice(0, index)), [data], _toConsumableArray(state.slice(index + 1))); | ||
} | ||
@@ -265,0 +271,0 @@ default: |
{ | ||
"name": "@workpop/dux", | ||
"version": "2.0.3", | ||
"version": "2.1.0", | ||
"description": "HOC Redux Functions", | ||
@@ -46,3 +46,3 @@ "main": "dist/index.js", | ||
"lodash": "^4.x.x", | ||
"reselect": "^x.x.x" | ||
"reselect": "^3.0.0" | ||
}, | ||
@@ -49,0 +49,0 @@ "pre-commit": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
194620
23
691