Skip to content

Commit ce01e61

Browse files
authored
Merge pull request #252 from nicolethoen/bump_all_deps
feat: update dependencies
2 parents 1340774 + d6dbc7f commit ce01e61

File tree

14 files changed

+2221
-1726
lines changed

14 files changed

+2221
-1726
lines changed

.eslintrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ module.exports = {
1212
},
1313
// we want to use the recommended rules provided from the typescript plugin
1414
"extends": [
15-
"@redhat-cloud-services/eslint-config-redhat-cloud-services",
1615
"eslint:recommended",
1716
"plugin:react/recommended",
1817
"plugin:@typescript-eslint/recommended"

dr-surge.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ module.exports = {
2828
preset: "ts-jest/presets/js-with-ts",
2929

3030
// The test environment that will be used for testing.
31-
testEnvironment: "jsdom",
31+
testEnvironment: "jest-fixed-jsdom",
3232
};

package-lock.json

Lines changed: 2135 additions & 1608 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 33 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
"private": true,
99
"scripts": {
1010
"prebuild": "npm run type-check && npm run clean",
11-
"dr:surge": "node dr-surge.js",
12-
"build": "webpack --config webpack.prod.js && npm run dr:surge",
11+
"build": "webpack --config webpack.prod.js",
1312
"start": "sirv dist --cors --single --host --port 8080",
1413
"start:dev": "webpack serve --color --progress --config webpack.dev.js",
1514
"test": "jest",
@@ -25,59 +24,57 @@
2524
"clean": "rimraf dist"
2625
},
2726
"devDependencies": {
28-
"@redhat-cloud-services/eslint-config-redhat-cloud-services": "^1.3.0",
29-
"@testing-library/jest-dom": "^5.16.5",
30-
"@testing-library/react": "^14.0.0",
31-
"@testing-library/user-event": "14.4.3",
32-
"@types/jest": "^29.5.3",
27+
"@testing-library/jest-dom": "^6.6.3",
28+
"@testing-library/react": "^16.0.1",
29+
"@testing-library/user-event": "14.5.2",
30+
"@types/jest": "^29.5.14",
3331
"@types/react-router-dom": "^5.3.3",
34-
"@types/victory": "^33.1.5",
35-
"@typescript-eslint/eslint-plugin": "^6.21.0",
36-
"@typescript-eslint/parser": "^6.21.0",
37-
"copy-webpack-plugin": "^11.0.0",
38-
"css-loader": "^6.11.0",
39-
"css-minimizer-webpack-plugin": "^5.0.1",
40-
"dotenv-webpack": "^8.0.1",
41-
"eslint": "^8.57.0",
42-
"eslint-plugin-prettier": "^5.1.3",
43-
"eslint-plugin-react": "^7.34.2",
44-
"eslint-plugin-react-hooks": "^4.6.2",
45-
"html-webpack-plugin": "^5.6.0",
46-
"imagemin": "^8.0.1",
47-
"jest": "^29.7.0",
32+
"@typescript-eslint/eslint-plugin": "^8.17.0",
33+
"@typescript-eslint/parser": "^8.17.0",
34+
"copy-webpack-plugin": "^12.0.2",
35+
"css-loader": "^7.1.2",
36+
"css-minimizer-webpack-plugin": "^7.0.0",
37+
"dotenv-webpack": "^8.1.0",
38+
"eslint": "^8.57.1",
39+
"eslint-plugin-prettier": "^5.2.1",
40+
"eslint-plugin-react": "^7.37.2",
41+
"eslint-plugin-react-hooks": "^5.0.0",
42+
"html-webpack-plugin": "^5.6.3",
43+
"imagemin": "^9.0.0",
4844
"jest-environment-jsdom": "^29.7.0",
49-
"mini-css-extract-plugin": "^2.9.0",
50-
"postcss": "^8.4.38",
51-
"prettier": "^3.3.0",
45+
"jest-fixed-jsdom": "^0.0.9",
46+
"mini-css-extract-plugin": "^2.9.2",
47+
"postcss": "^8.4.49",
48+
"prettier": "^3.4.2",
5249
"prop-types": "^15.8.1",
5350
"raw-loader": "^4.0.2",
5451
"react-axe": "^3.5.4",
5552
"react-docgen-typescript-loader": "^3.7.2",
56-
"react-router-dom": "^5.3.4",
57-
"regenerator-runtime": "^0.13.11",
58-
"rimraf": "^5.0.7",
59-
"style-loader": "^3.3.4",
53+
"react-router-dom": "^7.0.2",
54+
"regenerator-runtime": "^0.14.1",
55+
"rimraf": "^6.0.1",
56+
"style-loader": "^4.0.0",
6057
"svg-url-loader": "^8.0.0",
6158
"terser-webpack-plugin": "^5.3.10",
62-
"ts-jest": "^29.1.4",
59+
"ts-jest": "^29.2.5",
6360
"ts-loader": "^9.5.1",
64-
"tsconfig-paths-webpack-plugin": "^4.1.0",
65-
"tslib": "^2.6.0",
66-
"typescript": "^5.4.5",
61+
"tsconfig-paths-webpack-plugin": "^4.2.0",
62+
"tslib": "^2.8.1",
63+
"typescript": "^5.7.2",
6764
"url-loader": "^4.1.1",
68-
"webpack": "^5.91.0",
65+
"webpack": "^5.97.0",
6966
"webpack-bundle-analyzer": "^4.10.2",
7067
"webpack-cli": "^5.1.4",
71-
"webpack-dev-server": "^4.15.2",
72-
"webpack-merge": "^5.10.0"
68+
"webpack-dev-server": "^5.1.0",
69+
"webpack-merge": "^6.0.1"
7370
},
7471
"dependencies": {
7572
"@patternfly/react-core": "^6.0.0",
7673
"@patternfly/react-icons": "^6.0.0",
7774
"@patternfly/react-styles": "^6.0.0",
7875
"react": "^18",
7976
"react-dom": "^18",
80-
"sirv-cli": "^2.0.2"
77+
"sirv-cli": "^3.0.0"
8178
},
8279
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
8380
}

src/app/AppLayout/AppLayout.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ const AppLayout: React.FunctionComponent<IAppLayout> = ({ children }) => {
9090

9191
const renderNavItem = (route: IAppRoute, index: number) => (
9292
<NavItem key={`${route.label}-${index}`} id={`${route.label}-${index}`} isActive={route.path === location.pathname}>
93-
<NavLink exact={route.exact} to={route.path}>
93+
<NavLink
94+
to={route.path}
95+
>
9496
{route.label}
9597
</NavLink>
9698
</NavItem>
@@ -130,7 +132,7 @@ const AppLayout: React.FunctionComponent<IAppLayout> = ({ children }) => {
130132
onClick={(event) => {
131133
event.preventDefault();
132134
const primaryContentContainer = document.getElementById(pageId);
133-
primaryContentContainer && primaryContentContainer.focus();
135+
primaryContentContainer?.focus();
134136
}}
135137
href={`#${pageId}`}
136138
>

src/app/NotFound/NotFound.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import {
77
EmptyStateFooter,
88
PageSection,
99
} from '@patternfly/react-core';
10-
import { useHistory } from 'react-router-dom';
10+
import { useNavigate } from 'react-router-dom';
1111

1212
const NotFound: React.FunctionComponent = () => {
1313
function GoHomeBtn() {
14-
const history = useHistory();
14+
const navigate = useNavigate();
1515
function handleClick() {
16-
history.push('/');
16+
navigate('/');
1717
}
1818
return (
1919
<Button onClick={handleClick}>Take me home</Button>
Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
import * as React from 'react';
22
import { PageSection, Title } from '@patternfly/react-core';
3+
import { useDocumentTitle } from '@app/utils/useDocumentTitle';
34

4-
const GeneralSettings: React.FunctionComponent = () => (
5-
<PageSection hasBodyWrapper={false}>
6-
<Title headingLevel="h1" size="lg">
7-
General Settings Page Title
8-
</Title>
9-
</PageSection>
10-
);
5+
const GeneralSettings: React.FunctionComponent = () => {
6+
useDocumentTitle("General Settings");
7+
return (
8+
<PageSection hasBodyWrapper={false}>
9+
<Title headingLevel="h1" size="lg">
10+
General Settings Page Title
11+
</Title>
12+
</PageSection>
13+
);
14+
}
1115

1216
export { GeneralSettings };
Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
import * as React from 'react';
22
import { PageSection, Title } from '@patternfly/react-core';
3+
import { useDocumentTitle } from '@app/utils/useDocumentTitle';
34

4-
const ProfileSettings: React.FunctionComponent = () => (
5-
<PageSection hasBodyWrapper={false}>
6-
<Title headingLevel="h1" size="lg">
7-
Profile Settings Page Title
8-
</Title>
9-
</PageSection>
10-
);
5+
const ProfileSettings: React.FunctionComponent = () => {
6+
useDocumentTitle("Profile Settings");
7+
8+
return (
9+
<PageSection hasBodyWrapper={false}>
10+
<Title headingLevel="h1" size="lg">
11+
Profile Settings Page Title
12+
</Title>
13+
</PageSection>
14+
);
15+
16+
}
1117

1218
export { ProfileSettings };

src/app/Support/Support.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ let Support: React.FunctionComponent<ISupportProps> = () => (
2323
<EmptyStateBody>
2424
<Content>
2525
<Content component="p">
26-
This represents an the empty state pattern in Patternfly 4. Hopefully it&apos;s simple enough to use but
26+
This represents an the empty state pattern in Patternfly. Hopefully it&apos;s simple enough to use but
2727
flexible enough to meet a variety of needs.
2828
</Content>
2929
<Content component={ContentVariants.small}>
3030
This text has overridden a css component variable to demonstrate how to apply customizations using
31-
PatternFly&apos;s global variable API.
31+
PatternFly&apos;s CSS tokens.
3232
</Content>
3333
</Content>
3434
</EmptyStateBody>

0 commit comments

Comments
 (0)