-
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
🕵 fluentui-web-components-v3 No visual regressions between this PR and main |
@@ -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 | 8 | Changed |
Avatar Converged.Badge Mask RTL.chromium.png | 4 | 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
@@ -3,7 +3,7 @@ | |||
"compilerOptions": { | |||
"isolatedModules": false, | |||
"types": ["node", "cypress", "cypress-real-events"], | |||
"typeRoots": ["../../../../node_modules", "../../../../node_modules/@types"], | |||
"typeRoots": ["${configDir}/node_modules", "${configDir}/node_modules/@types"], |
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.
0adbb48
to
296644f
Compare
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 😢
chore(utilities): update api.md chore(react-utilities): update api.md chore(style-utilities): update api.md
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 3 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
Callout.Bottom Left Edge RTL.chromium.png | 2178 | Changed |
Callout.Beak 25.chromium.png | 2186 | Changed |
Callout.Root.chromium.png | 2309 | Changed |
react-charting-VerticalBarChart 1 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
react-charting-VerticalBarChart.Basic - Secondary Y Axis.chromium.png | 4 | Changed |
Pull request demo site: URL |
3ee9cbd
to
83e4110
Compare
📊 Bundle size reportUnchanged fixtures
|
83e4110
to
0e865c5
Compare
Updates ts to 5.5.2, also bumped api-extractor and api-extractor model to the latest.
JSDoc import tag changes will be addded as a follow-up.
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
Previous Behavior
New Behavior
Related Issue(s)