diff --git a/package.json b/package.json index 24769d8..c3c94a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-abtest", - "version": "4.0.0", + "version": "5.0.0", "description": "A simple React and React Native AB test component.", "main": "dist/index.js", "scripts": { @@ -19,17 +19,20 @@ "Lars Jansøn Engvik" ], "license": "MIT", + "peerDependencies": { + "prop-types": ">=15.5.0", + "react": ">=16.0.0", + "react-dom": ">=16.0.0" + }, "devDependencies": { "@babel/cli": "7.7.7", "@babel/core": "7.7.7", "@babel/plugin-syntax-dynamic-import": "7.7.4", "@babel/preset-env": "7.7.7", - "@babel/preset-react": "7.7.4" - }, - "dependencies": { - "prop-types": "15.7.2", - "react": "16.12.0", - "react-dom": "16.12.0" + "@babel/preset-react": "7.7.4", + "prop-types": ">=15.5.0", + "react": ">=16.0.0", + "react-dom": ">=16.0.0" }, "keywords": [ "react", diff --git a/yarn.lock b/yarn.lock index 1b70e6b..489cb0d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1672,9 +1672,10 @@ process-nextick-args@~2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" -prop-types@15.7.2, prop-types@^15.6.2: +prop-types@>=15.5.0, prop-types@^15.6.2: version "15.7.2" resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5" + integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ== dependencies: loose-envify "^1.4.0" object-assign "^4.1.1" @@ -1689,9 +1690,10 @@ rc@^1.2.7: minimist "^1.2.0" strip-json-comments "~2.0.1" -react-dom@16.12.0: +react-dom@>=16.0.0: version "16.12.0" resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.12.0.tgz#0da4b714b8d13c2038c9396b54a92baea633fe11" + integrity sha512-LMxFfAGrcS3kETtQaCkTKjMiifahaMySFDn71fZUNpPHZQEzmk/GiAeIT8JSOrHB23fnuCOMruL2a8NYlw+8Gw== dependencies: loose-envify "^1.1.0" object-assign "^4.1.1" @@ -1702,9 +1704,10 @@ react-is@^16.8.1: version "16.8.6" resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.8.6.tgz#5bbc1e2d29141c9fbdfed456343fe2bc430a6a16" -react@16.12.0: +react@>=16.0.0: version "16.12.0" resolved "https://registry.yarnpkg.com/react/-/react-16.12.0.tgz#0c0a9c6a142429e3614834d5a778e18aa78a0b83" + integrity sha512-fglqy3k5E+81pA8s+7K0/T3DBCF0ZDOher1elBFzF7O6arXJgzyu/FW+COxFvAWXJoJN9KIZbT2LXlukwphYTA== dependencies: loose-envify "^1.1.0" object-assign "^4.1.1"