Skip to content

Commit

Permalink
RJS-2717: Replaced lodash with lodash.isequal (#6633)
Browse files Browse the repository at this point in the history
* Replaced lodash with lodash.isequal
* fixed lock file by running npm install
  • Loading branch information
Ydixit007 authored Jun 17, 2024
1 parent 57b912a commit f192bd1
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
17 changes: 11 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions packages/realm-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@
]
}
},
"dependencies": {
"lodash": "^4.17.21"
},
"devDependencies": {
"@babel/core": "^7.24.6",
"@babel/preset-env": "^7.24.6",
Expand All @@ -58,8 +55,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",
Expand Down Expand Up @@ -106,5 +103,8 @@
"bugs": {
"url": "https://github.com/realm/realm-js/issues"
},
"license": "Apache-2.0"
"license": "Apache-2.0",
"dependencies": {
"lodash.isequal": "^4.5.0"
}
}
2 changes: 1 addition & 1 deletion packages/realm-react/src/AppProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import React, { createContext, useContext, useLayoutEffect, useRef, useState } from "react";
import Realm from "realm";
import { isEqual } from "lodash";
import { isEqual } from "lodash.isequal";

import { AuthResult, OperationState } from "./types";

Expand Down
2 changes: 1 addition & 1 deletion packages/realm-react/src/RealmProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import React, { useContext, useEffect, useRef, useState } from "react";
import Realm from "realm";
import { isEqual } from "lodash";
import { isEqual } from "lodash.isequal";

import { UserContext } from "./UserProvider";

Expand Down

0 comments on commit f192bd1

Please sign in to comment.