From 90fa98b7773435803aee097be31f204ea162d9e4 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Thu, 11 Dec 2025 12:22:57 +0200 Subject: [PATCH] replace lodash.isequal with fast-deep-equal --- package.json | 3 +-- src/screens/ModerationInteractionSettings/index.tsx | 2 +- src/view/com/composer/threadgate/ThreadgateBtn.tsx | 2 +- yarn.lock | 12 ------------ 4 files changed, 3 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index e26f1645b2..f9f465be46 100644 --- a/package.json +++ b/package.json @@ -171,7 +171,7 @@ "lande": "^1.0.10", "lodash.chunk": "^4.2.0", "lodash.debounce": "^4.0.8", - "lodash.isequal": "^4.5.0", + "fast-deep-equal": "^3.1.3", "lodash.shuffle": "^4.2.0", "lodash.throttle": "^4.1.1", "multiformats": "9.9.0", @@ -239,7 +239,6 @@ "@types/jest": "29.5.14", "@types/lodash.chunk": "^4.2.7", "@types/lodash.debounce": "^4.0.7", - "@types/lodash.isequal": "^4.5.6", "@types/lodash.shuffle": "^4.2.7", "@types/psl": "^1.1.1", "@types/react": "^19.1.12", diff --git a/src/screens/ModerationInteractionSettings/index.tsx b/src/screens/ModerationInteractionSettings/index.tsx index 0cdce2efb7..376639649b 100644 --- a/src/screens/ModerationInteractionSettings/index.tsx +++ b/src/screens/ModerationInteractionSettings/index.tsx @@ -2,7 +2,7 @@ import React from 'react' import {View} from 'react-native' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' -import deepEqual from 'lodash.isequal' +import deepEqual from 'fast-deep-equal' import {logger} from '#/logger' import {usePostInteractionSettingsMutation} from '#/state/queries/post-interaction-settings' diff --git a/src/view/com/composer/threadgate/ThreadgateBtn.tsx b/src/view/com/composer/threadgate/ThreadgateBtn.tsx index 572e356075..c993b5e7ee 100644 --- a/src/view/com/composer/threadgate/ThreadgateBtn.tsx +++ b/src/view/com/composer/threadgate/ThreadgateBtn.tsx @@ -4,7 +4,7 @@ import {type AnimatedStyle} from 'react-native-reanimated' import {type AppBskyFeedPostgate} from '@atproto/api' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' -import deepEqual from 'lodash.isequal' +import deepEqual from 'fast-deep-equal' import {isNetworkError} from '#/lib/strings/errors' import {logger} from '#/logger' diff --git a/yarn.lock b/yarn.lock index 8082783b7f..1c06f2df2c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7785,13 +7785,6 @@ dependencies: "@types/lodash" "*" -"@types/lodash.isequal@^4.5.6": - version "4.5.6" - resolved "https://registry.yarnpkg.com/@types/lodash.isequal/-/lodash.isequal-4.5.6.tgz#ff42a1b8e20caa59a97e446a77dc57db923bc02b" - integrity sha512-Ww4UGSe3DmtvLLJm2F16hDwEQSv7U0Rr8SujLUA2wHI2D2dm8kPu6Et+/y303LfjTIwSBKXB/YTUcAKpem/XEg== - dependencies: - "@types/lodash" "*" - "@types/lodash.shuffle@^4.2.7": version "4.2.7" resolved "https://registry.yarnpkg.com/@types/lodash.shuffle/-/lodash.shuffle-4.2.7.tgz#b714d829af948a266b0df1477d629c70de2f4c72" @@ -14558,11 +14551,6 @@ lodash.isarguments@^3.1.0: resolved "https://registry.yarnpkg.com/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz#2f573d85c6a24289ff00663b491c1d338ff3458a" integrity sha512-chi4NHZlZqZD18a0imDHnZPrDeBbTtVN7GXMwuGdRH9qotxAjYs3aVLKc7zNOG9eddR5Ksd8rvFEBc9SsggPpg== -lodash.isequal@^4.5.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0" - integrity sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ== - lodash.memoize@^4.1.2: version "4.1.2" resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe"