From d823fb018683f3e279a84c7b58d06c3c880e8f33 Mon Sep 17 00:00:00 2001 From: Aaron Jensen Date: Thu, 14 Jan 2016 08:02:59 -0800 Subject: [PATCH] Upgrade to lodash4 --- lib/map.js | 6 +++--- lib/omit.js | 2 +- lib/reject.js | 2 +- lib/update.js | 2 +- lib/util/splitPath.js | 2 +- package.json | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/map.js b/lib/map.js index 15110ae..d3afe86 100644 --- a/lib/map.js +++ b/lib/map.js @@ -1,8 +1,8 @@ import update from './update'; import wrap from './wrap'; -import forEach from 'lodash/collection/forEach'; -import mapArray from 'lodash/collection/map'; -import mapObject from 'lodash/object/mapValues'; +import forEach from 'lodash/forEach'; +import mapArray from 'lodash/map'; +import mapObject from 'lodash/mapValues'; function shallowEqual(object, otherObject) { let equal = true; diff --git a/lib/omit.js b/lib/omit.js index b5a9295..16ec9ca 100644 --- a/lib/omit.js +++ b/lib/omit.js @@ -1,4 +1,4 @@ -import _omit from 'lodash/object/omit'; +import _omit from 'lodash/omit'; import wrap from './wrap'; function omit(predicate, collection) { diff --git a/lib/reject.js b/lib/reject.js index 50bbb8d..7e26734 100644 --- a/lib/reject.js +++ b/lib/reject.js @@ -1,4 +1,4 @@ -import _reject from 'lodash/collection/reject'; +import _reject from 'lodash/reject'; import wrap from './wrap'; function reject(predicate, collection) { diff --git a/lib/update.js b/lib/update.js index b1edacf..37ecdbc 100644 --- a/lib/update.js +++ b/lib/update.js @@ -1,5 +1,5 @@ import wrap from './wrap'; -import isPlainObject from 'lodash/lang/isPlainObject'; +import isPlainObject from 'lodash/isPlainObject'; function isEmpty(object) { return !Object.keys(object).length; diff --git a/lib/util/splitPath.js b/lib/util/splitPath.js index e3ebf3d..8a55be0 100644 --- a/lib/util/splitPath.js +++ b/lib/util/splitPath.js @@ -1,4 +1,4 @@ -import reject from 'lodash/collection/reject'; +import reject from 'lodash/reject'; export default function splitPath(path) { return Array.isArray(path) ? diff --git a/package.json b/package.json index ecd588f..8c199e6 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "url": "https://github.com/aaronjensen/updeep/issues" }, "dependencies": { - "lodash": "^3.0.0" + "lodash": "^4.2.0" }, "devDependencies": { "babel-core": "^6.4.0",