Repository navigation
fix(config): resolve version-policy evaluator and normalizer discrepancy - #13738
Conversation
A bare-name/wildcard rule now consistently evaluates as matching every version regardless of ordering relative to version-pinned rules, resolving an inconsistency between the evaluator and the normalizer. This prevents unexpected behavior and silent widening of version policy exemptions when pnpm rewrites the workspace manifest. Fixes pnpm#13725
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
📝 WalkthroughWalkthroughThe change makes bare-name and wildcard version-policy rules match every version in both Rust and TypeScript evaluators. Tests now verify that unrestricted rules override earlier exact-version rules. A patch changeset documents the behavior for the affected packages. ChangesVersion Policy Evaluation
Estimated code review effort: 2 (Simple) | ~10 minutes Assessment against linked issues
Suggested labels: Suggested reviewers: ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed. For unrecoverable errors, disable the tool in CodeRabbit configuration. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Confidence Score: 4/5The PR appears safe to merge, with only misleading Rust test names requiring non-blocking cleanup. The TypeScript and Rust implementations consistently apply wholesale matching for bare and wildcard rules, and tests cover both rule orderings; the remaining issue is that two Rust test names now describe the opposite result. Files Needing Attention: pnpm/crates/config/src/version_policy/tests.rs Reviews (1): Last reviewed commit: "fix(config): resolve version-policy eval..." | Re-trigger Greptile |
There was a problem hiding this comment.
🧹 Nitpick comments (2)
pnpm/crates/config/src/version_policy.rs (1)
196-196: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winState the rule-order guarantee in the public contract.
Line [196] says that a bare-name or wildcard rule matches every version. It does not state that this result is independent of rule order or identify the returned variant. Update the rustdoc to link
PolicyMatch::AnyVersionand state that the rule matches regardless of its position in the rule list.Suggested documentation
- /// A bare-name or wildcard rule matches every version. + /// A matching bare-name or wildcard rule returns [`PolicyMatch::AnyVersion`], + /// regardless of its position in the rule list.As per path instructions, public Rust documentation must state the current bare-name/wildcard contract and use rustdoc links for in-scope identifiers.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pnpm/crates/config/src/version_policy.rs` at line 196, Update the rustdoc comment for the bare-name or wildcard rule to link `PolicyMatch::AnyVersion`, identify it as the returned variant, and state that the match applies regardless of the rule’s position in the rule list.Source: Path instructions
pnpm/crates/config/src/version_policy/tests.rs (1)
154-156: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winRename the regression tests to match the new result.
Line [156] and Line [168] expect
PolicyMatch::AnyVersion, but both function names still saykeeps_exact_versions. Rename the tests so their names describe the current contract.Suggested renames
-fn create_policy_bare_rule_after_exact_keeps_exact_versions() { +fn create_policy_bare_rule_after_exact_matches_any_version() { ... -fn create_policy_wildcard_after_exact_keeps_exact_versions() { +fn create_policy_wildcard_after_exact_matches_any_version() {Also applies to: 166-168
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pnpm/crates/config/src/version_policy/tests.rs` around lines 154 - 156, Rename the regression test functions create_policy_bare_rule_after_exact_keeps_exact_versions and its corresponding test near the second assertion to describe that a bare rule results in PolicyMatch::AnyVersion, while leaving their test logic unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@pnpm/crates/config/src/version_policy.rs`:
- Line 196: Update the rustdoc comment for the bare-name or wildcard rule to
link `PolicyMatch::AnyVersion`, identify it as the returned variant, and state
that the match applies regardless of the rule’s position in the rule list.
In `@pnpm/crates/config/src/version_policy/tests.rs`:
- Around line 154-156: Rename the regression test functions
create_policy_bare_rule_after_exact_keeps_exact_versions and its corresponding
test near the second assertion to describe that a bare rule results in
PolicyMatch::AnyVersion, while leaving their test logic unchanged.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 2627a28c-67f5-47b5-9929-2a86a2bc43b0
📒 Files selected for processing (5)
.changeset/fix-version-policy-wildcard-evaluation.mdpnpm/crates/config/src/version_policy.rspnpm/crates/config/src/version_policy/tests.rspnpm11/config/version-policy/src/index.tspnpm11/config/version-policy/test/index.ts
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13738 +/- ##
========================================
Coverage 88.22% 88.23%
========================================
Files 616 616
Lines 100163 100305 +142
========================================
+ Hits 88373 88506 +133
- Misses 11790 11799 +9 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Integrated-Benchmark Report (Linux)Commit: Regular scenarios report direct and pnpr installs. The peer-heavy resolver scenario compares current Rust, main Rust, and TypeScript pnpm. Bencher consumes pacquet@HEAD and pnpr@HEAD. The tables below show mean ± σ; Bencher thresholds on the minimum latency, which is far less perturbed by shared-runner contention (noise only adds time). Scenario: Isolated linker: fresh restore, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.55225009134,
"stddev": 0.15070107289209198,
"median": 2.58514344584,
"user": 1.57151736,
"system": 1.2784872799999998,
"min": 2.34993954834,
"max": 2.74475878234,
"times": [
2.74475878234,
2.61624951034,
2.50479477834,
2.71837427134,
2.5540373813399997,
2.63926675134,
2.66843022834,
2.36483595734,
2.34993954834,
2.36181370434
]
},
{
"command": "pacquet@main",
"mean": 2.5089288311399995,
"stddev": 0.14146225374630775,
"median": 2.50370840534,
"user": 1.5462771600000003,
"system": 1.31141928,
"min": 2.3497735553399997,
"max": 2.72191867534,
"times": [
2.46314590334,
2.72191867534,
2.5442709073399996,
2.36550894334,
2.36922291634,
2.61427881734,
2.55997367434,
2.70680270434,
2.39439221434,
2.3497735553399997
]
},
{
"command": "pnpr@HEAD",
"mean": 1.5129155115399997,
"stddev": 0.1368853491068519,
"median": 1.47411325634,
"user": 1.04347896,
"system": 1.1648368800000002,
"min": 1.37171546734,
"max": 1.74187022734,
"times": [
1.3973235293400001,
1.37171546734,
1.53758774534,
1.5972196033400001,
1.41063876734,
1.56514697634,
1.39744783334,
1.40489871234,
1.70530625334,
1.74187022734
]
},
{
"command": "pnpr@main",
"mean": 1.4676284110400002,
"stddev": 0.12531864909403034,
"median": 1.4289125073400002,
"user": 1.05857526,
"system": 1.1444286800000003,
"min": 1.3567742333400001,
"max": 1.70390482834,
"times": [
1.51761940734,
1.47561798034,
1.3567742333400001,
1.70390482834,
1.64691959634,
1.3822070343400001,
1.4930975783400002,
1.36412500534,
1.3705595143400002,
1.3654589323400002
]
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.2650649918,
"stddev": 0.005267566605422725,
"median": 0.2666408537,
"user": 0.20983322,
"system": 0.54845218,
"min": 0.25676382270000003,
"max": 0.2707183507,
"times": [
0.2654877547,
0.2677939527,
0.25676382270000003,
0.2588034067,
0.2707183507,
0.2598741707,
0.2700741597,
0.26855086570000003,
0.2621189107,
0.2704645237
]
},
{
"command": "pacquet@main",
"mean": 0.2646419221,
"stddev": 0.0055355752582181336,
"median": 0.2647724952,
"user": 0.22357562,
"system": 0.5260372799999999,
"min": 0.2542002117,
"max": 0.2746871437,
"times": [
0.26746859970000003,
0.26565690270000003,
0.2659382937,
0.2628291667,
0.2601231187,
0.2542002117,
0.2695639097,
0.2638880877,
0.2620637867,
0.2746871437
]
},
{
"command": "pnpr@HEAD",
"mean": 0.272120763,
"stddev": 0.006696234866211109,
"median": 0.2690877797,
"user": 0.20458472,
"system": 0.5363098799999999,
"min": 0.2646717817,
"max": 0.2825125477,
"times": [
0.26620156770000003,
0.2723557997,
0.2800352807,
0.2814609107,
0.2674610457,
0.2696589287,
0.2825125477,
0.2685166307,
0.26833313670000003,
0.2646717817
]
},
{
"command": "pnpr@main",
"mean": 0.27632328500000003,
"stddev": 0.0074146408363075424,
"median": 0.27599888019999996,
"user": 0.22247861999999996,
"system": 0.53220728,
"min": 0.2653925857,
"max": 0.2886318547,
"times": [
0.2679842797,
0.2820938507,
0.28087011970000003,
0.2691818417,
0.2760928667,
0.2741108097,
0.2829697477,
0.2759048937,
0.2886318547,
0.2653925857
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.5950246743400003,
"stddev": 0.01831393505993594,
"median": 2.5982452166400005,
"user": 1.5172629199999998,
"system": 1.3270615799999999,
"min": 2.5672947731400004,
"max": 2.6248333741400005,
"times": [
2.57565001314,
2.59733286414,
2.5672947731400004,
2.6015515271400003,
2.61429789514,
2.6248333741400005,
2.5808079421400003,
2.5991575691400004,
2.5814908791400004,
2.60782990614
]
},
{
"command": "pacquet@main",
"mean": 2.6001838636400003,
"stddev": 0.01471861443592389,
"median": 2.59463614714,
"user": 1.48583132,
"system": 1.37680538,
"min": 2.57729052214,
"max": 2.6236370081400002,
"times": [
2.5925075251400003,
2.61911171914,
2.6092861241400005,
2.6236370081400002,
2.59166182414,
2.5929235471400003,
2.5963487471400004,
2.57729052214,
2.58870398214,
2.6103676371400004
]
},
{
"command": "pnpr@HEAD",
"mean": 1.5423924849400001,
"stddev": 0.10163588048197528,
"median": 1.51629807564,
"user": 1.0832540199999998,
"system": 1.0900560799999996,
"min": 1.43322267314,
"max": 1.72340331214,
"times": [
1.43673359514,
1.47235212014,
1.51706780014,
1.43322267314,
1.72340331214,
1.6174982441399999,
1.68207241614,
1.46843193814,
1.5155283511400002,
1.55761439914
]
},
{
"command": "pnpr@main",
"mean": 1.5496806287399998,
"stddev": 0.12260958172471823,
"median": 1.52366783114,
"user": 1.0482681200000001,
"system": 1.1423984800000002,
"min": 1.41753178714,
"max": 1.80227316714,
"times": [
1.56492649914,
1.41753178714,
1.6229643631400001,
1.48240916314,
1.5937652171399999,
1.46969210014,
1.44349443814,
1.80227316714,
1.43967929414,
1.66007025814
]
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.42284068334,
"stddev": 0.014862321476560048,
"median": 0.42292487083999997,
"user": 0.5243280399999999,
"system": 0.7154573,
"min": 0.40145963334,
"max": 0.45393484734,
"times": [
0.40503777034,
0.45393484734,
0.42734579834,
0.41768108434,
0.41584819934,
0.42679231834,
0.41905742334,
0.43087895234,
0.40145963334,
0.43037080634
]
},
{
"command": "pacquet@main",
"mean": 0.41266233424000004,
"stddev": 0.009164934993578362,
"median": 0.40930826134,
"user": 0.5291764399999999,
"system": 0.6928544999999999,
"min": 0.40270657734,
"max": 0.43307455134,
"times": [
0.40799720534,
0.40766483034,
0.40270657734,
0.40865853934,
0.41074611534,
0.42428710834,
0.43307455134,
0.41423658834,
0.40995798334,
0.40729384334
]
},
{
"command": "pnpr@HEAD",
"mean": 0.30670985593999994,
"stddev": 0.009427569131481165,
"median": 0.30843230883999995,
"user": 0.19860413999999998,
"system": 0.5389920999999999,
"min": 0.28341236533999997,
"max": 0.31869770733999997,
"times": [
0.28341236533999997,
0.30434635034,
0.30306815734,
0.31021747033999997,
0.31514552734,
0.31869770733999997,
0.30639154634,
0.30828569833999997,
0.30895481733999997,
0.30857891934
]
},
{
"command": "pnpr@main",
"mean": 0.31105676783999997,
"stddev": 0.0060587831594353945,
"median": 0.31121244084,
"user": 0.20960273999999995,
"system": 0.5440135999999999,
"min": 0.30054915034,
"max": 0.32212552033999997,
"times": [
0.30592799534,
0.30761843334,
0.31556417434,
0.31166727633999997,
0.31075760534,
0.30054915034,
0.30770616534,
0.31605033734,
0.32212552033999997,
0.31260102034
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.7233806217,
"stddev": 0.005671478949002445,
"median": 1.7218985213,
"user": 0.7457599399999999,
"system": 0.7630273999999999,
"min": 1.7140523063,
"max": 1.7362131683000002,
"times": [
1.7243635353,
1.7259062363,
1.7362131683000002,
1.7209890013,
1.7215874252999999,
1.7218005272999999,
1.7263725633,
1.7219965153,
1.7205249382999999,
1.7140523063
]
},
{
"command": "pacquet@main",
"mean": 1.7220333931999998,
"stddev": 0.007203406437218584,
"median": 1.7218420693,
"user": 0.7417242399999999,
"system": 0.7651823000000001,
"min": 1.7068131033,
"max": 1.7320890933000002,
"times": [
1.7258725342999999,
1.7192951953,
1.7208902943,
1.7320890933000002,
1.7290436363,
1.7193751053,
1.7068131033,
1.7168896523000001,
1.7272714732999999,
1.7227938443000002
]
},
{
"command": "pnpr@HEAD",
"mean": 0.3112808074,
"stddev": 0.006898215274842122,
"median": 0.30946679230000007,
"user": 0.20108653999999998,
"system": 0.5445388,
"min": 0.30150082330000005,
"max": 0.32289874030000004,
"times": [
0.32289874030000004,
0.31968344330000004,
0.30921412730000003,
0.3105507303,
0.30150082330000005,
0.31889936030000005,
0.30657569530000006,
0.30756589730000006,
0.3061997993,
0.30971945730000006
]
},
{
"command": "pnpr@main",
"mean": 0.31328738950000007,
"stddev": 0.004844380328615131,
"median": 0.31097667380000005,
"user": 0.20254084,
"system": 0.5383572999999999,
"min": 0.30959554730000005,
"max": 0.32399373330000003,
"times": [
0.30974623730000006,
0.31273987630000005,
0.31660446430000005,
0.31012980130000006,
0.30973864630000003,
0.3110652803,
0.3108880673,
0.30959554730000005,
0.3183722413,
0.32399373330000003
]
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.22646332887090911,
"stddev": 0.018286709419308714,
"median": 0.22927644978000003,
"user": 0.17727458727272724,
"system": 0.06544942363636364,
"min": 0.19850507778,
"max": 0.25554020678,
"times": [
0.25554020678,
0.24315395578000001,
0.20882263878000001,
0.19850507778,
0.20496034678000002,
0.24307937578000002,
0.22927644978000003,
0.23242062278000003,
0.21405082078,
0.23948224078000002,
0.22180488178000002
]
},
{
"command": "pacquet@main",
"mean": 0.2329799736966667,
"stddev": 0.014931860117762276,
"median": 0.23292074278000002,
"user": 0.17368886000000003,
"system": 0.06528647666666666,
"min": 0.21219273578000003,
"max": 0.26201732778000003,
"times": [
0.23819466978000003,
0.23336606078000002,
0.22164089178000002,
0.21219273578000003,
0.23311050978000003,
0.25452839378000003,
0.24242136878000003,
0.22242404578000002,
0.23273097578000002,
0.21464362478000001,
0.22848907978000002,
0.26201732778000003
]
},
{
"command": "pnpr@HEAD",
"mean": 0.0875660657175,
"stddev": 0.0019879497464397006,
"median": 0.08728338128,
"user": 0.021130609999999994,
"system": 0.008884214375,
"min": 0.08397236978,
"max": 0.09207214078,
"times": [
0.08932837078,
0.08410629178000001,
0.08740240878000001,
0.09019909778,
0.08694254478,
0.08709268678,
0.08588994578,
0.08643309778000001,
0.08905239178,
0.08599012478000001,
0.08843114378,
0.08599484278,
0.08975276878,
0.08553635078,
0.09037974778,
0.08459263578000001,
0.09054222278,
0.08739027678,
0.08397236978,
0.08793799678,
0.08978318578000001,
0.08643188378000001,
0.08779747278000001,
0.08552111178,
0.08668254578000001,
0.08886138378,
0.08641912078,
0.08717648578000001,
0.08639358278,
0.08920492878,
0.08880294378,
0.09207214078
]
},
{
"command": "pnpr@main",
"mean": 0.08616658438606059,
"stddev": 0.002142851266802511,
"median": 0.08698924278,
"user": 0.019579041818181823,
"system": 0.009388933333333334,
"min": 0.08233047278,
"max": 0.08906057678,
"times": [
0.08569413778,
0.08386054878,
0.08581767978,
0.08906057678,
0.08793745478000001,
0.08685777578000001,
0.08707318978,
0.08753213378000001,
0.08870391778,
0.08778507878,
0.08797258178,
0.08678070078,
0.08593643278,
0.08824284978000001,
0.08646409378,
0.08698924278,
0.08720940678,
0.08682278978,
0.08813842378,
0.08659272678,
0.08742144578000001,
0.08795814378,
0.08725792778000001,
0.08733994178,
0.08253211078,
0.08718727578,
0.08262289178,
0.08233047278,
0.08248990178,
0.08239817978,
0.08281672678,
0.08726674378,
0.08240377978
]
}
]
}Scenario: Isolated linker: peer-heavy resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.022961443408889,
"stddev": 0.3180604538230942,
"median": 0.83849028952,
"user": 0.974960631111111,
"system": 0.19351222444444444,
"min": 0.65338190752,
"max": 1.50911315152,
"times": [
1.34844923052,
0.8199259965200001,
1.50911315152,
0.71005031752,
0.65338190752,
0.83849028952,
0.82747900352,
1.33949063952,
1.1602724545199998
]
},
{
"command": "pacquet@main",
"mean": 0.8732217014088889,
"stddev": 0.25846687438589283,
"median": 0.82703565052,
"user": 0.8272541866666666,
"system": 0.15332955777777776,
"min": 0.5597300335200001,
"max": 1.43984330552,
"times": [
1.1042096235199998,
0.69651555752,
0.75092784552,
0.8778752695200001,
0.8408274745200001,
0.82703565052,
1.43984330552,
0.7620305525200001,
0.5597300335200001
]
},
{
"command": "pnpm@HEAD",
"mean": 2.944409061297778,
"stddev": 0.07467525636273627,
"median": 2.9536399665200004,
"user": 4.555845519999999,
"system": 0.25445133555555555,
"min": 2.8463728195200004,
"max": 3.0902484185200003,
"times": [
2.90656915352,
2.93125456352,
2.8463728195200004,
2.96891108352,
2.9904758945200003,
2.9536399665200004,
2.96260211952,
3.0902484185200003,
2.8496075325200003
]
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.544118200220001,
"stddev": 0.1567665742764242,
"median": 4.4689839755200005,
"user": 1.7113080799999998,
"system": 1.3722785,
"min": 4.41770471702,
"max": 4.840123587020001,
"times": [
4.424582792020001,
4.45331544402,
4.43287817002,
4.840123587020001,
4.51302600202,
4.484652507020001,
4.43645125802,
4.41770471702,
4.667964163020001,
4.77048336202
]
},
{
"command": "pacquet@main",
"mean": 4.4981366214200005,
"stddev": 0.11489530272062219,
"median": 4.440516242020001,
"user": 1.7533924799999998,
"system": 1.3974782000000001,
"min": 4.427136803020001,
"max": 4.79603509002,
"times": [
4.55995665202,
4.4441705140200005,
4.433242234020001,
4.427136803020001,
4.520950554020001,
4.42787802702,
4.506285757020001,
4.79603509002,
4.42884861302,
4.436861970020001
]
},
{
"command": "pnpr@HEAD",
"mean": 3.4957442186200005,
"stddev": 0.0658013869707929,
"median": 3.4667486850199998,
"user": 1.19565558,
"system": 1.2106875000000001,
"min": 3.43920393502,
"max": 3.63707387002,
"times": [
3.46441624402,
3.43920393502,
3.45681204502,
3.50910671202,
3.63707387002,
3.44528351502,
3.46908112602,
3.45425551702,
3.4962260500199998,
3.58598317202
]
},
{
"command": "pnpr@main",
"mean": 3.5981672446199995,
"stddev": 0.14279070401242325,
"median": 3.56127754002,
"user": 1.20978158,
"system": 1.2022808,
"min": 3.45720467302,
"max": 3.86460845902,
"times": [
3.5765008210199998,
3.54853487302,
3.53166812702,
3.79264968502,
3.45913020302,
3.47169808702,
3.57402020702,
3.45720467302,
3.70565731102,
3.86460845902
]
}
]
} |
|
| Project | pnpm's project |
| Branch | pr/13738 |
| Testbed | pnpr |
⚠️ WARNING: No Threshold found!Without a Threshold, no Alerts will ever be generated.
Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the--ci-only-thresholdsflag.
Click to view all benchmark results
| Benchmark | Latency | milliseconds (ms) |
|---|---|---|
| isolated-linker.fresh-install.cold-cache.cold-store | 📈 view plot | 1,433.22 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 301.50 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 283.41 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 83.97 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 1,371.72 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 3,439.20 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 264.67 ms |
Summary
This PR resolves an inconsistency between the version policy Evaluator (runtime matcher) and the Normalizer (merge helper) in both the TypeScript and Rust stacks.
A bare-name or wildcard rule now consistently evaluates as matching every version, regardless of its position in the list relative to version-pinned rules. This prevents unexpected behavior where a version policy exemption was silently widened to cover all versions of a package when pnpm normalized and rewrote the workspace manifest.
Fixes #13725
Squash Commit Body
Checklist
pnpm/port.pnpm changeset) since this PR changes a published package.Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit