From 4b41c07413f1855d725c1c35720390f58e3293f9 Mon Sep 17 00:00:00 2001 From: Cory House Date: Fri, 5 Aug 2016 11:19:02 -0500 Subject: [PATCH] Utilize ranges for React dependencies This change allows people with older versions of React to use this package. (I assume your code would support it, but worth checking). Modeled after the repo we forked: https://github.com/sstur/react-rte/blob/master/package.json --- package.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 0c5e4c4..a9d0004 100644 --- a/package.json +++ b/package.json @@ -23,9 +23,9 @@ "draft-js-import-markdown": "0.1.4", "draft-js-utils": "0.1.4", "immutable": "3.8.1", - "react": "15.0.2", + "react": "0.14.x || 15.x.x", "react-bootstrap": "0.29.4", - "react-dom": "15.0.2" + "react-dom": "0.14.x || 15.x.x" }, "devDependencies": { "babel-cli": "6.8.0", @@ -46,12 +46,16 @@ "flow-bin": "0.22.1", "mocha": "2.4.5", "raw-loader": "0.5.1", - "react-addons-test-utils": "15.0.2", + "react-addons-test-utils": "0.14.x || 15.x.x", "rimraf": "2.5.2", "style-loader": "0.13.1", "url-loader": "0.5.7", "webpack": "1.13.0" }, + "peerDependencies": { + "react": "0.14.x || 15.x.x", + "react-dom": "0.14.x || 15.x.x" + }, "repository": { "type": "git", "url": "https://github.com/cox-auto-kc/react-richtext"