Repository navigation
fix(lockfile): keep a recorded deprecation when an unchanged resolution is rebuilt - #13878
Conversation
…on is rebuilt Registries can serve a published version's metadata inconsistently — node-registry.bit.cloud was observed serving `@teambit/[email protected]` with and without its deprecated field across consecutive requests. When an operation re-resolves such a package (an override edit, a targeted update) and lands on the unchanged resolution, the lockfile entry was rebuilt from whatever document the registry happened to serve, silently dropping the deprecated line: identical dependencies, different lockfile (#13846). deprecated is the one registry-mutable field of a published version, so it gets an asymmetric carry-over: a rebuilt entry whose resolution equals the previous lockfile entry's keeps the recorded deprecation when the fresh metadata lacks one, while a genuinely new deprecation still flows in. Carrying the whole previous entry over verbatim was considered and rejected — it would freeze legacy field forms and defeat rebuild-time normalization (the bundledDependencies normalization tests pin that repair). Implemented in both stacks: pacquet threads the wanted lockfile's packages map into dependencies_graph_to_lockfile next to the existing #10433 previous_importers plumbing; the TypeScript resolver applies the same rule in updateLockfile's toLockfileDependency, which already threads prevSnapshot for the tarball-integrity carry-over. Verified on the #13846 workload: with a drifted metadata cache, adding an override re-resolves the subtree and main drops the deprecated line, while this branch preserves it; cold installs (no previous lockfile) are byte-identical to main's output. 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 (3)
🚧 Files skipped from review as they are similar to previous changes (3)
📝 WalkthroughWalkthroughChangesUnchanged package metadata preservation
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested labels: Suggested reviewers: ✨ 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 QodoPreserve lockfile deprecations when unchanged resolutions are rebuilt
AI Description
Diagram
High-Level Assessment
Files changed (6)
|
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Reviews (2): Last reviewed commit: "refactor(lockfile): check the previous r..." | Re-trigger Greptile |
| Some(named_registry) => { | ||
| (named_registry.as_str(), sources.lockfile_include_tarball_url) | ||
| } | ||
| None => (sources.registry, true), | ||
| }, | ||
| None => (registry, lockfile_include_tarball_url), | ||
| None => (sources.registry, sources.lockfile_include_tarball_url), | ||
| }; | ||
| build_package_metadata(node, key, registry, include_tarball_url) | ||
| let mut metadata = build_package_metadata(node, key, registry, include_tarball_url); |
There was a problem hiding this comment.
Remove redundant behavior narration
This comment restates the missing-deprecation and equal-resolution branches already expressed by the predicate and covered by tests. The same narration also appears in the Rust test and TypeScript implementation, increasing maintenance cost and allowing the prose to drift from the tested behavior.
Context Used: Comments and docs in code are suspicious. Is test ... (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Code Review by Qodo
1. Empty deprecation carried over
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
…-over can apply The deep resolution compare now runs only for entries whose fresh metadata lacks a deprecation, and the comments shrink to the why the tests don't carry. Co-Authored-By: Claude Fable 5 <[email protected]>
Micro-Benchmark ResultsLinux |
|
Addressed both bot findings in 09ebce0: the TypeScript resolution compare now runs only when the fresh metadata lacks a deprecation (Qodo's hot-path point — the Rust side already short-circuited), and the narration comments are trimmed to the why-only remainder per the repo's tests-are-the-documentation convention (Greptile). Written by an agent (Claude Code, claude-fable-5). |
|
Code review by qodo was updated up to the latest commit 09ebce0 |
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 #13878 +/- ##
==========================================
- Coverage 88.29% 88.29% -0.01%
==========================================
Files 627 627
Lines 103689 103700 +11
==========================================
+ Hits 91552 91558 +6
- Misses 12137 12142 +5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Found 5 test failures on Blacksmith runners: Failures
|
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.7022475252,
"stddev": 0.1320418913148711,
"median": 2.7220665947000002,
"user": 2.2761676599999996,
"system": 1.7673176199999996,
"min": 2.5223772492,
"max": 2.8618238542,
"times": [
2.6931066202,
2.8618238542,
2.7510265692,
2.6672854552,
2.5453951712,
2.8587838082,
2.5372483192,
2.7558839462,
2.5223772492,
2.8295442592
]
},
{
"command": "pacquet@main",
"mean": 2.5603265544999996,
"stddev": 0.14377824239599485,
"median": 2.5290690622,
"user": 1.77656736,
"system": 1.4451881200000003,
"min": 2.3860183632,
"max": 2.7666561892,
"times": [
2.5903428902,
2.4677952342,
2.3860183632,
2.6943042082,
2.4598453422,
2.7072191422,
2.4344120062,
2.6859322752,
2.7666561892,
2.4107398942000002
]
},
{
"command": "pnpr@HEAD",
"mean": 1.5074026205000002,
"stddev": 0.17011224885452797,
"median": 1.4242833012,
"user": 1.25849706,
"system": 1.23463702,
"min": 1.3644797772000001,
"max": 1.8271242032000001,
"times": [
1.3664800692,
1.3644797772000001,
1.5875498402000001,
1.8271242032000001,
1.3801472252,
1.3993524482000002,
1.7557321522000002,
1.4492141542,
1.3823090682,
1.5616372672
]
},
{
"command": "pnpr@main",
"mean": 1.528367194,
"stddev": 0.17263517748047197,
"median": 1.4642768662,
"user": 1.15957506,
"system": 1.17190392,
"min": 1.3467542072,
"max": 1.7808295872,
"times": [
1.7808295872,
1.7781938832000002,
1.7301840772000001,
1.5219241682,
1.4022725072000002,
1.5339780872,
1.3467542072,
1.4066295642000002,
1.3851988292000001,
1.3977070292
]
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.27733554116,
"stddev": 0.02010108391186101,
"median": 0.27254581506,
"user": 0.24745896000000003,
"system": 0.5231290200000001,
"min": 0.24705391006000002,
"max": 0.31069504906,
"times": [
0.24705391006000002,
0.26634873706,
0.26560026606,
0.27874289306,
0.26288563206,
0.28466507206,
0.31069504906,
0.29801631106,
0.29763331206,
0.26171422905999997
]
},
{
"command": "pacquet@main",
"mean": 0.26399956836,
"stddev": 0.0049440687245349965,
"median": 0.26295462656,
"user": 0.23167285999999998,
"system": 0.51139892,
"min": 0.25786679606,
"max": 0.27414630606,
"times": [
0.27414630606,
0.26944083706,
0.25865567206,
0.26148809606,
0.26173136106,
0.26417789206,
0.25786679606,
0.26487347506,
0.26169326006,
0.26592198806
]
},
{
"command": "pnpr@HEAD",
"mean": 0.29359029966000005,
"stddev": 0.015143355974853357,
"median": 0.29195194455999995,
"user": 0.25736425999999996,
"system": 0.55457082,
"min": 0.27429430406,
"max": 0.32549514006,
"times": [
0.30004917506,
0.30952797406,
0.29201417106,
0.27767730806,
0.29310997406,
0.27429430406,
0.28505851806,
0.29188971805999997,
0.32549514006,
0.28678671406
]
},
{
"command": "pnpr@main",
"mean": 0.29421453785999996,
"stddev": 0.015056416114520653,
"median": 0.29388771055999996,
"user": 0.25423805999999993,
"system": 0.5297786200000001,
"min": 0.27994804006,
"max": 0.33033859906,
"times": [
0.28065312006,
0.29538144806,
0.28139162206,
0.29860373006,
0.27994804006,
0.30144826605999997,
0.28441985206,
0.29239397306,
0.33033859906,
0.29756672806
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.9176990911800003,
"stddev": 0.14131559851328349,
"median": 2.83942434028,
"user": 2.1305600399999998,
"system": 1.71742536,
"min": 2.77079967278,
"max": 3.16433906478,
"times": [
2.79931734578,
3.06040594378,
3.16433906478,
3.0908981417800003,
2.96672438178,
2.85132961578,
2.8220469717800003,
2.82751906478,
2.8236107087800004,
2.77079967278
]
},
{
"command": "pacquet@main",
"mean": 2.83231211668,
"stddev": 0.05283637039740279,
"median": 2.82309120878,
"user": 1.9532049399999998,
"system": 1.5693600599999997,
"min": 2.7707796467800003,
"max": 2.91780896778,
"times": [
2.91780896778,
2.89547369878,
2.8466858427800004,
2.86936391378,
2.79071840778,
2.77357113078,
2.86268996078,
2.79949657478,
2.7965330227800003,
2.7707796467800003
]
},
{
"command": "pnpr@HEAD",
"mean": 1.6536643947799998,
"stddev": 0.15525737184190264,
"median": 1.67855073578,
"user": 1.1711448399999997,
"system": 1.2037539599999998,
"min": 1.4496100127799998,
"max": 1.83352757078,
"times": [
1.4827973907799998,
1.82836680278,
1.76835862078,
1.7979415937799998,
1.5220794647799998,
1.4968610197799999,
1.4496100127799998,
1.6232017587799998,
1.83352757078,
1.73389971278
]
},
{
"command": "pnpr@main",
"mean": 1.59986693848,
"stddev": 0.1701637912857125,
"median": 1.52962171928,
"user": 1.16562364,
"system": 1.28468316,
"min": 1.44026480478,
"max": 1.90566994078,
"times": [
1.56288704278,
1.6480900757799999,
1.90566994078,
1.84384492878,
1.4664421937799998,
1.70850496878,
1.48302094978,
1.44358808378,
1.44026480478,
1.49635639578
]
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.4261749113800001,
"stddev": 0.021454308381225664,
"median": 0.42336822808,
"user": 0.5506041199999999,
"system": 0.6972856599999999,
"min": 0.39153109208000003,
"max": 0.46952434108,
"times": [
0.39153109208000003,
0.42151622708,
0.42522022908,
0.41101227908,
0.41347891508,
0.44889863108,
0.43180175608,
0.46952434108,
0.43127696308,
0.41748868008
]
},
{
"command": "pacquet@main",
"mean": 0.43104317468,
"stddev": 0.021382854194208767,
"median": 0.43279742858000003,
"user": 0.52321372,
"system": 0.6980135599999999,
"min": 0.40057038808,
"max": 0.46554289008,
"times": [
0.40493179008,
0.42782332008,
0.43346949608,
0.43506788708,
0.46044088108000003,
0.41202050608,
0.43843922708,
0.40057038808,
0.43212536108,
0.46554289008
]
},
{
"command": "pnpr@HEAD",
"mean": 0.30912292848,
"stddev": 0.005861286427962605,
"median": 0.30870017408,
"user": 0.21759022,
"system": 0.54664576,
"min": 0.29851954708,
"max": 0.31791927208,
"times": [
0.30786664908,
0.30953369908,
0.30777025908,
0.29851954708,
0.31504687608,
0.31472762008,
0.30532397108,
0.31099797008,
0.30352342108,
0.31791927208
]
},
{
"command": "pnpr@main",
"mean": 0.30486766098,
"stddev": 0.008448179067446687,
"median": 0.30291400607999996,
"user": 0.22169002,
"system": 0.51506726,
"min": 0.29513449108,
"max": 0.31680906508,
"times": [
0.30555958208,
0.31548927508,
0.29638122608,
0.29653274808,
0.29513449108,
0.31305665208,
0.29915608808,
0.30026843008,
0.31028905208,
0.31680906508
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.9225697408200002,
"stddev": 0.0489517512745197,
"median": 1.90422179622,
"user": 0.87414922,
"system": 0.7713117199999999,
"min": 1.8751171082200002,
"max": 2.03855676522,
"times": [
1.98021450122,
1.9034487292200002,
1.90499486322,
1.9122192932200002,
1.9146568352200002,
1.8751171082200002,
1.90040035422,
1.89780874522,
1.8982802132200003,
2.03855676522
]
},
{
"command": "pacquet@main",
"mean": 2.02638810842,
"stddev": 0.028375425788678764,
"median": 2.02921717122,
"user": 1.0309273199999998,
"system": 0.91941892,
"min": 1.98786431422,
"max": 2.0831707802199997,
"times": [
1.99075267322,
2.0152287472199997,
2.03820250722,
2.00541510322,
2.0831707802199997,
2.02641982922,
2.0455242502199997,
1.98786431422,
2.03928836622,
2.03201451322
]
},
{
"command": "pnpr@HEAD",
"mean": 0.37368353392,
"stddev": 0.021708991355315847,
"median": 0.36834925872,
"user": 0.26041512,
"system": 0.6448034199999999,
"min": 0.34803608822000004,
"max": 0.42525768722,
"times": [
0.38461451322,
0.36352272322,
0.42525768722,
0.35963753522,
0.36364311022,
0.38537740122,
0.34803608822000004,
0.37305540722,
0.37612846422,
0.35756240922000004
]
},
{
"command": "pnpr@main",
"mean": 0.37664518222000004,
"stddev": 0.024113502177094563,
"median": 0.37326677122,
"user": 0.2784676199999999,
"system": 0.6341841199999999,
"min": 0.34595209522000003,
"max": 0.42728745622000003,
"times": [
0.35614082722,
0.34595209522000003,
0.38733563822,
0.36093102422,
0.37268258422,
0.37421026622000003,
0.37385095822000003,
0.36395226322,
0.40410870922000003,
0.42728745622000003
]
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.27100297102000004,
"stddev": 0.015554308188528723,
"median": 0.26943055632,
"user": 0.24364496,
"system": 0.07697906,
"min": 0.25120930282000004,
"max": 0.29251289182000006,
"times": [
0.29251289182000006,
0.26707713682000006,
0.27332965282000005,
0.29146927282,
0.25120930282000004,
0.25166602382000003,
0.28780401782000004,
0.26928897882,
0.26957213382000006,
0.25610029882
]
},
{
"command": "pacquet@main",
"mean": 0.28019788332000006,
"stddev": 0.022038347359053315,
"median": 0.27631690782000007,
"user": 0.25054266000000003,
"system": 0.06519776,
"min": 0.25480560682000003,
"max": 0.32367702282000005,
"times": [
0.32367702282000005,
0.27569307082000005,
0.29131921982000003,
0.25724071082000005,
0.30683539082000005,
0.27694074482000003,
0.25480560682000003,
0.26481453882000006,
0.28429029982000004,
0.26636222782
]
},
{
"command": "pnpr@HEAD",
"mean": 0.09954241435571429,
"stddev": 0.003335588345967198,
"median": 0.09917148732,
"user": 0.02763838142857143,
"system": 0.013224674285714286,
"min": 0.09462843182,
"max": 0.11085603482,
"times": [
0.09960768582,
0.10568049082,
0.11085603482,
0.10005842582,
0.09964692882,
0.10355955982,
0.10108594382,
0.09787345282,
0.09859599682,
0.09886484382,
0.09592289282,
0.09852429082,
0.09947234982,
0.09462843182,
0.09702313981999999,
0.09989435582,
0.10085114082,
0.10026362282,
0.09577727982,
0.09530650982,
0.09789947182,
0.09887062482,
0.10287635182,
0.10003877782,
0.09867457482,
0.09681516782,
0.09704432882,
0.10147492682
]
},
{
"command": "pnpr@main",
"mean": 0.09874264411629628,
"stddev": 0.0033127939613839994,
"median": 0.09804878482,
"user": 0.027956004444444443,
"system": 0.012637997037037036,
"min": 0.09406107182,
"max": 0.10477301882,
"times": [
0.10300314082,
0.10416536282,
0.09804878482,
0.09553964082,
0.10297394482,
0.09920888282,
0.09614684582,
0.10126339782,
0.09406107182,
0.09684164682,
0.10477301882,
0.10452405982,
0.10006921582,
0.09538507882,
0.09711255782,
0.09677773582,
0.10189669382,
0.09955723982,
0.09639378082,
0.10103474682,
0.10018752882,
0.09700814082,
0.09503534982,
0.09940479182,
0.09406150182,
0.09647003582,
0.09510719482
]
}
]
}Scenario: Isolated linker: peer-heavy resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.7109560358488888,
"stddev": 0.0948860449586774,
"median": 0.7068392959600001,
"user": 0.6894809288888889,
"system": 0.1389712866666667,
"min": 0.56261023696,
"max": 0.83295644696,
"times": [
0.83295644696,
0.56261023696,
0.81578899096,
0.68948375496,
0.59357265796,
0.8021155159600001,
0.7068392959600001,
0.6728832679600001,
0.7223541549600001
]
},
{
"command": "pacquet@main",
"mean": 0.6778762840711112,
"stddev": 0.13503349672884804,
"median": 0.6944756819600001,
"user": 0.6720232622222222,
"system": 0.1409319533333333,
"min": 0.49094972996,
"max": 0.9268464609600001,
"times": [
0.68162243396,
0.49094972996,
0.71955905296,
0.6001902329600001,
0.6944756819600001,
0.70351959296,
0.50469236496,
0.7790310059600001,
0.9268464609600001
]
},
{
"command": "pnpm@HEAD",
"mean": 3.5554213276266666,
"stddev": 0.32604495677031337,
"median": 3.44272184496,
"user": 5.444852595555556,
"system": 0.3401502866666667,
"min": 3.14269598496,
"max": 4.01319572096,
"times": [
3.14269598496,
3.19580632696,
3.89555449696,
3.44272184496,
4.01319572096,
3.73925982296,
3.30553018296,
3.86098236996,
3.40304519796
]
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.621507518,
"stddev": 0.13449797380551762,
"median": 4.5939133031,
"user": 2.13666324,
"system": 1.65634244,
"min": 4.4489471426,
"max": 4.9074221836,
"times": [
4.5744221326,
4.6134044736,
4.4892439316,
4.685986875599999,
4.7389982376,
4.4489471426,
4.5245378006,
4.9074221836,
4.5708760076,
4.6612363945999995
]
},
{
"command": "pacquet@main",
"mean": 4.5928789964,
"stddev": 0.17050424410342213,
"median": 4.5526562276,
"user": 1.89723774,
"system": 1.49032514,
"min": 4.4064699376,
"max": 4.9240405026,
"times": [
4.9240405026,
4.5521925826,
4.8373799896,
4.4550878176,
4.5770242266,
4.6637661926,
4.5531198726,
4.4329491946,
4.4064699376,
4.5267596476
]
},
{
"command": "pnpr@HEAD",
"mean": 3.535674542,
"stddev": 0.12323546613357414,
"median": 3.5012284586,
"user": 1.22241514,
"system": 1.2351285400000003,
"min": 3.4476653736,
"max": 3.8698066496,
"times": [
3.5251986176,
3.5724005846,
3.8698066496,
3.5261551386,
3.4476653736,
3.4802804256,
3.4983554406,
3.5041014766000003,
3.4849007956,
3.4478809176
]
},
{
"command": "pnpr@main",
"mean": 3.7118731195000003,
"stddev": 0.16384370165580972,
"median": 3.6714037536,
"user": 1.7361709399999998,
"system": 1.75229514,
"min": 3.5087276666,
"max": 4.0039729946,
"times": [
3.5505806106000004,
3.6363131326,
3.5087276666,
3.6241228836,
4.0039729946,
3.8399646186000003,
3.9139156156,
3.7064943746,
3.5825842686000002,
3.7520550296
]
}
]
} |
|
| Project | pnpm's project |
| Branch | pr/13878 |
| 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,449.61 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 348.04 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 298.52 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 94.63 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 1,364.48 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 3,447.67 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 274.29 ms |
![Fix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light.png)
Summary
The one lockfile flap still reproducible on
mainfor the #13846 workload is not a resolver-ordering bug: node-registry.bit.cloud serves@teambit/[email protected]with and without itsdeprecatedfield across consecutive requests. Whenever an operation re-resolves the containing subtree — an override edit, a targeted update — and lands on the unchanged resolution, thepackages:entry was rebuilt from whatever document the registry happened to serve, silently dropping (or restoring) thedeprecated:line. Identical dependencies, different lockfile.Following the fast-path principle that an operation must not change entries it doesn't affect:
deprecatedis the one registry-mutable field of a published version, so it gets an asymmetric carry-over. A rebuilt entry whose resolution equals the previous lockfile entry's keeps its recorded deprecation when the fresh metadata lacks one; a genuinely new deprecation still flows in through the fresh metadata. Carrying the whole previous entry over verbatim was considered and rejected: it would freeze legacy field forms and defeat rebuild-time normalization (thebundledDependenciesnormalization tests pin that repair).Implemented in both stacks:
packages:map is threaded intodependencies_graph_to_lockfilenext to the existing pnpm update changes link to file for workspace dependency #10433previous_importersplumbing.updateLockfile'stoLockfileDependency, which already threadsprevSnapshotfor the tarball-integrity carry-over.Verified on the #13846 workspace with the genuinely drifted cache from that investigation: adding an override re-resolves the subtree, and
maindrops thedeprecated:line while this branch preserves all nine. Cold installs (no previous lockfile) are byte-identical tomain's output, and the fullpacquet-package-managersuite (581) plus the TSupdateLockfiletests (16, including the normalization matrix) pass. Cost is one map lookup and a resolution compare per rebuilt entry.Related to #13846.
Squash Commit Body
Checklist
pnpm/port, or the description notes what still needs porting.pnpm changeset) if this PR changes any published package.Updated the documentation if needed.(no user-facing surface changed)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