Skip to content

Commit 6b86b99

Browse files
authored
Move peerdeps to 16.9.0 & 17+ for react & react-dom (#29735)
* Move peerdeps to 16.9.0 & 17+ for react & react-dom * update examples, ... * Update building-a-theme.md * Update package.json
1 parent b3b19d3 commit 6b86b99

File tree

93 files changed

+299
-266
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+299
-266
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ module.exports = {
205205
],
206206
settings: {
207207
react: {
208-
version: "16.4.2",
208+
version: "16.9.0",
209209
},
210210
},
211211
}

benchmarks/source-agilitycms/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
"gatsby-source-filesystem": "^2.2.1",
2929
"gatsby-transformer-sharp": "^2.4.1",
3030
"node-fetch": "^2.6.0",
31-
"react": "^16.8.6",
32-
"react-dom": "^16.8.6",
31+
"react": "^16.9.0",
32+
"react-dom": "^16.9.0",
3333
"react-helmet": "^5.2.1",
3434
"truncate-html": "^1.0.2"
3535
},
@@ -43,4 +43,4 @@
4343
"bugs": {
4444
"url": "https://github.com/gatsbyjs/gatsby/issues"
4545
}
46-
}
46+
}

docs/tutorial/building-a-theme.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ You should now see the following dependencies in your `site/package.json`:
107107
"dependencies": {
108108
"gatsby": "^2.9.11",
109109
"gatsby-theme-events": "*",
110-
"react": "^16.8.6",
111-
"react-dom": "^16.8.6"
110+
"react": "^17.0.0",
111+
"react-dom": "^17.0.0"
112112
}
113113
}
114114
```
@@ -155,14 +155,14 @@ The `gatsby-theme-events/package.json` file should now include the following:
155155
```json:title=gatsby-theme-events/package.json
156156
{
157157
"peerDependencies": {
158-
"gatsby": "^2.9.11",
159-
"react": "^16.8.6",
160-
"react-dom": "^16.8.6"
158+
"gatsby": "^3.0.0",
159+
"react": "^16.9.0 || ^17.0.0",
160+
"react-dom": "^16.9.0 || ^17.0.0"
161161
},
162162
"devDependencies": {
163-
"gatsby": "^2.9.11",
164-
"react": "^16.8.6",
165-
"react-dom": "^16.8.6"
163+
"gatsby": "^3.0.0",
164+
"react": "^16.9.0",
165+
"react-dom": "^16.9.0"
166166
}
167167
}
168168
```
@@ -1335,13 +1335,13 @@ It's important to namespace your theme. It helps differentiate between published
13351335
},
13361336
"peerDependencies": {
13371337
"gatsby": "^2.13.19",
1338-
"react": "^16.8.6",
1339-
"react-dom": "^16.8.6"
1338+
"react": "^16.9.0 || ^17.0.0",
1339+
"react-dom": "^16.9.0 || ^17.0.0"
13401340
},
13411341
"devDependencies": {
13421342
"gatsby": "^2.13.19",
1343-
"react": "^16.8.6",
1344-
"react-dom": "^16.8.6"
1343+
"react": "^16.9.0",
1344+
"react-dom": "^16.9.0"
13451345
},
13461346
"dependencies": {
13471347
"@emotion/react": "^11.0.0",

e2e-tests/gatsby-image/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"gatsby-plugin-sharp": "^2.0.20",
1414
"gatsby-source-filesystem": "^2.0.20",
1515
"gatsby-transformer-sharp": "^2.1.13",
16-
"react": "^16.8.0",
17-
"react-dom": "^16.8.0",
16+
"react": "^16.9.0",
17+
"react-dom": "^16.9.0",
1818
"react-helmet": "^5.2.0"
1919
},
2020
"keywords": [
@@ -42,4 +42,4 @@
4242
"type": "git",
4343
"url": "https://github.com/gatsbyjs/gatsby-starter-default"
4444
}
45-
}
45+
}

e2e-tests/gatsby-static-image/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"gatsby": "^2.0.118",
99
"gatsby-plugin-image": "^0.0.2",
1010
"gatsby-plugin-sharp": "^2.0.20",
11-
"react": "^16.8.0",
12-
"react-dom": "^16.8.0"
11+
"react": "^16.9.0",
12+
"react-dom": "^16.9.0"
1313
},
1414
"keywords": [
1515
"gatsby"
@@ -36,4 +36,4 @@
3636
"type": "git",
3737
"url": "https://github.com/gatsbyjs/gatsby-starter-default"
3838
}
39-
}
39+
}

e2e-tests/mdx-less-babel/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"gatsby": "^2.0.118",
1010
"gatsby-plugin-mdx": "^1.2.19",
1111
"gatsby-source-filesystem": "^2.3.14",
12-
"react": "^16.8.0",
13-
"react-dom": "^16.8.0",
12+
"react": "^16.9.0",
13+
"react-dom": "^16.9.0",
1414
"theme-ui": "^0.3.1"
1515
},
1616
"keywords": [
@@ -34,4 +34,4 @@
3434
"prettier": "2.0.4",
3535
"start-server-and-test": "^1.7.1"
3636
}
37-
}
37+
}

e2e-tests/mdx/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"gatsby": "^2.0.118",
1010
"gatsby-plugin-mdx": "^1.2.19",
1111
"gatsby-source-filesystem": "^2.3.14",
12-
"react": "^16.8.0",
13-
"react-dom": "^16.8.0",
12+
"react": "^16.9.0",
13+
"react-dom": "^16.9.0",
1414
"theme-ui": "^0.3.1"
1515
},
1616
"keywords": [
@@ -34,4 +34,4 @@
3434
"prettier": "2.0.4",
3535
"start-server-and-test": "^1.7.1"
3636
}
37-
}
37+
}

e2e-tests/path-prefix/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"gatsby-plugin-sitemap": "^2.0.12",
1616
"gatsby-source-filesystem": "^2.8.1",
1717
"gatsby-transformer-sharp": "^2.9.0",
18-
"react": "^16.8.0",
19-
"react-dom": "^16.8.0",
18+
"react": "^16.9.0",
19+
"react-dom": "^16.9.0",
2020
"react-helmet": "^5.2.0"
2121
},
2222
"keywords": [
@@ -53,4 +53,4 @@
5353
"type": "git",
5454
"url": "https://github.com/gatsbyjs/gatsby-starter-default"
5555
}
56-
}
56+
}

e2e-tests/production-runtime/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"gatsby-plugin-sharp": "^3.0.0-next.5",
1414
"gatsby-seo": "^0.1.0",
1515
"glob": "^7.1.3",
16-
"react": "^16.8.0",
17-
"react-dom": "^16.8.0",
16+
"react": "^16.9.0",
17+
"react-dom": "^16.9.0",
1818
"react-helmet": "^5.2.0",
1919
"typeface-merriweather": "^1.1.13"
2020
},
@@ -52,4 +52,4 @@
5252
"type": "git",
5353
"url": "https://github.com/gatsbyjs/gatsby-starter-default"
5454
}
55-
}
55+
}

e2e-tests/themes/development-runtime/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"dependencies": {
77
"gatsby": "^2.13.14",
88
"gatsby-theme-about": "*",
9-
"react": "^16.8.0",
10-
"react-dom": "^16.8.0"
9+
"react": "^16.9.0",
10+
"react-dom": "^16.9.0"
1111
},
1212
"license": "MIT",
1313
"scripts": {
@@ -36,4 +36,4 @@
3636
"type": "git",
3737
"url": "https://github.com/gatsbyjs/gatsby-starter-default"
3838
}
39-
}
39+
}

0 commit comments

Comments
 (0)