diff --git a/package-lock.json b/package-lock.json index bfe5bd5f43..e1c2c7275b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6706,10 +6706,10 @@ "integrity": "sha512-OvlIYQK9tNneDlS0VN54LLd5uiPCBOp7gS5Z0f1mjoJYBrtStzgmJBxONW3U6OZqdtNzZPmn9BS/7WI7BFFcFQ==", "dev": true }, - "node_modules/@types/lodash.isequal": { - "version": "4.5.8", - "resolved": "https://registry.npmjs.org/@types/lodash.isequal/-/lodash.isequal-4.5.8.tgz", - "integrity": "sha512-uput6pg4E/tj2LGxCZo9+y27JNyB2OZuuI/T5F+ylVDYuqICLG2/ktjxx0v6GvVntAf8TvEzeQLcV0ffRirXuA==", + "node_modules/@types/lodash-es": { + "version": "4.17.12", + "resolved": "https://registry.npmjs.org/@types/lodash-es/-/lodash-es-4.17.12.tgz", + "integrity": "sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==", "dev": true, "dependencies": { "@types/lodash": "*" @@ -16648,11 +16648,6 @@ "integrity": "sha512-uHaJFihxmJcEX3kT4I23ABqKKalJ/zDrDg0lsFtc1h+3uw49SIJ5beyhx5ExVRti3AvKoOJngIj7xz3oylPdWQ==", "dev": true }, - "node_modules/lodash.isequal": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", - "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==" - }, "node_modules/lodash.isplainobject": { "version": "4.0.6", "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", @@ -26503,7 +26498,7 @@ "version": "0.7.0", "license": "Apache-2.0", "dependencies": { - "lodash.isequal": "^4.5.0" + "lodash": "^4.17.21" }, "devDependencies": { "@babel/core": "^7.24.6", @@ -26514,7 +26509,7 @@ "@realm/app-importer": "*", "@testing-library/react-native": "^12.5.1", "@types/jest": "^29.5.12", - "@types/lodash.isequal": "^4.5.8", + "@types/lodash-es": "^4.17.6", "@types/react": "^18.2.6", "babel-jest": "^29.7.0", "babel-plugin-module-resolver": "^5.0.0", diff --git a/packages/realm-react/package.json b/packages/realm-react/package.json index 8107050aeb..18c276c0a1 100644 --- a/packages/realm-react/package.json +++ b/packages/realm-react/package.json @@ -46,6 +46,9 @@ ] } }, + "dependencies": { + "lodash": "^4.17.21" + }, "devDependencies": { "@babel/core": "^7.24.6", "@babel/preset-env": "^7.24.6", @@ -55,8 +58,8 @@ "@realm/app-importer": "*", "@testing-library/react-native": "^12.5.1", "@types/jest": "^29.5.12", + "@types/lodash-es": "^4.17.6", "@types/react": "^18.2.6", - "@types/lodash.isequal": "^4.5.8", "babel-jest": "^29.7.0", "babel-plugin-module-resolver": "^5.0.0", "fb-watchman": "^2.0.1", @@ -103,8 +106,5 @@ "bugs": { "url": "https://github.com/realm/realm-js/issues" }, - "license": "Apache-2.0", - "dependencies": { - "lodash.isequal": "^4.5.0" - } + "license": "Apache-2.0" } diff --git a/packages/realm-react/src/AppProvider.tsx b/packages/realm-react/src/AppProvider.tsx index 5cc9fd63eb..b0541b0420 100644 --- a/packages/realm-react/src/AppProvider.tsx +++ b/packages/realm-react/src/AppProvider.tsx @@ -18,7 +18,7 @@ import React, { createContext, useContext, useLayoutEffect, useRef, useState } from "react"; import Realm from "realm"; -import { isEqual } from "lodash.isequal"; +import { isEqual } from "lodash"; import { AuthResult, OperationState } from "./types"; diff --git a/packages/realm-react/src/RealmProvider.tsx b/packages/realm-react/src/RealmProvider.tsx index cc89580f0e..43cb788424 100644 --- a/packages/realm-react/src/RealmProvider.tsx +++ b/packages/realm-react/src/RealmProvider.tsx @@ -18,7 +18,7 @@ import React, { useContext, useEffect, useRef, useState } from "react"; import Realm from "realm"; -import { isEqual } from "lodash.isequal"; +import { isEqual } from "lodash"; import { UserContext } from "./UserProvider";