Skip to content

Commit c66051d

Browse files
author
Shane
committed
refactor(shallowCompare) changed to use reacts internal func
1 parent cc16e3d commit c66051d

File tree

6 files changed

+10
-14
lines changed

6 files changed

+10
-14
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 2.0.1
2+
3+
#### Bug Fixes
4+
5+
* **refactor:** changed to use reacts internal shallowCompare
6+
17
## 2.0.0 (2016-10-07)
28

39

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,6 @@ You can also use the standalone build by including `dist/react-geosuggest.js` in
3535
npm install react-geosuggest --save
3636
```
3737

38-
### Peer Dependencies
39-
40-
To allow for the greatest flexiblity in react version support, this module specifies `react-addons-shallow-compare` as a peer dependency. Therefore in order to use it, you must also install a version of `react-addons-shallow-compare` that matches your `react` version, ie:
41-
42-
```
43-
npm install [email protected]
44-
```
45-
4638
## Usage
4739

4840
The Geosuggest works out of the box by just including it. However, you can customize the behaviour with the properties noted below.

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
"url": "https://github.com/ubilabs/react-geosuggest/issues"
1515
},
1616
"peerDependencies": {
17-
"react": "^0.14.0 || ^15.0.0",
18-
"react-addons-shallow-compare": "^0.14.0 || ^15.0.0"
17+
"react": "^0.14.0 || ^15.0.0"
1918
},
2019
"dependencies": {
2120
"classnames": "^2.2.3",
@@ -43,7 +42,6 @@
4342
"nyc": "^6.4.4",
4443
"react": "^15.1.0",
4544
"react-addons-test-utils": "^15.1.0",
46-
"react-addons-shallow-compare": "^15.1.0",
4745
"react-dom": "^15.1.0",
4846
"sinon": "^1.17.3",
4947
"uglifyjs": "^2.4.10"

src/input.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'; // eslint-disable-line no-unused-vars
2-
import shallowCompare from 'react-addons-shallow-compare';
2+
import shallowCompare from 'react/lib/shallowCompare';
33
import classnames from 'classnames';
44

55
import filterInputAttributes from './filter-input-attributes';

src/suggest-item.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import shallowCompare from 'react-addons-shallow-compare';
2+
import shallowCompare from 'react/lib/shallowCompare';
33
import classnames from 'classnames';
44

55
/**

src/suggest-list.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'; // eslint-disable-line no-unused-vars
2-
import shallowCompare from 'react-addons-shallow-compare';
2+
import shallowCompare from 'react/lib/shallowCompare';
33
import classnames from 'classnames';
44
import SuggestItem from './suggest-item';
55

0 commit comments

Comments
 (0)