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

chore: bump node to 20 #2151

Closed
wants to merge 1 commit into from
Closed

chore: bump node to 20 #2151

wants to merge 1 commit into from

Conversation

szymonrybczak
Copy link
Collaborator

Summary:

Bumps node version to 20, to unblock #2015.

It doesn't mean that to run CLI user needs Node 20:
CleanShot 2023-11-01 at 13 40 24

Minimal Node version is stored here:

Test Plan:

CI

Checklist

  • Documentation is up to date to reflect these changes.
  • Follows commit message convention described in CONTRIBUTING.md

@github-actions github-actions bot added the infra Internal work not facing public APIs label Nov 1, 2023
@thymikee
Copy link
Member

thymikee commented Nov 2, 2023

rebase needed

@szymonrybczak
Copy link
Collaborator Author

CI Green, good to merge!

@@ -10,7 +10,7 @@ module.exports = {
[
require.resolve('@babel/preset-env'),
{
targets: {node: '18'},
targets: {node: '20'},
Copy link
Member

Choose a reason for hiding this comment

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

Will RN 0.74 drop node 18? 0.73 targets node 18 as minimum so we need to keep this as 18, otherwise it’s a breaking change

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, please look at the PR description.

Copy link
Collaborator

Choose a reason for hiding this comment

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

If the build step targets Node 20, running on Node 18 would be unsafe (even though it might work), so this looks like a breaking change to me?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah, make sense 👍

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah, looks like babel.config.js only used for local development, and tsc (targeting ES2017) is used for npm builds? If that's the case this particular change isn't user facing.

But the bump of @types/node would allow the use of runtime features that aren't supported by Node 18. What's the motivation?

Copy link
Collaborator Author

@szymonrybczak szymonrybczak Dec 22, 2023

Choose a reason for hiding this comment

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

The initial purpose of this PR was to address a CI failures on Node v20, but we've resolved it by upgrading some dependencies so we don't need to bump Node now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infra Internal work not facing public APIs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants