-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
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 😃 |
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.
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: - For RN development and new project created; bump to node 16 was in facebook#36217 - Recently `react-native-windows` also; updated node to v16, microsoft/react-native-windows#11500 #### Changes: - [BREAKING] Update Node.js to v16 across all RN packages under 'packages/' dir ## Changelog: [GENERAL][BREAKING] - Update Node.js to v16 in all RN packages Pull Request resolved: facebook#37073 Test Plan: - `yarn lint && yarn flow && yarn test-ci` --> _should be green_ Reviewed By: cipolleschi Differential Revision: D45306108 Pulled By: jacdebug fbshipit-source-id: e3ba7d0151b86a6a0a3d63fb29c2bd887e1ac1e7
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: - For RN development and new project created; bump to node 16 was in facebook#36217 - Recently `react-native-windows` also; updated node to v16, microsoft/react-native-windows#11500 #### Changes: - [BREAKING] Update Node.js to v16 across all RN packages under 'packages/' dir ## Changelog: [GENERAL][BREAKING] - Update Node.js to v16 in all RN packages Pull Request resolved: facebook#37073 Test Plan: - `yarn lint && yarn flow && yarn test-ci` --> _should be green_ Reviewed By: cipolleschi Differential Revision: D45306108 Pulled By: jacdebug fbshipit-source-id: e3ba7d0151b86a6a0a3d63fb29c2bd887e1ac1e7
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-windows
also; 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