Skip to content

fix(pnpm): update @pnpm/napi to rc.11 for the root-component sibling-linking fix - #10658

Merged
zkochan merged 2 commits into
teambit:masterfrom
zkochan:update-napi-rc11
Aug 25, 2026
Merged

zkochan merged 2 commits into
teambit:masterfrom
zkochan:update-napi-rc11

Conversation

@zkochan

@zkochan zkochan commented Aug 24, 2026

Copy link
Copy Markdown
Member

Proposed Changes

Update @pnpm/napi from 12.0.0-rc.10 to 12.0.0-rc.11. The engine delta between the two is effectively one fix, pnpm/pnpm#14142 (the other rc.11 change is a staging-CLI feature that does not touch installs).

rc.10's isolated linker gave every manifest-less root-component member a symlink to every other member of its root — one symlink per (member, member) pair per peer context. On teambit/bit's own workspace that was ~270k @teambit/* symlinks across 812 injected-component slots (a @teambit/compositions slot carried 359 sibling links where its lockfile snapshot declares 42), and it is the root cause of the CI "Attaching workspace" regression (0.8 → 2.7 min per e2e node) across the pnpm v12 migration: the persisted node_modules tree grew from 2.9 GB / 207k symlinks to 3.8 GB / 356k.

With rc.11, a member's sibling links come from its own lockfile snapshot (exact peer-variant key), so each slot holds exactly its declared edges. The CI win lands once a release built on rc.11 becomes the bvm binary that setup_harmony installs with, since that binary's engine produces the persisted tree.

Verification

Against the published rc.11 binary (engineVersion() confirmed, no local patches):

  • isolated-linker root-components e2e: 15 passing, and each member slot links only its declared chain — 5 sibling links on the fixture where rc.10 materialized 20, including edges no member declares
  • hoisted-linker root-components e2e: 12 passing — the rc.10 peer-variant fix (pnpm/pnpm#14126) intact
  • npm run lint clean
  • pnpm-lock.yaml is a pure rc.10 → rc.11 swap (52/52 lines, napi platform packages only)

🤖 Generated with Claude Code

…linking fix

rc.10's isolated linker gave every manifest-less root-component member
a symlink to every other member of its root — on a real workspace one
symlink per (member, member) pair per peer context, which is where the
CI workspace-attach regression came from. rc.11 ships the fix
(pnpm/pnpm#14142): a member's sibling links come from its own lockfile
snapshot, so each slot holds exactly its declared edges.

Verified against the published binary: the isolated root-components
suite passes with each member slot linking only its declared chain
(5 sibling links on the fixture where rc.10 materialized 20), and the
hoisted suite stays green.

Co-Authored-By: Claude Fable 5 <[email protected]>
@zkochan
zkochan enabled auto-merge (squash) August 24, 2026 23:41
@github-actions github-actions Bot mentioned this pull request Aug 24, 2026
@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Aug 24, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can hide the parts of a finding you never read, like the evidence or the agent prompt

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Previous reviews

Review updated until commit bce43da ⚖️ Balanced

Results up to commit 665e47f


🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Qodo Logo

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

PR Summary by Qodo

Upgrade pnpm N-API engine to rc.11 for correct sibling linking

🐞 Bug fix ⚙️ Configuration changes 🕐 Less than 10 minutes

Grey Divider

AI Description

• Upgrade @pnpm/napi to rc.11 so root components link only declared siblings.
• Refresh platform binaries and lock snapshots for the corrected pnpm engine release.
Diagram

graph TD
  A["Workspace policy"] --> B["pnpm N-API rc.11"] --> C["Platform binary"] --> D["Isolated linker"] --> E["Declared sibling links"]
Loading
High-Level Assessment

Using the upstream rc.11 release is the optimal approach because it applies the targeted linker correction across every supported native platform without carrying a local patch or fork. A local engine patch was considered but would add maintenance and binary-distribution risk.

Files changed (2) +52 / -52

Bug fix (1) +1 / -1
workspace.jsoncPin the workspace pnpm engine to rc.11 +1/-1

Pin the workspace pnpm engine to rc.11

• Updates the central '@pnpm/napi' dependency policy to rc.11, enabling the upstream root-component sibling-linking fix for workspace consumers.

workspace.jsonc

Other (1) +51 / -51
pnpm-lock.yamlResolve pnpm N-API rc.11 across importers and platforms +51/-51

Resolve pnpm N-API rc.11 across importers and platforms

• Replaces rc.10 with rc.11 in every importer and dependency snapshot. Updates integrity hashes and optional native packages for supported Darwin, Linux, and Windows architectures.

pnpm-lock.yaml

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit bce43da

@zkochan
zkochan merged commit 4317bfc into teambit:master Aug 25, 2026
15 checks passed
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