Repository navigation
fix(resolver): resolve hoisted peers as subdeps under resolutionMode - #13877
Conversation
An auto-installed (hoisted) peer of a transitive dependency was resolved with the importer-level pick options, so under resolutionMode: lowest-direct / time-based it landed on the lowest version satisfying the peer range. A hoisted peer is not a dependency the user declared: the TypeScript CLI resolves it like a transitive dep, to the highest satisfying version under the subdep publish-date cutoff. pacquet now switches the importer ctx's depth-0 pick options to the subdep options once the manifest-declared direct deps have seeded — everything extend_tree walks after that point is a hoist arm. The bug was latent (any active release-age cutoff disabled resolutionMode entirely, masking it) and was unmasked by #13831. It surfaced in #13871, where clipanion's `typanion: *` peer resolved to [email protected] — whose published manifest ships its build tooling as runtime dependencies — adding ~136 spurious packages to the lockfile. The TypeScript CLI already behaves this way; it gains a pinning test for the same scenario. Co-Authored-By: Claude Fable 5 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
💤 Files with no reviewable changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe resolver now treats newly resolved hoisted peers as subdependencies after the initial direct dependency pass. Tests verify highest-satisfying-version selection under ChangesHoisted peer resolution
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant ImporterHoistState
participant TreeCtx
participant DependencyResolver
ImporterHoistState->>TreeCtx: Extend initial direct dependency tree
ImporterHoistState->>TreeCtx: Switch new direct dependencies to subdependency options
TreeCtx->>DependencyResolver: Resolve hoisted peers with subdependency semantics
Possibly related PRs
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
PR Summary by QodoFix hoisted peer resolution under lowest-direct/time-based modes
AI Description
Diagram
High-Level Assessment
Files changed (5)
|
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Reviews (2): Last reviewed commit: "test(resolver): pin time-based hoisted-p..." | Re-trigger Greptile |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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.
Inline comments:
In @.changeset/hoisted-peers-resolve-as-subdeps.md:
- Line 5: Update the changeset description to state that under resolutionMode:
time-based, an auto-installed hoisted peer resolves to the highest version
satisfying its peer range within the applicable publish-date cutoff; retain the
existing lowest-direct behavior and concise user-facing wording.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 882db634-abad-437c-9d5a-9523e3ae1335
📒 Files selected for processing (5)
.changeset/hoisted-peers-resolve-as-subdeps.mdpnpm/crates/cli/tests/suite/install.rspnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree/tree_ctx.rspnpm/crates/resolving-deps-resolver/src/resolve_importer.rspnpm11/installing/deps-installer/test/install/resolutionMode.ts
Code Review by Qodo
1. Missing deps-installer changeset entry
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
…ed narration Review follow-up: add the time-based variant of the hoisted-peer test in both stacks (the option switch also moves hoisted peers onto the subdep publish-date cutoff, which the lowest-direct test alone would not catch), remove the call-site comment that repeated the callee's documentation, shrink the test narration to the one-line why, and state the time-based cutoff constraint in the changeset. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Regarding the three Qodo findings — declining all three, with reasons:
Written by an agent (Claude Code, claude-fable-5). |
|
Code review by qodo was updated up to the latest commit 84b67f0 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13877 +/- ##
==========================================
- Coverage 88.29% 88.29% -0.01%
==========================================
Files 627 627
Lines 103689 103693 +4
==========================================
+ Hits 91552 91555 +3
- Misses 12137 12138 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Micro-Benchmark ResultsLinux |
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.61174822038,
"stddev": 0.15778216280564816,
"median": 2.62947234608,
"user": 1.7434252000000001,
"system": 1.3977206,
"min": 2.38382465858,
"max": 2.82603907558,
"times": [
2.78899050258,
2.57894274458,
2.63607863958,
2.75139049558,
2.82603907558,
2.38382465858,
2.46678181458,
2.39072023458,
2.67184798558,
2.62286605258
]
},
{
"command": "pacquet@main",
"mean": 2.6418104345800004,
"stddev": 0.2277232930409106,
"median": 2.56025799858,
"user": 2.2846190999999996,
"system": 1.7406836999999995,
"min": 2.39830911958,
"max": 3.03185915058,
"times": [
2.64795086158,
3.03185915058,
2.4818654265799998,
2.54756274558,
3.02959126358,
2.57295325158,
2.52623163358,
2.74439618358,
2.39830911958,
2.43738470958
]
},
{
"command": "pnpr@HEAD",
"mean": 1.5278616209800002,
"stddev": 0.13225977112417361,
"median": 1.48086757608,
"user": 1.2383501,
"system": 1.2676311,
"min": 1.37900506258,
"max": 1.7564039395800002,
"times": [
1.39718859558,
1.42497883758,
1.45022959958,
1.4987196225800001,
1.46301552958,
1.70807595358,
1.62572758858,
1.37900506258,
1.7564039395800002,
1.57527148058
]
},
{
"command": "pnpr@main",
"mean": 1.5538714308800001,
"stddev": 0.16404766902832815,
"median": 1.47754358258,
"user": 1.2144010999999997,
"system": 1.2991243,
"min": 1.37407462258,
"max": 1.7776024105800001,
"times": [
1.7558769335800002,
1.44970342558,
1.7776024105800001,
1.37407462258,
1.4392163415800001,
1.48086043258,
1.4742267325800003,
1.38515214158,
1.6248914275800002,
1.77710984058
]
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.27146816054,
"stddev": 0.009398099033684545,
"median": 0.27206923884,
"user": 0.23361369999999998,
"system": 0.5519229400000001,
"min": 0.25511065134000005,
"max": 0.28345783734,
"times": [
0.27079918734,
0.27245228334000005,
0.28011998734000004,
0.27705302034000007,
0.28345783734,
0.28064942734000003,
0.25511065134000005,
0.27168619434,
0.26153326234,
0.26181975434000004
]
},
{
"command": "pacquet@main",
"mean": 0.27491259194000006,
"stddev": 0.008052864419520146,
"median": 0.27292168534000005,
"user": 0.2448298,
"system": 0.5364508399999999,
"min": 0.26567612734000007,
"max": 0.28757011834000007,
"times": [
0.26572777534,
0.27148585134000003,
0.26567612734000007,
0.28063339234000007,
0.28757011834000007,
0.27892694834000004,
0.27049060934,
0.27435751934,
0.28616984134000006,
0.26808773634000005
]
},
{
"command": "pnpr@HEAD",
"mean": 0.28688105114000007,
"stddev": 0.011677416261872622,
"median": 0.28571360734000006,
"user": 0.23436950000000004,
"system": 0.5650907399999998,
"min": 0.26514624534000003,
"max": 0.30493989334000005,
"times": [
0.28557126834,
0.29127904934000004,
0.26514624534000003,
0.27473091534000005,
0.28818178234,
0.28519858334000003,
0.30493989334000005,
0.28585594634000006,
0.28516589134000003,
0.30274093634000004
]
},
{
"command": "pnpr@main",
"mean": 0.29744323284000007,
"stddev": 0.007486755688482494,
"median": 0.29715283384,
"user": 0.2420607,
"system": 0.5856982399999999,
"min": 0.28394481434,
"max": 0.31098927934000004,
"times": [
0.31098927934000004,
0.29309432034000005,
0.28394481434,
0.30020395134000005,
0.29921810834000007,
0.29508755934,
0.29431347534,
0.30285268734000004,
0.30304107334,
0.29168705934000005
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.7826531792199996,
"stddev": 0.016964596062278826,
"median": 2.77827463992,
"user": 1.69847322,
"system": 1.43851454,
"min": 2.76095212342,
"max": 2.80696602942,
"times": [
2.80696602942,
2.77650235942,
2.77239758942,
2.80370831142,
2.76095212342,
2.78004692042,
2.80287172842,
2.76821138542,
2.7889104254199997,
2.76596491942
]
},
{
"command": "pacquet@main",
"mean": 2.9712328786199995,
"stddev": 0.17693032887597576,
"median": 2.99387708042,
"user": 2.1864497199999997,
"system": 1.75491934,
"min": 2.75453643142,
"max": 3.1971851184199997,
"times": [
2.75453643142,
2.7592492214199997,
2.7681233984199998,
2.86806229742,
3.17340585142,
3.1745768864199997,
3.02943542042,
3.1971851184199997,
2.98254452042,
3.00520964042
]
},
{
"command": "pnpr@HEAD",
"mean": 1.7965354984200004,
"stddev": 0.1866488190087281,
"median": 1.7603381994200002,
"user": 1.6483660199999999,
"system": 1.75482934,
"min": 1.5851769284200001,
"max": 2.0992714054199997,
"times": [
1.67844390342,
2.0992714054199997,
1.6150929054200003,
1.9555520084200002,
1.7154383834200002,
1.5851769284200001,
1.8052380154200003,
1.5964968164200002,
1.8994754274200003,
2.01516919042
]
},
{
"command": "pnpr@main",
"mean": 1.83108372692,
"stddev": 0.09851515180612219,
"median": 1.81281124842,
"user": 1.66363422,
"system": 1.83517704,
"min": 1.6650156604200002,
"max": 1.9970465504200001,
"times": [
1.9493420584200003,
1.8911307784200002,
1.7620907784200002,
1.8156459254200001,
1.8099765714200002,
1.8752684914200002,
1.9970465504200001,
1.75831790042,
1.7870025544200001,
1.6650156604200002
]
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.65433938724,
"stddev": 0.06418612213070807,
"median": 0.65700721364,
"user": 0.9266174399999999,
"system": 0.96856046,
"min": 0.5601305226400001,
"max": 0.77239906564,
"times": [
0.58208831664,
0.6930448826400001,
0.77239906564,
0.6098799436400001,
0.7083202996400001,
0.6880073466400001,
0.6576603686400001,
0.6563540586400001,
0.5601305226400001,
0.61550906764
]
},
{
"command": "pacquet@main",
"mean": 0.7080586627400001,
"stddev": 0.03546419629136183,
"median": 0.72111011914,
"user": 0.98798154,
"system": 1.0235286600000002,
"min": 0.65893511364,
"max": 0.75830713364,
"times": [
0.6862616946400001,
0.6686364746400001,
0.7286556636400001,
0.75830713364,
0.73159587664,
0.72792711864,
0.7142931196400001,
0.6649817276400001,
0.7409927046400001,
0.65893511364
]
},
{
"command": "pnpr@HEAD",
"mean": 0.45572980204000013,
"stddev": 0.03655354936621449,
"median": 0.45333387814000004,
"user": 0.35880754000000004,
"system": 0.7697194599999999,
"min": 0.37983121564000005,
"max": 0.5100784056400001,
"times": [
0.5100784056400001,
0.4558454866400001,
0.44743716864000005,
0.4679416906400001,
0.44688202864000004,
0.48034221864000004,
0.49343083664000004,
0.45082226964000005,
0.42468669964000005,
0.37983121564000005
]
},
{
"command": "pnpr@main",
"mean": 0.42045585684000003,
"stddev": 0.03886771157421146,
"median": 0.41452264214,
"user": 0.32808204,
"system": 0.6999790599999999,
"min": 0.35500512264000006,
"max": 0.49032577564000007,
"times": [
0.40419740864000003,
0.35500512264000006,
0.40378621964000005,
0.40340096164000006,
0.49032577564000007,
0.44517353864000003,
0.43653942264000006,
0.4574419376400001,
0.42484787564000004,
0.38384030564000005
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.9246631815599997,
"stddev": 0.020103960592338734,
"median": 1.9225947273600001,
"user": 0.8219904399999999,
"system": 0.8035789,
"min": 1.89702663586,
"max": 1.9649192528600001,
"times": [
1.89702663586,
1.9201718208600003,
1.92521846386,
1.92501763386,
1.9482114508600001,
1.9334377848600002,
1.9649192528600001,
1.9083273848600002,
1.91539794286,
1.90890344486
]
},
{
"command": "pacquet@main",
"mean": 1.9105350393600002,
"stddev": 0.00752575654212435,
"median": 1.90895473436,
"user": 0.8160556399999999,
"system": 0.7898405,
"min": 1.8986811118600002,
"max": 1.92360333186,
"times": [
1.9138651648600002,
1.9046998748600001,
1.8986811118600002,
1.92360333186,
1.9137947028600002,
1.92019955486,
1.9082566998600001,
1.90835807086,
1.90955139786,
1.90434048386
]
},
{
"command": "pnpr@HEAD",
"mean": 0.31832040695999997,
"stddev": 0.012921609914151968,
"median": 0.31651102186,
"user": 0.21814673999999998,
"system": 0.5505313000000001,
"min": 0.30228496986000003,
"max": 0.33940971486,
"times": [
0.31044561286,
0.31029558786,
0.32118130386,
0.31967754986,
0.30229482986,
0.31334449386,
0.30228496986000003,
0.33138793486,
0.33288207186,
0.33940971486
]
},
{
"command": "pnpr@main",
"mean": 0.32098878556000005,
"stddev": 0.009338021080012032,
"median": 0.32204502286000003,
"user": 0.22899163999999997,
"system": 0.5616470000000001,
"min": 0.30101950786,
"max": 0.33548570486,
"times": [
0.33548570486,
0.32135122586000003,
0.30101950786,
0.31935171486,
0.32467671486,
0.31981725586,
0.32280142786,
0.32273881986,
0.31261932286,
0.33002616086000003
]
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.24727582461999997,
"stddev": 0.045724839794621476,
"median": 0.22639137412,
"user": 0.20653642,
"system": 0.07188423999999997,
"min": 0.21544410712,
"max": 0.35936323512000007,
"times": [
0.35936323512000007,
0.29491150412000006,
0.22561707512,
0.22366065512,
0.24445545912,
0.21544410712,
0.21721423512000002,
0.24218850212,
0.22716567312,
0.22273780012
]
},
{
"command": "pacquet@main",
"mean": 0.23517208220333338,
"stddev": 0.030545235693418726,
"median": 0.22656750211999999,
"user": 0.19851177,
"system": 0.06204644,
"min": 0.19906755812000002,
"max": 0.29047801112000005,
"times": [
0.23736359812000002,
0.23419915412,
0.21283638612,
0.25254394412000003,
0.19906755812000002,
0.29047801112000005,
0.21423489012,
0.20026986212,
0.21721979512,
0.27843808212000004,
0.21893585012,
0.26647785512000005
]
},
{
"command": "pnpr@HEAD",
"mean": 0.09934386358875,
"stddev": 0.008797352576031118,
"median": 0.09906697712000001,
"user": 0.027039051250000008,
"system": 0.013131221249999998,
"min": 0.08750419612000002,
"max": 0.12173477812000001,
"times": [
0.08750419612000002,
0.09198387712000002,
0.10172076012000002,
0.09401526812000001,
0.09157098612000002,
0.09163790312000002,
0.09595212112000001,
0.09054135012000002,
0.09356830312000002,
0.08909080712,
0.09827336112000001,
0.09178096312000002,
0.09254096112000001,
0.09142344712000001,
0.09193367212,
0.09292654012000001,
0.10060214512000001,
0.12096413012000001,
0.10003494212000001,
0.09607825012000001,
0.11760825412000002,
0.10549715212,
0.12173477812000001,
0.10092307212000001,
0.10617103612,
0.10614257212000001,
0.09986059312000001,
0.10456397712000001,
0.10068217712000001,
0.10312348312000001,
0.10115025112,
0.10740230412000001
]
},
{
"command": "pnpr@main",
"mean": 0.10521651264380953,
"stddev": 0.010094649089753565,
"median": 0.10111626712,
"user": 0.02879066285714285,
"system": 0.017276154285714284,
"min": 0.09448133012000001,
"max": 0.13211816312,
"times": [
0.13211816312,
0.09940844812,
0.11741272412,
0.09907720112000001,
0.11075967312000001,
0.09975101512000001,
0.10257445512,
0.09831997912000001,
0.10111626712,
0.12269136612,
0.10459812112000001,
0.09448133012000001,
0.10128653912,
0.11090712312,
0.09882632612000002,
0.09769706112000001,
0.11910610612000001,
0.10029456312000001,
0.09553261712000001,
0.09624137812000001,
0.10734630812000001
]
}
]
}Scenario: Isolated linker: peer-heavy resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.6170765130044444,
"stddev": 0.07360898574754006,
"median": 0.64296713256,
"user": 0.6020629711111111,
"system": 0.11336236222222223,
"min": 0.53311399856,
"max": 0.75019770856,
"times": [
0.53923005556,
0.65416043156,
0.5876449675600001,
0.53562992656,
0.64296713256,
0.65108195956,
0.53311399856,
0.65966243656,
0.75019770856
]
},
{
"command": "pacquet@main",
"mean": 0.5749909496711111,
"stddev": 0.0980746242447625,
"median": 0.53039423456,
"user": 0.5639755266666666,
"system": 0.1117603622222222,
"min": 0.48772114156,
"max": 0.75817958456,
"times": [
0.53039423456,
0.52426877056,
0.50294096556,
0.5413768035600001,
0.75817958456,
0.49328850056,
0.64867576856,
0.6880727775600001,
0.48772114156
]
},
{
"command": "pnpm@HEAD",
"mean": 3.124525306337778,
"stddev": 0.11916955421867348,
"median": 3.08744750456,
"user": 4.813035859999999,
"system": 0.25782347333333333,
"min": 3.0096403955600004,
"max": 3.3403198675600003,
"times": [
3.3403198675600003,
3.08744750456,
3.1686049305600004,
3.0392295545600003,
3.27508129956,
3.0314415455600003,
3.0096403955600004,
3.0184762155600002,
3.15048644356
]
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.565962939180001,
"stddev": 0.1731501835252251,
"median": 4.47319135528,
"user": 1.8491132799999999,
"system": 1.4748171,
"min": 4.43988041278,
"max": 4.88510017878,
"times": [
4.80952106378,
4.47445087178,
4.46508496878,
4.45043233778,
4.73870656078,
4.88510017878,
4.43988041278,
4.44389996278,
4.47193183878,
4.4806211957799995
]
},
{
"command": "pacquet@main",
"mean": 4.68553572478,
"stddev": 0.14809759683342474,
"median": 4.66181392178,
"user": 2.2433469799999997,
"system": 1.7197003,
"min": 4.4951572217799995,
"max": 4.99769561578,
"times": [
4.76050945278,
4.6977840647799995,
4.62584377878,
4.72216967378,
4.99769561578,
4.4951572217799995,
4.58758959178,
4.5501796917799995,
4.81874951978,
4.59967863678
]
},
{
"command": "pnpr@HEAD",
"mean": 3.63417653418,
"stddev": 0.10922168960277202,
"median": 3.60012637378,
"user": 1.5512670800000001,
"system": 1.446624,
"min": 3.52522154678,
"max": 3.82071297078,
"times": [
3.5374880967799998,
3.62201152978,
3.71107963778,
3.5671263177799997,
3.57824121778,
3.80395250278,
3.63575381078,
3.54017771078,
3.82071297078,
3.52522154678
]
},
{
"command": "pnpr@main",
"mean": 3.5678732545800003,
"stddev": 0.022455244880258456,
"median": 3.56925216278,
"user": 1.4540436799999998,
"system": 1.4600654,
"min": 3.54481693578,
"max": 3.61641839178,
"times": [
3.61641839178,
3.54481693578,
3.57624396578,
3.5848936237799998,
3.57406333078,
3.5483825947799996,
3.57421686178,
3.56444099478,
3.54732399378,
3.5479318527799997
]
}
]
} |
![Fix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light.png)
Summary
Under
resolutionMode: lowest-direct(ortime-based), pacquet resolved auto-installed (hoisted) peers of transitive dependencies to the lowest version satisfying the peer range. A hoisted peer is installed at the importer level, so the hoist arms of the importer orchestrator re-entered the tree walk at depth 0 and inherited the direct-dep pick options. The TypeScript CLI resolves hoisted peers throughimporter.options, which never carriespickLowestVersion— they resolve like transitive deps, to the highest satisfying version.This is what blew up the lockfile diff in #13871 (Related to #13871): clipanion's
typanion: *peer (deep under@yarnpkg/core/@yarnpkg/shell) resolved to[email protected], whose published manifest ships its build tooling (@babel/preset-env, mocha, rollup,@wessberg/*, …) as runtimedependencies, dragging ~136 spurious packages into the lockfile. The bug was latent — before #13831, any active release-age cutoff (including the built-inminimumReleaseAgedefault) disabledresolutionModeentirely — and #13831 unmasked it.The fix: once
ImporterHoistState::inithas seeded the manifest-declared direct deps, the importer'sTreeCtxswitches its depth-0 pick options to the subdep options (TreeCtx::resolve_new_direct_deps_as_subdeps). Everyextend_treeafter that point installs hoisted peers (required or optional), which now pick the highest satisfying version under the subdep publish-date cutoff — also matching the TypeScript CLI'stime-basedbehavior, where hoisted peers resolve under the computedpublishedBycutoff. The importer's own manifestpeerDependenciesunderautoInstallPeersstill get the direct-dep pick, as in the TypeScript CLI.The TypeScript CLI needed no behavior change; it gains a pinning test for the same scenario. Verified end-to-end against the real registry: the
@yarnpkg/shellfixture resolves typanion to 3.14.0 again, while a directundici: ^7.27.2underminimumReleaseAgestill lands on 7.27.2 (the #13831 fix is preserved). The change is outsideresolve_peers, adds oneResolveOptionsclone per importer, and leaves cache-key shapes unchanged, so it is perf-neutral.Squash Commit Body
Checklist
pnpm/port, or the description notes what still needs porting.pnpm changeset) if this PR changes any publishedpackage. Keep it short and written for pnpm users — it becomes a release note.
Written by an agent (Claude Code, claude-fable-5).
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit
Bug Fixes
lowest-directandtime-basedmodes.Tests