Skip to content

Commit

Permalink
Move peerdeps to 16.9.0 & 17+ for react & react-dom
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed Feb 17, 2021
1 parent 4dff755 commit eb3026d
Show file tree
Hide file tree
Showing 23 changed files with 76 additions and 52 deletions.
6 changes: 3 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ module.exports = {
"no-unused-vars": [
"warn",
{
varsIgnorePattern: "^_"
}
varsIgnorePattern: "^_",
},
],
"consistent-return": ["error"],
"filenames/match-regex": ["error", "^[a-z-\\d\\.]+$", true],
Expand Down Expand Up @@ -178,7 +178,7 @@ module.exports = {
],
settings: {
react: {
version: "16.4.2",
version: "16.9.0",
},
},
}
4 changes: 2 additions & 2 deletions packages/gatsby-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"ink": "^3.0.8",
"ink-spinner": "^4.0.1",
"npm-run-all": "4.1.5",
"react": "^16.8.0",
"react": "^16.9.0",
"rimraf": "^3.0.2",
"rollup": "^2.34.2",
"rollup-plugin-auto-external": "^2.0.0",
Expand Down Expand Up @@ -101,4 +101,4 @@
"engines": {
"node": ">=12.13.0"
}
}
}
6 changes: 3 additions & 3 deletions packages/gatsby-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
},
"peerDependencies": {
"@reach/router": "^1.3.3",
"react": "^16.4.2 || ^17.0.0",
"react-dom": "^16.4.2 || ^17.0.0"
"react": "^16.9.0 || ^17.0.0",
"react-dom": "^16.9.0 || ^17.0.0"
},
"homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-link#readme",
"keywords": [
Expand All @@ -43,4 +43,4 @@
"engines": {
"node": ">=12.13.0"
}
}
}
6 changes: 4 additions & 2 deletions packages/gatsby-plugin-cxs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
"main": "index.js",
"peerDependencies": {
"cxs": ">=5.0.0",
"gatsby": "^3.0.0-next.0"
"gatsby": "^3.0.0-next.0",
"react": "^16.9.0 || ^17.0.0",
"react-dom": "^16.9.0 || ^17.0.0"
},
"repository": {
"type": "git",
Expand All @@ -42,4 +44,4 @@
"engines": {
"node": ">=12.13.0"
}
}
}
6 changes: 4 additions & 2 deletions packages/gatsby-plugin-feed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
"license": "MIT",
"main": "index.js",
"peerDependencies": {
"gatsby": "^3.0.0-next.0"
"gatsby": "^3.0.0-next.0",
"react": "^16.9.0 || ^17.0.0",
"react-dom": "^16.9.0 || ^17.0.0"
},
"repository": {
"type": "git",
Expand All @@ -47,4 +49,4 @@
"engines": {
"node": ">=12.13.0"
}
}
}
6 changes: 4 additions & 2 deletions packages/gatsby-plugin-fullstory/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@
"cross-env": "^7.0.3"
},
"peerDependencies": {
"gatsby": "^3.0.0-next.0"
"gatsby": "^3.0.0-next.0",
"react": "^16.9.0 || ^17.0.0",
"react-dom": "^16.9.0 || ^17.0.0"
},
"engines": {
"node": ">=12.13.0"
}
}
}
6 changes: 4 additions & 2 deletions packages/gatsby-plugin-glamor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
"main": "index.js",
"peerDependencies": {
"gatsby": "^3.0.0-next.0",
"glamor": "^2.20.29"
"glamor": "^2.20.29",
"react": "^16.9.0 || ^17.0.0",
"react-dom": "^16.9.0 || ^17.0.0"
},
"repository": {
"type": "git",
Expand All @@ -41,4 +43,4 @@
"engines": {
"node": ">=12.13.0"
}
}
}
6 changes: 3 additions & 3 deletions packages/gatsby-plugin-google-analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"main": "index.js",
"peerDependencies": {
"gatsby": "^3.0.0-next.0",
"react": "^16.4.2 || ^17.0.0",
"react-dom": "^16.4.2 || ^17.0.0"
"react": "^16.9.0 || ^17.0.0",
"react-dom": "^16.9.0 || ^17.0.0"
},
"repository": {
"type": "git",
Expand All @@ -44,4 +44,4 @@
"node": ">=12.13.0"
},
"types": "./index.d.ts"
}
}
6 changes: 4 additions & 2 deletions packages/gatsby-plugin-google-gtag/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
"license": "MIT",
"main": "index.js",
"peerDependencies": {
"gatsby": "^3.0.0-next.0"
"gatsby": "^3.0.0-next.0",
"react": "^16.9.0 || ^17.0.0",
"react-dom": "^16.9.0 || ^17.0.0"
},
"repository": {
"type": "git",
Expand All @@ -41,4 +43,4 @@
"engines": {
"node": ">=12.13.0"
}
}
}
6 changes: 4 additions & 2 deletions packages/gatsby-plugin-google-tagmanager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
"license": "MIT",
"main": "index.js",
"peerDependencies": {
"gatsby": "^3.0.0-next.0"
"gatsby": "^3.0.0-next.0",
"react": "^16.9.0 || ^17.0.0",
"react-dom": "^16.9.0 || ^17.0.0"
},
"repository": {
"type": "git",
Expand All @@ -41,4 +43,4 @@
"engines": {
"node": ">=12.13.0"
}
}
}
6 changes: 3 additions & 3 deletions packages/gatsby-plugin-image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@
"gatsby-image": "*",
"gatsby-plugin-sharp": "*",
"gatsby-source-filesystem": "*",
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
"react": "^16.9.0 || ^17.0.0",
"react-dom": "^16.9.0 || ^17.0.0"
},
"dependencies": {
"@babel/parser": "^7.12.5",
Expand All @@ -91,4 +91,4 @@
},
"author": "Matt Kane <matt@gatsbyjs.com>",
"license": "MIT"
}
}
6 changes: 4 additions & 2 deletions packages/gatsby-plugin-jss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
"license": "MIT",
"main": "index.js",
"peerDependencies": {
"gatsby": "^3.0.0-next.0"
"gatsby": "^3.0.0-next.0",
"react": "^16.9.0 || ^17.0.0",
"react-dom": "^16.9.0 || ^17.0.0"
},
"repository": {
"type": "git",
Expand All @@ -40,4 +42,4 @@
"engines": {
"node": ">=12.13.0"
}
}
}
6 changes: 4 additions & 2 deletions packages/gatsby-plugin-mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
},
"peerDependencies": {
"@mdx-js/mdx": "^1.0.0",
"@mdx-js/react": "^1.0.0"
"@mdx-js/react": "^1.0.0",
"react": "^16.9.0 || ^17.0.0",
"react-dom": "^16.9.0 || ^17.0.0"
},
"dependencies": {
"@babel/core": "^7.12.3",
Expand Down Expand Up @@ -76,4 +78,4 @@
"rehype"
],
"types": "index.d.ts"
}
}
6 changes: 3 additions & 3 deletions packages/gatsby-plugin-netlify-cms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"peerDependencies": {
"gatsby": "^3.0.0-next.0",
"netlify-cms-app": "^2.9.0",
"react": "^16.8.4 || ^17.0.0",
"react-dom": "^16.8.4 || ^17.0.0"
"react": "^16.9.0 || ^17.0.0",
"react-dom": "^16.9.0 || ^17.0.0"
},
"repository": {
"type": "git",
Expand All @@ -54,4 +54,4 @@
"engines": {
"node": ">=12.13.0"
}
}
}
6 changes: 4 additions & 2 deletions packages/gatsby-plugin-offline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
"license": "MIT",
"main": "index.js",
"peerDependencies": {
"gatsby": "^3.0.0-next.0"
"gatsby": "^3.0.0-next.0",
"react": "^16.9.0 || ^17.0.0",
"react-dom": "^16.9.0 || ^17.0.0"
},
"repository": {
"type": "git",
Expand All @@ -52,4 +54,4 @@
"engines": {
"node": ">=12.13.0"
}
}
}
6 changes: 4 additions & 2 deletions packages/gatsby-plugin-sitemap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
"license": "MIT",
"main": "index.js",
"peerDependencies": {
"gatsby": "^3.0.0-next.0"
"gatsby": "^3.0.0-next.0",
"react": "^16.9.0 || ^17.0.0",
"react-dom": "^16.9.0 || ^17.0.0"
},
"repository": {
"type": "git",
Expand All @@ -42,4 +44,4 @@
"engines": {
"node": ">=12.13.0"
}
}
}
4 changes: 3 additions & 1 deletion packages/gatsby-plugin-styled-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
"peerDependencies": {
"babel-plugin-styled-components": ">1.5.0",
"gatsby": "^3.0.0-next.0",
"react": "^16.9.0 || ^17.0.0",
"react-dom": "^16.9.0 || ^17.0.0",
"styled-components": ">=2.0.0"
},
"repository": {
Expand All @@ -41,4 +43,4 @@
"engines": {
"node": ">=12.13.0"
}
}
}
4 changes: 2 additions & 2 deletions packages/gatsby-plugin-styletron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"main": "index.js",
"peerDependencies": {
"gatsby": "^3.0.0-next.0",
"react": "^16.4.2 || ^17.0.0",
"react": "^16.9.0 || ^17.0.0",
"styletron-engine-atomic": "^1.4.6",
"styletron-react": "^5.2.7"
},
Expand All @@ -40,4 +40,4 @@
"engines": {
"node": ">=12.13.0"
}
}
}
6 changes: 3 additions & 3 deletions packages/gatsby-plugin-typography/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"main": "index.js",
"peerDependencies": {
"gatsby": "^3.0.0-next.0",
"react": "^16.4.2 || ^17.0.0",
"react-dom": "^16.4.2 || ^17.0.0",
"react": "^16.9.0 || ^17.0.0",
"react-dom": "^16.9.0 || ^17.0.0",
"react-typography": "^0.16.1 || ^1.0.0-alpha.0",
"typography": "^0.16.0 || ^1.0.0-alpha.0"
},
Expand All @@ -48,4 +48,4 @@
"engines": {
"node": ">=12.13.0"
}
}
}
6 changes: 3 additions & 3 deletions packages/gatsby-react-router-scroll/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"main": "index.js",
"peerDependencies": {
"@reach/router": "^1.0.0",
"react": "^16.4.2 || ^17.0.0",
"react-dom": "^16.4.2 || ^17.0.0"
"react": "^16.9.0 || ^17.0.0",
"react-dom": "^16.9.0 || ^17.0.0"
},
"repository": {
"type": "git",
Expand All @@ -41,4 +41,4 @@
"engines": {
"node": ">=12.13.0"
}
}
}
6 changes: 4 additions & 2 deletions packages/gatsby-remark-autolink-headers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
"license": "MIT",
"main": "index.js",
"peerDependencies": {
"gatsby": "^3.0.0-next.0"
"gatsby": "^3.0.0-next.0",
"react": "^16.9.0 || ^17.0.0",
"react-dom": "^16.9.0 || ^17.0.0"
},
"repository": {
"type": "git",
Expand All @@ -44,4 +46,4 @@
"engines": {
"node": ">=12.13.0"
}
}
}
2 changes: 1 addition & 1 deletion packages/gatsby-remark-prismjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@
"engines": {
"node": ">=12.13.0"
}
}
}
6 changes: 3 additions & 3 deletions packages/gatsby/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@
"main": "cache-dir/commonjs/gatsby-browser-entry.js",
"module": "cache-dir/gatsby-browser-entry.js",
"peerDependencies": {
"react": "^16.4.2 || ^17.0.0",
"react-dom": "^16.4.2 || ^17.0.0"
"react": "^16.9.0 || ^17.0.0",
"react-dom": "^16.9.0 || ^17.0.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -259,4 +259,4 @@
"yargs": {
"boolean-negation": false
}
}
}

0 comments on commit eb3026d

Please sign in to comment.