Subscribe free
Morning Merge JavaScript · Monday, November 23, 20262 min read

pnpm 11.29 tightens installs and publish credentials

Also: pnpm 12.23 drops platform variants, Vercel blocks deploys on missing flags

Two new pnpm releases close the same credential leak. If you publish packages or run pnpm in CI, start with the first section.

The main thing

A golden plug stopped by a barrier arm at an inspection gate on a conveyor

pnpm 11.29 tightens what an install and a publish will trust. The big change: otp is no longer read from any config file. Pass --otp on the command line or set PNPM_CONFIG_OTP. An otp in pnpm-workspace.yaml or a global config.yaml is now ignored with a warning.

The reason is the weird part. A repository could put otp: ${NPM_TOKEN} next to its own registry:. Then pnpm publish sent your NPM_TOKEN to the registry that same file named, in the npm-otp header of its first request.

Run publish in a repo you don't control, and your token goes to whatever registry it picked.

The install side gets stricter too:

One fix you'll like if you build in Docker: pnpm install no longer fails without a TTY when it has to recreate an incompatible node_modules. It recreates it and prints a warning.

What to do: if your publish job keeps otp in a config file, move it to --otp or PNPM_CONFIG_OTP before your next release. Then run one install and watch for the new local-dependency error.

Worth a look

One golden block split into three pieces dropping into a three-slot tray

pnpm 12.23 removes platform variants. A package version has one archive again. pnpm no longer reads publishConfig.variants, and pnpm pack --variant is gone. If you ship per-platform builds, publish each as its own package and list them in optionalDependencies.

The catch for consumers: a frozen install of a lockfile that records variants fails with ERR_PNPM_BROKEN_LOCKFILE. Run pnpm install once to resolve it again. The release also carries the same otp and HTTPS-only credential fixes as 11.29.

The new commands are the fun part. pnpm catalog migrate moves shared dependency specifiers into the default catalog and swaps in catalog:, but only when every project uses the same specifier. pnpm link --hard saves a linked package with file: so its files are hard linked into node_modules.

Release-age limits get easier, too. pnpm install, pnpm add, pnpm update and pnpm dlx take --minimum-release-age for a single run, no config edit needed.

Before you deploy

A golden toggle switch lowered into the one empty socket on a switch panel

Vercel can block deploys that reference missing feature flags. If you declare a flag in code but never create it in your project, your app silently falls back to the flag's default. Vercel notes that this can turn on a feature you meant to keep off.

The new Flag Definitions Present Deployment Check runs when a deployment is ready and fails with a list of missing flags. It reads your Flags SDK discovery endpoint and needs FLAGS_SECRET set in the project's environment. Teams on all plans can turn it on under Build and Deployment settings and mark it required.

Move your otp out of config files today, and let the next install error tell you what else 11.29 caught.

← All Morning Merge JavaScript issues

Get this in your inbox every morning.

Free. Five minutes. Unsubscribe in one click.

Subscribe free →