Skip to content
This repository was archived by the owner on Jun 18, 2018. It is now read-only.

Replace lodash with lodash.<fn> deps #42

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@
"webpack": "^1.12.2"
},
"dependencies": {
"lodash": "^4.2.0"
"lodash.defaults": "^4.2.0",
"lodash.memoize": "^4.1.2",
"lodash.union": "^4.6.0",
"lodash.without": "^4.4.0"
},
"peerDependencies": {
"react-dnd": "^2.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/BrowserDetector.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import memoize from 'lodash/memoize';
import memoize from 'lodash.memoize';

export const isFirefox = memoize(() =>
/firefox/i.test(navigator.userAgent)
Expand Down
4 changes: 2 additions & 2 deletions src/EnterLeaveCounter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import union from 'lodash/union';
import without from 'lodash/without';
import union from 'lodash.union';
import without from 'lodash.without';

export default class EnterLeaveCounter {
constructor() {
Expand Down
2 changes: 1 addition & 1 deletion src/HTML5Backend.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import defaults from 'lodash/defaults';
import defaults from 'lodash.defaults';
import shallowEqual from './shallowEqual';
import EnterLeaveCounter from './EnterLeaveCounter';
import { isFirefox } from './BrowserDetector';
Expand Down