-
Notifications
You must be signed in to change notification settings - Fork 6
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
engine versions not correctly identified #14
Comments
The test is functioning correctly the package is requiring a version greater than the minimum supported node-red version so it highlights this to users as a warning. However the text on the webpage should be improved not juts to default to "missing" |
Aside from how it's presented on the scorecard webpage, I think we should modify the wording of P07. I think saying its minimum version is 'not compatible' doesn't quite express what we want it to. Something like:
|
Right, Yes, having it be marked as missing, is quite different from having a version mismatch. nminversion = semver.minVersion(response.data.versions[response.data["dist-tags"].latest].engines.node)
if (semver.satisfies(nminversion, package.engines.node)){
...
} IMO, wouldn't this be better? nminversion = semver.minVersion(response.data.versions[response.data["dist-tags"].latest].engines.node)
if (semver.gte(package.engines.node, nminversion)){
...
} not really sure of the right answer here 😅 |
I disagree. If a Node can run on 8.x or later and the user has Node 14.x then there is no issue. But if a Node requires 16.x and the User has Node 12.x then there is an issue. This is something we know we need to police better in the palette manager, but the purpose of the test is good - we just need to fix how it is presented. |
Ah I see now. |
I've made a partial fix for this issue in the above PR, we will now display the version if its available, however it will still show a warning ! if the requirements of the node are greater than the current Min node-red version. Ideally there is some more work to do as we should show a Fail X if the node requires a version less than the current node-red version, eg if its pinned to 10.x or something. |
Yup,
I think this is what I was trying to get at with my suggestion above - just didn't articulate it well. |
We see this.
Despite having this.
https://github.com/zwave-js/node-red-contrib-zwave-js/blob/9f251b1fe5fc26f1d4e17a55fc5d8cbc02c10794/package.json#L20
Output.
The text was updated successfully, but these errors were encountered: