Skip to content
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

Merged
merged 1 commit into from Oct 28, 2021
Merged

remove upper range on Node.js version #10343

merged 1 commit into from Oct 28, 2021

Conversation

paul-marechal
Copy link
Member

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.

Closes #9878.

How to test

Build and run using Node 12 and 14.
You may need to run yarn --ignore-engines because of dugite-extra.
CI should be green.

Review checklist

Reminder for reviewers

@paul-marechal paul-marechal added the dependencies pull requests that update a dependency file label Oct 28, 2021
@paul-marechal
Copy link
Member Author

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.

Copy link
Member

@vince-fugnitto vince-fugnitto left a 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.
@paul-marechal
Copy link
Member Author

(we can still build with node 12 like today if needed)

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.

@paul-marechal
Copy link
Member Author

CI error is unrelated.

@paul-marechal paul-marechal merged commit 042394c into master Oct 28, 2021
@paul-marechal paul-marechal deleted the mp/node-14 branch October 28, 2021 20:46
@github-actions github-actions bot added this to the 1.19.0 milestone Oct 28, 2021
NexediGitlab pushed a commit to SlapOS/slapos that referenced this pull request Dec 12, 2021
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants