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
remove upper range on Node.js version #10343
Conversation
This is a low risk change, and it can fit in today's release. It will lighten some of the load for me for release after that. |
4faef1a
to
cf60e71
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.
The changes look good to me 👍
Confirmed that the doc updates look good, and it is low-risk (we can still build with node 12 like today if needed).
Support at least Node.js 12 but remove the upper-bound. Downstream projects should be able to choose their own Node.js version based on their needs. The framework still expects to run on Node.js 12 at the minimum. Using a previous version might lead to errors due to our usage of APIs that might be missing in earlier versions. Electron is not updated in this commit but it should be done sooner than later. Note that one of dependency `dugite-extra` has its own Node.js range that may prevent using Node.js newer than 12. This only affects downstream projects that include the `@theia/git` extension. You can still get around it by running `yarn --ignore-engines <command...>`. Add `doc/runtime-policy.md`. Update `doc/Developing.md` to reflect the policy. Update CI to run on Node 12 and 14.
cf60e71
to
cab202c
Compare
And we should, for now. But starting with 1.19.0 it should be slightly easier to use Node 14 and it prepares the repository for the Electron upgrade. It also documents the policy we will be going forward with. |
CI error is unrelated. |
Since eclipse-theia/theia#10343 theia depend on nodejs >= 12 and they test on 12 and 14. Use 14 to have an officially tested version. This removes the strong requirement to have python2.7 in theia, so we just use the software python, which might be python3
Support at least Node.js 12 but remove the upper-bound. Downstream
projects should be able to choose their own Node.js version based on
their needs. The framework still expects to run on Node.js 12 at the
minimum. Using a previous version might lead to errors due to our usage
of APIs that might be missing in earlier versions.
Electron is not updated in this commit but it should be done sooner than
later.
Note that one of dependency
dugite-extra
has its own Node.js rangethat may prevent using Node.js newer than 12. This only affects
downstream projects that include the
@theia/git
extension. You canstill get around it by running
yarn --ignore-engines <command...>
.Add
doc/runtime-policy.md
.Update
doc/Developing.md
to reflect the policy.Update CI to run on Node 12 and 14.
Closes #9878.
How to test
Build and run using Node 12 and 14.
You may need to run
yarn --ignore-engines
because ofdugite-extra
.CI should be green.
Review checklist
Reminder for reviewers