Skip to content

Adopt Semantic Versioning 2.0.0: returning X.Y.Z instead of vX.Y.Z for node -v #40964

Closed
@pubmikeb

Description

@pubmikeb

Is your feature request related to a problem? Please describe.
Following https://github.com/nodejs/node/discussions/40957, Node.js version format contains a v-prefix prior the version, e.g. node -v returns v17.1.0. According to the https://semver.org/#is-v123-a-semantic-version, v17.1.0 is not semver compliant.

Describe the solution you'd like
Drop v from the version number and return 17.1.0 for node -v.

It should not be a problem at all if implemented in a major version:

MAJOR version when you make incompatible API changes

Besides, if a Node.js version check implemented properly, not just substringing the first char, it should not break anything.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions