Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Update examples to use React 17 (vercel#26133)
Browse files Browse the repository at this point in the history
[With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples
need to be updated, so the following snippet updated all the examples to
a compatible react version.

```bash
cd examples/
fd -g 'package.json' | xargs sed -r -i 's/"react": ".*"/"react": "^17.0.2"/
fd -g 'package.json' | xargs sed -r -i 's/"react-dom": ".*"/"react-dom": "^17.0.2"/'

# exclude experimental react version
git checkout with-reason-relay/package.json
```
  • Loading branch information
nickbabcock authored Jun 16, 2021
1 parent 23e2349 commit c9a4697
Show file tree
Hide file tree
Showing 239 changed files with 477 additions and 477 deletions.
4 changes: 2 additions & 2 deletions examples/active-class-name/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"author": "Remy Sharp <[email protected]>",
"dependencies": {
"next": "latest",
"react": "^16.7.0",
"react-dom": "^16.7.0"
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"license": "MIT"
}
4 changes: 2 additions & 2 deletions examples/amp-first/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
},
"dependencies": {
"next": "latest",
"react": "^16.10.2",
"react-dom": "^16.10.2"
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"license": "MIT"
}
4 changes: 2 additions & 2 deletions examples/amp-story/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
},
"dependencies": {
"next": "latest",
"react": "^16.7.0",
"react-dom": "^16.7.0"
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"license": "MIT"
}
4 changes: 2 additions & 2 deletions examples/amp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
},
"dependencies": {
"next": "latest",
"react": "^16.7.0",
"react-dom": "^16.7.0"
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"license": "MIT"
}
4 changes: 2 additions & 2 deletions examples/analyze-bundles/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"cross-env": "^6.0.3",
"faker": "^4.1.0",
"next": "latest",
"react": "^16.8.0",
"react-dom": "^16.8.0"
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"serve": "^11.3.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"graphql": "^14.0.2",
"next": "latest",
"prop-types": "^15.6.2",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"uuid": "8.1.0"
},
"license": "MIT"
Expand Down
4 changes: 2 additions & 2 deletions examples/api-routes-apollo-server-and-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"graphql": "^14.0.2",
"next": "latest",
"prop-types": "^15.6.2",
"react": "^16.7.0",
"react-dom": "^16.7.0"
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"license": "MIT"
}
4 changes: 2 additions & 2 deletions examples/api-routes-apollo-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"apollo-server-micro": "2.13.1",
"graphql": "15.0.0",
"next": "latest",
"react": "16.13.1",
"react-dom": "16.13.1"
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"license": "MIT"
}
4 changes: 2 additions & 2 deletions examples/api-routes-cors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"dependencies": {
"cors": "2.8.5",
"next": "latest",
"react": "^16.13.1",
"react-dom": "^16.13.1"
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"license": "MIT"
}
4 changes: 2 additions & 2 deletions examples/api-routes-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"apollo-server-micro": "2.11.0",
"graphql": "14.6.0",
"next": "latest",
"react": "16.13.1",
"react-dom": "16.13.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"swr": "0.1.18"
},
"license": "MIT"
Expand Down
4 changes: 2 additions & 2 deletions examples/api-routes-middleware/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"dependencies": {
"cookie": "0.4.0",
"next": "latest",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"swr": "0.1.18"
},
"license": "MIT"
Expand Down
4 changes: 2 additions & 2 deletions examples/api-routes-rate-limit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"dependencies": {
"lru-cache": "^6.0.0",
"next": "10.0.3",
"react": "17.0.1",
"react-dom": "17.0.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"uuid": "^8.3.1"
}
}
4 changes: 2 additions & 2 deletions examples/api-routes-rest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
},
"dependencies": {
"next": "latest",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"swr": "^0.1.18"
},
"license": "MIT"
Expand Down
4 changes: 2 additions & 2 deletions examples/api-routes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
},
"dependencies": {
"next": "latest",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"swr": "0.1.18"
},
"license": "MIT"
Expand Down
4 changes: 2 additions & 2 deletions examples/auth0/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"dependencies": {
"@auth0/nextjs-auth0": "^0.8.0",
"next": "latest",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"tslib": "^2.2.0"
}
}
4 changes: 2 additions & 2 deletions examples/basic-css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
},
"dependencies": {
"next": "latest",
"react": "^16.7.0",
"react-dom": "^16.7.0"
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"license": "MIT"
}
4 changes: 2 additions & 2 deletions examples/basic-export/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
},
"dependencies": {
"next": "latest",
"react": "^16.7.0",
"react-dom": "^16.7.0"
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"license": "MIT"
}
4 changes: 2 additions & 2 deletions examples/blog-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"date-fns": "2.16.1",
"gray-matter": "4.0.2",
"next": "latest",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"remark": "13.0.0",
"remark-html": "13.0.1"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/catch-all-routes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"license": "MIT",
"dependencies": {
"next": "latest",
"react": "^16.12.0",
"react-dom": "^16.12.0"
"react": "^17.0.2",
"react-dom": "^17.0.2"
}
}
4 changes: 2 additions & 2 deletions examples/cms-agilitycms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"date-fns": "2.10.0",
"isomorphic-unfetch": "3.0.0",
"next": "latest",
"react": "^16.13.0",
"react": "^17.0.2",
"react-datocms": "1.1.0",
"react-dom": "^16.13.0",
"react-dom": "^17.0.2",
"react-intersection-observer": "^8.26.1",
"remark": "11.0.2",
"remark-html": "10.0.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/cms-buttercms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"date-fns": "2.14.0",
"isomorphic-unfetch": "3.0.0",
"next": "latest",
"react": "^16.13.1",
"react-dom": "^16.13.1"
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"postcss-flexbugs-fixes": "4.2.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/cms-contentful/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"classnames": "2.2.6",
"date-fns": "2.14.0",
"next": "latest",
"react": "^16.13.1",
"react-dom": "^16.13.1"
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"@fullhuman/postcss-purgecss": "^2.3.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/cms-cosmic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"date-fns": "2.14.0",
"lazysizes": "^5.2.1-rc2",
"next": "latest",
"react": "^16.13.1",
"react": "^17.0.2",
"react-datocms": "1.2.4",
"react-dom": "^16.13.1",
"react-dom": "^17.0.2",
"react-imgix": "^9.0.2",
"remark": "12.0.0",
"remark-html": "11.0.2"
Expand Down
4 changes: 2 additions & 2 deletions examples/cms-datocms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"classnames": "2.2.6",
"date-fns": "2.14.0",
"next": "latest",
"react": "^16.13.1",
"react": "^17.0.2",
"react-datocms": "1.2.4",
"react-dom": "^16.13.1",
"react-dom": "^17.0.2",
"remark": "12.0.0",
"remark-html": "11.0.2"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/cms-ghost/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"lazysizes": "^5.3.0",
"next": "latest",
"postcss": "^8.2.4",
"react": "^17.0.1",
"react-dom": "^17.0.1"
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"postcss-flexbugs-fixes": "^5.0.2",
Expand Down
4 changes: 2 additions & 2 deletions examples/cms-graphcms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"date-fns": "2.10.0",
"next": "latest",
"postcss": "8.2.2",
"react": "17.0.1",
"react-dom": "17.0.1"
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"postcss-flexbugs-fixes": "^5.0.2",
Expand Down
4 changes: 2 additions & 2 deletions examples/cms-kontent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"date-fns": "2.10.0",
"gray-matter": "4.0.2",
"next": "latest",
"react": "^16.13.0",
"react-dom": "^16.13.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"remark": "11.0.2",
"remark-html": "10.0.0",
"rxjs": "^6.6.2"
Expand Down
4 changes: 2 additions & 2 deletions examples/cms-prepr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"date-fns": "2.10.0",
"next": "latest",
"postcss": "8.2.2",
"react": "17.0.1",
"react-dom": "17.0.1"
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"postcss-flexbugs-fixes": "^5.0.2",
Expand Down
4 changes: 2 additions & 2 deletions examples/cms-prismic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"next": "latest",
"prismic-javascript": "3.0.1",
"prismic-reactjs": "1.3.1",
"react": "^16.13.0",
"react-dom": "^16.13.0"
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"@fullhuman/postcss-purgecss": "^2.1.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/cms-sanity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"date-fns": "2.10.0",
"next-sanity": "0.1.5",
"next": "latest",
"react": "^16.13.0",
"react-dom": "^16.13.0"
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"@fullhuman/postcss-purgecss": "^2.1.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/cms-storyblok/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"classnames": "2.2.6",
"date-fns": "2.14.0",
"next": "latest",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"remark": "12.0.0",
"remark-html": "11.0.2",
"storyblok-js-client": "2.5.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/cms-strapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"date-fns": "2.14.0",
"isomorphic-unfetch": "3.0.0",
"next": "latest",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"remark": "12.0.0",
"remark-html": "11.0.2"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/cms-takeshape/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"classnames": "2.2.6",
"date-fns": "2.10.0",
"next": "latest",
"react": "^16.13.0",
"react-dom": "^16.13.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"remark": "11.0.2",
"remark-html": "10.0.0",
"takeshape-routing": "4.86.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/cms-wordpress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"classnames": "2.2.6",
"date-fns": "2.14.0",
"next": "latest",
"react": "^16.13.1",
"react-dom": "^16.13.1"
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"postcss-flexbugs-fixes": "4.2.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/custom-routes-proxying/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
},
"dependencies": {
"next": "latest",
"react": "^16.13.1",
"react-dom": "^16.13.1"
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"license": "MIT"
}
4 changes: 2 additions & 2 deletions examples/custom-server-actionhero/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"actionhero": "^18.1.2",
"ioredis": "^3.2.2",
"next": "latest",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"ws": "^4.1.0"
},
"scripts": {
Expand Down
Loading

0 comments on commit c9a4697

Please sign in to comment.