From 2eb25cbdbe8d1ce720ffdf5f5d855e1cbf14142b Mon Sep 17 00:00:00 2001 From: Arushi Kesarwani Date: Thu, 22 Jun 2023 09:53:21 -0700 Subject: [PATCH] Update Node.js to v18 in all RN packages (#37791) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/37791 ## Bump minimum Node JS version to 18 via `react-native/package.json#engines` In https://github.com/facebook/react-native/pull/35443 we bumped up the node version from 16 to 18. Node 16 [ends maintenance releases on 2023-09-11](https://nodejs.org/en/blog/announcements/nodejs16-eol/), and bumping this minimum will allow other associated Node JS tools (CLI, Metro, Jest) to reduce their support burden. This follows up by formally making Node 18 the minimum supported version. **Docs PR:** https://github.com/facebook/react-native-website/pull/3748 **Changelog:** [General][Breaking] Bump minimum Node JS version to 18 Reviewed By: cortinico, NickGerleman Differential Revision: D46583997 fbshipit-source-id: 1f31e2f205ac8b09494c2a7d3b73b9f36eff221b --- packages/assets/package.json | 2 +- packages/babel-plugin-codegen/package.json | 2 +- packages/eslint-config-react-native/package.json | 2 +- packages/eslint-plugin-react-native/package.json | 2 +- packages/eslint-plugin-specs/package.json | 2 +- packages/hermes-inspector-msggen/package.json | 2 +- packages/metro-config/package.json | 2 +- packages/normalize-color/package.json | 2 +- packages/polyfills/package.json | 2 +- packages/react-native-bots/package.json | 2 +- packages/react-native-codegen-typescript-test/package.json | 2 +- packages/react-native-codegen/package.json | 2 +- packages/react-native-gradle-plugin/package.json | 2 +- packages/rn-tester/package.json | 2 +- packages/virtualized-lists/package.json | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/packages/assets/package.json b/packages/assets/package.json index cd55b751e22..c8e5100a2cc 100644 --- a/packages/assets/package.json +++ b/packages/assets/package.json @@ -12,6 +12,6 @@ "keywords": ["assets", "registry", "react-native", "support"], "bugs": "https://github.com/facebook/react-native/issues", "engines": { - "node": ">=16" + "node": ">=18" } } diff --git a/packages/babel-plugin-codegen/package.json b/packages/babel-plugin-codegen/package.json index 3e3edcdb4ba..3d85ab95eba 100644 --- a/packages/babel-plugin-codegen/package.json +++ b/packages/babel-plugin-codegen/package.json @@ -12,7 +12,7 @@ "keywords": ["babel", "plugin", "codegen", "react-native", "native-modules", "view-manager"], "bugs": "https://github.com/facebook/react-native/issues", "engines": { - "node": ">=16" + "node": ">=18" }, "files": [ "index.js" diff --git a/packages/eslint-config-react-native/package.json b/packages/eslint-config-react-native/package.json index d32e774fadc..659c6ef7dec 100644 --- a/packages/eslint-config-react-native/package.json +++ b/packages/eslint-config-react-native/package.json @@ -16,7 +16,7 @@ ], "bugs": "https://github.com/facebook/react-native/issues", "engines": { - "node": ">=16" + "node": ">=18" }, "main": "index.js", "dependencies": { diff --git a/packages/eslint-plugin-react-native/package.json b/packages/eslint-plugin-react-native/package.json index becda76cc32..3b098f81572 100644 --- a/packages/eslint-plugin-react-native/package.json +++ b/packages/eslint-plugin-react-native/package.json @@ -12,7 +12,7 @@ "keywords": ["eslint", "rules", "eslint-config", "react-native"], "bugs": "https://github.com/facebook/react-native/issues", "engines": { - "node": ">=16" + "node": ">=18" }, "main": "index.js" } diff --git a/packages/eslint-plugin-specs/package.json b/packages/eslint-plugin-specs/package.json index 8950f82a0ff..3c5c534e235 100644 --- a/packages/eslint-plugin-specs/package.json +++ b/packages/eslint-plugin-specs/package.json @@ -12,7 +12,7 @@ "keywords": ["eslint", "rules", "react-native", "native-modules", "components", "specs"], "bugs": "https://github.com/facebook/react-native/issues", "engines": { - "node": ">=16" + "node": ">=18" }, "main": "index.js", "scripts": { diff --git a/packages/hermes-inspector-msggen/package.json b/packages/hermes-inspector-msggen/package.json index bc4611a4693..d15616cec61 100644 --- a/packages/hermes-inspector-msggen/package.json +++ b/packages/hermes-inspector-msggen/package.json @@ -13,7 +13,7 @@ "msggen": "./bin/index.js" }, "engines": { - "node": ">=16" + "node": ">=18" }, "scripts": { "flow": "flow", diff --git a/packages/metro-config/package.json b/packages/metro-config/package.json index e86d78e6032..d43d0295ff4 100644 --- a/packages/metro-config/package.json +++ b/packages/metro-config/package.json @@ -12,7 +12,7 @@ "keywords": ["metro", "config", "react-native"], "bugs": "https://github.com/facebook/react-native/issues", "engines": { - "node": ">=16" + "node": ">=18" }, "exports": "./index.js", "dependencies": { diff --git a/packages/normalize-color/package.json b/packages/normalize-color/package.json index 079c3fe4dab..ab3fa6fd89f 100644 --- a/packages/normalize-color/package.json +++ b/packages/normalize-color/package.json @@ -12,6 +12,6 @@ "keywords": ["color", "normalization", "normalize-colors", "react-native"], "bugs": "https://github.com/facebook/react-native/issues", "engines": { - "node": ">=16" + "node": ">=18" } } diff --git a/packages/polyfills/package.json b/packages/polyfills/package.json index de11f640d1b..8cefc9909f6 100644 --- a/packages/polyfills/package.json +++ b/packages/polyfills/package.json @@ -12,6 +12,6 @@ "keywords": ["polyfill", "polyfills", "js", "js-polyfills", "react-native"], "bugs": "https://github.com/facebook/react-native/issues", "engines": { - "node": ">=16" + "node": ">=18" } } diff --git a/packages/react-native-bots/package.json b/packages/react-native-bots/package.json index 5a86115c8a9..40dfe8c2c18 100644 --- a/packages/react-native-bots/package.json +++ b/packages/react-native-bots/package.json @@ -11,7 +11,7 @@ }, "homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/react-native-bots#readme", "engines": { - "node": ">=16" + "node": ">=18" }, "devDependencies": { "@rnx-kit/rn-changelog-generator": "^0.4.0", diff --git a/packages/react-native-codegen-typescript-test/package.json b/packages/react-native-codegen-typescript-test/package.json index 5c9daf3bb3e..0d8b84f4e5d 100644 --- a/packages/react-native-codegen-typescript-test/package.json +++ b/packages/react-native-codegen-typescript-test/package.json @@ -10,7 +10,7 @@ }, "homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/react-native-typescript-test", "engines": { - "node": ">=16" + "node": ">=18" }, "scripts": { "build": "yarn clean && node scripts/build.js --verbose && tsc", diff --git a/packages/react-native-codegen/package.json b/packages/react-native-codegen/package.json index 5028fea863a..45f23b160b7 100644 --- a/packages/react-native-codegen/package.json +++ b/packages/react-native-codegen/package.json @@ -18,7 +18,7 @@ ], "bugs": "https://github.com/facebook/react-native/issues", "engines": { - "node": ">=16" + "node": ">=18" }, "scripts": { "build": "yarn clean && node scripts/build.js --verbose", diff --git a/packages/react-native-gradle-plugin/package.json b/packages/react-native-gradle-plugin/package.json index f5eb0fd73a3..a1b8f3a2ce7 100644 --- a/packages/react-native-gradle-plugin/package.json +++ b/packages/react-native-gradle-plugin/package.json @@ -12,7 +12,7 @@ "keywords": ["gradle", "plugin", "react-native"], "bugs": "https://github.com/facebook/react-native/issues", "engines": { - "node": ">=16" + "node": ">=18" }, "scripts": { "build": "./gradlew build", diff --git a/packages/rn-tester/package.json b/packages/rn-tester/package.json index 009da93bf1b..2adbba48dd3 100644 --- a/packages/rn-tester/package.json +++ b/packages/rn-tester/package.json @@ -10,7 +10,7 @@ "directory": "packages/rn-tester" }, "engines": { - "node": ">=16" + "node": ">=18" }, "scripts": { "start": "react-native start", diff --git a/packages/virtualized-lists/package.json b/packages/virtualized-lists/package.json index e640a73b2b5..b2623813a69 100644 --- a/packages/virtualized-lists/package.json +++ b/packages/virtualized-lists/package.json @@ -12,7 +12,7 @@ "keywords": ["lists", "virtualized-lists", "section-lists", "react-native"], "bugs": "https://github.com/facebook/react-native/issues", "engines": { - "node": ">=16" + "node": ">=18" }, "dependencies": { "invariant": "^2.2.4",