Repository navigation
Write pnpm 11 patch metadata in native format #211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
58401e0
Write pnpm 11 patch metadata in its native format
0x80 38d759d
Address code-review findings (Rush patches and output coverage)
0x80 e08ea02
Centralize pnpm patch format handling
0x80 283b5b7
Address final-review findings (validate patch metadata)
0x80 129e0b4
Remove legacy pnpm patch metadata from pnpm 11 output
0x80 a8afdb5
Strengthen patched pnpm workspace coverage
0x80 e9bbc49
Address GLM review findings for patch metadata
0x80 fad046b
Address final review findings (patch coverage, diagnostics)
0x80 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/lib/lockfile/helpers/__fixtures__/pnpm-patched-dependencies-10/workspace/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| { | ||
| "name": "patch-validation-workspace", | ||
| "private": true, | ||
| "packageManager": "pnpm@10.0.0", | ||
| "pnpm": { | ||
| "patchedDependencies": { | ||
| "left-pad@1.3.0": "patches/left-pad@1.3.0.patch" | ||
| } | ||
| } | ||
| } |
10 changes: 10 additions & 0 deletions
10
...lpers/__fixtures__/pnpm-patched-dependencies-10/workspace/packages/functions/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| { | ||
| "name": "functions", | ||
| "version": "1.0.0", | ||
| "files": [ | ||
| "index.js" | ||
| ], | ||
| "dependencies": { | ||
| "left-pad": "1.3.0" | ||
| } | ||
| } |
14 changes: 14 additions & 0 deletions
14
.../helpers/__fixtures__/pnpm-patched-dependencies-10/workspace/patches/left-pad@1.3.0.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| diff --git a/index.js b/index.js | ||
| index e90aec35d979c42dcd4ddfacb4768c00d7102349..ba97d1bf59b5cf6de4ddbdcd49a7004f0c7715e5 100644 | ||
| --- a/index.js | ||
| +++ b/index.js | ||
| @@ -4,7 +4,7 @@ | ||
| * To Public License, Version 2, as published by Sam Hocevar. See | ||
| * http://www.wtfpl.net/ for more details. */ | ||
| 'use strict'; | ||
| -module.exports = leftPad; | ||
| +module.exports = (str, len, ch) => leftPad(str, len, ch); | ||
|
|
||
| var cache = [ | ||
| '', | ||
|
|
31 changes: 31 additions & 0 deletions
31
src/lib/lockfile/helpers/__fixtures__/pnpm-patched-dependencies-10/workspace/pnpm-lock.yaml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
.../lockfile/helpers/__fixtures__/pnpm-patched-dependencies-10/workspace/pnpm-workspace.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| packages: | ||
| - packages/* |
5 changes: 5 additions & 0 deletions
5
src/lib/lockfile/helpers/__fixtures__/pnpm-patched-dependencies-12/workspace/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "name": "patch-validation-workspace", | ||
| "private": true, | ||
| "packageManager": "pnpm@12.0.0" | ||
| } |
10 changes: 10 additions & 0 deletions
10
...lpers/__fixtures__/pnpm-patched-dependencies-12/workspace/packages/functions/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| { | ||
| "name": "functions", | ||
| "version": "1.0.0", | ||
| "files": [ | ||
| "index.js" | ||
| ], | ||
| "dependencies": { | ||
| "left-pad": "1.3.0" | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.