-
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 1 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
Avatar Converged.Badge Mask RTL.chromium.png | 42 | 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.Bottom Right Edge RTL.chromium.png | 1593 | Changed |
Callout.No callout width specified.chromium.png | 2319 | Changed |
Callout.Top auto edge.chromium.png | 2307 | Changed |
Callout.Right center.chromium.png | 2396 | Changed |
Callout.Gap space 25.chromium.png | 2309 | 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 |
@@ -3,6 +3,9 @@ const { createV8Config: createConfig } = require('@fluentui/scripts-jest'); | |||
const config = createConfig({ | |||
setupFiles: ['./config/tests.js'], | |||
snapshotSerializers: ['@fluentui/jest-serializer-merge-styles'], | |||
// Keeps Jest from using too much memory as GC gets invokes more often, makes tests slower | |||
// https://stackoverflow.com/a/75857711 | |||
workerIdleMemoryLimit: '1024MB', |
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.
unblocking pipeline, fails on OOM same as here: #33480
@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)