Skip to content

[DOCS] No mention of ranges such as >3. #275

Closed
@coreyfarrell

Description

@coreyfarrell
$ node -e "console.log(require('semver').Range('>3'))"
Range {
  options: { loose: false, includePrerelease: false },
  loose: false,
  includePrerelease: false,
  raw: '>3',
  set: [ [ [Comparator] ] ],
  range: '>=4.0.0' }

This behavior of the greater than range with missing minor/patch is not documented. Based on the documentation I had expected that >3 and >3.0.0 were the same range.

A similar thing happens with >3.0 becoming >=3.1.0, though >3.0.0 remains >3.0.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Documentationpull request requires docs before merging

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions