Skip to content

Tag target CDM with semver expression #27

@chrisknoll

Description

@chrisknoll

Feature request

As the CDM evolves, there may be instances where an circe expression is constructed that does not support a certain CDM capability. This feature request proposes to add a 'targetCDM' property that is a a semver range expression (example and documentation). Authors can declare which version of a CDM this expression applies to. Using this, a validation check can be made before execution that the expression is compatible with the CDM version.

examples:

cdmTarget: '>5.0.1'
cdmTarget:'5.0.1 || >=5.3 < 6.0'

In javascript, this expression could be evaluated using:

semver.satisfies(cdmVersion, cdmTarget) // true when the cdmVersion fits in the cdmTarget semver range

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