Skip to content

Commit

Permalink
refactor(shallowCompare) changed to use reacts internal func
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane committed Oct 26, 2016
1 parent cc16e3d commit c66051d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 14 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,9 @@
## 2.0.1

#### Bug Fixes

* **refactor:** changed to use reacts internal shallowCompare

## 2.0.0 (2016-10-07)


Expand Down
8 changes: 0 additions & 8 deletions README.md
Expand Up @@ -35,14 +35,6 @@ You can also use the standalone build by including `dist/react-geosuggest.js` in
npm install react-geosuggest --save
```

### Peer Dependencies

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:

```
npm install react-addons-shallow-compare@0.14.6
```

## Usage

The Geosuggest works out of the box by just including it. However, you can customize the behaviour with the properties noted below.
Expand Down
4 changes: 1 addition & 3 deletions package.json
Expand Up @@ -14,8 +14,7 @@
"url": "https://github.com/ubilabs/react-geosuggest/issues"
},
"peerDependencies": {
"react": "^0.14.0 || ^15.0.0",
"react-addons-shallow-compare": "^0.14.0 || ^15.0.0"
"react": "^0.14.0 || ^15.0.0"
},
"dependencies": {
"classnames": "^2.2.3",
Expand Down Expand Up @@ -43,7 +42,6 @@
"nyc": "^6.4.4",
"react": "^15.1.0",
"react-addons-test-utils": "^15.1.0",
"react-addons-shallow-compare": "^15.1.0",
"react-dom": "^15.1.0",
"sinon": "^1.17.3",
"uglifyjs": "^2.4.10"
Expand Down
2 changes: 1 addition & 1 deletion src/input.jsx
@@ -1,5 +1,5 @@
import React from 'react'; // eslint-disable-line no-unused-vars
import shallowCompare from 'react-addons-shallow-compare';
import shallowCompare from 'react/lib/shallowCompare';
import classnames from 'classnames';

import filterInputAttributes from './filter-input-attributes';
Expand Down
2 changes: 1 addition & 1 deletion src/suggest-item.jsx
@@ -1,5 +1,5 @@
import React from 'react';
import shallowCompare from 'react-addons-shallow-compare';
import shallowCompare from 'react/lib/shallowCompare';
import classnames from 'classnames';

/**
Expand Down
2 changes: 1 addition & 1 deletion src/suggest-list.jsx
@@ -1,5 +1,5 @@
import React from 'react'; // eslint-disable-line no-unused-vars
import shallowCompare from 'react-addons-shallow-compare';
import shallowCompare from 'react/lib/shallowCompare';
import classnames from 'classnames';
import SuggestItem from './suggest-item';

Expand Down

0 comments on commit c66051d

Please sign in to comment.