Skip to content

Commit

Permalink
Revert "Enforce install of React version with fixed exports field"
Browse files Browse the repository at this point in the history
This reverts commit 4a8645e.

rc.0 does not use Browser APIs in the browser build so we can continue using it in tests.
rc.1 should probably include the fix where `edge-light` is preferred over `browser` as a perf fix.
  • Loading branch information
eps1lon committed Jun 17, 2024
1 parent 23dfa75 commit 429ef63
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions packages/create-next-app/templates/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ export const installTemplate = async ({
* Default dependencies.
*/
dependencies: {
react: "19.0.0-rc-dfd30974ab-20240613",
"react-dom": "19.0.0-rc-dfd30974ab-20240613",
react: "19.0.0-rc.0",
"react-dom": "19.0.0-rc.0",
next: version,
},
devDependencies: {},
Expand Down
4 changes: 2 additions & 2 deletions packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@
"@opentelemetry/api": "^1.1.0",
"@playwright/test": "^1.41.2",
"babel-plugin-react-compiler": "*",
"react": "19.0.0-rc-dfd30974ab-20240613",
"react-dom": "19.0.0-rc-dfd30974ab-20240613",
"react": "19.0.0-rc.0",
"react-dom": "19.0.0-rc.0",
"sass": "^1.3.0"
},
"peerDependenciesMeta": {
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/next-test/first-time-setup-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"dependencies": {
"next": "canary",
"react": "19.0.0-rc-dfd30974ab-20240613",
"react-dom": "19.0.0-rc-dfd30974ab-20240613"
"react": "19.0.0-rc.0",
"react-dom": "19.0.0-rc.0"
}
}
4 changes: 2 additions & 2 deletions test/e2e/next-test/first-time-setup-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
},
"dependencies": {
"next": "canary",
"react": "19.0.0-rc-dfd30974ab-20240613",
"react-dom": "19.0.0-rc-dfd30974ab-20240613"
"react": "19.0.0-rc.0",
"react-dom": "19.0.0-rc.0"
},
"devDependencies": {
"@types/react": "^18",
Expand Down
2 changes: 1 addition & 1 deletion test/lib/next-modes/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export class NextInstance {
)

const reactVersion =
process.env.NEXT_TEST_REACT_VERSION || '19.0.0-rc-dfd30974ab-20240613'
process.env.NEXT_TEST_REACT_VERSION || '19.0.0-rc.0'
const finalDependencies = {
react: reactVersion,
'react-dom': reactVersion,
Expand Down

0 comments on commit 429ef63

Please sign in to comment.