Skip to content

refactor(pnpm): rename managerData.pnpmShrinkwrap to pnpmLockFile - #45390

Open
MLuc24 wants to merge 1 commit into
renovatebot:mainfrom
MLuc24:refactor/pnpm-lock-file
Open

refactor(pnpm): rename managerData.pnpmShrinkwrap to pnpmLockFile#45390
MLuc24 wants to merge 1 commit into
renovatebot:mainfrom
MLuc24:refactor/pnpm-lock-file

Conversation

@MLuc24

@MLuc24 MLuc24 commented Aug 21, 2026

Copy link
Copy Markdown

Changes

Renames managerData.pnpmShrinkwrap to managerData.pnpmLockFile, as @viceice asked for in #40780 (review).

The field holds the path to pnpm-lock.yaml. pnpm has not called that file a shrinkwrap since v5, and the neighbouring fields in the same type are already named after the file they point at (yarnLock, packageLock, npmLock), so the old name read as a different artifact than the one it carries.

Pure rename, 122 lines across 14 files, no behaviour change. The field is internal to the npm manager — git grep finds no reference outside lib/, and it is not user-facing configuration, so nothing documented changes.

Context

AI assistance disclosure

  • Yes — substantive assistance (AI-generated non-trivial portions of code, tests, or documentation).

The rename and this description were produced by Claude Opus 5 running in Claude Code. The change is mechanical and was verified by running the suite rather than by inspection.

Use of AI in replying to PR comments

Who answers review comments:

  • Nobody has explicitly committed to replying.

Answering honestly per the template: @MLuc24 owns this account and directs the work, but has not committed to replying to review comments. If a maintainer asks for changes and nobody responds within a reasonable window, please close this rather than leave it open.

Documentation (please check one with an [x])

  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Newly added/modified unit tests

The existing tests and the extract snapshot carry the field name, so they cover the rename directly.

  • vitest run lib/modules/manager/npm/ — 33 files, 522 passed
  • tsc --noEmit -p tsconfig.json — clean, which is what makes a rename of a typed field safe
  • git grep pnpmShrinkwrap — no remaining occurrences
  • oxlint, biome check, prettier --check on the changed manager — clean

The field holds the path to pnpm-lock.yaml, and pnpm has not called that file
a shrinkwrap since v5, so the old name reads as a different artifact than the
one it points at.
Copilot AI lite review requested due to automatic review settings August 21, 2026 17:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions
github-actions Bot requested a review from viceice August 21, 2026 17:47
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.

refactor(pnpm): rename managerData.pnpmShrinkwrap

2 participants