Skip to content

Commit

Permalink
chore(deps): update react monorepo to ~18.3.0 (#16279)
Browse files Browse the repository at this point in the history
* chore(deps): update react monorepo to ~18.3.0

* fix: testing if the build error is related to typescript

* fix: fixed type error in the component level

* fix: updated @testing-library/react to 15.0.6 to fix act warning

* fix: replace import react-dom/test-utils with react

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: guidari <[email protected]>
  • Loading branch information
renovate[bot] and guidari authored Jun 10, 2024
1 parent 3c087b2 commit 4d35ae2
Show file tree
Hide file tree
Showing 18 changed files with 46 additions and 46 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
"postinstall": "husky"
},
"resolutions": {
"@types/react": "~18.2.33",
"@types/react": "~18.3.0",
"@types/prop-types": "15.7.12",
"ast-types": "^0.14.0",
"node-sass": "^9.0.0",
"react": "~18.2.0",
"react-dom": "~18.2.0",
"react-is": "~18.2.0"
"react": "~18.3.0",
"react-dom": "~18.3.0",
"react-is": "~18.3.0"
},
"devDependencies": {
"@babel/core": "^7.18.2",
Expand All @@ -53,7 +53,7 @@
"@percy/playwright": "^1.0.4",
"@playwright/test": "^1.36.2",
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^15.0.0",
"@testing-library/react": "^15.0.6",
"@testing-library/user-event": "^14.4.3",
"@types/react-is": "~18.2.0",
"accessibility-checker": "^3.1.48",
Expand Down
3 changes: 2 additions & 1 deletion packages/react/src/components/ComboBox/ComboBox-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ import {
generateGenericItem,
} from '../ListBox/test-helpers';
import ComboBox from '../ComboBox';
import { act } from 'react-dom/test-utils';
import { act } from 'react';

import { Slug } from '../Slug';

const findInputNode = () => screen.getByRole('combobox');
Expand Down
3 changes: 2 additions & 1 deletion packages/react/src/components/Tabs/Tabs-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import { Tabs, Tab, TabPanel, TabPanels, TabList } from './Tabs';
import { act } from 'react-dom/test-utils';
import { act } from 'react';

import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import * as hooks from '../../internal/useMatchMedia';
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/UIShell/HeaderMenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const HeaderMenuItem: HeaderMenuItemComponent = forwardRef(
</li>
);
}
);
) as HeaderMenuItemComponent;

HeaderMenuItem.displayName = 'HeaderMenuItem';
HeaderMenuItem.propTypes = {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/UIShell/SideNavLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const SideNavLink: SideNavLinkComponent = forwardRef(function SideNavLink<
</Link>
</SideNavItem>
);
});
}) as SideNavLinkComponent;

SideNavLink.displayName = 'SideNavLink';
SideNavLink.propTypes = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

import { render } from '@testing-library/react';
import React from 'react';
import { act } from 'react-dom/test-utils';
import { act } from 'react';

import { HeaderContainer } from '../';

describe('HeaderContainer', () => {
Expand Down
3 changes: 2 additions & 1 deletion packages/react/src/internal/__tests__/useMatchMedia-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

import { render } from '@testing-library/react';
import React from 'react';
import { act } from 'react-dom/test-utils';
import { act } from 'react';

import { useMatchMedia } from '../useMatchMedia';

describe('useMatchMedia', () => {
Expand Down
66 changes: 31 additions & 35 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6795,17 +6795,21 @@ __metadata:
languageName: node
linkType: hard

"@testing-library/react@npm:^15.0.0":
version: 15.0.2
resolution: "@testing-library/react@npm:15.0.2"
"@testing-library/react@npm:^15.0.6":
version: 15.0.7
resolution: "@testing-library/react@npm:15.0.7"
dependencies:
"@babel/runtime": "npm:^7.12.5"
"@testing-library/dom": "npm:^10.0.0"
"@types/react-dom": "npm:^18.0.0"
peerDependencies:
"@types/react": ^18.0.0
react: ^18.0.0
react-dom: ^18.0.0
checksum: 10/6327e465733cec9455792acee7781d1437f7494ddbb976ca72e07446daaf8e7fe5dadd27d05690f09e8d4adce651984ed9aeca4ede9b87bf69b172f450085ede
peerDependenciesMeta:
"@types/react":
optional: true
checksum: 10/a9342ad09b019b0f99688fb50265899bc93adfe23c22aa6743fd920635b43fdc66877e66d95f240923aa6f7d3aa360837f5b053fb363a31975788974dff7bc93
languageName: node
linkType: hard

Expand Down Expand Up @@ -7347,14 +7351,13 @@ __metadata:
languageName: node
linkType: hard

"@types/react@npm:~18.2.33":
version: 18.2.33
resolution: "@types/react@npm:18.2.33"
"@types/react@npm:~18.3.0":
version: 18.3.1
resolution: "@types/react@npm:18.3.1"
dependencies:
"@types/prop-types": "npm:*"
"@types/scheduler": "npm:*"
csstype: "npm:^3.0.2"
checksum: 10/7f84dcf70eed3644973c7a47a63669d9e9ecc8d15b331fb272940a5c7cc322df11995eeeae1edfab5c278083cc3527477aa682c79f26667cfe8cd74481621884
checksum: 10/baa6b8a75c471c89ebf3477b4feab57102ced25f0c1e553dd04ef6a1f0def28d5e0172fa626a631f22e223f840b5aaa2403b2d4bb671c83c5a9d6c7ae39c7a05
languageName: node
linkType: hard

Expand All @@ -7381,13 +7384,6 @@ __metadata:
languageName: node
linkType: hard

"@types/scheduler@npm:*":
version: 0.16.2
resolution: "@types/scheduler@npm:0.16.2"
checksum: 10/b6b4dcfeae6deba2e06a70941860fb1435730576d3689225a421280b7742318d1548b3d22c1f66ab68e414f346a9542f29240bc955b6332c5b11e561077583bc
languageName: node
linkType: hard

"@types/semver@npm:^7.3.12, @types/semver@npm:^7.3.4":
version: 7.5.0
resolution: "@types/semver@npm:7.5.0"
Expand Down Expand Up @@ -9889,7 +9885,7 @@ __metadata:
"@percy/playwright": "npm:^1.0.4"
"@playwright/test": "npm:^1.36.2"
"@testing-library/jest-dom": "npm:^6.0.0"
"@testing-library/react": "npm:^15.0.0"
"@testing-library/react": "npm:^15.0.6"
"@testing-library/user-event": "npm:^14.4.3"
"@types/react-is": "npm:~18.2.0"
accessibility-checker: "npm:^3.1.48"
Expand Down Expand Up @@ -23034,15 +23030,15 @@ __metadata:
languageName: node
linkType: hard

"react-dom@npm:~18.2.0":
version: 18.2.0
resolution: "react-dom@npm:18.2.0"
"react-dom@npm:~18.3.0":
version: 18.3.1
resolution: "react-dom@npm:18.3.1"
dependencies:
loose-envify: "npm:^1.1.0"
scheduler: "npm:^0.23.0"
scheduler: "npm:^0.23.2"
peerDependencies:
react: ^18.2.0
checksum: 10/ca5e7762ec8c17a472a3605b6f111895c9f87ac7d43a610ab7024f68cd833d08eda0625ce02ec7178cc1f3c957cf0b9273cdc17aa2cd02da87544331c43b1d21
react: ^18.3.1
checksum: 10/3f4b73a3aa083091173b29812b10394dd06f4ac06aff410b74702cfb3aa29d7b0ced208aab92d5272919b612e5cda21aeb1d54191848cf6e46e9e354f3541f81
languageName: node
linkType: hard

Expand All @@ -23069,10 +23065,10 @@ __metadata:
languageName: node
linkType: hard

"react-is@npm:~18.2.0":
version: 18.2.0
resolution: "react-is@npm:18.2.0"
checksum: 10/200cd65bf2e0be7ba6055f647091b725a45dd2a6abef03bf2380ce701fd5edccee40b49b9d15edab7ac08a762bf83cb4081e31ec2673a5bfb549a36ba21570df
"react-is@npm:~18.3.0":
version: 18.3.1
resolution: "react-is@npm:18.3.1"
checksum: 10/d5f60c87d285af24b1e1e7eaeb123ec256c3c8bdea7061ab3932e3e14685708221bf234ec50b21e10dd07f008f1b966a2730a0ce4ff67905b3872ff2042aec22
languageName: node
linkType: hard

Expand Down Expand Up @@ -23169,12 +23165,12 @@ __metadata:
languageName: node
linkType: hard

"react@npm:~18.2.0":
version: 18.2.0
resolution: "react@npm:18.2.0"
"react@npm:~18.3.0":
version: 18.3.1
resolution: "react@npm:18.3.1"
dependencies:
loose-envify: "npm:^1.1.0"
checksum: 10/b9214a9bd79e99d08de55f8bef2b7fc8c39630be97c4e29d7be173d14a9a10670b5325e94485f74cd8bff4966ef3c78ee53c79a7b0b9b70cba20aa8973acc694
checksum: 10/261137d3f3993eaa2368a83110466fc0e558bc2c7f7ae7ca52d94f03aac945f45146bd85e5f481044db1758a1dbb57879e2fcdd33924e2dde1bdc550ce73f7bf
languageName: node
linkType: hard

Expand Down Expand Up @@ -24397,12 +24393,12 @@ __metadata:
languageName: node
linkType: hard

"scheduler@npm:^0.23.0":
version: 0.23.0
resolution: "scheduler@npm:0.23.0"
"scheduler@npm:^0.23.2":
version: 0.23.2
resolution: "scheduler@npm:0.23.2"
dependencies:
loose-envify: "npm:^1.1.0"
checksum: 10/0c4557aa37bafca44ff21dc0ea7c92e2dbcb298bc62eae92b29a39b029134f02fb23917d6ebc8b1fa536b4184934314c20d8864d156a9f6357f3398aaf7bfda8
checksum: 10/e8d68b89d18d5b028223edf090092846868a765a591944760942b77ea1f69b17235f7e956696efbb62c8130ab90af7e0949bfb8eba7896335507317236966bc9
languageName: node
linkType: hard

Expand Down

0 comments on commit 4d35ae2

Please sign in to comment.