Skip to content

Implement the SemVer Expressions API #1

@zafarkhaja

Description

@zafarkhaja

The SemVer Expressions API shall consist of a single method boolean Version.satisfies(String expr) which will take a SemVer expression as its argument. Below are examples of what SemVer expressions might look like:

1.*
~1.5
>1.0.0 & <2.0.0
>1.5.0 & !=1.5.10
1.* | 2.*
<=1.9
!(>=1.0 & <2.0)
(0.* | 1.*) & <3

The grammar of the SemVer Expressions is subject to further revision.

As a part of this issue, a SemVer expression parser needs to be implemented as well.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions