Skip to content

Commit

Permalink
Don't use React internal modules
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Apr 9, 2015
1 parent 02c5527 commit 47a34f7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion modules/ComponentDragSource.js
@@ -1,5 +1,5 @@
import { DragSource } from 'dnd-core';
import invariant from 'react/lib/invariant';
import invariant from 'invariant';
import isString from 'lodash/lang/isString';
import isObject from 'lodash/lang/isObject';

Expand Down
2 changes: 1 addition & 1 deletion modules/ComponentDropTarget.js
@@ -1,5 +1,5 @@
import { DropTarget } from 'dnd-core';
import invariant from 'react/lib/invariant';
import invariant from 'invariant';
import isString from 'lodash/lang/isString';
import isArray from 'lodash/lang/isArray';
import isObject from 'lodash/lang/isObject';
Expand Down
4 changes: 2 additions & 2 deletions modules/backends/HTML5.js
Expand Up @@ -7,8 +7,8 @@ import { getElementRect, getMouseEventOffsets, getDragPreviewOffset } from '../u
import shallowEqual from '../utils/shallowEqual';
import defaults from 'lodash/object/defaults';
import memoize from 'lodash/function/memoize';
import invariant from 'react/lib/invariant';
import warning from 'react/lib/warning';
import invariant from 'invariant';
import warning from 'warning';

class FileDragSource extends DragSource {
constructor() {
Expand Down
2 changes: 1 addition & 1 deletion modules/configureDragDrop.js
Expand Up @@ -6,7 +6,7 @@ import shallowEqual from './utils/shallowEqual';
import shallowEqualScalar from './utils/shallowEqualScalar';
import assign from 'lodash/object/assign';
import memoize from 'lodash/function/memoize';
import invariant from 'react/lib/invariant';
import invariant from 'invariant';

const DEFAULT_KEY = '__default__';

Expand Down
6 changes: 4 additions & 2 deletions package.json
Expand Up @@ -33,11 +33,13 @@
"dependencies": {
"dnd-core": "~0.7.0",
"flux": "^2.0.1",
"invariant": "^2.0.0",
"lodash": "^3.1.0",
"rx-lite": "^2.4.10"
"rx-lite": "^2.4.10",
"warning": "^1.0.0"
},
"peerDependencies": {
"react": ">=0.12.0 <0.14.0"
"react": ">=0.13.0 <0.14.0"
},
"devDependencies": {
"animation-frame": "^0.2.4",
Expand Down

0 comments on commit 47a34f7

Please sign in to comment.