-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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: upgrade typescript to 5.5.2 #33498
base: master
Are you sure you want to change the base?
Conversation
@@ -69,8 +69,8 @@ | |||
"@griffel/webpack-loader": "2.2.10", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🕵🏾♀️ visual regressions to review in the fluentuiv9 Visual Regression Report
Avatar Converged 2 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
Avatar Converged.badgeMask.chromium.png | 62 | Changed |
Avatar Converged.Badge Mask RTL.chromium.png | 3 | Changed |
Drawer 2 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
Drawer.Full Overlay Dark Mode.chromium.png | 988 | Changed |
Drawer.Full Overlay RTL.chromium.png | 1172 | Changed |
🕵 FluentUIV0 No visual regressions between this PR and main |
@@ -85,7 +91,9 @@ export function classNamesFunction<TStyleProps extends {}, TStyleSet extends ISt | |||
typeof styleFunctionOrObject === 'function' && | |||
(styleFunctionOrObject as StyleFunction<TStyleProps, TStyleSet>).__noStyleOverride__ | |||
) { | |||
return styleFunctionOrObject(styleProps) as IProcessedStyleSet<TStyleSet>; | |||
return (styleFunctionOrObject as IStyleFunction<TStyleProps, TStyleSet>)( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
state.components?.[slotName] === undefined || typeof state.components[slotName] === 'string' | ||
? asProp || state.components?.[slotName] || 'div' | ||
: state.components[slotName] | ||
) as React.ElementType<R[K]>; | ||
: state.components[slotName]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after upgrade throws TS2590: Expression produces a union type that is too complex to represent
29cadea
to
ea576b0
Compare
packages/codemods/package.json
Outdated
@@ -31,6 +31,7 @@ | |||
"tslib": "^2.1.0", | |||
"react": "17.0.2", | |||
"ts-morph": "^10.0.1", | |||
"typescript": "5.3.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
had to lock ts to 5.3.3 for this package, as ts-morph
has issue with 5.4: dsherret/ts-morph#1513. Fixed in v22, current is 10 😢
ea576b0
to
3ee9cbd
Compare
@@ -0,0 +1,7 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🕵🏾♀️ visual regressions to review in the fluentuiv8 Visual Regression Report
Callout 2 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
Callout.Bottom right edge.chromium.png | 1596 | Changed |
Callout.Bottom Right Edge RTL.chromium.png | 1593 | Changed |
Keytip 1 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
Keytip.Offset.chromium.png | 121 | Changed |
react-charting-AreaChart 1 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
react-charting-AreaChart.Custom Accessibility.chromium.png | 11 | Changed |
react-charting-HeatMapChart 1 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
react-charting-HeatMapChart.Basic RTL.chromium.png | 372 | Changed |
react-charting-LineChart 2 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
react-charting-LineChart.Gaps.chromium.png | 1 | Changed |
react-charting-LineChart.Events.chromium.png | 2 | Changed |
Pull request demo site: URL |
3ee9cbd
to
83e4110
Compare
📊 Bundle size reportUnchanged fixtures
|
0e865c5
to
0a3b8eb
Compare
9f52366
to
415da9a
Compare
chore(utilities): update api.md chore(react-utilities): update api.md chore(style-utilities): update api.md
415da9a
to
eccd0d4
Compare
🕵 fluentui-web-components-v3 No visual regressions between this PR and main |
@import
JSDoc tags.Release notes
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-4.html
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-5.html
Related to configDir template var: the initial assumption, that it will help to get rid of explicit typeRoots for
tsconfig.cy.json
files appeared to be wrong. It works for scenarios, where derived config (packages//tsconfig.json) has to have paths related to final directory, before it was needed to re-specify the config property for derived config.Previous Behavior
5.3.3
New Behavior
5.5.2
Related Issue(s)
(nx run-many -t build type-check --skip-nx-cache)