Skip to content

Evaluate upgrading the pinned package manager from pnpm 10 to 11 #3683

Closed

Description

@bhamodi

Proposal

Evaluate upgrading the repo's pinned package manager from pnpm 10 ([email protected]) to pnpm 11.

Filing this as a discussion issue rather than a PR because it touches the release process, CI, the lockfile, and every contributor's local setup, so it deserves maintainer buy-in before any code change.

Migration guide: https://pnpm.io/migration

Why consider it

Per pnpm's v11 release notes / migration guide, the headline improvements are:

  • Supply-chain security by default -- stricter defaults around dependency install and build scripts. This aligns with the direction of the recently added 7-day minimumReleaseAge (chore(deps): add 7-day pnpm minimumReleaseAge #3669).
  • Monorepo performance -- install/resolution improvements for workspaces.
  • Isolated global installs -- global installs no longer share a single dependency tree.

Requirements / breaking changes to weigh

  • Node.js 22+ required. CI already runs Node 24, so this is likely already satisfied; worth confirming the minimum supported version for local dev.

  • pnpm 11 ships ESM-only.

  • Breaking config changes. The one that directly affects this repo: pnpm 11 no longer reads pnpm.overrides / pnpm.onlyBuiltDependencies from package.json -- these move to pnpm-workspace.yaml. Running pnpm 11 against the current tree emits:

    The "pnpm" field in package.json is no longer read by pnpm. The following keys were ignored: "pnpm.overrides", "pnpm.onlyBuiltDependencies".

    Left unmigrated, a --frozen-lockfile install fails with ERR_PNPM_LOCKFILE_CONFIG_MISMATCH because the lockfile records overrides the config no longer provides.

Repo-specific migration checklist

  • Move pnpm.overrides and pnpm.onlyBuiltDependencies from package.json into pnpm-workspace.yaml.
  • Bump the packageManager pin to pnpm 11 (and confirm devEngines.packageManager still behaves as intended).
  • Regenerate pnpm-lock.yaml under pnpm 11 and review the diff for unexpected re-resolution.
  • Re-verify the minimumReleaseAge supply-chain policy and the --trust-lockfile path (chore(deps): add 7-day pnpm minimumReleaseAge #3669) under pnpm 11.
  • Update CONTRIBUTING.md (the pnpm@10, PNPM_VERSION=10.34.1, and npm install -g pnpm@10 references).
  • Confirm CI (pnpm/action-setup@v6, Node 24) picks up the new pin and pnpm install --frozen-lockfile passes across ci.yml, cli-smoke-test.yml, and codemod-verify.yml.
  • Document the minimum supported Node version for local dev (Node 22+).

Open question for maintainers

Is the upgrade worth doing now, or should we stay on the current pnpm 10 pin? pnpm 10.34.1 is healthy, so the main draws are the supply-chain-by-default posture and monorepo performance, weighed against the migration and contributor-coordination cost above. Happy to open the PR if there's appetite.

Activity

  1. added
    discussion
    on Jul 8, 2026
  2. cixzhang commented on Jul 10, 2026

    @cixzhang
    Contributor

    Resolved by #3700 (merged 2026-07-10). The evaluation is complete and pnpm 11 is now the project standard.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions