-
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
Add 'node' alias for nvm compat #5
Conversation
I actually have an open issue with I am happy to make the ergonomic changes to this library, but the whole point it to standardize on this set as defined by the working group. |
I don't think it makes sense to ever use aliases that follow support timelines when attempting to locate a specific version of node - only when attempting to determine support for one. |
This PR is especially easy to work around, so not particularly urgent. I do agree that |
@ljharb I am not sure I understand your meaning? If I do
I agree that it probably valuable. I will let it sit for a few more days to give folks like @dominykas a chance to chime in (as the original author of the recommendation). But then will merge it up! |
I think this should reflect what people use in real life - and I've seen |
I have a reservation about this PR. Is this package implementing the prospective official aliases, or will it continue adding compatibility for I second the comments in #5 (comment) and in particular this comment:
(On a related note, I do also question the support for `lts/* mentioned in the README here for the same reason!) |
That's a good point, and makes a lot of sense to me as well. |
So I have not had time to follow up on the outcome from nvm-sh/nvm#2170, but if that is done I hope we can take this approach even in |
I see the tag line for this repo is currently: "Tool for getting node versions by common aliases" which is a wider brief than I had assumed. (Thanks for comments.) I withdraw my reservation. 😄 |
@wesleytodd i think aliases that vary based on the content of "the list of available versions" is fine. I think aliases that have to do any datetime math whatsoever are not fine. If the node build team is willing to add a bit to the index.tab that indicates EOL status of a version, then that would be fine for nvm to pivot on. |
Awesome, so as I said before then, that is the next step. If anyone else has time to move that forward, awesome! I will merge this so we get backwards compat and we can plan to remove it in a future major when the other tools follow the aliases! |
Should we merge this? |
I will put together a release now, sorry for the delay! |
This adds the alias
node
forcurrent
for compatibility with nvm, wherenode
"installs the latest version of node".My use case here is that I'd like to put this library in front of nvm respectively nvm-windows, which don't behave exactly the same, so this would help to achieve better compatibility.