Skip to content
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

Allow relative current releases #1246

Open
piranna opened this issue Mar 9, 2025 · 3 comments
Open

Allow relative current releases #1246

piranna opened this issue Mar 9, 2025 · 3 comments
Labels
feature request New feature or request to improve the current logic

Comments

@piranna
Copy link

piranna commented Mar 9, 2025

Description:

The same way it's possible to define relative LTS versions in node-version (like lts/-1), I want to be able to use relative versions from latest one (like current/-3).

Justification:

I want to support only versions with at least 1 year of maintenance in the foresee. I've seen maintenance dates match for current version, so current/-3 would match up to 3 versions older for current ones, so for example when v24 gets released now in April, -3 would be Node.js v21, not testing on v20 that will be out of maintenance on April 2026.

Additionally, I would want some basic ranges combinations similar to browserlist, so something like >=current/-3 & lts/* when Node.js v24 gets published would resolve to Node.js v22 instead of v21, that's the first LTS newer than current/-3, but maybe that would be in another proposal.

Are you willing to submit a PR?

Yes, I could do that if there's interest.

@piranna piranna added feature request New feature or request to improve the current logic needs triage labels Mar 9, 2025
@mahabaleshwars
Copy link

Hi @piranna,
Thank you for creating this feature request. We will investigate it and provide feedback as soon as we have some updates.

@Natthachai-arm
Copy link

Thank you

@piranna
Copy link
Author

piranna commented Mar 10, 2025

You are welcome :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request to improve the current logic
Projects
None yet
Development

No branches or pull requests

3 participants