-
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 | 8 | 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 | 2825 | Changed |
Drawer.Full Overlay RTL.chromium.png | 3278 | 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 5 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
Callout.Left top edge.chromium.png | 1949 | Changed |
Callout.Bottom auto edge.chromium.png | 2309 | Changed |
Callout.Bottom Right Edge RTL.chromium.png | 1593 | Changed |
Callout.Bottom Left Edge RTL.chromium.png | 2178 | Changed |
Callout.No beak.chromium.png | 2306 | Changed |
Pull request demo site: URL |
3ee9cbd
to
83e4110
Compare
📊 Bundle size reportUnchanged fixtures
|
83e4110
to
0e865c5
Compare
chore(utilities): update api.md chore(react-utilities): update api.md chore(style-utilities): update api.md
0e865c5
to
0a3b8eb
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 fluentui-web-components-v3 Visual Regression Report
Avatar 1 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
Avatar.Image.chromium.png | 248 | Changed |
dbda8d7
to
9f52366
Compare
9f52366
to
415da9a
Compare
@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)