Update Node.js to v16 in all RN packages#37073
Conversation
Base commit: 09a810a |
This comment was marked as resolved.
This comment was marked as resolved.
|
Thanks for working on this, looks like this will be a breaking change, is there somewhere documented current minimum requirement for Node.js @Pranav-yadav. |
This comment was marked as resolved.
This comment was marked as resolved.
Bump to node 16 was in #36217 |
Thanks, for pointing to the correct diff. The git blame tricked me ;) |
|
The PR is only enforcing minimum 16 for RN development and new project created. #36217 When we add minimum Node.js version to all other package it will be a breaking change for all other. Given Node.js 20 is released I think this should be fine. (or is bit early to enforce it not sure? cc @robhogan) Can you change title and desc to reflect actual change in PR, it is not just change in engine. Also update changelog to breaking. TIA |
|
Also just checked RNW landed last day "Update Node to v16" as well - microsoft/react-native-windows#11500 so LGTM on Node.js engine. |
|
Sure. About, if it's too early to enforce, most of the node pkgs enforce node 16 these days. Soon, we'll start getting errors and warnings about the same from RN external deps while trying to install deps and building. PS. Release of node 20 could be one of the reasons, but, IIRC node 20 will be LTS after Oct 2023. |
4019dff to
53793b5
Compare
|
Addressed the suggestions and feedback. |
|
@jacdebug Since we'll be enforcing node.js >=16, shouldn't we add CI tests to check if it builds and pass the tests on those supported versions of Node.js; for public RN packages? Or it's not necessary? cc @cortinico / @cipolleschi / @kelset |
|
IIRC there's already a suite of tests for both the "current" nodesj version and the previous lts, |
The config uses PS. I'm not too familiar with Circle CI configs. |
Thanks for looking into it and finding inconsistencies. Minimum requirement is correct no need to update now. |
- Enforce minimum Node.js v16 in all RN packages under 'packages/' dir **NOTE: This is a BREAKING change**.
53793b5 to
f41ba9f
Compare
@jacdebug keeping this PR atomic; only about the Update to Node.js v16. Reverted other minor touchups This PR is ready to merge after review 😃 |
jacdebug
left a comment
There was a problem hiding this comment.
LGTM and thank you for this contribution.
|
@jacdebug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary:
NOTE: This is a BREAKING change.
TLDR; Enforce minimum Node.js v16 in all RN packages.
This diff Updates Node.js to v16 across all RN packages.
Context:
react-native-windowsalso; updated node to v16, Update Node to v16 microsoft/react-native-windows#11500Changes:
Changelog:
[GENERAL][BREAKING] - Update Node.js to v16 in all RN packages
Test Plan:
yarn lint && yarn flow && yarn test-ci--> should be green