Skip to content

Commit 1051da4

Browse files
authored
chore(deps): upgrade React to 19.2.0 (#513)
- Upgrade react and react-dom to 19.2.0 - Upgrade @fluentui/react-components to 9.72.7 - Upgrade @fluentui/react-icons to 2.0.315 - Upgrade testing libraries to React 19 compatible versions - Fix React 19 JSX compatibility across all component source files - Update TypeScript JSX transform to react-jsx - Regenerate pnpm-lock.yaml with React 19 dependencies - Fix lint errors - Update snapshot for Slider component
1 parent 7d819dc commit 1051da4

File tree

123 files changed

+3967
-3558
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+3967
-3558
lines changed

components/empty-view/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@
3131
"@axiscommunications/fluent-illustrations": "workspace:*"
3232
},
3333
"devDependencies": {
34-
"@types/react": "^18.3.12",
35-
"@types/react-dom": "^18.3.1",
34+
"@types/react": "^19.2.6",
35+
"@types/react-dom": "^19.2.3",
3636
"esbuild": "^0.25.3",
37-
"react": "^18.2.0",
38-
"react-dom": "^18.2.0",
37+
"react": "^19.2.0",
38+
"react-dom": "^19.2.0",
3939
"typescript": "^5.8.3"
4040
},
4141
"peerDependencies": {
42-
"@fluentui/react-components": "^9.62.0",
43-
"react": ">=16.8.0 <19.0.0",
44-
"react-dom": ">=16.8.0 <19.0.0"
42+
"@fluentui/react-components": "^9.72.7",
43+
"react": ">=16.14.0 <20.0.0",
44+
"react-dom": ">=16.14.0 <20.0.0"
4545
},
4646
"publishConfig": {
4747
"registry": "https://npm.pkg.github.com/"

components/empty-view/src/view.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { PropsWithChildren } from "react";
1+
import { PropsWithChildren } from "react";
22

33
import {
44
Body1,

components/password-input/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@
2626
"lint": "tsc --noEmit && biome check"
2727
},
2828
"devDependencies": {
29-
"@types/react": "^18.3.12",
30-
"@types/react-dom": "^18.3.1",
29+
"@types/react": "^19.2.6",
30+
"@types/react-dom": "^19.2.3",
3131
"esbuild": "^0.25.3",
32-
"react": "^18.2.0",
33-
"react-dom": "^18.2.0",
32+
"react": "^19.2.0",
33+
"react-dom": "^19.2.0",
3434
"typescript": "^5.8.3"
3535
},
3636
"peerDependencies": {
37-
"@fluentui/react-components": "^9.62.0",
38-
"@fluentui/react-icons": "^2.0.297",
39-
"@fluentui/react-utilities": "^9.19.0",
40-
"react": ">=16.8.0 <19.0.0",
41-
"react-dom": ">=16.8.0 <19.0.0"
37+
"@fluentui/react-components": "^9.72.7",
38+
"@fluentui/react-icons": "^2.0.315",
39+
"@fluentui/react-utilities": "^9.25.4",
40+
"react": ">=16.14.0 <20.0.0",
41+
"react-dom": ">=16.14.0 <20.0.0"
4242
},
4343
"publishConfig": {
4444
"registry": "https://npm.pkg.github.com/"

components/slider/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,23 @@
3030
},
3131
"devDependencies": {
3232
"@testing-library/jest-dom": "^6.6.3",
33-
"@testing-library/react": "^14.2.1",
33+
"@testing-library/react": "^16.3.0",
3434
"@testing-library/user-event": "^14.6.1",
35-
"@types/react": "^18.3.12",
36-
"@types/react-dom": "^18.3.1",
35+
"@types/react": "^19.2.6",
36+
"@types/react-dom": "^19.2.3",
3737
"esbuild": "^0.25.3",
3838
"jsdom": "^26.1.0",
39-
"react": "^18.2.0",
40-
"react-dom": "^18.2.0",
39+
"react": "^19.2.0",
40+
"react-dom": "^19.2.0",
4141
"typescript": "^5.8.3",
4242
"vitest": "^3.1.2"
4343
},
4444
"peerDependencies": {
45-
"@fluentui/react-components": "^9.62.0",
46-
"@fluentui/react-icons": "^2.0.297",
47-
"@fluentui/react-utilities": "^9.19.0",
48-
"react": ">=16.8.0 <19.0.0",
49-
"react-dom": ">=16.8.0 <19.0.0"
45+
"@fluentui/react-components": "^9.72.7",
46+
"@fluentui/react-icons": "^2.0.315",
47+
"@fluentui/react-utilities": "^9.25.4",
48+
"react": ">=16.14.0 <20.0.0",
49+
"react-dom": ">=16.14.0 <20.0.0"
5050
},
5151
"publishConfig": {
5252
"registry": "https://npm.pkg.github.com/"

components/slider/src/__snapshots__/range-slider.spec.tsx.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ exports[`range-slider > should render 1`] = `
2525
>
2626
<input
2727
data-index="0"
28-
id="slider-thumb-r0"
28+
id="slider-thumb-_r_0_"
2929
max="100"
3030
min="0"
3131
type="range"
@@ -43,7 +43,7 @@ exports[`range-slider > should render 1`] = `
4343
>
4444
<input
4545
data-index="1"
46-
id="slider-thumb-r1"
46+
id="slider-thumb-_r_1_"
4747
max="100"
4848
min="0"
4949
type="range"
@@ -80,7 +80,7 @@ exports[`range-slider > should render 1`] = `
8080
>
8181
<input
8282
data-index="0"
83-
id="slider-thumb-r0"
83+
id="slider-thumb-_r_0_"
8484
max="100"
8585
min="0"
8686
type="range"
@@ -98,7 +98,7 @@ exports[`range-slider > should render 1`] = `
9898
>
9999
<input
100100
data-index="1"
101-
id="slider-thumb-r1"
101+
id="slider-thumb-_r_1_"
102102
max="100"
103103
min="0"
104104
type="range"

components/slider/src/__snapshots__/slider.spec.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ exports[`slider > should render 1`] = `
2525
>
2626
<input
2727
data-index="0"
28-
id="slider-thumb-r0"
28+
id="slider-thumb-_r_0_"
2929
max="100"
3030
min="0"
3131
type="range"
@@ -62,7 +62,7 @@ exports[`slider > should render 1`] = `
6262
>
6363
<input
6464
data-index="0"
65-
id="slider-thumb-r0"
65+
id="slider-thumb-_r_0_"
6666
max="100"
6767
min="0"
6868
type="range"

components/slider/src/mark/label/render-mark-label.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { getSlots } from "@fluentui/react-utilities";
22

3-
import React from "react";
43
import { MarkLabelSlots, MarkLabelState } from "./mark-label.types";
54

65
export const renderMarkLabel_unstable = (state: MarkLabelState) => {

components/slider/src/mark/render-mark.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { getSlots } from "@fluentui/react-utilities";
22

3-
import React from "react";
43
import { MarkSlots, MarkState } from "./mark.types";
54

65
export const renderMark_unstable = (state: MarkState) => {

components/slider/src/range-slider.spec.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { fireEvent, render } from "@testing-library/react";
22
import userEvent from "@testing-library/user-event";
3-
import React from "react";
43
import { describe, expect, it, vi } from "vitest";
54
import "@testing-library/jest-dom";
65

components/slider/src/render-slider.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import React from "react";
2-
31
import { getSlots } from "@fluentui/react-utilities";
42

53
import { SliderContextProvider } from "./context/slider-context";

0 commit comments

Comments
 (0)