Skip to main content

Module document

Module document 

Source
Expand description

Composer v2 repository wire documents: the per-package p2/*.json (PackageDocument) and the root packages.json (RootManifest).

Structsยง

PackageDocument
A /p2/<vendor>/<name>.json document: a map (usually single-entry, keyed by vendor/name) of version lists. When minified is Some("composer/2.0"), the version lists are sparse diffs (see crate::minify); otherwise each entry stands alone.
RootManifest
The root packages.json of a Composer v2 repository. Tells a client where to fetch per-package metadata (metadata_url, a template with a %package% placeholder) and, optionally, which packages exist. Unknown root keys round-trip through extra.