Skip to content

chore: migrate to pnpm 11 + add minimumReleaseAge#116

Merged
feugy merged 3 commits into
mainfrom
chore/pnpm-11-minimum-release-age
May 21, 2026
Merged

chore: migrate to pnpm 11 + add minimumReleaseAge#116
feugy merged 3 commits into
mainfrom
chore/pnpm-11-minimum-release-age

Conversation

@feugy
Copy link
Copy Markdown
Member

@feugy feugy commented May 21, 2026

📓 What's in there?

Mirrors vercel/analytics#202 in this repo:

  • Bumps packageManager from pnpm@8.6.5pnpm@11.1.3 (lockfile v6 → v9, fully regenerated).
  • Adds minimumReleaseAge: 2880 (48-hour quarantine before installing newly published versions of transitive deps) with minimumReleaseAgeExclude: ['@vercel/*'] so workspace/first-party releases install immediately. This is the main motivation — a defense-in-depth measure against malicious or accidentally broken package releases.
  • Adds an allowBuilds allowlist for the five packages in this repo that have lifecycle scripts (@parcel/watcher, @swc/core, esbuild, lefthook, sharp). Required since pnpm v10+ blocks them by default.
  • Moves valibot override from package.jsonpnpm-workspace.yaml (pnpm 11 no longer reads the pnpm.* block in package.json).

🧪 How to test?

  • corepack pnpm install from a clean clone

    expect all five build scripts to run successfully and no approval prompts

  • corepack pnpm -r --filter @vercel/speed-insights build

    expect a clean build of all entrypoints (verified locally)

🤖 Generated with Claude Code

Bump packageManager from pnpm@8.6.5 to pnpm@11.1.3 (lockfile v6 -> v9).
Add minimumReleaseAge: 2880 (48h delay before installing newly published
packages) with @vercel/* excluded so workspace and first-party releases
install immediately. Add allowBuilds allowlist for the five packages
with lifecycle scripts under pnpm v10+ strict policy. Move the valibot
override out of package.json (pnpm 11 reads it from pnpm-workspace.yaml).

Mirrors vercel/analytics#202.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
speed-insights-astro Ready Ready Preview, Comment May 21, 2026 8:43am
speed-insights-nextjs Ready Ready Preview, Comment May 21, 2026 8:43am
speed-insights-nuxt Ready Ready Preview, Comment May 21, 2026 8:43am
speed-insights-remix Building Building Preview, Comment May 21, 2026 8:43am
speed-insights-sveltekit Ready Ready Preview, Comment May 21, 2026 8:43am
speed-insights-vue Ready Ready Preview, Comment May 21, 2026 8:43am

Request Review

@socket-security
Copy link
Copy Markdown

socket-security Bot commented May 21, 2026

@feugy feugy requested a review from a team May 21, 2026 08:33
The override was added in #104 as a guardrail when Nuxt support landed,
but @remix-run/dev (the only transitive consumer) now resolves
valibot@1.4.0 on its own — the override is a no-op. Removing it also
fixes Vercel deploys, which run pnpm 9 (reads overrides from package.json,
not pnpm-workspace.yaml) and were failing with LOCKFILE_CONFIG_MISMATCH.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The lockfile regen during the pnpm 11 migration let biome float from
2.3.10 to 2.4.15 via the existing caret range, and 2.4.x introduced
stricter assist and lint rules (organizeImports for exports,
useHookAtTopLevel triggering on Vue's setup()) that broke CI on
pre-existing code unrelated to this PR. Pin to the exact version that
main was using to keep this PR scoped to pnpm.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@feugy feugy merged commit 6217343 into main May 21, 2026
12 checks passed
@feugy feugy deleted the chore/pnpm-11-minimum-release-age branch May 21, 2026 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants