Skip to content

check-node-version: accept any nodejs version in 12.x #4610

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

Merged
merged 1 commit into from
Mar 2, 2020

Conversation

antoinerg
Copy link
Contributor

@antoinerg antoinerg commented Mar 2, 2020

I was wondering if we could loosen the requirement for nodejs from 12.13 to 12 to accommodate developers that may not be running this specific version and may not want to install nvm. Do you see any risk in doing that? Also, the latest 12 version is 12.16.1.

cc @alexcjohnson @etpinard

@etpinard
Copy link
Contributor

etpinard commented Mar 2, 2020

We have two options here. Either loosen the requirements or update the requirements now (and possibly every time there's a new Node version).

I highly doubt that having a requirement on the major version of Node will lead to any problems. In other words, this PR seems fine.

I can't say the same for npm. I think sticking to a requirement on the minor version of npm is the way to go, as minor updates have lead to changing package-lock behaviour in the past (less so recently though).

@antoinerg
Copy link
Contributor Author

I highly doubt that having a requirement on the major version of Node will lead to any problems. In other words, this PR seems fine.

Good! I think so too

I can't say the same for npm. I think sticking to a requirement on the minor version of npm is the way to go, as minor updates have lead to changing package-lock behaviour in the past (less so recently though).

npm is easy to install so I'm fine with a strict requirement there.

@archmoj
Copy link
Contributor

archmoj commented Mar 2, 2020

Thanks @etpinard for the review.
💃
@antoinerg please include this PR in the changelog for the upcoming release.

@antoinerg antoinerg merged commit f5aad90 into master Mar 2, 2020
@antoinerg antoinerg deleted the check-node-12 branch March 2, 2020 20:51
@etpinard
Copy link
Contributor

etpinard commented Mar 2, 2020

please include this PR in the changelog for the upcoming release.

If you feel it's necessary, but we usually keep the Changelog for user-facing things only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants