Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Update Node to match Electron 3.1 #831

Merged
merged 5 commits into from
Jun 11, 2019
Merged

Update Node to match Electron 3.1 #831

merged 5 commits into from
Jun 11, 2019

Conversation

50Wliu
Copy link
Contributor

@50Wliu 50Wliu commented Apr 2, 2019

Requirements

  • Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
  • All new code requires tests to ensure against regressions

Description of the Change

We include a BUNDLED_NODE_VERSION that matches the Node version of the Electron version Atom is running. With atom/atom#18916, Atom will start to use Node 10.2.0.

Alternate Designs

Get rid of this file.

Benefits

apm will stay consistent with Atom.

Possible Drawbacks

Bugs introduced as a result of the upgrade.

Verification Process

None yet.

Applicable Issues

None.

@rafeca
Copy link
Contributor

rafeca commented May 6, 2019

Thanks for the PR @50Wliu !

I'm not super familiar with how apm works: can we merge this PR and publish a new version of apm that uses node v10 before upgrading to electron v3 or do we need to do both things at the same time?

@50Wliu
Copy link
Contributor Author

50Wliu commented May 6, 2019

can we merge this PR and publish a new version of apm that uses node v10 before upgrading to electron v3

Yeah, this should be fine as long as it's a minor version bump. If it turns out we need to do some bugfixes before the Electron 3 PR lands we can always do patch releases for the previous minor version.

@rafeca
Copy link
Contributor

rafeca commented May 6, 2019

Awesome! Then we'll use the new apm minor version from the electron-v3 branch right?

@50Wliu
Copy link
Contributor Author

50Wliu commented May 6, 2019

Yep :)

Copy link
Contributor

@rafeca rafeca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@50Wliu 50Wliu merged commit f7e4e10 into master Jun 11, 2019
@50Wliu 50Wliu deleted the wl-update-node branch June 11, 2019 02:36
@Aerijo
Copy link
Contributor

Aerijo commented Jul 17, 2019

My understanding is that the Node version is not tied to Atom compatibility, as we already pass parameters to build native modules against the right Electron version. The bundled Node just gets put on the PATH, so is what's used when an npm script runs Node.

If I'm understanding this right, would it make sense to use the current LTS version, which is 10.16.0?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants