From cd68be658e3d084223dacdcbeecdce0bf24cc2a4 Mon Sep 17 00:00:00 2001 From: Adam Schay Date: Sat, 28 Nov 2020 00:02:49 -0700 Subject: [PATCH] fix(plugins): remove React from peerDependencies --- packages/gatsby-link/package.json | 4 +--- packages/gatsby-plugin-google-analytics/package.json | 4 +--- packages/gatsby-plugin-image/package.json | 4 +--- packages/gatsby-plugin-netlify-cms/package.json | 4 +--- packages/gatsby-plugin-styletron/package.json | 1 - packages/gatsby-plugin-typography/package.json | 2 -- packages/gatsby-react-router-scroll/package.json | 4 +--- 7 files changed, 5 insertions(+), 18 deletions(-) diff --git a/packages/gatsby-link/package.json b/packages/gatsby-link/package.json index c6c09501f2b79..eeb3092efd594 100644 --- a/packages/gatsby-link/package.json +++ b/packages/gatsby-link/package.json @@ -19,9 +19,7 @@ "cross-env": "^7.0.3" }, "peerDependencies": { - "@reach/router": "^1.3.3", - "react": "^16.4.2", - "react-dom": "^16.4.2" + "@reach/router": "^1.3.4" }, "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-link#readme", "keywords": [ diff --git a/packages/gatsby-plugin-google-analytics/package.json b/packages/gatsby-plugin-google-analytics/package.json index 5737a3362ad06..6379924bdfafe 100644 --- a/packages/gatsby-plugin-google-analytics/package.json +++ b/packages/gatsby-plugin-google-analytics/package.json @@ -26,9 +26,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^2.0.0", - "react": "^16.4.2", - "react-dom": "^16.4.2" + "gatsby": "^2.0.0" }, "repository": { "type": "git", diff --git a/packages/gatsby-plugin-image/package.json b/packages/gatsby-plugin-image/package.json index 6e7baac6a049e..44aa891285256 100644 --- a/packages/gatsby-plugin-image/package.json +++ b/packages/gatsby-plugin-image/package.json @@ -75,9 +75,7 @@ "peerDependencies": { "gatsby": ">=2", "gatsby-image": "*", - "gatsby-plugin-sharp": "*", - "react": ">=16.8.0", - "react-dom": ">=16.8.0" + "gatsby-plugin-sharp": "*" }, "dependencies": { "@babel/parser": "^7.12.5", diff --git a/packages/gatsby-plugin-netlify-cms/package.json b/packages/gatsby-plugin-netlify-cms/package.json index 6e23230907854..09bb01ae8a31b 100644 --- a/packages/gatsby-plugin-netlify-cms/package.json +++ b/packages/gatsby-plugin-netlify-cms/package.json @@ -37,9 +37,7 @@ "main": "index.js", "peerDependencies": { "gatsby": "^2.0.101", - "netlify-cms-app": "^2.9.0", - "react": "^16.8.4", - "react-dom": "^16.8.4" + "netlify-cms-app": "^2.9.0" }, "repository": { "type": "git", diff --git a/packages/gatsby-plugin-styletron/package.json b/packages/gatsby-plugin-styletron/package.json index 49761d673ffb4..9ebe60bf5d998 100644 --- a/packages/gatsby-plugin-styletron/package.json +++ b/packages/gatsby-plugin-styletron/package.json @@ -23,7 +23,6 @@ "main": "index.js", "peerDependencies": { "gatsby": "^2.0.0", - "react": "^16.4.2", "styletron-engine-atomic": "^1.4.6", "styletron-react": "^5.2.7" }, diff --git a/packages/gatsby-plugin-typography/package.json b/packages/gatsby-plugin-typography/package.json index 04142564ea2e6..ce053e70ba1f9 100644 --- a/packages/gatsby-plugin-typography/package.json +++ b/packages/gatsby-plugin-typography/package.json @@ -30,8 +30,6 @@ "main": "index.js", "peerDependencies": { "gatsby": "^2.0.0", - "react": "^16.4.2", - "react-dom": "^16.4.2", "react-typography": "^0.16.1 || ^1.0.0-alpha.0", "typography": "^0.16.0 || ^1.0.0-alpha.0" }, diff --git a/packages/gatsby-react-router-scroll/package.json b/packages/gatsby-react-router-scroll/package.json index 67b0e524d4196..49359735775d2 100644 --- a/packages/gatsby-react-router-scroll/package.json +++ b/packages/gatsby-react-router-scroll/package.json @@ -24,9 +24,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "@reach/router": "^1.0.0", - "react": "^16.4.2", - "react-dom": "^16.4.2" + "@reach/router": "^1.3.4" }, "repository": { "type": "git",