From d4a96e2a3299ddf7e1cce506447207a1a6b0d8e1 Mon Sep 17 00:00:00 2001 From: flipactual Date: Tue, 23 Jan 2018 14:22:10 -0600 Subject: [PATCH 1/9] move react and react-dom to peerDependencies --- packages/gatsby/package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/gatsby/package.json b/packages/gatsby/package.json index 5c33a823cb3cc..09dcf39e5c1b8 100644 --- a/packages/gatsby/package.json +++ b/packages/gatsby/package.json @@ -90,9 +90,7 @@ "postcss-loader": "^2.0.6", "postcss-reporter": "^5.0.0", "raw-loader": "^0.5.1", - "react": "^16.2.0", "react-dev-utils": "^4.2.1", - "react-dom": "^16.2.0", "react-error-overlay": "^3.0.0", "react-hot-loader": "^3.0.0-beta.6", "react-router": "^4.1.1", @@ -121,6 +119,10 @@ "webpack-stats-plugin": "^0.1.5", "yaml-loader": "^0.5.0" }, + "peerDependencies": { + "react": "^16.2.0", + "react-dom": "^16.2.0" + }, "devDependencies": { "babel-cli": "^6.26.0", "chokidar": "^2.0.0", From 07f4b37681b911c08a9d72b995da66220a3e1cf0 Mon Sep 17 00:00:00 2001 From: flipactual Date: Tue, 23 Jan 2018 14:23:04 -0600 Subject: [PATCH 2/9] document installing react and react-dom --- packages/gatsby-cli/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby-cli/README.md b/packages/gatsby-cli/README.md index 294aa4fd67054..eb810eeae33d3 100644 --- a/packages/gatsby-cli/README.md +++ b/packages/gatsby-cli/README.md @@ -10,7 +10,7 @@ package installed locally. ## Install -`npm install --global gatsby-cli` +`npm install --global gatsby-cli react react-dom` ## How to use From 4430fa9f96171a4e45ebc652f4f448aa408b4aac Mon Sep 17 00:00:00 2001 From: flipactual Date: Tue, 23 Jan 2018 14:25:32 -0600 Subject: [PATCH 3/9] move react-jss to peerDependencies --- packages/gatsby-plugin-jss/README.md | 2 +- packages/gatsby-plugin-jss/package.json | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/gatsby-plugin-jss/README.md b/packages/gatsby-plugin-jss/README.md index 685d1fc9b25fe..fdf175a7c663f 100644 --- a/packages/gatsby-plugin-jss/README.md +++ b/packages/gatsby-plugin-jss/README.md @@ -5,7 +5,7 @@ Provide drop-in support for using the css-in-js library ## Install -`npm install --save gatsby-plugin-jss` +`npm install --save gatsby-plugin-jss react-jss` ## How to use diff --git a/packages/gatsby-plugin-jss/package.json b/packages/gatsby-plugin-jss/package.json index b713a828b0ecb..7d4c05b047e5f 100644 --- a/packages/gatsby-plugin-jss/package.json +++ b/packages/gatsby-plugin-jss/package.json @@ -17,7 +17,9 @@ "author": "Vladimir Guguiev ", "license": "MIT", "dependencies": { - "babel-runtime": "^6.26.0", + "babel-runtime": "^6.26.0" + }, + "peerDependencies": { "react-jss": "^7.0.2" }, "devDependencies": { From af3ff4ec38501deba65fcb040cb1e612e422e824 Mon Sep 17 00:00:00 2001 From: flipactual Date: Tue, 23 Jan 2018 14:26:18 -0600 Subject: [PATCH 4/9] move lodash to peerDependencies --- packages/gatsby-plugin-lodash/README.md | 2 +- packages/gatsby-plugin-lodash/package.json | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/gatsby-plugin-lodash/README.md b/packages/gatsby-plugin-lodash/README.md index 6a5c520475019..0874f8d227ec5 100644 --- a/packages/gatsby-plugin-lodash/README.md +++ b/packages/gatsby-plugin-lodash/README.md @@ -4,7 +4,7 @@ Adds the Lodash webpack & Babel plugins for easy modular, small Lodash builds. ## Install -`npm install --save gatsby-plugin-lodash` +`npm install --save gatsby-plugin-lodash lodash` ## How to use diff --git a/packages/gatsby-plugin-lodash/package.json b/packages/gatsby-plugin-lodash/package.json index 21b935707f32e..f746def94be8b 100644 --- a/packages/gatsby-plugin-lodash/package.json +++ b/packages/gatsby-plugin-lodash/package.json @@ -16,9 +16,11 @@ "dependencies": { "babel-plugin-lodash": "^3.2.11", "babel-runtime": "^6.26.0", - "lodash": "^4.17.4", "lodash-webpack-plugin": "^0.11.4" }, + "peerDependencies": { + "lodash": "^4.17.4" + }, "devDependencies": { "babel-cli": "^6.26.0", "cross-env": "^5.0.5" From 30e003826eeb5252ad137cfb21b1c19cb1489cff Mon Sep 17 00:00:00 2001 From: flipactual Date: Tue, 23 Jan 2018 15:35:03 -0600 Subject: [PATCH 5/9] remove instruction to install react/react-dom globally --- packages/gatsby-cli/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby-cli/README.md b/packages/gatsby-cli/README.md index eb810eeae33d3..294aa4fd67054 100644 --- a/packages/gatsby-cli/README.md +++ b/packages/gatsby-cli/README.md @@ -10,7 +10,7 @@ package installed locally. ## Install -`npm install --global gatsby-cli react react-dom` +`npm install --global gatsby-cli` ## How to use From 0c85714bbb635d17767c7a31563901960f3607e4 Mon Sep 17 00:00:00 2001 From: flipactual Date: Wed, 24 Jan 2018 16:46:12 -0600 Subject: [PATCH 6/9] move react and react-dom to peerDependencies --- packages/gatsby-plugin-react-next/README.md | 2 +- packages/gatsby-plugin-react-next/package.json | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/gatsby-plugin-react-next/README.md b/packages/gatsby-plugin-react-next/README.md index 627338aa2c5e4..980cea244750c 100644 --- a/packages/gatsby-plugin-react-next/README.md +++ b/packages/gatsby-plugin-react-next/README.md @@ -7,7 +7,7 @@ site is drop-in upgrade to React 16. ## Install -`npm install --save gatsby-plugin-react-next` +`npm install --save gatsby-plugin-react-next react react-dom` ## How to use diff --git a/packages/gatsby-plugin-react-next/package.json b/packages/gatsby-plugin-react-next/package.json index ef952e26cfa2c..ae1a79f1a6c2c 100644 --- a/packages/gatsby-plugin-react-next/package.json +++ b/packages/gatsby-plugin-react-next/package.json @@ -16,10 +16,12 @@ "dependencies": { "babel-runtime": "^6.26.0", "core-js": "^2.5.1", - "react": "^16.0.0", - "react-dom": "^16.0.0", "resolve": "^1.5.0" }, + "peerDependencies": { + "react": "^16.0.0", + "react-dom": "^16.0.0" + }, "devDependencies": { "babel-cli": "^6.26.0", "cross-env": "^5.0.5" From 1cde92d12548c40e25f5df4ea66677b530321e96 Mon Sep 17 00:00:00 2001 From: flipactual Date: Wed, 24 Jan 2018 16:47:36 -0600 Subject: [PATCH 7/9] move preact and preact-compat to peerDependencies --- packages/gatsby-plugin-preact/README.md | 2 +- packages/gatsby-plugin-preact/package.json | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/gatsby-plugin-preact/README.md b/packages/gatsby-plugin-preact/README.md index 8a4d950fc6ecf..d78626e2a0998 100644 --- a/packages/gatsby-plugin-preact/README.md +++ b/packages/gatsby-plugin-preact/README.md @@ -8,7 +8,7 @@ React. ## Install -`npm install --save gatsby-plugin-preact` +`npm install --save gatsby-plugin-preact preact preact-compat` ## How to use diff --git a/packages/gatsby-plugin-preact/package.json b/packages/gatsby-plugin-preact/package.json index 5596a3a8c1bde..4d7e724f84bfb 100644 --- a/packages/gatsby-plugin-preact/package.json +++ b/packages/gatsby-plugin-preact/package.json @@ -16,7 +16,9 @@ "author": "Kyle Mathews ", "license": "MIT", "dependencies": { - "babel-runtime": "^6.26.0", + "babel-runtime": "^6.26.0" + }, + "peerDependencies": { "preact": "^8.2.5", "preact-compat": "^3.17.0" }, From fb35b7e079d4696298e6d0c9c671e1dc74bac44c Mon Sep 17 00:00:00 2001 From: flipactual Date: Wed, 24 Jan 2018 16:50:22 -0600 Subject: [PATCH 8/9] move react-typography and typography to peerDependencies --- packages/gatsby-plugin-typography/README.md | 5 +++++ packages/gatsby-plugin-typography/package.json | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 packages/gatsby-plugin-typography/README.md diff --git a/packages/gatsby-plugin-typography/README.md b/packages/gatsby-plugin-typography/README.md new file mode 100644 index 0000000000000..35baaff5dbf88 --- /dev/null +++ b/packages/gatsby-plugin-typography/README.md @@ -0,0 +1,5 @@ +# gatsby-plugin-typography + +## Install + +`npm install --save gatsby-plugin-typography react-typography typography` diff --git a/packages/gatsby-plugin-typography/package.json b/packages/gatsby-plugin-typography/package.json index 5b05a2911f9c2..e5518adbd0d8b 100644 --- a/packages/gatsby-plugin-typography/package.json +++ b/packages/gatsby-plugin-typography/package.json @@ -4,7 +4,9 @@ "description": "Gatsby plugin to setup server rendering of Typography.js' CSS", "main": "index.js", "dependencies": { - "babel-runtime": "^6.26.0", + "babel-runtime": "^6.26.0" + }, + "peerDependencies": { "react-typography": "^0.16.1", "typography": "^0.16.0" }, From 05cf9d94791d26e7147a1ba73b125638b7d75cf3 Mon Sep 17 00:00:00 2001 From: Kyle Mathews Date: Thu, 8 Feb 2018 17:00:29 -0800 Subject: [PATCH 9/9] Up major version for affected plugins --- packages/gatsby-plugin-jss/package.json | 2 +- packages/gatsby-plugin-lodash/package.json | 2 +- packages/gatsby-plugin-preact/package.json | 2 +- packages/gatsby-plugin-react-next/package.json | 2 +- packages/gatsby-plugin-typography/package.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/gatsby-plugin-jss/package.json b/packages/gatsby-plugin-jss/package.json index ec10d9aab9c53..344bd45937330 100644 --- a/packages/gatsby-plugin-jss/package.json +++ b/packages/gatsby-plugin-jss/package.json @@ -1,6 +1,6 @@ { "name": "gatsby-plugin-jss", - "version": "1.5.10", + "version": "2.0.0", "description": "Gatsby plugin that adds SSR support for JSS", "main": "index.js", "scripts": { diff --git a/packages/gatsby-plugin-lodash/package.json b/packages/gatsby-plugin-lodash/package.json index be0871f8152cd..50f0e3dc0bb17 100644 --- a/packages/gatsby-plugin-lodash/package.json +++ b/packages/gatsby-plugin-lodash/package.json @@ -1,6 +1,6 @@ { "name": "gatsby-plugin-lodash", - "version": "1.0.8", + "version": "2.0.0", "description": "Easy modular Lodash builds. Adds the Lodash webpack & Babel plugins to your Gatsby build", "main": "index.js", "scripts": { diff --git a/packages/gatsby-plugin-preact/package.json b/packages/gatsby-plugin-preact/package.json index 868867e7c527c..d1097ccb5ad0a 100644 --- a/packages/gatsby-plugin-preact/package.json +++ b/packages/gatsby-plugin-preact/package.json @@ -1,6 +1,6 @@ { "name": "gatsby-plugin-preact", - "version": "2.0.0-alpha.f20ac0ed", + "version": "2.0.0", "description": "A Gatsby plugin which replaces React with Preact", "main": "index.js", "scripts": { diff --git a/packages/gatsby-plugin-react-next/package.json b/packages/gatsby-plugin-react-next/package.json index ccc7072b12916..dc5c91512608f 100644 --- a/packages/gatsby-plugin-react-next/package.json +++ b/packages/gatsby-plugin-react-next/package.json @@ -1,6 +1,6 @@ { "name": "gatsby-plugin-react-next", - "version": "1.0.8", + "version": "2.0.0", "description": "Use React 16 with your Gatsby v1 site", "main": "index.js", "scripts": { diff --git a/packages/gatsby-plugin-typography/package.json b/packages/gatsby-plugin-typography/package.json index 30bb4bfa21d8b..d2ddb22d6393e 100644 --- a/packages/gatsby-plugin-typography/package.json +++ b/packages/gatsby-plugin-typography/package.json @@ -1,6 +1,6 @@ { "name": "gatsby-plugin-typography", - "version": "1.7.12", + "version": "2.0.0", "description": "Gatsby plugin to setup server rendering of Typography.js' CSS", "main": "index.js", "dependencies": {