Skip to content

Conversation

@chr1shaefn3r
Copy link
Contributor

Instead of relying only on a "=" prefix, this enhanced version works by
making sure all "non-absolute" version rangs are not used, e.g. "~", "^".

From the semver Backus-Naur grammar
(https://www.npmjs.com/package/semver) is only missing that a "x" and
"X" can be used instead of "*".

This change is motivated by the experience over the last several days that a workflow which tries to make sure a "=" prefixed version ends up in the package.json and yarn.lock is to tedious.
Main reason is that one needs to manually look up the latest version to run e.g.:
yarn add winston@=2.3.1
With this pull request you just need to run:
yarn add -E winston
No need to manually check the version :)

Instead of relying only on a "=" prefix, this enhanced version works by
making sure all "non-absolute" version rangs are not used, e.g. "~", "^".

From the semver Backus-Naur grammar
(https://www.npmjs.com/package/semver) is only missing that a "x" and
"X" can be used instead of "*".
@tclindner tclindner added the enhancement 👑 New feature or request label Jun 9, 2017
@tclindner tclindner added this to the v2.5.0 milestone Jun 9, 2017
@tclindner
Copy link
Owner

Nice work, @chr1shaefn3r! I really like this improvement. I'll get a new version packaged up this weekend.

@tclindner tclindner merged commit 33656d0 into tclindner:master Jun 9, 2017
@tclindner
Copy link
Owner

Hey @chr1shaefn3r v2.5.0 has been published! The documentation has been updated too. Let me know if you see any issues.

prefer-absolute-version-dependencies
prefer-absolute-version-devDependencies

@chr1shaefn3r
Copy link
Contributor Author

Thank you very much on prefer-absolute-version-devDependencies is a small copy&paste error: the headline still says "dependencies" instead of "devDependencies". Other than it looks good :)

@tclindner
Copy link
Owner

Fixed! Good eye

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

Labels

enhancement 👑 New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants