Skip to content

[feature] admit parentheses in version spec. #2232

@rotu

Description

@rotu

Is your feature request related to a problem? Please describe.

Operator ranges are ambiguous. E.g.

> proto pin npm '>10, <11 || >11, <12'

│ SUCCESS
│ Pinned npm version >11, <12 || >10, <11 to config D:\SonarView\.prototools

It's not clear if the input was parsed as (>11 AND <12) OR (>10 AND <11) versus (>11) AND (<12 OR >10) AND (<11).

Describe the solution you'd like

Add (and admit as input) parentheses for grouping. e.g.:

Pinned npm version (>11, <12) || (>10, <11) to config D:\SonarView\.prototools

Describe alternatives you've considered

Normalize every version specifier expression to a union of intervals.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions