-
Notifications
You must be signed in to change notification settings - Fork 905
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
chore: bump node to 20 #2151
Conversation
d7dbd2a
to
bd9e252
Compare
rebase needed |
bd9e252
to
4ea7689
Compare
4ea7689
to
0ca62cc
Compare
CI Green, good to merge! |
@@ -10,7 +10,7 @@ module.exports = { | |||
[ | |||
require.resolve('@babel/preset-env'), | |||
{ | |||
targets: {node: '18'}, | |||
targets: {node: '20'}, |
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.
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
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.
No, please look at the PR description.
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.
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?
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.
Ah, make sense 👍
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.
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?
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 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.
Summary:
Bumps node version to 20, to unblock #2015.
It doesn't mean that to run CLI user needs Node 20:
Minimal Node version is stored here:
cli/packages/cli-doctor/src/tools/versionRanges.ts
Line 3 in 3f206fd
Test Plan:
CI
Checklist