Skip to content

feat: Clarify semantic versioning usage example in package.json - #2068

Open
tazokuetep24 wants to merge 1 commit into
npm:mainfrom
tazokuetep24:patch-1
Open

tazokuetep24 wants to merge 1 commit into
npm:mainfrom
tazokuetep24:patch-1

Conversation

@tazokuetep24

Copy link
Copy Markdown

Updated the explanation of specifying acceptable version ranges for dependencies in the package.json file.

The request aims to clarify the choosing of version ranges using semver in the packag.json. In the current example, it ambiguously says that it defines version ranges up to 1.0.4 and then goes on to list version ranges that start from 1.0.4. A reader (like me) might then think that a Minor release version range such as ^1.0.4 shoul only take versions below 1.0.4 up to this version. Which is not the case.
In the reformulated text, I attempt to make this distinciton clearer, by adding examples of the versions that are to be expected when a particular version range is used. I believe it helps reconcile with the results delivered be the npm semver calculator which is linked following the example

References

Updated the explanation of specifying acceptable version ranges for dependencies in the package.json file.
@tazokuetep24
tazokuetep24 requested review from a team and leobalter as code owners October 22, 2026 09:55
@ciricsky-gif

Copy link
Copy Markdown

/

@ciricsky-gif ciricsky-gif left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/

@ciricsky-gif

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants