From e204707ee0ad1a28b44122318cd51c165bc530f6 Mon Sep 17 00:00:00 2001 From: Tim Perry Date: Wed, 16 Aug 2017 18:16:21 +0200 Subject: [PATCH] Upgrade to lodash v4 --- CHANGELOG.md | 1 + build/actions/os.js | 2 +- lib/actions/os.coffee | 2 +- package.json | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ac5c79f..0e5df8be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). ### Changed +- Upgrade to Lodash v4, drastically reducing install size (due to dedupes) - Updated npm package description - Added support for looking up shared apps via [owner]/[appname] strings diff --git a/build/actions/os.js b/build/actions/os.js index 5e7732c2..b16423f8 100644 --- a/build/actions/os.js +++ b/build/actions/os.js @@ -145,7 +145,7 @@ buildConfig = function(image, deviceType, advanced) { return helpers.getManifest(image, deviceType).get('options').then(function(questions) { var advancedGroup, override; if (!advanced) { - advancedGroup = _.findWhere(questions, { + advancedGroup = _.find(questions, { name: 'advanced', isGroup: true }); diff --git a/lib/actions/os.coffee b/lib/actions/os.coffee index 5f4a5683..d3ec1148 100644 --- a/lib/actions/os.coffee +++ b/lib/actions/os.coffee @@ -152,7 +152,7 @@ buildConfig = (image, deviceType, advanced = false) -> .get('options') .then (questions) -> if not advanced - advancedGroup = _.findWhere questions, + advancedGroup = _.find questions, name: 'advanced' isGroup: true diff --git a/package.json b/package.json index e04787e5..d9943769 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "is-root": "^1.0.0", "js-yaml": "^3.7.0", "klaw": "^1.3.1", - "lodash": "^3.10.0", + "lodash": "^4.17.4", "mixpanel": "^0.4.0", "moment": "^2.12.0", "mz": "^2.6.0",