Skip to content

Commit 479b67f

Browse files
bjaspanBarry Jaspan
andauthored
Switch from util.isDeepStrictEqual to lodash.isEqual. (#1987)
upgradeStrictHere.ts uses util.isDeepStrictEqual and using that version in the web version of Cursorless will be a hassle. Use lodash.isEqual instead: ["Performs a deep comparison between two values to determine if they are equivalent."](https://lodash.com/docs#isEqual) Co-authored-by: Barry Jaspan <bjaspan@google.com>
1 parent d6443ff commit 479b67f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cursorless-engine/src/core/commandVersionUpgrades/upgradeV1ToV2/upgradeStrictHere.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { isDeepStrictEqual } from "util";
1+
import { isEqual } from "lodash";
22
import { PartialPrimitiveTargetDescriptorV2 } from "@cursorless/common";
33

44
const STRICT_HERE = {
@@ -16,4 +16,4 @@ const IMPLICIT_TARGET: PartialPrimitiveTargetDescriptorV2 = {
1616
export const upgradeStrictHere = (
1717
target: PartialPrimitiveTargetDescriptorV2,
1818
): PartialPrimitiveTargetDescriptorV2 =>
19-
isDeepStrictEqual(target, STRICT_HERE) ? IMPLICIT_TARGET : target;
19+
isEqual(target, STRICT_HERE) ? IMPLICIT_TARGET : target;

0 commit comments

Comments
 (0)