From 1135aee88e52596c4461c8e81d6c1622118a7288 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 10 Dec 2024 07:57:45 +0000 Subject: [PATCH 1/2] chore(deps): update react monorepo to v19 --- .../module-federation/mf-host/package.json | 4 +- .../mf-react-component/package.json | 4 +- .../module-federation/mf-remote/package.json | 4 +- .../react-component-bundle-false/package.json | 2 +- examples/react-component-bundle/package.json | 2 +- examples/react-component-umd/package.json | 2 +- .../fragments/base/react-js/package.json | 2 +- .../fragments/base/react-ts/package.json | 2 +- .../template-[react]-[]-js/package.json | 2 +- .../template-[react]-[]-ts/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../template-[react]-[vitest]-js/package.json | 2 +- .../template-[react]-[vitest]-ts/package.json | 2 +- pnpm-lock.yaml | 215 ++++++++++-------- tests/integration/asset/name/package.json | 2 +- .../auto-external/default/package.json | 2 +- .../external-sub-path/package.json | 2 +- .../auto-external/false/package.json | 2 +- .../module-import-warn/package.json | 2 +- .../auto-external/with-externals/package.json | 2 +- .../bundle-false/svgr/package.json | 2 +- tests/integration/umd-globals/package.json | 2 +- .../integration/umd-library-name/package.json | 2 +- tests/package.json | 4 +- website/package.json | 4 +- 28 files changed, 153 insertions(+), 126 deletions(-) diff --git a/examples/module-federation/mf-host/package.json b/examples/module-federation/mf-host/package.json index 17b634921..48e89b5af 100644 --- a/examples/module-federation/mf-host/package.json +++ b/examples/module-federation/mf-host/package.json @@ -8,8 +8,8 @@ "preview": "rsbuild preview" }, "dependencies": { - "react": "^18.3.1", - "react-dom": "^18.3.1" + "react": "^19.0.0", + "react-dom": "^19.0.0" }, "devDependencies": { "@module-federation/rsbuild-plugin": "^0.8.1", diff --git a/examples/module-federation/mf-react-component/package.json b/examples/module-federation/mf-react-component/package.json index c96cdeaae..e47343042 100644 --- a/examples/module-federation/mf-react-component/package.json +++ b/examples/module-federation/mf-react-component/package.json @@ -25,8 +25,8 @@ "@rslib/core": "workspace:*", "@types/react": "^19.0.1", "http-server": "^14.1.1", - "react": "^18.3.1", - "react-dom": "^18.3.1", + "react": "^19.0.0", + "react-dom": "^19.0.0", "storybook": "^8.4.7", "storybook-addon-rslib": "^0.1.5", "storybook-react-rsbuild": "^0.1.5" diff --git a/examples/module-federation/mf-remote/package.json b/examples/module-federation/mf-remote/package.json index 7f1395f94..13aef2fec 100644 --- a/examples/module-federation/mf-remote/package.json +++ b/examples/module-federation/mf-remote/package.json @@ -8,8 +8,8 @@ "preview": "rsbuild preview" }, "dependencies": { - "react": "^18.3.1", - "react-dom": "^18.3.1" + "react": "^19.0.0", + "react-dom": "^19.0.0" }, "devDependencies": { "@module-federation/rsbuild-plugin": "^0.8.1", diff --git a/examples/react-component-bundle-false/package.json b/examples/react-component-bundle-false/package.json index a1b227ac9..34b5374cb 100644 --- a/examples/react-component-bundle-false/package.json +++ b/examples/react-component-bundle-false/package.json @@ -12,7 +12,7 @@ "@rsbuild/plugin-sass": "^1.1.2", "@rslib/core": "workspace:*", "@types/react": "^19.0.1", - "react": "^18.3.1" + "react": "^19.0.0" }, "peerDependencies": { "react": "*" diff --git a/examples/react-component-bundle/package.json b/examples/react-component-bundle/package.json index 67908bd1f..c3be9cc5c 100644 --- a/examples/react-component-bundle/package.json +++ b/examples/react-component-bundle/package.json @@ -12,7 +12,7 @@ "@rsbuild/plugin-sass": "^1.1.2", "@rslib/core": "workspace:*", "@types/react": "^19.0.1", - "react": "^18.3.1" + "react": "^19.0.0" }, "peerDependencies": { "react": "*" diff --git a/examples/react-component-umd/package.json b/examples/react-component-umd/package.json index 07c3c43c6..c6c84f058 100644 --- a/examples/react-component-umd/package.json +++ b/examples/react-component-umd/package.json @@ -11,7 +11,7 @@ "@rsbuild/plugin-sass": "^1.1.2", "@rslib/core": "workspace:*", "@types/react": "^19.0.1", - "react": "^18.3.1" + "react": "^19.0.0" }, "peerDependencies": { "react": "*" diff --git a/packages/create-rslib/fragments/base/react-js/package.json b/packages/create-rslib/fragments/base/react-js/package.json index 6cce58521..d45135fd0 100644 --- a/packages/create-rslib/fragments/base/react-js/package.json +++ b/packages/create-rslib/fragments/base/react-js/package.json @@ -18,7 +18,7 @@ "devDependencies": { "@rsbuild/plugin-react": "^1.0.7", "@rslib/core": "workspace:*", - "react": "^18.3.1" + "react": "^19.0.0" }, "peerDependencies": { "react": ">=16.9.0", diff --git a/packages/create-rslib/fragments/base/react-ts/package.json b/packages/create-rslib/fragments/base/react-ts/package.json index f0e7fdff6..d37e3737d 100644 --- a/packages/create-rslib/fragments/base/react-ts/package.json +++ b/packages/create-rslib/fragments/base/react-ts/package.json @@ -21,7 +21,7 @@ "@rsbuild/plugin-react": "^1.0.7", "@rslib/core": "workspace:*", "@types/react": "^19.0.1", - "react": "^18.3.1", + "react": "^19.0.0", "typescript": "^5.6.3" }, "peerDependencies": { diff --git a/packages/create-rslib/template-[react]-[]-js/package.json b/packages/create-rslib/template-[react]-[]-js/package.json index 6cce58521..d45135fd0 100644 --- a/packages/create-rslib/template-[react]-[]-js/package.json +++ b/packages/create-rslib/template-[react]-[]-js/package.json @@ -18,7 +18,7 @@ "devDependencies": { "@rsbuild/plugin-react": "^1.0.7", "@rslib/core": "workspace:*", - "react": "^18.3.1" + "react": "^19.0.0" }, "peerDependencies": { "react": ">=16.9.0", diff --git a/packages/create-rslib/template-[react]-[]-ts/package.json b/packages/create-rslib/template-[react]-[]-ts/package.json index f0e7fdff6..d37e3737d 100644 --- a/packages/create-rslib/template-[react]-[]-ts/package.json +++ b/packages/create-rslib/template-[react]-[]-ts/package.json @@ -21,7 +21,7 @@ "@rsbuild/plugin-react": "^1.0.7", "@rslib/core": "workspace:*", "@types/react": "^19.0.1", - "react": "^18.3.1", + "react": "^19.0.0", "typescript": "^5.6.3" }, "peerDependencies": { diff --git a/packages/create-rslib/template-[react]-[storybook,vitest]-js/package.json b/packages/create-rslib/template-[react]-[storybook,vitest]-js/package.json index ce2ea69d9..973991525 100644 --- a/packages/create-rslib/template-[react]-[storybook,vitest]-js/package.json +++ b/packages/create-rslib/template-[react]-[storybook,vitest]-js/package.json @@ -32,7 +32,7 @@ "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.1.0", "jsdom": "^25.0.1", - "react": "^18.3.1", + "react": "^19.0.0", "storybook": "^8.4.7", "storybook-addon-rslib": "^0.1.5", "storybook-react-rsbuild": "^0.1.5", diff --git a/packages/create-rslib/template-[react]-[storybook,vitest]-ts/package.json b/packages/create-rslib/template-[react]-[storybook,vitest]-ts/package.json index c00f3662e..25d6e50c3 100644 --- a/packages/create-rslib/template-[react]-[storybook,vitest]-ts/package.json +++ b/packages/create-rslib/template-[react]-[storybook,vitest]-ts/package.json @@ -35,7 +35,7 @@ "@testing-library/react": "^16.1.0", "@types/react": "^19.0.1", "jsdom": "^25.0.1", - "react": "^18.3.1", + "react": "^19.0.0", "storybook": "^8.4.7", "storybook-addon-rslib": "^0.1.5", "storybook-react-rsbuild": "^0.1.5", diff --git a/packages/create-rslib/template-[react]-[storybook]-js/package.json b/packages/create-rslib/template-[react]-[storybook]-js/package.json index d67a668c7..f8163069c 100644 --- a/packages/create-rslib/template-[react]-[storybook]-js/package.json +++ b/packages/create-rslib/template-[react]-[storybook]-js/package.json @@ -28,7 +28,7 @@ "@storybook/blocks": "^8.4.7", "@storybook/react": "^8.4.7", "@storybook/test": "^8.4.7", - "react": "^18.3.1", + "react": "^19.0.0", "storybook": "^8.4.7", "storybook-addon-rslib": "^0.1.5", "storybook-react-rsbuild": "^0.1.5" diff --git a/packages/create-rslib/template-[react]-[storybook]-ts/package.json b/packages/create-rslib/template-[react]-[storybook]-ts/package.json index 8229624f7..7c9fecf33 100644 --- a/packages/create-rslib/template-[react]-[storybook]-ts/package.json +++ b/packages/create-rslib/template-[react]-[storybook]-ts/package.json @@ -31,7 +31,7 @@ "@storybook/react": "^8.4.7", "@storybook/test": "^8.4.7", "@types/react": "^19.0.1", - "react": "^18.3.1", + "react": "^19.0.0", "storybook": "^8.4.7", "storybook-addon-rslib": "^0.1.5", "storybook-react-rsbuild": "^0.1.5", diff --git a/packages/create-rslib/template-[react]-[vitest]-js/package.json b/packages/create-rslib/template-[react]-[vitest]-js/package.json index b64e02eef..30b3f12ce 100644 --- a/packages/create-rslib/template-[react]-[vitest]-js/package.json +++ b/packages/create-rslib/template-[react]-[vitest]-js/package.json @@ -22,7 +22,7 @@ "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.1.0", "jsdom": "^25.0.1", - "react": "^18.3.1", + "react": "^19.0.0", "vitest": "^2.1.8" }, "peerDependencies": { diff --git a/packages/create-rslib/template-[react]-[vitest]-ts/package.json b/packages/create-rslib/template-[react]-[vitest]-ts/package.json index 3569fa68b..264a22a85 100644 --- a/packages/create-rslib/template-[react]-[vitest]-ts/package.json +++ b/packages/create-rslib/template-[react]-[vitest]-ts/package.json @@ -25,7 +25,7 @@ "@testing-library/react": "^16.1.0", "@types/react": "^19.0.1", "jsdom": "^25.0.1", - "react": "^18.3.1", + "react": "^19.0.0", "typescript": "^5.6.3", "vitest": "^2.1.8" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b3da280c2..3483bc41a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -80,15 +80,15 @@ importers: examples/module-federation/mf-host: dependencies: react: - specifier: ^18.3.1 - version: 18.3.1 + specifier: ^19.0.0 + version: 19.0.0 react-dom: - specifier: ^18.3.1 - version: 18.3.1(react@18.3.1) + specifier: ^19.0.0 + version: 19.0.0(react@19.0.0) devDependencies: '@module-federation/rsbuild-plugin': specifier: ^0.8.1 - version: 0.8.1(@module-federation/enhanced@0.8.1(@rspack/core@1.1.5(@swc/helpers@0.5.15))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.6.3)(vue-tsc@2.1.10(typescript@5.6.3))(webpack@5.96.1))(@rsbuild/core@1.1.9) + version: 0.8.1(@module-federation/enhanced@0.8.1(@rspack/core@1.1.5(@swc/helpers@0.5.15))(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(typescript@5.6.3)(vue-tsc@2.1.10(typescript@5.6.3))(webpack@5.96.1))(@rsbuild/core@1.1.9) '@rsbuild/core': specifier: ~1.1.9 version: 1.1.9 @@ -109,13 +109,13 @@ importers: devDependencies: '@module-federation/enhanced': specifier: ^0.8.1 - version: 0.8.1(@rspack/core@1.1.5(@swc/helpers@0.5.15))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.6.3)(vue-tsc@2.1.10(typescript@5.6.3))(webpack@5.96.1) + version: 0.8.1(@rspack/core@1.1.5(@swc/helpers@0.5.15))(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(typescript@5.6.3)(vue-tsc@2.1.10(typescript@5.6.3))(webpack@5.96.1) '@module-federation/rsbuild-plugin': specifier: ^0.8.1 - version: 0.8.1(@module-federation/enhanced@0.8.1(@rspack/core@1.1.5(@swc/helpers@0.5.15))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.6.3)(vue-tsc@2.1.10(typescript@5.6.3))(webpack@5.96.1))(@rsbuild/core@1.1.9) + version: 0.8.1(@module-federation/enhanced@0.8.1(@rspack/core@1.1.5(@swc/helpers@0.5.15))(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(typescript@5.6.3)(vue-tsc@2.1.10(typescript@5.6.3))(webpack@5.96.1))(@rsbuild/core@1.1.9) '@module-federation/storybook-addon': specifier: ^3.0.12 - version: 3.0.12(@rsbuild/core@1.1.9)(@rspack/core@1.1.5(@swc/helpers@0.5.15))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.6.3)(vue-tsc@2.1.10(typescript@5.6.3))(webpack-virtual-modules@0.6.2)(webpack@5.96.1) + version: 3.0.12(@rsbuild/core@1.1.9)(@rspack/core@1.1.5(@swc/helpers@0.5.15))(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(typescript@5.6.3)(vue-tsc@2.1.10(typescript@5.6.3))(webpack-virtual-modules@0.6.2)(webpack@5.96.1) '@rsbuild/plugin-react': specifier: ^1.1.0 version: 1.1.0(@rsbuild/core@1.1.9) @@ -129,11 +129,11 @@ importers: specifier: ^14.1.1 version: 14.1.1 react: - specifier: ^18.3.1 - version: 18.3.1 + specifier: ^19.0.0 + version: 19.0.0 react-dom: - specifier: ^18.3.1 - version: 18.3.1(react@18.3.1) + specifier: ^19.0.0 + version: 19.0.0(react@19.0.0) storybook: specifier: ^8.4.7 version: 8.4.7(prettier@3.4.2) @@ -142,20 +142,20 @@ importers: version: 0.1.5(@rsbuild/core@1.1.9)(@rslib/core@packages+core)(storybook-builder-rsbuild@0.1.5(@rsbuild/core@1.1.9)(@types/react@19.0.1)(storybook@8.4.7(prettier@3.4.2))(typescript@5.6.3)(webpack-sources@3.2.3))(typescript@5.6.3) storybook-react-rsbuild: specifier: ^0.1.5 - version: 0.1.5(@rsbuild/core@1.1.9)(@types/react@19.0.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(rollup@4.18.1)(storybook@8.4.7(prettier@3.4.2))(typescript@5.6.3)(webpack-sources@3.2.3)(webpack@5.96.1) + version: 0.1.5(@rsbuild/core@1.1.9)(@types/react@19.0.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(rollup@4.18.1)(storybook@8.4.7(prettier@3.4.2))(typescript@5.6.3)(webpack-sources@3.2.3)(webpack@5.96.1) examples/module-federation/mf-remote: dependencies: react: - specifier: ^18.3.1 - version: 18.3.1 + specifier: ^19.0.0 + version: 19.0.0 react-dom: - specifier: ^18.3.1 - version: 18.3.1(react@18.3.1) + specifier: ^19.0.0 + version: 19.0.0(react@19.0.0) devDependencies: '@module-federation/rsbuild-plugin': specifier: ^0.8.1 - version: 0.8.1(@module-federation/enhanced@0.8.1(@rspack/core@1.1.5(@swc/helpers@0.5.15))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.6.3)(vue-tsc@2.1.10(typescript@5.6.3))(webpack@5.96.1))(@rsbuild/core@1.1.9) + version: 0.8.1(@module-federation/enhanced@0.8.1(@rspack/core@1.1.5(@swc/helpers@0.5.15))(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(typescript@5.6.3)(vue-tsc@2.1.10(typescript@5.6.3))(webpack@5.96.1))(@rsbuild/core@1.1.9) '@rsbuild/core': specifier: ~1.1.9 version: 1.1.9 @@ -202,8 +202,8 @@ importers: specifier: ^19.0.1 version: 19.0.1 react: - specifier: ^18.3.1 - version: 18.3.1 + specifier: ^19.0.0 + version: 19.0.0 examples/react-component-bundle-false: devDependencies: @@ -220,8 +220,8 @@ importers: specifier: ^19.0.1 version: 19.0.1 react: - specifier: ^18.3.1 - version: 18.3.1 + specifier: ^19.0.0 + version: 19.0.0 examples/react-component-umd: devDependencies: @@ -238,8 +238,8 @@ importers: specifier: ^19.0.1 version: 19.0.1 react: - specifier: ^18.3.1 - version: 18.3.1 + specifier: ^19.0.0 + version: 19.0.0 examples/vue-component-bundle: devDependencies: @@ -372,18 +372,18 @@ importers: tests: dependencies: react: - specifier: ^18.3.1 - version: 18.3.1 + specifier: ^19.0.0 + version: 19.0.0 react-dom: - specifier: ^18.3.1 - version: 18.3.1(react@18.3.1) + specifier: ^19.0.0 + version: 19.0.0(react@19.0.0) devDependencies: '@codspeed/vitest-plugin': specifier: ^3.1.1 version: 3.1.1(vite@5.3.3(@types/node@22.8.1)(terser@5.31.6))(vitest@2.1.8(@types/node@22.8.1)(terser@5.31.6)) '@module-federation/rsbuild-plugin': specifier: ^0.8.1 - version: 0.8.1(@module-federation/enhanced@0.8.1(@rspack/core@1.1.5(@swc/helpers@0.5.15))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.6.3)(vue-tsc@2.1.10(typescript@5.6.3))(webpack@5.96.1))(@rsbuild/core@1.1.9) + version: 0.8.1(@module-federation/enhanced@0.8.1(@rspack/core@1.1.5(@swc/helpers@0.5.15))(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(typescript@5.6.3)(vue-tsc@2.1.10(typescript@5.6.3))(webpack@5.96.1))(@rsbuild/core@1.1.9) '@playwright/test': specifier: 1.49.0 version: 1.49.0 @@ -452,8 +452,8 @@ importers: tests/integration/asset/name: dependencies: react: - specifier: ^18.3.1 - version: 18.3.1 + specifier: ^19.0.0 + version: 19.0.0 devDependencies: '@rsbuild/plugin-react': specifier: ^1.1.0 @@ -492,14 +492,14 @@ importers: specifier: 8.1.1 version: 8.1.1 react: - specifier: ^18.3.1 - version: 18.3.1 + specifier: ^19.0.0 + version: 19.0.0 tests/integration/auto-external/external-sub-path: dependencies: react: - specifier: ^18.3.1 - version: 18.3.1 + specifier: ^19.0.0 + version: 19.0.0 tests/integration/auto-external/false: dependencies: @@ -507,20 +507,20 @@ importers: specifier: 8.1.1 version: 8.1.1 react: - specifier: ^18.3.1 - version: 18.3.1 + specifier: ^19.0.0 + version: 19.0.0 tests/integration/auto-external/module-import-warn: dependencies: react: - specifier: ^18.3.1 - version: 18.3.1 + specifier: ^19.0.0 + version: 19.0.0 tests/integration/auto-external/with-externals: dependencies: react: - specifier: ^18.3.1 - version: 18.3.1 + specifier: ^19.0.0 + version: 19.0.0 tests/integration/banner-footer: {} @@ -535,8 +535,8 @@ importers: tests/integration/bundle-false/svgr: dependencies: react: - specifier: ^18.3.1 - version: 18.3.1 + specifier: ^19.0.0 + version: 19.0.0 devDependencies: '@rsbuild/plugin-react': specifier: ^1.1.0 @@ -786,7 +786,7 @@ importers: dependencies: '@arco-design/web-react': specifier: ^2.65.0 - version: 2.65.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 2.65.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0) tests/integration/transform-import/lodash: dependencies: @@ -805,8 +805,8 @@ importers: tests/integration/umd-globals: devDependencies: react: - specifier: ^18.3.1 - version: 18.3.1 + specifier: ^19.0.0 + version: 19.0.0 react-aliased: specifier: npm:react@18.3.0 version: react@18.3.0 @@ -814,8 +814,8 @@ importers: tests/integration/umd-library-name: devDependencies: react: - specifier: ^18.3.1 - version: 18.3.1 + specifier: ^19.0.0 + version: 19.0.0 tests/scripts: {} @@ -829,7 +829,7 @@ importers: version: link:../scripts/tsconfig '@rstack-dev/doc-ui': specifier: 1.5.4 - version: 1.5.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 1.5.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0) '@types/node': specifier: ^22.8.1 version: 22.8.1 @@ -840,11 +840,11 @@ importers: specifier: ^19.0.2 version: 19.0.2(@types/react@19.0.1) react: - specifier: ^18.3.1 - version: 18.3.1 + specifier: ^19.0.0 + version: 19.0.0 react-dom: - specifier: ^18.3.1 - version: 18.3.1(react@18.3.1) + specifier: ^19.0.0 + version: 19.0.0(react@19.0.0) rsbuild-plugin-google-analytics: specifier: 1.0.3 version: 1.0.3(@rsbuild/core@1.1.9) @@ -5168,6 +5168,11 @@ packages: peerDependencies: react: ^18.3.1 + react-dom@19.0.0: + resolution: {integrity: sha512-4GV5sHFG0e/0AD4X+ySy6UJd3jVl1iNsNHdpad0qhABJ11twS3TTBnseqsKurKcsNqCEFeGL3uLpVChpIO3QfQ==} + peerDependencies: + react: ^19.0.0 + react-fast-compare@3.2.2: resolution: {integrity: sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==} @@ -5235,6 +5240,10 @@ packages: resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==} engines: {node: '>=0.10.0'} + react@19.0.0: + resolution: {integrity: sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==} + engines: {node: '>=0.10.0'} + read-cache@1.0.0: resolution: {integrity: sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==} @@ -5557,6 +5566,9 @@ packages: scheduler@0.23.2: resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==} + scheduler@0.25.0: + resolution: {integrity: sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA==} + schema-utils@3.3.0: resolution: {integrity: sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==} engines: {node: '>= 10.13.0'} @@ -6436,7 +6448,7 @@ snapshots: dependencies: color: 3.2.1 - '@arco-design/web-react@2.65.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@arco-design/web-react@2.65.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0)': dependencies: '@arco-design/color': 0.4.0 '@babel/runtime': 7.24.8 @@ -6446,11 +6458,11 @@ snapshots: dayjs: 1.11.13 lodash: 4.17.21 number-precision: 1.6.0 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - react-focus-lock: 2.13.2(react@18.3.1) + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) + react-focus-lock: 2.13.2(react@19.0.0) react-is: 18.3.1 - react-transition-group: 4.4.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + react-transition-group: 4.4.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0) resize-observer-polyfill: 1.5.1 scroll-into-view-if-needed: 2.2.20 shallowequal: 1.1.0 @@ -7186,13 +7198,13 @@ snapshots: '@types/semver': 7.5.8 semver: 7.6.3 - '@module-federation/data-prefetch@0.8.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@module-federation/data-prefetch@0.8.1(react-dom@19.0.0(react@19.0.0))(react@19.0.0)': dependencies: '@module-federation/runtime': 0.8.1 '@module-federation/sdk': 0.8.1 fs-extra: 9.1.0 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) '@module-federation/dts-plugin@0.8.1(typescript@5.6.3)(vue-tsc@2.1.10(typescript@5.6.3))': dependencies: @@ -7221,10 +7233,10 @@ snapshots: - supports-color - utf-8-validate - '@module-federation/enhanced@0.8.1(@rspack/core@1.1.5(@swc/helpers@0.5.15))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.6.3)(vue-tsc@2.1.10(typescript@5.6.3))(webpack@5.96.1)': + '@module-federation/enhanced@0.8.1(@rspack/core@1.1.5(@swc/helpers@0.5.15))(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(typescript@5.6.3)(vue-tsc@2.1.10(typescript@5.6.3))(webpack@5.96.1)': dependencies: '@module-federation/bridge-react-webpack-plugin': 0.8.1 - '@module-federation/data-prefetch': 0.8.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@module-federation/data-prefetch': 0.8.1(react-dom@19.0.0(react@19.0.0))(react@19.0.0) '@module-federation/dts-plugin': 0.8.1(typescript@5.6.3)(vue-tsc@2.1.10(typescript@5.6.3)) '@module-federation/managers': 0.8.1 '@module-federation/manifest': 0.8.1(typescript@5.6.3)(vue-tsc@2.1.10(typescript@5.6.3)) @@ -7269,9 +7281,9 @@ snapshots: - utf-8-validate - vue-tsc - '@module-federation/rsbuild-plugin@0.8.1(@module-federation/enhanced@0.8.1(@rspack/core@1.1.5(@swc/helpers@0.5.15))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.6.3)(vue-tsc@2.1.10(typescript@5.6.3))(webpack@5.96.1))(@rsbuild/core@1.1.9)': + '@module-federation/rsbuild-plugin@0.8.1(@module-federation/enhanced@0.8.1(@rspack/core@1.1.5(@swc/helpers@0.5.15))(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(typescript@5.6.3)(vue-tsc@2.1.10(typescript@5.6.3))(webpack@5.96.1))(@rsbuild/core@1.1.9)': dependencies: - '@module-federation/enhanced': 0.8.1(@rspack/core@1.1.5(@swc/helpers@0.5.15))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.6.3)(vue-tsc@2.1.10(typescript@5.6.3))(webpack@5.96.1) + '@module-federation/enhanced': 0.8.1(@rspack/core@1.1.5(@swc/helpers@0.5.15))(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(typescript@5.6.3)(vue-tsc@2.1.10(typescript@5.6.3))(webpack@5.96.1) '@module-federation/sdk': 0.8.1 '@rsbuild/core': 1.1.9 @@ -7318,9 +7330,9 @@ snapshots: dependencies: isomorphic-rslog: 0.0.6 - '@module-federation/storybook-addon@3.0.12(@rsbuild/core@1.1.9)(@rspack/core@1.1.5(@swc/helpers@0.5.15))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.6.3)(vue-tsc@2.1.10(typescript@5.6.3))(webpack-virtual-modules@0.6.2)(webpack@5.96.1)': + '@module-federation/storybook-addon@3.0.12(@rsbuild/core@1.1.9)(@rspack/core@1.1.5(@swc/helpers@0.5.15))(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(typescript@5.6.3)(vue-tsc@2.1.10(typescript@5.6.3))(webpack-virtual-modules@0.6.2)(webpack@5.96.1)': dependencies: - '@module-federation/enhanced': 0.8.1(@rspack/core@1.1.5(@swc/helpers@0.5.15))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.6.3)(vue-tsc@2.1.10(typescript@5.6.3))(webpack@5.96.1) + '@module-federation/enhanced': 0.8.1(@rspack/core@1.1.5(@swc/helpers@0.5.15))(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(typescript@5.6.3)(vue-tsc@2.1.10(typescript@5.6.3))(webpack@5.96.1) '@module-federation/sdk': 0.8.1 optionalDependencies: '@rsbuild/core': 1.1.9 @@ -7810,9 +7822,9 @@ snapshots: react-helmet-async: 1.3.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react-syntax-highlighter: 15.6.1(react@18.3.1) - '@rstack-dev/doc-ui@1.5.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@rstack-dev/doc-ui@1.5.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)': dependencies: - framer-motion: 11.5.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + framer-motion: 11.5.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0) transitivePeerDependencies: - '@emotion/is-prop-valid' - react @@ -7961,16 +7973,22 @@ snapshots: react-dom: 18.3.1(react@18.3.1) storybook: 8.4.7(prettier@3.4.2) - '@storybook/react@8.4.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(storybook@8.4.7(prettier@3.4.2))(typescript@5.6.3)': + '@storybook/react-dom-shim@8.4.2(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.4.7(prettier@3.4.2))': + dependencies: + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) + storybook: 8.4.7(prettier@3.4.2) + + '@storybook/react@8.4.2(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.4.7(prettier@3.4.2))(typescript@5.6.3)': dependencies: '@storybook/components': 8.4.2(storybook@8.4.7(prettier@3.4.2)) '@storybook/global': 5.0.0 '@storybook/manager-api': 8.4.2(storybook@8.4.7(prettier@3.4.2)) '@storybook/preview-api': 8.4.2(storybook@8.4.7(prettier@3.4.2)) - '@storybook/react-dom-shim': 8.4.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(storybook@8.4.7(prettier@3.4.2)) + '@storybook/react-dom-shim': 8.4.2(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.4.7(prettier@3.4.2)) '@storybook/theming': 8.4.2(storybook@8.4.7(prettier@3.4.2)) - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) storybook: 8.4.7(prettier@3.4.2) optionalDependencies: typescript: 5.6.3 @@ -9645,12 +9663,12 @@ snapshots: forwarded@0.2.0: {} - framer-motion@11.5.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + framer-motion@11.5.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0): dependencies: tslib: 2.8.1 optionalDependencies: - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) fresh@0.5.2: {} @@ -11422,10 +11440,10 @@ snapshots: iconv-lite: 0.4.24 unpipe: 1.0.0 - react-clientside-effect@1.2.6(react@18.3.1): + react-clientside-effect@1.2.6(react@19.0.0): dependencies: '@babel/runtime': 7.24.8 - react: 18.3.1 + react: 19.0.0 react-docgen-typescript@2.2.2(typescript@5.6.3): dependencies: @@ -11452,17 +11470,22 @@ snapshots: react: 18.3.1 scheduler: 0.23.2 + react-dom@19.0.0(react@19.0.0): + dependencies: + react: 19.0.0 + scheduler: 0.25.0 + react-fast-compare@3.2.2: {} - react-focus-lock@2.13.2(react@18.3.1): + react-focus-lock@2.13.2(react@19.0.0): dependencies: '@babel/runtime': 7.24.8 focus-lock: 1.3.5 prop-types: 15.8.1 - react: 18.3.1 - react-clientside-effect: 1.2.6(react@18.3.1) - use-callback-ref: 1.3.2(react@18.3.1) - use-sidecar: 1.1.2(react@18.3.1) + react: 19.0.0 + react-clientside-effect: 1.2.6(react@19.0.0) + use-callback-ref: 1.3.2(react@19.0.0) + use-sidecar: 1.1.2(react@19.0.0) react-helmet-async@1.3.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: @@ -11506,14 +11529,14 @@ snapshots: react: 18.3.1 refractor: 3.6.0 - react-transition-group@4.4.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + react-transition-group@4.4.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0): dependencies: '@babel/runtime': 7.24.8 dom-helpers: 5.2.1 loose-envify: 1.4.0 prop-types: 15.8.1 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) react@18.3.0: dependencies: @@ -11523,6 +11546,8 @@ snapshots: dependencies: loose-envify: 1.4.0 + react@19.0.0: {} + read-cache@1.0.0: dependencies: pify: 2.3.0 @@ -11872,6 +11897,8 @@ snapshots: dependencies: loose-envify: 1.4.0 + scheduler@0.25.0: {} + schema-utils@3.3.0: dependencies: '@types/json-schema': 7.0.15 @@ -12092,18 +12119,18 @@ snapshots: - webpack-cli - webpack-sources - storybook-react-rsbuild@0.1.5(@rsbuild/core@1.1.9)(@types/react@19.0.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(rollup@4.18.1)(storybook@8.4.7(prettier@3.4.2))(typescript@5.6.3)(webpack-sources@3.2.3)(webpack@5.96.1): + storybook-react-rsbuild@0.1.5(@rsbuild/core@1.1.9)(@types/react@19.0.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(rollup@4.18.1)(storybook@8.4.7(prettier@3.4.2))(typescript@5.6.3)(webpack-sources@3.2.3)(webpack@5.96.1): dependencies: '@rollup/pluginutils': 5.1.3(rollup@4.18.1) '@rsbuild/core': 1.1.9 - '@storybook/react': 8.4.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(storybook@8.4.7(prettier@3.4.2))(typescript@5.6.3) + '@storybook/react': 8.4.2(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.4.7(prettier@3.4.2))(typescript@5.6.3) '@storybook/react-docgen-typescript-plugin': 1.0.1(typescript@5.6.3)(webpack@5.96.1) '@types/node': 18.19.64 find-up: 5.0.0 magic-string: 0.30.14 - react: 18.3.1 + react: 19.0.0 react-docgen: 7.1.0 - react-dom: 18.3.1(react@18.3.1) + react-dom: 19.0.0(react@19.0.0) resolve: 1.22.8 storybook: 8.4.7(prettier@3.4.2) storybook-builder-rsbuild: 0.1.5(@rsbuild/core@1.1.9)(@types/react@19.0.1)(storybook@8.4.7(prettier@3.4.2))(typescript@5.6.3)(webpack-sources@3.2.3) @@ -12525,15 +12552,15 @@ snapshots: punycode: 1.4.1 qs: 6.13.0 - use-callback-ref@1.3.2(react@18.3.1): + use-callback-ref@1.3.2(react@19.0.0): dependencies: - react: 18.3.1 + react: 19.0.0 tslib: 2.8.1 - use-sidecar@1.1.2(react@18.3.1): + use-sidecar@1.1.2(react@19.0.0): dependencies: detect-node-es: 1.1.0 - react: 18.3.1 + react: 19.0.0 tslib: 2.8.1 util-deprecate@1.0.2: {} diff --git a/tests/integration/asset/name/package.json b/tests/integration/asset/name/package.json index f590a13fd..544dc66ff 100644 --- a/tests/integration/asset/name/package.json +++ b/tests/integration/asset/name/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "dependencies": { - "react": "^18.3.1" + "react": "^19.0.0" }, "devDependencies": { "@rsbuild/plugin-react": "^1.1.0" diff --git a/tests/integration/auto-external/default/package.json b/tests/integration/auto-external/default/package.json index e36d56212..c37aa4a8a 100644 --- a/tests/integration/auto-external/default/package.json +++ b/tests/integration/auto-external/default/package.json @@ -3,6 +3,6 @@ "private": true, "dependencies": { "ora": "8.1.1", - "react": "^18.3.1" + "react": "^19.0.0" } } diff --git a/tests/integration/auto-external/external-sub-path/package.json b/tests/integration/auto-external/external-sub-path/package.json index 02691a990..c7485a55c 100644 --- a/tests/integration/auto-external/external-sub-path/package.json +++ b/tests/integration/auto-external/external-sub-path/package.json @@ -2,6 +2,6 @@ "name": "auto-external-with-sub-path-test", "private": true, "dependencies": { - "react": "^18.3.1" + "react": "^19.0.0" } } diff --git a/tests/integration/auto-external/false/package.json b/tests/integration/auto-external/false/package.json index 7aa4f5597..5ffbaedd0 100644 --- a/tests/integration/auto-external/false/package.json +++ b/tests/integration/auto-external/false/package.json @@ -3,6 +3,6 @@ "private": true, "dependencies": { "ora": "8.1.1", - "react": "^18.3.1" + "react": "^19.0.0" } } diff --git a/tests/integration/auto-external/module-import-warn/package.json b/tests/integration/auto-external/module-import-warn/package.json index aae6e50b0..13b34dc86 100644 --- a/tests/integration/auto-external/module-import-warn/package.json +++ b/tests/integration/auto-external/module-import-warn/package.json @@ -2,6 +2,6 @@ "name": "module-import-warn", "private": true, "dependencies": { - "react": "^18.3.1" + "react": "^19.0.0" } } diff --git a/tests/integration/auto-external/with-externals/package.json b/tests/integration/auto-external/with-externals/package.json index 8e21d25a1..be496b932 100644 --- a/tests/integration/auto-external/with-externals/package.json +++ b/tests/integration/auto-external/with-externals/package.json @@ -2,6 +2,6 @@ "name": "auto-external-with-externals-test", "private": true, "dependencies": { - "react": "^18.3.1" + "react": "^19.0.0" } } diff --git a/tests/integration/bundle-false/svgr/package.json b/tests/integration/bundle-false/svgr/package.json index 534c04aa5..35915e44a 100644 --- a/tests/integration/bundle-false/svgr/package.json +++ b/tests/integration/bundle-false/svgr/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "dependencies": { - "react": "^18.3.1" + "react": "^19.0.0" }, "devDependencies": { "@rsbuild/plugin-react": "^1.1.0", diff --git a/tests/integration/umd-globals/package.json b/tests/integration/umd-globals/package.json index 930ebb27e..a638569ca 100644 --- a/tests/integration/umd-globals/package.json +++ b/tests/integration/umd-globals/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "private": true, "devDependencies": { - "react": "^18.3.1", + "react": "^19.0.0", "react-aliased": "npm:react@18.3.0" }, "peerDependencies": { diff --git a/tests/integration/umd-library-name/package.json b/tests/integration/umd-library-name/package.json index 9e9067c4b..9eeacde11 100644 --- a/tests/integration/umd-library-name/package.json +++ b/tests/integration/umd-library-name/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "private": true, "devDependencies": { - "react": "^18.3.1" + "react": "^19.0.0" }, "peerDependencies": { "react": "^18.3.1" diff --git a/tests/package.json b/tests/package.json index eb390025c..c9649b620 100644 --- a/tests/package.json +++ b/tests/package.json @@ -7,8 +7,8 @@ "test:e2e": "playwright test --pass-with-no-tests" }, "dependencies": { - "react": "^18.3.1", - "react-dom": "^18.3.1" + "react": "^19.0.0", + "react-dom": "^19.0.0" }, "devDependencies": { "@codspeed/vitest-plugin": "^3.1.1", diff --git a/website/package.json b/website/package.json index 99f6b5b0e..cea7f2824 100644 --- a/website/package.json +++ b/website/package.json @@ -15,8 +15,8 @@ "@types/node": "^22.8.1", "@types/react": "^19.0.1", "@types/react-dom": "^19.0.2", - "react": "^18.3.1", - "react-dom": "^18.3.1", + "react": "^19.0.0", + "react-dom": "^19.0.0", "rsbuild-plugin-google-analytics": "1.0.3", "rspress": "1.37.4", "rspress-plugin-font-open-sans": "1.0.0" From 98dfde841d9075d3f5b177a4fd471ebee2342c9c Mon Sep 17 00:00:00 2001 From: Timeless0911 <1604889533@qq.com> Date: Tue, 10 Dec 2024 15:59:21 +0800 Subject: [PATCH 2/2] chore: update --- examples/react-component-umd/rslib.config.ts | 9 ++++++++- examples/react-component-umd/tsconfig.json | 2 +- tests/e2e/react-component/package.json | 4 +++- tests/e2e/react-component/rsbuild.config.ts | 8 +++++++- 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/examples/react-component-umd/rslib.config.ts b/examples/react-component-umd/rslib.config.ts index 99d083bdb..b5e4971bf 100644 --- a/examples/react-component-umd/rslib.config.ts +++ b/examples/react-component-umd/rslib.config.ts @@ -20,5 +20,12 @@ export default defineConfig({ output: { target: 'web', }, - plugins: [pluginReact(), pluginSass()], + plugins: [ + pluginReact({ + swcReactOptions: { + runtime: 'classic', + }, + }), + pluginSass(), + ], }); diff --git a/examples/react-component-umd/tsconfig.json b/examples/react-component-umd/tsconfig.json index 78ba7070a..2142e121c 100644 --- a/examples/react-component-umd/tsconfig.json +++ b/examples/react-component-umd/tsconfig.json @@ -7,7 +7,7 @@ "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "isolatedModules": true, - "jsx": "react-jsx", + "jsx": "react", "lib": ["DOM", "ESNext"], "moduleResolution": "node", "resolveJsonModule": true, diff --git a/tests/e2e/react-component/package.json b/tests/e2e/react-component/package.json index a1083e0ff..88f379def 100644 --- a/tests/e2e/react-component/package.json +++ b/tests/e2e/react-component/package.json @@ -5,7 +5,9 @@ "scripts": { "dev:bundle": "../../node_modules/.bin/rsbuild dev --environment=bundle", "dev:bundle-false": "../../node_modules/.bin/rsbuild dev --environment=bundleFalse", - "dev:umd": "../../node_modules/.bin/rsbuild dev --environment=umd" + "dev:umd": "pnpm umd:build && pnpm umd:copy && ../../node_modules/.bin/rsbuild dev --environment=umd", + "umd:build": "cd ../../../examples/react-component-umd && pnpm run build", + "umd:copy": "rm -rf ./public && mkdir -p ./public/umd && cp ../../../examples/react-component-umd/dist/umd/index.js ./public/umd/index.js" }, "dependencies": { "@examples/react-component-bundle": "workspace:*", diff --git a/tests/e2e/react-component/rsbuild.config.ts b/tests/e2e/react-component/rsbuild.config.ts index e282fa951..75d709864 100644 --- a/tests/e2e/react-component/rsbuild.config.ts +++ b/tests/e2e/react-component/rsbuild.config.ts @@ -63,5 +63,11 @@ export default defineConfig({ output: { target: 'web', }, - plugins: [pluginReact()], + plugins: [ + pluginReact({ + swcReactOptions: { + runtime: 'classic', + }, + }), + ], });