Skip to content

Move pnpm from 8.13.1 to 11.28.6 - #287

Merged
lukasz-zimnoch merged 4 commits into
mainfrom
pnpm-11.28.6
Oct 23, 2026
Merged

lukasz-zimnoch merged 4 commits into
mainfrom
pnpm-11.28.6

Conversation

@nkuba

@nkuba nkuba commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator

pnpm 8.13.1 is inside the range of several high-severity pnpm advisories from 2026. The 8.x line has no fixed release, so this moves to 11.28.6, npm's latest-11 and the line web uses.

pnpm 11 can't read the 6.0 lockfile and would resolve every dependency again. The lockfile was converted with pnpm 9.15.9 first, so every resolved version stays the same. The big lockfile diff is the format change.

Two pnpm 10 defaults needed settings in pnpm-workspace.yaml:

  • Dependency build scripts no longer run unless listed. allowBuilds lists esbuild, keccak and secp256k1, with web's values.
  • eslint and prettier packages are no longer hoisted to the root. The dapp's eslint then can't load prettier-plugin-solidity from the root .prettierrc.js. publicHoistPattern keeps pnpm 8's default.

Locally on Node 26.12.1 with pnpm 11.28.6, pnpm install --frozen-lockfile, the solidity build, format and tests, and the dapp format, test and build pass. test:upgrades needs MEZO_RPC_URL, so it only runs in CI.

Resolves: https://linear.app/thesis-co/issue/MEZO-5260

nkuba added 3 commits October 22, 2026 15:56
The root .prettierrc.js loads prettier-plugin-solidity, which only solidity/ depends on. pnpm 8
hoists every package with eslint or prettier in its name to the root node_modules, so the dapp's
eslint run finds the plugin there. pnpm 10 dropped that default, and the dapp format check fails
with "Cannot find package 'prettier-plugin-solidity'".

This sets pnpm 8's default explicitly. pnpm 8 doesn't read the setting from pnpm-workspace.yaml, so
nothing changes until the pnpm bump.
pnpm 10 stopped running dependency build scripts by default, and pnpm 11 fails the install when a
dependency with a build script isn't listed in allowBuilds. pnpm 11 reports esbuild, keccak and
secp256k1 for this lockfile. The values match web's allowBuilds for the same packages.

pnpm 8 ignores the setting, so this changes nothing until the pnpm bump.
pnpm 8.13.1 is inside the range of several high-severity pnpm advisories from 2026, for example a
file write outside node_modules on install, and secrets read through proxy settings in an untrusted
pnpm-workspace.yaml. The 8.x line has no fixed release. 11.28.6 is npm's latest-11, the line web
uses.

The lockfile moves from format 6.0 to 9.0. pnpm 11 can't read 6.0 and resolves every dependency
again, so the lockfile was converted with pnpm 9.15.9 first and then rewritten by pnpm 11. Every
resolved version stays the same. Only the git-hosted @thesis/prettier-config entry changes its key
format, and it still points at commit daeaac5.

solidity/ also declares packageManager. Inside the workspace pnpm reads the root one, but both move
together so they don't disagree.
@nkuba nkuba self-assigned this Oct 22, 2026
@linear-code

linear-code Bot commented Oct 22, 2026

Copy link
Copy Markdown

MEZO-5260

@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Coverage report for ./dapp

St.❔
Category Percentage Covered / Total
🟢 Statements 100% 2/2
🟢 Branches 100% 0/0
🟢 Functions 100% 1/1
🟢 Lines 100% 2/2

Test suite run success

2 tests passing in 1 suite.

Report generated by 🧪jest coverage report action from be42419

@nkuba
nkuba requested a review from lukasz-zimnoch October 22, 2026 20:20
@nkuba
nkuba marked this pull request as ready for review October 22, 2026 20:20
@lukasz-zimnoch
lukasz-zimnoch merged commit de1ec2a into main Oct 23, 2026
11 checks passed
@lukasz-zimnoch
lukasz-zimnoch deleted the pnpm-11.28.6 branch October 23, 2026 07:07
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.

2 participants