Skip to content

Commit

Permalink
chore: Update the remaining react packages to use React 18 (#25278)
Browse files Browse the repository at this point in the history
* bump more peer dependencies to keep repo consistent

* change files

* Apply suggestions from code review

Co-authored-by: Makoto Morimoto <Humberto.Morimoto@microsoft.com>

Co-authored-by: Makoto Morimoto <Humberto.Morimoto@microsoft.com>
  • Loading branch information
micahgodbolt and khmakoto authored Oct 19, 2022
1 parent 61a6356 commit 772f9e3
Show file tree
Hide file tree
Showing 34 changed files with 145 additions and 40 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: Bump react peer dependency to react 18.",
"packageName": "@fluentui/foundation-legacy",
"email": "mgodbolt@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: Bump react peer dependency to react 18.",
"packageName": "@fluentui/react-conformance",
"email": "mgodbolt@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "chore: Bump react peer dependency to react 18.",
"packageName": "@fluentui/react-conformance-griffel",
"email": "mgodbolt@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: Bump react peer dependency to react 18.",
"packageName": "@fluentui/react-file-type-icons",
"email": "mgodbolt@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: Bump react peer dependency to react 18.",
"packageName": "@fluentui/react-focus",
"email": "mgodbolt@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: Bump react peer dependency to react 18.",
"packageName": "@fluentui/react-hooks",
"email": "mgodbolt@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: Bump react peer dependency to react 18.",
"packageName": "@fluentui/react-icons-mdl2",
"email": "mgodbolt@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: Bump react peer dependency to react 18.",
"packageName": "@fluentui/react-portal-compat",
"email": "mgodbolt@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: Bump react peer dependency to react 18.",
"packageName": "@fluentui/react-portal-compat-context",
"email": "mgodbolt@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: Bump react peer dependency to react 18.",
"packageName": "@fluentui/react-shared-contexts",
"email": "mgodbolt@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: Bump react peer dependency to react 18.",
"packageName": "@fluentui/react-utilities",
"email": "mgodbolt@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: Bump react peer dependency to react 18.",
"packageName": "@fluentui/react-window-provider",
"email": "mgodbolt@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: Bump react peer dependency to react 18.",
"packageName": "@fluentui/test-utilities",
"email": "mgodbolt@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: Bump react peer dependency to react 18.",
"packageName": "@fluentui/theme",
"email": "mgodbolt@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: Bump react peer dependency to react 18.",
"packageName": "@fluentui/utilities",
"email": "mgodbolt@microsoft.com",
"dependentChangeType": "patch"
}
2 changes: 1 addition & 1 deletion packages/a11y-testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"jest": "^26.0.0",
"@testing-library/react": "^12.0.0",
"@testing-library/user-event": "^13.0.0",
"react": ">=16.8.0 <18.0.0"
"react": ">=16.8.0 <19.0.0"
}
}
4 changes: 2 additions & 2 deletions packages/foundation-legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"tslib": "^2.1.0"
},
"peerDependencies": {
"@types/react": ">=16.8.0 <18.0.0",
"react": ">=16.8.0 <18.0.0"
"@types/react": ">=16.8.0 <19.0.0",
"react": ">=16.8.0 <19.0.0"
},
"exports": {
".": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"@fluentui/react-conformance": "*"
},
"peerDependencies": {
"@types/react": ">=16.8.0 <18.0.0",
"@types/react-dom": ">=16.8.0 <18.0.0",
"@types/react": ">=16.8.0 <19.0.0",
"@types/react-dom": ">=16.8.0 <19.0.0",
"typescript": "^4.3.0",
"@fluentui/react-conformance": "^0.15.3"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"tslib": "^2.1.0"
},
"peerDependencies": {
"@types/react": ">=16.8.0 <18.0.0",
"react": ">=16.8.0 <18.0.0"
"@types/react": ">=16.8.0 <19.0.0",
"react": ">=16.8.0 <19.0.0"
},
"beachball": {
"disallowedChangeTypes": [
Expand Down
4 changes: 2 additions & 2 deletions packages/react-components/react-portal-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
},
"peerDependencies": {
"@fluentui/react-components": "^9.5.1",
"@types/react": ">=16.8.0 <18.0.0",
"react": ">=16.8.0 <18.0.0"
"@types/react": ">=16.8.0 <19.0.0",
"react": ">=16.8.0 <19.0.0"
},
"beachball": {
"disallowedChangeTypes": [
Expand Down
4 changes: 2 additions & 2 deletions packages/react-components/react-shared-contexts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"tslib": "^2.1.0"
},
"peerDependencies": {
"@types/react": ">=16.8.0 <18.0.0",
"react": ">=16.8.0 <18.0.0"
"@types/react": ">=16.8.0 <19.0.0",
"react": ">=16.8.0 <19.0.0"
},
"beachball": {
"disallowedChangeTypes": [
Expand Down
4 changes: 2 additions & 2 deletions packages/react-components/react-storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"tslib": "^2.1.0"
},
"peerDependencies": {
"@types/react": ">=16.8.0 <18.0.0",
"react": ">=16.8.0 <18.0.0",
"@types/react": ">=16.8.0 <19.0.0",
"react": ">=16.8.0 <19.0.0",
"@storybook/addon-knobs": "^6.0.28",
"@storybook/addons": "^6.0.28"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/react-components/react-utilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"tslib": "^2.1.0"
},
"peerDependencies": {
"@types/react": ">=16.8.0 <18.0.0",
"react": ">=16.8.0 <18.0.0"
"@types/react": ">=16.8.0 <19.0.0",
"react": ">=16.8.0 <19.0.0"
},
"beachball": {
"disallowedChangeTypes": [
Expand Down
8 changes: 4 additions & 4 deletions packages/react-conformance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
"tslib": "^2.1.0"
},
"peerDependencies": {
"@types/react": ">=16.8.0 <18.0.0",
"@types/react-dom": ">=16.8.0 <18.0.0",
"@types/react": ">=16.8.0 <19.0.0",
"@types/react-dom": ">=16.8.0 <19.0.0",
"@testing-library/react": "^12.0.0",
"jest": "^26.0.0",
"react": ">=16.8.0 <18.0.0",
"react-dom": ">=16.8.0 <18.0.0",
"react": ">=16.8.0 <19.0.0",
"react-dom": ">=16.8.0 <19.0.0",
"typescript": "^4.3.0"
}
}
4 changes: 2 additions & 2 deletions packages/react-file-type-icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"tslib": "^2.1.0"
},
"peerDependencies": {
"@types/react": ">=16.8.0 <18.0.0",
"react": ">=16.8.0 <18.0.0"
"@types/react": ">=16.8.0 <19.0.0",
"react": ">=16.8.0 <19.0.0"
},
"exports": {
".": {
Expand Down
4 changes: 2 additions & 2 deletions packages/react-focus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"tslib": "^2.1.0"
},
"peerDependencies": {
"@types/react": ">=16.8.0 <18.0.0",
"react": ">=16.8.0 <18.0.0"
"@types/react": ">=16.8.0 <19.0.0",
"react": ">=16.8.0 <19.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/react-hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"tslib": "^2.1.0"
},
"peerDependencies": {
"@types/react": ">=16.8.0 <18.0.0",
"react": ">=16.8.0 <18.0.0"
"@types/react": ">=16.8.0 <19.0.0",
"react": ">=16.8.0 <19.0.0"
},
"exports": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-icons-mdl2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"tslib": "^2.1.0"
},
"peerDependencies": {
"react": ">=16.8.0 <18.0.0"
"react": ">=16.8.0 <19.0.0"
},
"exports": {
".": {
Expand Down
8 changes: 4 additions & 4 deletions packages/react-migration-v8-v9/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
"tslib": "^2.1.0"
},
"peerDependencies": {
"@types/react": ">=16.8.0 <18.0.0",
"@types/react-dom": ">=16.8.0 <18.0.0",
"react": ">=16.8.0 <18.0.0",
"react-dom": ">=16.8.0 <18.0.0"
"@types/react": ">=16.8.0 <19.0.0",
"@types/react-dom": ">=16.8.0 <19.0.0",
"react": ">=16.8.0 <19.0.0",
"react-dom": ">=16.8.0 <19.0.0"
},
"beachball": {
"disallowedChangeTypes": [
Expand Down
4 changes: 2 additions & 2 deletions packages/react-window-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"tslib": "^2.1.0"
},
"peerDependencies": {
"@types/react": ">=16.8.0 <18.0.0",
"react": ">=16.8.0 <18.0.0"
"@types/react": ">=16.8.0 <19.0.0",
"react": ">=16.8.0 <19.0.0"
},
"exports": {
".": {
Expand Down
4 changes: 2 additions & 2 deletions packages/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"tslib": "^2.1.0"
},
"peerDependencies": {
"@types/react": ">=16.8.0 <18.0.0",
"react": ">=16.8.0 <18.0.0"
"@types/react": ">=16.8.0 <19.0.0",
"react": ">=16.8.0 <19.0.0"
}
}
4 changes: 2 additions & 2 deletions packages/test-utilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
"@fluentui/scripts": "^1.0.0"
},
"peerDependencies": {
"@types/react": ">=16.8.0 <18.0.0",
"@types/react": ">=16.8.0 <19.0.0",
"enzyme": "^3.0.0",
"react": ">=16.8.0 <18.0.0",
"react": ">=16.8.0 <19.0.0",
"react-test-renderer": ">=16.3.0 <18.0.0"
}
}
4 changes: 2 additions & 2 deletions packages/theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"tslib": "^2.1.0"
},
"peerDependencies": {
"@types/react": ">=16.8.0 <18.0.0",
"react": ">=16.8.0 <18.0.0"
"@types/react": ">=16.8.0 <19.0.0",
"react": ">=16.8.0 <19.0.0"
},
"exports": {
".": {
Expand Down
4 changes: 2 additions & 2 deletions packages/utilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"tslib": "^2.1.0"
},
"peerDependencies": {
"@types/react": ">=16.8.0 <18.0.0",
"react": ">=16.8.0 <18.0.0"
"@types/react": ">=16.8.0 <19.0.0",
"react": ">=16.8.0 <19.0.0"
},
"exports": {
".": {
Expand Down

0 comments on commit 772f9e3

Please sign in to comment.