Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): Update core versions #11318

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/react-core/package.json
Original file line number Diff line number Diff line change
@@ -54,7 +54,7 @@
"tslib": "^2.8.1"
},
"devDependencies": {
"@patternfly/patternfly": "6.1.0-prerelease.10",
"@patternfly/patternfly": "6.1.0-prerelease.11",
"case-anything": "^2.1.13",
"css": "^3.0.0",
"fs-extra": "^11.2.0"
2 changes: 1 addition & 1 deletion packages/react-docs/package.json
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
"test:a11y": "patternfly-a11y --config patternfly-a11y.config"
},
"dependencies": {
"@patternfly/patternfly": "6.1.0-prerelease.10",
"@patternfly/patternfly": "6.1.0-prerelease.11",
"@patternfly/react-charts": "workspace:^",
"@patternfly/react-code-editor": "workspace:^",
"@patternfly/react-core": "workspace:^",
2 changes: 1 addition & 1 deletion packages/react-icons/package.json
Original file line number Diff line number Diff line change
@@ -33,7 +33,7 @@
"@fortawesome/free-brands-svg-icons": "^5.15.4",
"@fortawesome/free-regular-svg-icons": "^5.15.4",
"@fortawesome/free-solid-svg-icons": "^5.15.4",
"@patternfly/patternfly": "6.1.0-prerelease.10",
"@patternfly/patternfly": "6.1.0-prerelease.11",
"fs-extra": "^11.2.0",
"tslib": "^2.8.1"
},
2 changes: 1 addition & 1 deletion packages/react-styles/package.json
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@
"clean": "rimraf dist css"
},
"devDependencies": {
"@patternfly/patternfly": "6.1.0-prerelease.10",
"@patternfly/patternfly": "6.1.0-prerelease.11",
"change-case": "^5.4.4",
"fs-extra": "^11.2.0"
},
2 changes: 1 addition & 1 deletion packages/react-tokens/package.json
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@
"clean": "rimraf dist"
},
"devDependencies": {
"@patternfly/patternfly": "6.1.0-prerelease.10",
"@patternfly/patternfly": "6.1.0-prerelease.11",
"css": "^3.0.0",
"fs-extra": "^11.2.0"
}
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -3581,10 +3581,10 @@ __metadata:
languageName: node
linkType: hard

"@patternfly/patternfly@npm:6.1.0-prerelease.10":
version: 6.1.0-prerelease.10
resolution: "@patternfly/patternfly@npm:6.1.0-prerelease.10"
checksum: 10c0/b60d8e1dd220ff58b56c3d11dac41a28d384ff6618f37e5506adea4f61213c598c81ce2797a1391d2ddf4e2916bdb099c35d4b887f7476090f83c983a85ad09a
"@patternfly/patternfly@npm:6.1.0-prerelease.11":
version: 6.1.0-prerelease.11
resolution: "@patternfly/patternfly@npm:6.1.0-prerelease.11"
checksum: 10c0/80121fa5e9aba64aa0c372e2ea0706606461a145f2b5c9a8e1dee06265782de3d7d4f277f7ee1ec9f20283dd713e5942d3016a1d90d5c14f492f9856b89814da
languageName: node
linkType: hard

@@ -3678,7 +3678,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@patternfly/react-core@workspace:packages/react-core"
dependencies:
"@patternfly/patternfly": "npm:6.1.0-prerelease.10"
"@patternfly/patternfly": "npm:6.1.0-prerelease.11"
"@patternfly/react-icons": "workspace:^"
"@patternfly/react-styles": "workspace:^"
"@patternfly/react-tokens": "workspace:^"
@@ -3699,7 +3699,7 @@ __metadata:
resolution: "@patternfly/react-docs@workspace:packages/react-docs"
dependencies:
"@patternfly/documentation-framework": "npm:^6.0.15"
"@patternfly/patternfly": "npm:6.1.0-prerelease.10"
"@patternfly/patternfly": "npm:6.1.0-prerelease.11"
"@patternfly/patternfly-a11y": "npm:5.0.0"
"@patternfly/react-charts": "workspace:^"
"@patternfly/react-code-editor": "workspace:^"
@@ -3738,7 +3738,7 @@ __metadata:
"@fortawesome/free-brands-svg-icons": "npm:^5.15.4"
"@fortawesome/free-regular-svg-icons": "npm:^5.15.4"
"@fortawesome/free-solid-svg-icons": "npm:^5.15.4"
"@patternfly/patternfly": "npm:6.1.0-prerelease.10"
"@patternfly/patternfly": "npm:6.1.0-prerelease.11"
fs-extra: "npm:^11.2.0"
tslib: "npm:^2.8.1"
peerDependencies:
@@ -3822,7 +3822,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@patternfly/react-styles@workspace:packages/react-styles"
dependencies:
"@patternfly/patternfly": "npm:6.1.0-prerelease.10"
"@patternfly/patternfly": "npm:6.1.0-prerelease.11"
change-case: "npm:^5.4.4"
fs-extra: "npm:^11.2.0"
languageName: unknown
@@ -3863,7 +3863,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@patternfly/react-tokens@workspace:packages/react-tokens"
dependencies:
"@patternfly/patternfly": "npm:6.1.0-prerelease.10"
"@patternfly/patternfly": "npm:6.1.0-prerelease.11"
css: "npm:^3.0.0"
fs-extra: "npm:^11.2.0"
languageName: unknown

Unchanged files with check annotations Beta

if (Array.isArray(hasPatterns)) {
for (let i = 0; i < defaultPatternScale.length; i++) {
if (!(i < hasPatterns.length && hasPatterns[i])) {
defaultPatternScale[i] = null;

Check warning on line 349 in packages/react-charts/src/victory/components/ChartUtils/chart-patterns.tsx

GitHub Actions / Lint

Mutating component props or hook arguments is not allowed. Consider using a local variable instead
}
}
} else if (hasPatterns === false) {
const [scrollElement, setScrollElement] = React.useState(null);
const toggleVisible = () => {

Check warning on line 36 in packages/react-core/src/components/BackToTop/BackToTop.tsx

GitHub Actions / Lint

The 'toggleVisible' function makes the dependencies of useEffect Hook (at line 74) change on every render. Move it inside the useEffect callback. Alternatively, wrap the definition of 'toggleVisible' in its own useCallback() Hook
if (scrollElement) {
const scrolled = scrollElement.scrollY ? scrollElement.scrollY : scrollElement.scrollTop;
if (!isAlwaysVisible) {
} else if (!dateProp) {
setFocusedDate(today);
}
}, [dateProp]);

Check warning on line 184 in packages/react-core/src/components/CalendarMonth/CalendarMonth.tsx

GitHub Actions / Lint

React Hook useEffect has a missing dependency: 'focusedDate'. Either include it or remove the dependency array
useEffect(() => {
// Calendar month should not be focused on page load
if ((shouldFocus || isDateFocused) && focusedDateValidated && focusRef.current) {
focusRef.current.focus();
}
}, [focusedDate, isDateFocused, focusedDateValidated, focusRef]);

Check warning on line 191 in packages/react-core/src/components/CalendarMonth/CalendarMonth.tsx

GitHub Actions / Lint

React Hook useEffect has a missing dependency: 'shouldFocus'. Either include it or remove the dependency array
const onMonthClick = (ev: React.MouseEvent, newDate: Date) => {
setFocusedDate(newDate);
label={mod}
isChecked={modifiers[mod]}
onChange={(_event, checked) => {
modifiers[mod] = checked;

Check warning on line 18 in packages/react-core/src/components/Card/examples/CardWithModifiers.tsx

GitHub Actions / Lint

This mutates a variable that React considers immutable
setModifiers({ ...modifiers });
}}
/>
const [selectOpen, setSelectOpen] = React.useState(false);
const [pristine, setPristine] = React.useState(true);
const [textInputFocused, setTextInputFocused] = React.useState(false);
const widthChars = React.useMemo(() => Math.max(dateFormat(new Date()).length, placeholder.length), [dateFormat]);

Check warning on line 134 in packages/react-core/src/components/DatePicker/DatePicker.tsx

GitHub Actions / Lint

React Hook React.useMemo has a missing dependency: 'placeholder.length'. Either include it or remove the dependency array
const style = { [cssFormControlWidthChars.name]: widthChars, ...styleProps };
const buttonRef = React.useRef<HTMLButtonElement>();
const datePickerWrapperRef = React.useRef<HTMLDivElement>();
React.useEffect(() => {
setValue(valueProp);
setValueDate(dateParse(valueProp));
}, [valueProp]);

Check warning on line 145 in packages/react-core/src/components/DatePicker/DatePicker.tsx

GitHub Actions / Lint

React Hook React.useEffect has a missing dependency: 'dateParse'. Either include it or remove the dependency array. If 'dateParse' changes too often, find the parent component that defines it and wrap that definition in useCallback
React.useEffect(() => {
if (isValidDate(valueDate)) {
applyValidators(valueDate);
}
}, [validators]);

Check warning on line 151 in packages/react-core/src/components/DatePicker/DatePicker.tsx

GitHub Actions / Lint

React Hook React.useEffect has missing dependencies: 'applyValidators' and 'valueDate'. Either include them or remove the dependency array
React.useEffect(() => {
setPristine(!value);
if (value === '' && !pristine && !textInputFocused) {
dateIsRequired ? setErrorText(emptyDateText) : setErrorText('');
}
}, [value]);

Check warning on line 162 in packages/react-core/src/components/DatePicker/DatePicker.tsx

GitHub Actions / Lint

React Hook React.useEffect has missing dependencies: 'applyValidators', 'dateIsRequired', 'dateParse', 'emptyDateText', 'errorText', 'pristine', and 'textInputFocused'. Either include them or remove the dependency array. If 'dateParse' changes too often, find the parent component that defines it and wrap that definition in useCallback
const applyValidators = (date: Date) => {
setErrorText(validators.map((validator) => validator(date)).join('\n') || '');
},
isCalendarOpen: popoverOpen
}),
[setPopoverOpen, popoverOpen, selectOpen]

Check warning on line 228 in packages/react-core/src/components/DatePicker/DatePicker.tsx

GitHub Actions / Lint

React Hook useImperativeHandle has an unnecessary dependency: 'selectOpen'. Either exclude it or remove the dependency array
);
const createFocusSelectorString = (modifierClass: string) =>