Skip to content

🚀 Feature: Enforce exact version #1015

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 tasks done
ph55 opened this issue Apr 17, 2025 · 1 comment
Closed
2 tasks done

🚀 Feature: Enforce exact version #1015

ph55 opened this issue Apr 17, 2025 · 1 comment
Labels
type: feature New enhancement or request 🚀

Comments

@ph55
Copy link

ph55 commented Apr 17, 2025

Feature Request Checklist

Overview

Why

Not all Open Source project follow Semantic Version guidelines properly. And even patch versions might break production code.

How

Add option to valid-version rule to enforce exact version.
Example: 1.2.3 - valid (exact), ^1.2.3 - invalid (not exact).

Additional Info

No response

@ph55 ph55 added the type: feature New enhancement or request 🚀 label Apr 17, 2025
@michaelfaith
Copy link
Collaborator

Thanks for the suggestion. A couple of things worth noting

  1. valid-version doesn't govern the conventions of versions in the various dependency groups, it governs the validity of the package's version field. So this feature wouldn't really belong as an enhancement to valid-version
  2. We're already working on this capability as part of a new rule restrict-dependency-ranges: feat: new restrict-dependency-ranges rule #998 This will cover the use case you mentioned and several more.

Take a look and feel free to weigh in and let us know what you think. Closing this for now, as duplicated by #959

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature New enhancement or request 🚀
Projects
None yet
Development

No branches or pull requests

2 participants