Repository navigation
Conversation
Deploy previewBundle size
Check out the code infra dashboard for more information about this PR. |
PR reviewNo findings. No merge-blocking issues identified. Validation for PR #49247 at
Validation used existing build outputs. Node16 ESM-specific resolution is not directly covered. Copied the findings and validation summary to your clipboard. VerdictApprove — no actionable correctness, test, simplification, or documentation issues found. 🤖 Review generated with Codex |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The documented TypeScript floor contradicts the immediately stated two-year support policy.
Review effort: Balanced
Findings: 1
Open (1)
What changed in this PR
Raises Material UI’s TypeScript minimum to 5.0 and adds CI validation against built declarations.
Changes:
- Updates TypeScript support documentation.
- Adds a TypeScript 5.0.4 consumer test across three resolution modes.
- Integrates the test into CI and excludes its compiler pin from Renovate.
| File | Description |
|---|---|
test/typescriptMinimum/tsconfig.json |
Configures strict declaration validation. |
test/typescriptMinimum/src/Test.tsx |
Exercises representative Material UI APIs. |
test/typescriptMinimum/README.md |
Documents the test workflow. |
test/typescriptMinimum/package.json |
Pins dependencies and defines test commands. |
renovate.json |
Protects the minimum compiler pin. |
pnpm-lock.yaml |
Locks the new test workspace dependencies. |
docs/data/material/guides/typescript/typescript.md |
Documents TypeScript 5.0 as the minimum. |
docs/data/material/getting-started/supported-platforms/supported-platforms.md |
Updates the supported-platform requirement. |
.circleci/config.yml |
Runs the new test after package builds. |
Files not reviewed (1)
- pnpm-lock.yaml: Generated file
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| ## TypeScript | ||
|
|
||
| Material UI requires a minimum version of TypeScript 4.9. | ||
| Material UI requires a minimum version of TypeScript 5.0. |
There was a problem hiding this comment.
I think Copilot has a valid point here.
|
Out of curiosity, which 5.0 features are we relying on that 4.9 doesn't accept? |
Base UI declarations with |
mnajdova
left a comment
There was a problem hiding this comment.
Why are we okay shipping breaking changes as part of v9?
|
Closing as we agreed internally on a different solution that would avoid the slight BC on the v9.x version. |
|
@LukasTy we can still leave the PR open, just remove the cherry-pick label. For future reference the decision was:
|
|
We'll refine the needed minimum version and can open a new PR. |

Raise Material UI's supported TypeScript minimum from 4.9 to 5.0, as requested in the separate tracking discussion. TypeScript 4.9 users must upgrade their compiler. The development compiler versions stay unchanged.
Add a consumer test pinned to TypeScript 5.0.4. It checks built
createTheme,Button, andMenudeclarations withnode,node16, andbundlerresolution. It has no source aliases and keeps library checking enabled. Run it after the public package build in CI, and prevent Renovate from changing the minimum compiler pin.Validation passed:
pnpm release:buildand both built-declaration validators.pnpm typescript: all 19 projects.pnpm test:unit run: 739 files and 13,178 tests passed; 9 files and 1,091 tests skipped.Compiler traces confirmed that all 547 MUI declaration inputs came from build folders for both CommonJS and ESM. A temporary TypeScript 5.4-only type in a built declaration caused the new guard to fail as expected.