Skip to content

Deprecate SEMVER range type. Β #314

@oliverchang

Description

@oliverchang

SEMVER was a special case we introduced early on in the schema. The difference with ECOSYSTEM was that we had required ECOSYSTEM types at the time to come with an exploded list of versions in the versions array. The reasoning was that it was difficult as a record consumer to make use of ECOSYSTEM version ranges directly, because there are many versioning schemes to implement. SEMVER on the other hand was well defined and had easy to understand rules, so it did not have this requirement.

We dropped this requirement in #18, as it turned out it was difficult also for record producers to reliably generate this data. This gap is now being filled by OSV.dev, which implements all the different versioning schemes to support version ordering an matching without requiring record producers to include an exploded array of versions.

Given the backwards compatible nature of the schema -- we can't just drop this type completely. What we can do instead is add text to recommend just using ECOSYSTEM.

@andrewpollock @darakian @taladrane

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions