From 6917b2303d15667ea97ee24518680046aece4aee Mon Sep 17 00:00:00 2001 From: Jonathan Date: Mon, 21 Oct 2019 13:41:54 +0200 Subject: [PATCH] chore: remove precise locking of lodash dependency Use the caret (^) operator to allow any version of lodash with a version over the specified version (4.17.13). This means that when this package is installed alongside other packages depending on a higher version of lodash, the shared lodash dependencies can be deduped properly across all dependents. The caret also ensures that this package will not automatically upgrade to 5.x versions of lodash (the next major version). --- package-lock.json | 4 +++- package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index a3ac78a..2dd118a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -260,6 +260,7 @@ "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz", "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", "dev": true, + "optional": true, "requires": { "kind-of": "^3.0.2", "longest": "^1.0.1", @@ -2626,7 +2627,8 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", - "dev": true + "dev": true, + "optional": true }, "loose-envify": { "version": "1.3.1", diff --git a/package.json b/package.json index 6d60223..4c9e615 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "dependencies": { "babel-runtime": "^6.26.0", "invariant": "^2.2.2", - "lodash": "4.17.13" + "lodash": "^4.17.13" }, "peerDependencies": { "redux": ">3.0.0"