Packages.json doesn't expose the metadata changes endpoint

Created on 4 March 2025, about 1 month ago

Problem/Motivation

The Composer repository API describes an endpoint where consumers of the repository can fetch a list of packages that have been updated since a given timestamp. This is described in the Composer repository JSON schema at: https://github.com/composer/composer/blob/d7139f4d86931513e6d8e4b5ce441e...

https://drupal.org already has such an endpoint at https://packages.drupal.org/8/metadata/changes.json but unfortunately, the packages.json currently doesn't indicate that such an endpoint exists. Having the endpoint as part of the packages.json response makes it easy for consumers of the Composer repository to discover the endpoint without having to find it first and then hard-code the URL in their code.

Steps to reproduce

Access https://packages.drupal.org/8/packages.json and noticed that the packages.json doesn't return a "metadata-changes-url" entry.

Proposed resolution

Add the following entry to the packages.json

"metadata-changes-url": "https://packages.drupal.org/8/metadata/changes.json", # or "/8/metadata/changes.json",
πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024