-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[core] Upgrade node to v14 #4999
Conversation
These are the results for the performance tests:
|
I believe it's a breaking change, we list it in #3287 |
Equivalent on the core: mui/material-ui#32546 |
But if we don't update |
@cherniavskii Right, yes, I have missed this. |
A question, why not directly upgrade to v16 v14 Here it suggests Production applications should only use Active LTS or Maintenance LTS releases. |
Good point, I'll upgrade to v16 👍 |
In MUI Core, we use (& have used) the lowest possible version of Node (like in the Browser tests) to catch cases where we might start depending on an API that is not supposed by the minimum |
To be fair, the opposite can happen as well, e.g. we use node v12 but in v16 some API that we use is missing. But if we keep using v12, we won't be able to update some of our dependencies like playwright or danger - see dependencies PRs that are currently on hold because of node version incompatibility: https://github.com/mui/mui-x/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-desc+label%3Adependencies+label%3A%22On+hold%22 |
@cherniavskii +1 to not use Node v12 as it doesn't receive critical bug fixes. To be clear by "API", I was thinking ECMAScript: APIs like optional chaining, |
Thanks for the clarification! |
@cherniavskii It helps a lot but Babel can't transpile all the features of ECMAScript: https://babeljs.io/docs/en/caveats. |
We've decided to set minimal supported version of Node to 14 in data grid v6 alpha |
MUI Core is moving forward with upgrading Node in the different CI environments from v12 to v14 to unlock dependency updates. |
.browserslistrc
Outdated
@@ -3,7 +3,7 @@ last 1 chrome version | |||
last 1 edge version | |||
last 1 firefox version | |||
last 1 safari version | |||
node 14 | |||
node 16 |
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.
this looks like a breaking change for developers
node 16 | |
node 14 |
x the other changes in this file
For reference, here's the equivalent PR in Core: mui/material-ui#33642 |
@joserodolfofreitas For the developers, the same goes for MUI Core: mui/material-ui#32546. The only difference is that v6 will be released later compared to MUI X, so Node.js v16 might be more realistic as the LTS version when the release happens. For the contributors, the change is done mui/material-ui#33642, 👍 to do the same in MUI X. |
fed767b
to
8a9da27
Compare
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.
looks good
Node 12 support ended on April 30th
Node 14 is currently Maintenance LTS, Node 16 - Active LTS (see https://nodejs.org/en/about/releases/)
I didn't update
engines
entry in our packages, because: