-
Notifications
You must be signed in to change notification settings - Fork 381
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
chore: bump minimum node version to 14.x #1768
Conversation
71f9ddc
to
ad54dbd
Compare
Codecov Report
@@ Coverage Diff @@
## main #1768 +/- ##
==========================================
+ Coverage 88.06% 93.49% +5.43%
==========================================
Files 132 157 +25
Lines 5109 27497 +22388
Branches 1207 1494 +287
==========================================
+ Hits 4499 25709 +21210
- Misses 610 1788 +1178
Continue to review full report at Codecov.
|
Added the pr/do-not-merge label since I'm not sure if there's actually a pressing need to merge this in immediately. But Node v12 is deprecated at the end of this month and we have no interest in supporting that version after it has been unsupported, so enforcing it in new versions with the engine requirement seems like the right thing to do for the project's health. 👍 |
minNodeVersion: "14.0.0", | ||
workflowNodeVersion: "14.17.0", // required by @typescript-eslint/eslint-plugin@5.19.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
projen needs a higher version of node on its GitHub actions runner in order to install all of projen's dev dependencies successfully and run full builds. But consumers of projen don't actually need those since we bundle all of our runtime dependencies. (For example, it's safe to run npx projen new python
when the installed version of node is v14.0.0). Hence why these version numbers are different.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Node < 14.11.0 is vulnerable to CVEs. 14.x is in maintenance. Its 2yrs old this week. Should we really be supporting that? This feels like overkill.
https://www.cvedetails.com/vulnerability-list/vendor_id-12113/Nodejs.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the workflow separation, not the 12->14,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have a problem with this. I agree that the workflow separation seems odd but I think the point is that projen should support whatever min node version it can.
Skipping this. Let's just make the bump. |
Node v12 reaches end of life on April 30, 2022. This PR adds a warning that projen will be dropping support for old node releases. We'll give this message a week to incubate before actually bumping the version we support (#1768). --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Fixes #1739
BREAKING CHANGE: new versions of projen now require node v14, since node v12 reaches EOL on April 30, 2022.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.