Update repo to use react 18 by default (#35888)
This updates our `yarn next` command to leverage react v18 by default and removes the need for the test require hook/config modifying when testing react 18. There are some fixtures we need to investigate react 18 support in follow-ups: - `test/integration/client-navigation-a11y` - `test/integration/critical-css` - `test/integration/custom-error-page-exception` - `test/integration/font-optimization` - AMP specific tests
Showing
| ... | @@ -36,7 +36,7 @@ | ... | @@ -36,7 +36,7 @@ |
| "lint-staged": "lint-staged", | "lint-staged": "lint-staged", | ||
| "next-with-deps": "./scripts/next-with-deps.sh", | "next-with-deps": "./scripts/next-with-deps.sh", | ||
| "next": "node --trace-deprecation --enable-source-maps packages/next/dist/bin/next", | "next": "node --trace-deprecation --enable-source-maps packages/next/dist/bin/next", | ||
| "next-react-18": "node --trace-deprecation --enable-source-maps -r ./test/integration/react-18/test/require-hook.js packages/next/dist/bin/next", | "next-react-17": "node --trace-deprecation --enable-source-maps -r ./test/lib/react-17-require-hook.js packages/next/dist/bin/next", | ||
| "next-no-sourcemaps": "node --trace-deprecation packages/next/dist/bin/next", | "next-no-sourcemaps": "node --trace-deprecation packages/next/dist/bin/next", | ||
| "clean-trace-jaeger": "rm -rf test/integration/basic/.next && TRACE_TARGET=JAEGER node --trace-deprecation --enable-source-maps packages/next/dist/bin/next build test/integration/basic", | "clean-trace-jaeger": "rm -rf test/integration/basic/.next && TRACE_TARGET=JAEGER node --trace-deprecation --enable-source-maps packages/next/dist/bin/next build test/integration/basic", | ||
| "debug": "node --inspect packages/next/dist/bin/next", | "debug": "node --inspect packages/next/dist/bin/next", | ||
| ... | @@ -53,7 +53,7 @@ | ... | @@ -53,7 +53,7 @@ |
| "@svgr/webpack": "5.5.0", | "@svgr/webpack": "5.5.0", | ||
| "@swc/cli": "0.1.55", | "@swc/cli": "0.1.55", | ||
| "@swc/core": "1.2.148", | "@swc/core": "1.2.148", | ||
| "@testing-library/react": "11.2.5", | "@testing-library/react": "13.0.0", | ||
| "@types/cheerio": "0.22.16", | "@types/cheerio": "0.22.16", | ||
| "@types/fs-extra": "8.1.0", | "@types/fs-extra": "8.1.0", | ||
| "@types/html-validator": "5.0.2", | "@types/html-validator": "5.0.2", | ||
| ... | @@ -145,10 +145,10 @@ | ... | @@ -145,10 +145,10 @@ |
| "pretty-bytes": "5.3.0", | "pretty-bytes": "5.3.0", | ||
| "pretty-ms": "7.0.0", | "pretty-ms": "7.0.0", | ||
| "random-seed": "0.3.0", | "random-seed": "0.3.0", | ||
| "react": "17.0.2", | "react": "18.0.0", | ||
| "react-18": "npm:react@18.0.0", | "react-17": "npm:react@17.0.2", | ||
| "react-dom": "17.0.2", | "react-dom": "18.0.0", | ||
| "react-dom-18": "npm:react-dom@18.0.0", | "react-dom-17": "npm:react-dom@17.0.2", | ||
| "react-ssr-prepass": "1.0.8", | "react-ssr-prepass": "1.0.8", | ||
| "react-virtualized": "9.22.3", | "react-virtualized": "9.22.3", | ||
| "relay-compiler": "13.0.2", | "relay-compiler": "13.0.2", | ||
| ... | ... |
Please
register
or
sign in
to comment