From a67b6cbc08a947787e64b83a95bca2f31bce5091 Mon Sep 17 00:00:00 2001 From: zbeyens Date: Fri, 29 Dec 2023 13:11:50 +0100 Subject: [PATCH] fix lodash --- package.json | 2 +- packages/zustand-x/package.json | 1 + packages/zustand-x/src/utils/mapValuesKey.ts | 2 +- yarn.lock | 21 ++++++++++++++++++-- 4 files changed, 22 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 3fa2d02..2cc2e58 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "@testing-library/user-event": "^14.5.1", "@types/glob": "8.1.0", "@types/jest": "^29.5.11", - "@types/lodash": "^4.14.202", + "@types/lodash.mapvalues": "^4.6.9", "@types/node": "^20.10.4", "@types/react": "18.2.42", "@types/react-dom": "18.2.17", diff --git a/packages/zustand-x/package.json b/packages/zustand-x/package.json index 0260861..58b8729 100644 --- a/packages/zustand-x/package.json +++ b/packages/zustand-x/package.json @@ -40,6 +40,7 @@ }, "dependencies": { "immer": "^10.0.3", + "lodash.mapvalues": "^4.6.0", "react-tracked": "^1.7.11" }, "peerDependencies": { diff --git a/packages/zustand-x/src/utils/mapValuesKey.ts b/packages/zustand-x/src/utils/mapValuesKey.ts index 0623455..7953431 100644 --- a/packages/zustand-x/src/utils/mapValuesKey.ts +++ b/packages/zustand-x/src/utils/mapValuesKey.ts @@ -1,4 +1,4 @@ -import { mapValues } from 'lodash'; +import mapValues from 'lodash.mapvalues'; export const mapValuesKey = < VK extends string, diff --git a/yarn.lock b/yarn.lock index dfb74f8..d8a4253 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1993,7 +1993,16 @@ __metadata: languageName: node linkType: hard -"@types/lodash@npm:^4.14.202": +"@types/lodash.mapvalues@npm:^4.6.9": + version: 4.6.9 + resolution: "@types/lodash.mapvalues@npm:4.6.9" + dependencies: + "@types/lodash": "npm:*" + checksum: 09216965c2c64854c8c765f38f436333e931b98638a0b9d996bda7b6d538593a4cfe53cad7415d50593be48d76798763b97dc2d7925ab200dce1fa5b630ed3b4 + languageName: node + linkType: hard + +"@types/lodash@npm:*": version: 4.14.202 resolution: "@types/lodash@npm:4.14.202" checksum: 6064d43c8f454170841bd67c8266cc9069d9e570a72ca63f06bceb484cb4a3ee60c9c1f305c1b9e3a87826049fd41124b8ef265c4dd08b00f6766609c7fe9973 @@ -7123,6 +7132,13 @@ __metadata: languageName: node linkType: hard +"lodash.mapvalues@npm:^4.6.0": + version: 4.6.0 + resolution: "lodash.mapvalues@npm:4.6.0" + checksum: a976bfc3923d4d8d2034e049ec4700e3aaf141a6143c973d06be3b2c87697923cd0158ee770484ad1af52dfed93ae90d2b76268413db95a42a2f46d7e1754828 + languageName: node + linkType: hard + "lodash.memoize@npm:4.x": version: 4.1.2 resolution: "lodash.memoize@npm:4.1.2" @@ -9490,7 +9506,7 @@ __metadata: "@testing-library/user-event": "npm:^14.5.1" "@types/glob": "npm:8.1.0" "@types/jest": "npm:^29.5.11" - "@types/lodash": "npm:^4.14.202" + "@types/lodash.mapvalues": "npm:^4.6.9" "@types/node": "npm:^20.10.4" "@types/react": "npm:18.2.42" "@types/react-dom": "npm:18.2.17" @@ -11684,6 +11700,7 @@ __metadata: resolution: "zustand-x@workspace:packages/zustand-x" dependencies: immer: "npm:^10.0.3" + lodash.mapvalues: "npm:^4.6.0" react-tracked: "npm:^1.7.11" peerDependencies: zustand: ">=4.3.9"