From 429ef634e31477cfdbafd9236e639f9215c70d12 Mon Sep 17 00:00:00 2001 From: eps1lon Date: Mon, 17 Jun 2024 21:19:02 +0200 Subject: [PATCH] Revert "Enforce install of React version with fixed `exports` field" This reverts commit 4a8645e91025eab59de516cfeeb9bcaf1ae0a26f. 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. --- packages/create-next-app/templates/index.ts | 4 ++-- packages/next/package.json | 4 ++-- test/e2e/next-test/first-time-setup-js/package.json | 4 ++-- test/e2e/next-test/first-time-setup-ts/package.json | 4 ++-- test/lib/next-modes/base.ts | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/create-next-app/templates/index.ts b/packages/create-next-app/templates/index.ts index 7523e1050f9035..1d54f8ae0e63cf 100644 --- a/packages/create-next-app/templates/index.ts +++ b/packages/create-next-app/templates/index.ts @@ -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: {}, diff --git a/packages/next/package.json b/packages/next/package.json index 381197601ca576..d4a505750418f7 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -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": { diff --git a/test/e2e/next-test/first-time-setup-js/package.json b/test/e2e/next-test/first-time-setup-js/package.json index d2f932479481c0..52f5ddec3d6d31 100644 --- a/test/e2e/next-test/first-time-setup-js/package.json +++ b/test/e2e/next-test/first-time-setup-js/package.json @@ -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" } } diff --git a/test/e2e/next-test/first-time-setup-ts/package.json b/test/e2e/next-test/first-time-setup-ts/package.json index f398216043edf6..b63b0017400507 100644 --- a/test/e2e/next-test/first-time-setup-ts/package.json +++ b/test/e2e/next-test/first-time-setup-ts/package.json @@ -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", diff --git a/test/lib/next-modes/base.ts b/test/lib/next-modes/base.ts index 64f6e6db55d76c..b767dfd628fe17 100644 --- a/test/lib/next-modes/base.ts +++ b/test/lib/next-modes/base.ts @@ -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,