Skip to content

Commit

Permalink
Synchronize dependencies with Console 4.13
Browse files Browse the repository at this point in the history
Note that following peerDependencies of legacy package are excluded:
1. dayjs ^1.11.5 - Console's yarn.lock includes it only as Cypress
   dependency (in version 1.10.7)
2. file-saver 1.3.x - a dependency of @patternfly/[email protected]
3. jsrsasign ^10.6.1 - missing in the Console's yarn.lock
4. netmask ^2.0.2 - missing in the Console's yarn.lock
5. yup ^0.32.11 - provided in version 0.27.0
6. react-syntax-highlighter ^15.5.0 - missing in the Console's yarn.lock
7. react-query ^3.39.2 - missing in the Console's yarn.lock

Reference-Url: https://github.com/openshift/console/blob/c12a49c8cee92a0e5aace2faba83528b6f418908/frontend/package.json#L148
Reference-Url: https://github.com/openshift/console/blob/c12a49c8cee92a0e5aace2faba83528b6f418908/frontend/yarn.lock#L2019
Signed-off-by: Radoslaw Szwajkowski <[email protected]>
  • Loading branch information
rszwajko committed Oct 6, 2023
1 parent 4ee0525 commit 8332593
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 45 deletions.
58 changes: 29 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"peerDependencies": {
"@openshift-console/dynamic-plugin-sdk": "0.0.18",
"@openshift/dynamic-plugin-sdk": "3.0.0",
"@patternfly/react-core": "4.221.3",
"@patternfly/react-table": "4.90.3",
"@patternfly/react-core": "4.276.6",
"@patternfly/react-table": "4.112.39",
"react": "^17.0.1",
"react-i18next": "^11.7.3",
"react-query": "^3.39.2",
Expand All @@ -55,4 +55,4 @@
"sass": "^1.63.3",
"storybook": "^7.0.14"
}
}
}
5 changes: 1 addition & 4 deletions packages/common/src/components/Filter/FreetextFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ export const FreetextFilter = ({
placeholder={placeholderLabel}
value={inputValue}
onChange={(event, value) => {
// starting with react-core 4.273.0 parameters were re-ordered
// the workaround can be removed when last supported Console version is 4.13
const isReactCoreBefore4_273_0 = typeof value === 'object';
setInputValue(isReactCoreBefore4_273_0 ? event : value);
setInputValue(value);
}}
onSearch={onTextInput}
onClear={() => setInputValue('')}
Expand Down
8 changes: 4 additions & 4 deletions packages/forklift-console-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
"peerDependencies": {
"@openshift-console/dynamic-plugin-sdk": "0.0.18",
"@openshift/dynamic-plugin-sdk": "3.0.0",
"@patternfly/react-core": "4.221.3",
"@patternfly/react-table": "4.90.3",
"@patternfly/react-charts": "6.94.19",
"react-dom": "^17",
"@patternfly/react-core": "4.276.6",
"@patternfly/react-table": "4.112.39",
"@patternfly/react-charts": "6.94.18",
"react-dom": "^17.0.1",
"react": "^17.0.1",
"react-i18next": "^11.7.3",
"react-router": "5.2.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
"peerDependencies": {
"@migtools/lib-ui": "8.4.1",
"@openshift-console/dynamic-plugin-sdk": "0.0.18",
"@patternfly/react-core": "4.221.3",
"@patternfly/react-table": "4.90.3",
"@patternfly/react-core": "4.276.6",
"@patternfly/react-table": "4.112.39",
"axios": "^0.21.2",
"classnames": "2.x",
"dayjs": "^1.11.5",
Expand All @@ -85,4 +85,4 @@
"@typescript-eslint/eslint-plugin": "^5.29.0",
"@typescript-eslint/parser": "^5.29.0"
}
}
}
4 changes: 2 additions & 2 deletions packages/legacy/src/Plans/components/CutoverConfirmModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const CutoverConfirmModal: React.FunctionComponent<ICutoverConfirmModalPr
<>
<InputGroup className={spacing.mtSm}>
<DatePicker
onChange={(_inputDate, newDate) => {
onChange={(event, _inputDate, newDate) => {
if (newDate && isValidDate(newDate)) {
setCutoverDay(newDate);
} else {
Expand All @@ -114,7 +114,7 @@ export const CutoverConfirmModal: React.FunctionComponent<ICutoverConfirmModalPr
<TimePicker
aria-label="Cutover scheduled time"
style={{ width: '150px' }}
onChange={(_time, hour, minute) => {
onChange={(event, _time, hour, minute) => {
if ((hour || hour === 0) && (minute || minute === 0)) {
setCutoverTime({ hour, minute });
} else {
Expand Down

0 comments on commit 8332593

Please sign in to comment.