Skip to content

Commit 94db461

Browse files
committed
Lodash modules are deprecated.
1 parent f9a85fe commit 94db461

File tree

6 files changed

+9
-22
lines changed

6 files changed

+9
-22
lines changed

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jsonapi-vuex",
3-
"version": "5.11.0",
3+
"version": "5.11.1",
44
"description": "Access restructured JSONAPI data from a Vuex Store.",
55
"author": "Matthew Richardson <M.Richardson@ed.ac.uk>",
66
"scripts": {
@@ -18,10 +18,7 @@
1818
],
1919
"dependencies": {
2020
"jsonpath-plus": "^7.2.0",
21-
"lodash.get": "^4.4.2",
22-
"lodash.isequal": "^4.5.0",
23-
"lodash.merge": "^4.6.2",
24-
"lodash.set": "^4.3.2"
21+
"lodash": "^4.17.21"
2522
},
2623
"devDependencies": {
2724
"@babel/core": "^7.21.0",

src/actions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
* @param {object} conf - a jsonapi-vuex config object
1111
*/
1212

13-
import get from 'lodash.get'
14-
import merge from 'lodash.merge'
13+
import get from 'lodash/get'
14+
import merge from 'lodash/merge'
1515

1616
import { utils } from './jsonapi-vuex'
1717

src/getters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @param {object} conf - a jsonapi-vuex config object
88
*/
99

10-
import get from 'lodash.get'
10+
import get from 'lodash/get'
1111
import { JSONPath } from 'jsonpath-plus'
1212

1313
import { utils } from './jsonapi-vuex'

src/lib.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
* @param {object} conf - A jsonapi-vuex config object.
1111
*/
1212

13-
import get from 'lodash.get'
14-
import isEqual from 'lodash.isequal'
15-
import merge from 'lodash.merge'
13+
import get from 'lodash/get'
14+
import isEqual from 'lodash/isEqual'
15+
import merge from 'lodash/merge'
1616

1717
/**
1818
* Helper methods added to `_jv` by {@link module:jsonapi-vuex.utils.addJvHelpers}

src/mutations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @memberof module:jsonapi-vuex.jsonapiModule
66
*/
77

8-
import get from 'lodash.get'
8+
import get from 'lodash/get'
99
import { utils } from './jsonapi-vuex'
1010

1111
export default () => {

yarn.lock

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5831,11 +5831,6 @@ lodash.isarray@^3.0.0:
58315831
resolved "https://registry.yarnpkg.com/lodash.isarray/-/lodash.isarray-3.0.4.tgz#79e4eb88c36a8122af86f844aa9bcd851b5fbb55"
58325832
integrity sha512-JwObCrNJuT0Nnbuecmqr5DgtuBppuCvGD9lxjFpAzwnVtdGoDQ1zig+5W8k5/6Gcn0gZ3936HDAlGd28i7sOGQ==
58335833

5834-
lodash.isequal@^4.5.0:
5835-
version "4.5.0"
5836-
resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0"
5837-
integrity sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==
5838-
58395834
lodash.kebabcase@^4.1.1:
58405835
version "4.1.1"
58415836
resolved "https://registry.yarnpkg.com/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz#8489b1cb0d29ff88195cceca448ff6d6cc295c36"
@@ -5870,11 +5865,6 @@ lodash.pick@4.4.0:
58705865
resolved "https://registry.yarnpkg.com/lodash.pick/-/lodash.pick-4.4.0.tgz#52f05610fff9ded422611441ed1fc123a03001b3"
58715866
integrity sha512-hXt6Ul/5yWjfklSGvLQl8vM//l3FtyHZeuelpzK6mm99pNvN9yTDruNZPEJZD1oWrqo+izBmB7oUfWgcCX7s4Q==
58725867

5873-
lodash.set@^4.3.2:
5874-
version "4.3.2"
5875-
resolved "https://registry.yarnpkg.com/lodash.set/-/lodash.set-4.3.2.tgz#d8757b1da807dde24816b0d6a84bea1a76230b23"
5876-
integrity sha512-4hNPN5jlm/N/HLMCO43v8BXKq9Z7QdAGc/VGrRD61w8gN9g/6jF9A4L1pbUgBLCffi0w9VsXfTOij5x8iTyFvg==
5877-
58785868
lodash.truncate@^4.4.2:
58795869
version "4.4.2"
58805870
resolved "https://registry.yarnpkg.com/lodash.truncate/-/lodash.truncate-4.4.2.tgz#5a350da0b1113b837ecfffd5812cbe58d6eae193"

0 commit comments

Comments
 (0)