upgrade to node 14 #41544
upgrade to node 14 #41544
Conversation
@@ -34,9 +34,6 @@ | |||
"./__ivy_ngcc__/esm2015/init/src/init.js", | |||
"./__ivy_ngcc__/fesm2015/init.js" | |||
], | |||
"engines": { |
Why the “engines” field was removed from here (and other packages)
This is useful if users are installing this package in an older node.js environment, which will cause a warning or a error based on the package manager and its settings.
Should we just set the engines
field in @angular/core
's package.json since it essentially is always needed to use any of the packages? Alternatively we could set it for all packages we release.
@jelbourn thoughts on the above?
Seems like the "technically correct" thing is to list it on each package, no? I would probably do that unless there's some reason not too (like if it were to generate extra console noise).
The change seems to have the engines
set on everything now, though, yes?
Yes, this change makes the engines value appear in everyone packages package.json
. If someone were to be using an unsupported version of node, they would see a warning during node install for each package they rely on.
Shouldn’t the changes be split into 2 commits?
ci: update to use Node 14
feat(core): drop support for Node 10
Yesss
Please also update .devcontainer/recommended-Dockerfile.
FWIW, I believe the changes should be split up into two commits: one that updates the version of Node.js used in the repo and another one that updates the engines in the various packages (compiler-cli
, localize
, platform-server
).
LGTM. I assume we can't use 14.16.1
for Bazel yet as we aren't on the latest rules_nodejs
version, right?
NodeJS v14 is the current LTS version and we should switch as the Angular framework/dev-infra also updates to Node V14. See angular/angular#41544 We remove the engines filed in non-top-level `package.json` files to avoid unnecessary churn. We keep NodeJS v12 working as this is the minimum required version for framework too and diverging could cause productivity issues when switching between projects.
LGTM
I don't quite understand why you are publishing a library that is mostly used in a browser context with the |
Update the supported range of node versions for Angular. Angular now supports node >=12.14.1 to <16.0.0, dropping support for Node v10. BREAKING CHANGE: Angular no longer maintains support for node v10 PR Close #41544
Update the supported range of node versions for Angular. Angular now supports node >=12.14.1 to <16.0.0, dropping support for Node v10. PR Close #41544
Update the supported range of node versions for Angular. Angular now supports node >=12.14.1 to <16.0.0, dropping support for Node v10. PR Close #41544
Update the supported range of node versions for Angular. Angular now supports node >=12.14.1 to <16.0.0, dropping support for Node v10. PR Close #41544
Update the supported range of node versions for Angular. Angular now supports node >=12.14.1 to <16.0.0, dropping support for Node v10. PR Close #41544
Update the supported range of node versions for Angular. Angular now supports node >=12.14.1 to <16.0.0, dropping support for Node v10. PR Close #41544
Update the supported range of node versions for Angular. Angular now supports node >=12.14.1 to <16.0.0, dropping support for Node v10. PR Close #41544
Update the supported range of node versions for Angular. Angular now supports node >=12.14.1 to <16.0.0, dropping support for Node v10. PR Close #41544
Update the supported range of node versions for Angular. Angular now supports node >=12.14.1 to <16.0.0, dropping support for Node v10. PR Close #41544
Update the supported range of node versions for Angular. Angular now supports node >=12.14.1 to <16.0.0, dropping support for Node v10. PR Close #41544
Update the supported range of node versions for Angular. Angular now supports node >=12.14.1 to <16.0.0, dropping support for Node v10. PR Close #41544
Update the supported range of node versions for Angular. Angular now supports node >=12.14.1 to <16.0.0, dropping support for Node v10. PR Close #41544
Update the supported range of node versions for Angular. Angular now supports node >=12.14.1 to <16.0.0, dropping support for Node v10. PR Close #41544
Update the supported range of node versions for Angular. Angular now supports node >=12.14.1 to <16.0.0, dropping support for Node v10. PR Close #41544
Update the supported range of node versions for Angular. Angular now supports node >=12.14.1 to <16.0.0, dropping support for Node v10. PR Close #41544
Indeed we were just discussing this. There is the slight oddity that even things like core might end up being executed inside node.js if you are doing SSR. As a team we are on the fence and slightly falling on the side of just adding the engine field to all our packages for consistency. |
NodeJS v14 is the current LTS version and we should switch as the Angular framework/dev-infra also updates to Node V14. See angular/angular#41544 We remove the engines filed in non-top-level `package.json` files to avoid unnecessary churn. We keep NodeJS v12 working as this is the minimum required version for framework too and diverging could cause productivity issues when switching between projects.
May I ask why Node v16 is not supported? Is there any known issue? |
@JounQin There are not any known issues, and I would even guess that it will work perfectly well. However, Node v16 is in the We should begin supporting v16 ~End of October 2021 as this is when it will begin Active LTS. |
Nevermind. I see it's updated there |
NodeJS v14 is the current LTS version and we should switch as the Angular framework/dev-infra also updates to Node V14. See angular/angular#41544 We remove the engines filed in non-top-level `package.json` files to avoid unnecessary churn. We keep NodeJS v12 working as this is the minimum required version for framework too and diverging could cause productivity issues when switching between projects.
NodeJS v14 is the current LTS version and we should switch as the Angular framework/dev-infra also updates to Node V14. See angular/angular#41544 We remove the engines filed in non-top-level `package.json` files to avoid unnecessary churn. We keep NodeJS v12 working as this is the minimum required version for framework too and diverging could cause productivity issues when switching between projects.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Upgrades the repository to use node 14. Additionally, removes support for node 10 as it has
reached end of life.
BREAKING CHANGE: Angular no longer maintains support for node v10
Note: Only
core
scope commit includes a breaking change note to prevent the same note from occurring many times.The text was updated successfully, but these errors were encountered: