Improve registry data extraction for older versions of composer packages#706
Merged
qtomlinson merged 4 commits intoclearlydefined:masterfrom Feb 13, 2026
Merged
Conversation
JamieMagee
reviewed
Feb 13, 2026
JamieMagee
approved these changes
Feb 13, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Composer v2 metadata (p2 API) is compressed—only the latest version has full metadata, while older versions are diffs. This PR attempts to combine the registry data from latest till target version so that the full manifest can be reconstructed.
This is a follow up for #662, to address comment #662 (review). This also addresses integration test failures in definition and notice comparison for composer/packagist/symfony/polyfill-mbstring/v1.28.0. See comment.
The test fixture, registryData.json, is re-formatted to improve readability.