Skip to content

Commit c29a2d3

Browse files
chore(deps): update react monorepo to v19 (major) (#541)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Timeless0911 <[email protected]>
1 parent 3a3d36a commit c29a2d3

File tree

32 files changed

+172
-130
lines changed

32 files changed

+172
-130
lines changed

examples/module-federation/mf-host/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"preview": "rsbuild preview"
99
},
1010
"dependencies": {
11-
"react": "^18.3.1",
12-
"react-dom": "^18.3.1"
11+
"react": "^19.0.0",
12+
"react-dom": "^19.0.0"
1313
},
1414
"devDependencies": {
1515
"@module-federation/rsbuild-plugin": "^0.8.1",

examples/module-federation/mf-react-component/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"@rslib/core": "workspace:*",
2626
"@types/react": "^19.0.1",
2727
"http-server": "^14.1.1",
28-
"react": "^18.3.1",
29-
"react-dom": "^18.3.1",
28+
"react": "^19.0.0",
29+
"react-dom": "^19.0.0",
3030
"storybook": "^8.4.7",
3131
"storybook-addon-rslib": "^0.1.5",
3232
"storybook-react-rsbuild": "^0.1.5"

examples/module-federation/mf-remote/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"preview": "rsbuild preview"
99
},
1010
"dependencies": {
11-
"react": "^18.3.1",
12-
"react-dom": "^18.3.1"
11+
"react": "^19.0.0",
12+
"react-dom": "^19.0.0"
1313
},
1414
"devDependencies": {
1515
"@module-federation/rsbuild-plugin": "^0.8.1",

examples/react-component-bundle-false/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"@rsbuild/plugin-sass": "^1.1.2",
1313
"@rslib/core": "workspace:*",
1414
"@types/react": "^19.0.1",
15-
"react": "^18.3.1"
15+
"react": "^19.0.0"
1616
},
1717
"peerDependencies": {
1818
"react": "*"

examples/react-component-bundle/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"@rsbuild/plugin-sass": "^1.1.2",
1313
"@rslib/core": "workspace:*",
1414
"@types/react": "^19.0.1",
15-
"react": "^18.3.1"
15+
"react": "^19.0.0"
1616
},
1717
"peerDependencies": {
1818
"react": "*"

examples/react-component-umd/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"@rsbuild/plugin-sass": "^1.1.2",
1212
"@rslib/core": "workspace:*",
1313
"@types/react": "^19.0.1",
14-
"react": "^18.3.1"
14+
"react": "^19.0.0"
1515
},
1616
"peerDependencies": {
1717
"react": "*"

examples/react-component-umd/rslib.config.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,12 @@ export default defineConfig({
2020
output: {
2121
target: 'web',
2222
},
23-
plugins: [pluginReact(), pluginSass()],
23+
plugins: [
24+
pluginReact({
25+
swcReactOptions: {
26+
runtime: 'classic',
27+
},
28+
}),
29+
pluginSass(),
30+
],
2431
});

examples/react-component-umd/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"esModuleInterop": true,
88
"forceConsistentCasingInFileNames": true,
99
"isolatedModules": true,
10-
"jsx": "react-jsx",
10+
"jsx": "react",
1111
"lib": ["DOM", "ESNext"],
1212
"moduleResolution": "node",
1313
"resolveJsonModule": true,

packages/create-rslib/fragments/base/react-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"devDependencies": {
1919
"@rsbuild/plugin-react": "^1.0.7",
2020
"@rslib/core": "workspace:*",
21-
"react": "^18.3.1"
21+
"react": "^19.0.0"
2222
},
2323
"peerDependencies": {
2424
"react": ">=16.9.0",

packages/create-rslib/fragments/base/react-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@rsbuild/plugin-react": "^1.0.7",
2222
"@rslib/core": "workspace:*",
2323
"@types/react": "^19.0.1",
24-
"react": "^18.3.1",
24+
"react": "^19.0.0",
2525
"typescript": "^5.6.3"
2626
},
2727
"peerDependencies": {

packages/create-rslib/template-[react]-[]-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"devDependencies": {
1919
"@rsbuild/plugin-react": "^1.0.7",
2020
"@rslib/core": "workspace:*",
21-
"react": "^18.3.1"
21+
"react": "^19.0.0"
2222
},
2323
"peerDependencies": {
2424
"react": ">=16.9.0",

packages/create-rslib/template-[react]-[]-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@rsbuild/plugin-react": "^1.0.7",
2222
"@rslib/core": "workspace:*",
2323
"@types/react": "^19.0.1",
24-
"react": "^18.3.1",
24+
"react": "^19.0.0",
2525
"typescript": "^5.6.3"
2626
},
2727
"peerDependencies": {

packages/create-rslib/template-[react]-[storybook,vitest]-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@testing-library/jest-dom": "^6.6.3",
3333
"@testing-library/react": "^16.1.0",
3434
"jsdom": "^25.0.1",
35-
"react": "^18.3.1",
35+
"react": "^19.0.0",
3636
"storybook": "^8.4.7",
3737
"storybook-addon-rslib": "^0.1.5",
3838
"storybook-react-rsbuild": "^0.1.5",

packages/create-rslib/template-[react]-[storybook,vitest]-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"@testing-library/react": "^16.1.0",
3636
"@types/react": "^19.0.1",
3737
"jsdom": "^25.0.1",
38-
"react": "^18.3.1",
38+
"react": "^19.0.0",
3939
"storybook": "^8.4.7",
4040
"storybook-addon-rslib": "^0.1.5",
4141
"storybook-react-rsbuild": "^0.1.5",

packages/create-rslib/template-[react]-[storybook]-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@storybook/blocks": "^8.4.7",
2929
"@storybook/react": "^8.4.7",
3030
"@storybook/test": "^8.4.7",
31-
"react": "^18.3.1",
31+
"react": "^19.0.0",
3232
"storybook": "^8.4.7",
3333
"storybook-addon-rslib": "^0.1.5",
3434
"storybook-react-rsbuild": "^0.1.5"

packages/create-rslib/template-[react]-[storybook]-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@storybook/react": "^8.4.7",
3232
"@storybook/test": "^8.4.7",
3333
"@types/react": "^19.0.1",
34-
"react": "^18.3.1",
34+
"react": "^19.0.0",
3535
"storybook": "^8.4.7",
3636
"storybook-addon-rslib": "^0.1.5",
3737
"storybook-react-rsbuild": "^0.1.5",

packages/create-rslib/template-[react]-[vitest]-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@testing-library/jest-dom": "^6.6.3",
2323
"@testing-library/react": "^16.1.0",
2424
"jsdom": "^25.0.1",
25-
"react": "^18.3.1",
25+
"react": "^19.0.0",
2626
"vitest": "^2.1.8"
2727
},
2828
"peerDependencies": {

packages/create-rslib/template-[react]-[vitest]-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@testing-library/react": "^16.1.0",
2626
"@types/react": "^19.0.1",
2727
"jsdom": "^25.0.1",
28-
"react": "^18.3.1",
28+
"react": "^19.0.0",
2929
"typescript": "^5.6.3",
3030
"vitest": "^2.1.8"
3131
},

0 commit comments

Comments
 (0)