Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
chore(lodash): remove dependencies
Browse files Browse the repository at this point in the history
- lodash from packages
- babel-plugin-lodash from root
- swap out isEqual from connectInfiniteHits

IFW-778

closes #2468
  • Loading branch information
Haroenv committed Jun 27, 2019
1 parent 094a303 commit 52490ea
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 39 deletions.
1 change: 0 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ module.exports = api => {
],
plugins: clean([
'@babel/plugin-proposal-class-properties',
'babel-plugin-lodash',
isRollup && 'babel-plugin-transform-react-remove-prop-types',
]),
overrides: [
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
"babel-jest": "24.8.0",
"babel-loader": "8.0.6",
"babel-plugin-dynamic-import-node": "2.3.0",
"babel-plugin-lodash": "3.3.4",
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
"bundlesize": "0.17.2",
"conventional-changelog-cli": "2.0.21",
Expand Down
1 change: 0 additions & 1 deletion packages/react-instantsearch-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"@babel/runtime": "^7.1.2",
"algoliasearch-helper": "^2.26.0",
"fast-deep-equal": "^2.0.1",
"lodash": "^4.17.4",
"prop-types": "^15.5.10"
},
"peerDependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isEqual } from 'lodash';
import isEqual from 'fast-deep-equal';

import createConnector from '../core/createConnector';
import {
Expand Down
1 change: 0 additions & 1 deletion packages/react-instantsearch-dom-maps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
},
"dependencies": {
"@babel/runtime": "^7.1.2",
"lodash": "^4.17.4",
"prop-types": "^15.5.10",
"react-lifecycles-compat": "^3.0.4",
"scriptjs": "^2.5.8"
Expand Down
1 change: 0 additions & 1 deletion packages/react-instantsearch-dom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"@babel/runtime": "^7.1.2",
"algoliasearch-helper": "^2.26.0",
"classnames": "^2.2.5",
"lodash": "^4.17.4",
"prop-types": "^15.5.10",
"react-instantsearch-core": "^5.7.0"
},
Expand Down
33 changes: 0 additions & 33 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -290,14 +290,6 @@
dependencies:
"@babel/types" "^7.0.0"

"@babel/helper-module-imports@^7.0.0-beta.49":
version "7.0.0-beta.51"
resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.0.0-beta.51.tgz#ce00428045fbb7d5ebc0ea7bf835789f15366ab2"
integrity sha1-zgBCgEX7t9XrwOp7+DV4nxU2arI=
dependencies:
"@babel/types" "7.0.0-beta.51"
lodash "^4.17.5"

"@babel/helper-module-transforms@^7.1.0":
version "7.2.2"
resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.2.2.tgz#ab2f8e8d231409f8370c883d20c335190284b963"
Expand Down Expand Up @@ -1852,15 +1844,6 @@
globals "^11.1.0"
lodash "^4.17.11"

"@babel/types@7.0.0-beta.51", "@babel/types@^7.0.0-beta.49":
version "7.0.0-beta.51"
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.0.0-beta.51.tgz#d802b7b543b5836c778aa691797abf00f3d97ea9"
integrity sha1-2AK3tUO1g2x3iqaReXq/APPZfqk=
dependencies:
esutils "^2.0.2"
lodash "^4.17.5"
to-fast-properties "^2.0.0"

"@babel/types@^7.0.0":
version "7.0.0"
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.0.0.tgz#6e191793d3c854d19c6749989e3bc55f0e962118"
Expand Down Expand Up @@ -4817,17 +4800,6 @@ babel-plugin-jest-hoist@^24.6.0:
dependencies:
"@types/babel__traverse" "^7.0.6"

babel-plugin-lodash@3.3.4:
version "3.3.4"
resolved "https://registry.yarnpkg.com/babel-plugin-lodash/-/babel-plugin-lodash-3.3.4.tgz#4f6844358a1340baed182adbeffa8df9967bc196"
integrity sha512-yDZLjK7TCkWl1gpBeBGmuaDIFhZKmkoL+Cu2MUUjv5VxUZx/z7tBGBCBcQs5RI1Bkz5LLmNdjx7paOyQtMovyg==
dependencies:
"@babel/helper-module-imports" "^7.0.0-beta.49"
"@babel/types" "^7.0.0-beta.49"
glob "^7.1.1"
lodash "^4.17.10"
require-package-name "^2.0.1"

babel-plugin-macros@2.5.0, babel-plugin-macros@^2.0.0, babel-plugin-macros@^2.4.5:
version "2.5.0"
resolved "https://registry.yarnpkg.com/babel-plugin-macros/-/babel-plugin-macros-2.5.0.tgz#01f4d3b50ed567a67b80a30b9da066e94f4097b6"
Expand Down Expand Up @@ -15396,11 +15368,6 @@ require-main-filename@^2.0.0:
resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b"
integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==

require-package-name@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/require-package-name/-/require-package-name-2.0.1.tgz#c11e97276b65b8e2923f75dabf5fb2ef0c3841b9"
integrity sha1-wR6XJ2tluOKSP3Xav1+y7ww4Qbk=

requires-port@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff"
Expand Down

0 comments on commit 52490ea

Please sign in to comment.