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
Add a way to include all prerelease versions in a range #871
Comments
Can’t it do |
Yes, that is possible. However, it means that the maintainers of vite-node need to add a version with every minor release of vite, which is burdensome. |
True, but that’s far less burdensome than updating the entire node ecosystem to support a new range operator. |
This seems like a discussion for the node issues site. SemVer, does not currently define range specs, though that is a WIP, but it's primarily meant to document the most common factors between a small set of existing tools that each have their own range spec semantics. |
Oh, my mistake, I thought this issue was filed on npm/semver. This spec doesn't have ranges at all, so I totally agree it's entirely off topic. |
Currently, prerelease versions can only be opted-in to for specific patch versions, e.g. the range
^3.0.0-0
will allow3.0.0-beta.1
, but not3.1.0-beta.1
. I think this is the optimal behavior for what most users expect. However, there are some use cases for allowing prereleases for everything in the range. For example, see this discussion. In this case, vite-node wraps vite and it lists vite in its dependencies. However, @sveltejs/kit also depended upon vite, but it needed a prerelease beta version. The result is that @sveltejs/kit and vite-node ended up with separate, incompatible versions, breaking my project. I ended up having to useoverrides
in mypackage.json
to work around it.It would be nice if there was a way for vite-node to specify a looser range that allows all prerelease versions.
Maybe it could be something like
^^3.0.0-0
?The text was updated successfully, but these errors were encountered: