Skip to content

[code-infra] Remove deprecated @types/uuid stub from @mui/internal-scripts #49508

Closed

Description

@jasontd92

Summary

packages-internal/scripts/package.json still lists @types/uuid@11.0.0 as a devDependency. That version is deprecated by its publisher:

This is a stub types definition. uuid provides its own type definitions, so you do not need this installed.

(https://www.npmjs.com/package/@types/uuid/v/11.0.0)

The package no longer imports uuid: typescript-to-proptypes/src/injectPropTypesInFile.ts uses randomUUID from node:crypto. Nothing else in the workspace depends on uuid, so the stub and the uuid@14.0.1 it pulls in are unused. The Dependency Dashboard (#48698) lists it under "Deprecations / Replacements" with no replacement PR available, so Renovate won't remove it.

Proposed change, 18 lines deleted, 2 files:

  • packages-internal/scripts/package.json: drop the "@types/uuid": "11.0.0" line.
  • pnpm-lock.yaml: the matching entries for @types/uuid@11.0.0 and uuid@14.0.1, regenerated with pnpm install --lockfile-only (pnpm 12.11.2). pnpm dedupe --check is clean.

Verification

Run in a node:22-bookworm container (Node 22.23.3, pnpm 12.11.2 via corepack). Baseline on master first, then with the change:

  • pnpm install --frozen-lockfile
  • pnpm -F @mui/internal-scripts typescript: passes before and after
  • pnpm -F @mui/internal-scripts build: passes before and after
  • pnpm -F @mui/internal-scripts test: 69/69 before and after
  • pnpm exec eslint packages-internal/scripts: passes with the change

The branch is ready at https://github.com/jasontd92/mui-material-ui/tree/unstale/remove-types-uuid. I can open the PR ([code-infra] Remove deprecated @types/uuid stub) if this is welcome.


Found with unstale, a tool I'm building so nobody has to read every changelog to catch changes like this one. Prepared with AI assistance (Claude Code) and verified as described above.

Search keywords: @types/uuid, deprecated, stub types, internal-scripts

Activity

  1. added
    scope: code-infraInvolves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd).
    on Oct 20, 2026
  2. ZeeshanTamboli commented on Oct 21, 2026

    @ZeeshanTamboli
    Member

    @jasontd92 Thanks for reporting. Feel free to create a PR.

  3. added
    type: enhancementIt’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.
    ready to takeHelp wanted. Guidance available. There is a high chance the change will be accepted
    on Oct 21, 2026
  4. github-actions commented on Oct 22, 2026

    @github-actions
    Contributor

    This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
    Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.


    @jasontd92 Thanks again for creating this issue! If you have a moment, we would love to hear your thoughts on how we handled it with this short feedback form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

dependenciesUpdate of dependencies.ready to takeHelp wanted. Guidance available. There is a high chance the change will be acceptedscope: code-infraInvolves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd).type: enhancementIt’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions