diff --git a/HISTORY.md b/HISTORY.md index 5dae12eac5..d2c37af04c 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,9 @@ # React-Select +## v0.9.1-wday-react15 + +* fixed; peer dependency when using react 15 + ## v0.9.1 / 2015-11-01 * added; new Contributors example w/ async options loading and custom value / label keys diff --git a/bower.json b/bower.json index b9a7a9b4bf..f63e40efa1 100644 --- a/bower.json +++ b/bower.json @@ -4,7 +4,7 @@ "dist/react-select.min.js", "dist/default.css" ], - "version": "0.9.1", + "version": "0.9.1-wday-react15", "homepage": "https://github.com/JedWatson/react-select", "authors": [ "Jed Watson" diff --git a/package.json b/package.json index f73c643a22..6ec5ddb99d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-select", - "version": "0.9.1", + "version": "0.9.1-wday-react15", "description": "A Select control built with and for ReactJS", "main": "lib/Select.js", "style": "dist/default.css", @@ -36,8 +36,8 @@ "unexpected-sinon": "^8.0.0" }, "peerDependencies": { - "react": "^0.14.1", - "react-dom": "^0.14.1" + "react": "^15.3.1", + "react-dom": "^15.3.1" }, "browserify-shim": { "classnames": "global:classNames", diff --git a/src/Select.js b/src/Select.js index 61119edf9e..784f2ccc0c 100644 --- a/src/Select.js +++ b/src/Select.js @@ -602,9 +602,9 @@ var Select = React.createClass({ if (asyncOpts && typeof asyncOpts.then === 'function') { asyncOpts.then((data) => { - optionsResponseHandler(null, data) + optionsResponseHandler(null, data); }, (err) => { - optionsResponseHandler(err) + optionsResponseHandler(err); }); } }, diff --git a/test/Select-test.js b/test/Select-test.js index d88765b86b..679c7f47ae 100644 --- a/test/Select-test.js +++ b/test/Select-test.js @@ -1391,8 +1391,8 @@ describe('Select', () => { }); return new Promise((resolve, reject) => { - input === '_FAIL'? reject('nope') : resolve({options: options}); - }) + input === '_FAIL'? reject('nope') : resolve({ options: options }); + }); }); });