From e88f9363298063fb0f2bc325c197627ba3b0f07c Mon Sep 17 00:00:00 2001 From: Kai Moseley Date: Wed, 22 Feb 2017 10:03:36 +0000 Subject: [PATCH] Update lodash dependency --- package.json | 6 +++++- src/reducers.js | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 09b4fdc..f29c9c2 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,11 @@ "eslint-plugin-react": "^6.0.0" }, "dependencies": { - "lodash": "^4.17.2", + "lodash.find": "^4.6.0", + "lodash.flowright": "^3.5.0", + "lodash.isfunction": "^3.0.8", + "lodash.isobject": "^3.0.2", + "lodash.omit": "^4.5.0", "redux": "^3.6.0" } } diff --git a/src/reducers.js b/src/reducers.js index 72e9cc0..4cb5ef9 100644 --- a/src/reducers.js +++ b/src/reducers.js @@ -37,7 +37,7 @@ import { PROP_TYPES, } from './structure'; import reduce from 'lodash/reduce'; -import compose from 'lodash/fp/compose'; +import flowright from 'lodash/fp/flowright'; import { createShapeReducer } from './reducers/objectReducer'; import { createArrayReducer } from './reducers/arrayReducer'; import { createPrimitiveReducer } from './reducers/primitiveReducer'; @@ -120,4 +120,4 @@ export function calculateDefaults(typeDescription: StructureType | PrimitiveType } -export const createReducer = compose(callReducer, determineReducerType); +export const createReducer = flowright(callReducer, determineReducerType);