Skip to content

Commit 2eb25cb

Browse files
Update Node.js to v18 in all RN packages (#37791)
Summary: Pull Request resolved: #37791 ## Bump minimum Node JS version to 18 via `react-native/package.json#engines` In #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:** facebook/react-native-website#3748 **Changelog:** [General][Breaking] Bump minimum Node JS version to 18 Reviewed By: cortinico, NickGerleman Differential Revision: D46583997 fbshipit-source-id: 1f31e2f205ac8b09494c2a7d3b73b9f36eff221b
1 parent 43a6ea9 commit 2eb25cb

File tree

15 files changed

+15
-15
lines changed

15 files changed

+15
-15
lines changed

packages/assets/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
"keywords": ["assets", "registry", "react-native", "support"],
1313
"bugs": "https://github.com/facebook/react-native/issues",
1414
"engines": {
15-
"node": ">=16"
15+
"node": ">=18"
1616
}
1717
}

packages/babel-plugin-codegen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"keywords": ["babel", "plugin", "codegen", "react-native", "native-modules", "view-manager"],
1313
"bugs": "https://github.com/facebook/react-native/issues",
1414
"engines": {
15-
"node": ">=16"
15+
"node": ">=18"
1616
},
1717
"files": [
1818
"index.js"

packages/eslint-config-react-native/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
],
1717
"bugs": "https://github.com/facebook/react-native/issues",
1818
"engines": {
19-
"node": ">=16"
19+
"node": ">=18"
2020
},
2121
"main": "index.js",
2222
"dependencies": {

packages/eslint-plugin-react-native/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"keywords": ["eslint", "rules", "eslint-config", "react-native"],
1313
"bugs": "https://github.com/facebook/react-native/issues",
1414
"engines": {
15-
"node": ">=16"
15+
"node": ">=18"
1616
},
1717
"main": "index.js"
1818
}

packages/eslint-plugin-specs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"keywords": ["eslint", "rules", "react-native", "native-modules", "components", "specs"],
1313
"bugs": "https://github.com/facebook/react-native/issues",
1414
"engines": {
15-
"node": ">=16"
15+
"node": ">=18"
1616
},
1717
"main": "index.js",
1818
"scripts": {

packages/hermes-inspector-msggen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"msggen": "./bin/index.js"
1414
},
1515
"engines": {
16-
"node": ">=16"
16+
"node": ">=18"
1717
},
1818
"scripts": {
1919
"flow": "flow",

packages/metro-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"keywords": ["metro", "config", "react-native"],
1313
"bugs": "https://github.com/facebook/react-native/issues",
1414
"engines": {
15-
"node": ">=16"
15+
"node": ">=18"
1616
},
1717
"exports": "./index.js",
1818
"dependencies": {

packages/normalize-color/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
"keywords": ["color", "normalization", "normalize-colors", "react-native"],
1313
"bugs": "https://github.com/facebook/react-native/issues",
1414
"engines": {
15-
"node": ">=16"
15+
"node": ">=18"
1616
}
1717
}

packages/polyfills/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
"keywords": ["polyfill", "polyfills", "js", "js-polyfills", "react-native"],
1313
"bugs": "https://github.com/facebook/react-native/issues",
1414
"engines": {
15-
"node": ">=16"
15+
"node": ">=18"
1616
}
1717
}

packages/react-native-bots/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/react-native-bots#readme",
1313
"engines": {
14-
"node": ">=16"
14+
"node": ">=18"
1515
},
1616
"devDependencies": {
1717
"@rnx-kit/rn-changelog-generator": "^0.4.0",

packages/react-native-codegen-typescript-test/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/react-native-typescript-test",
1212
"engines": {
13-
"node": ">=16"
13+
"node": ">=18"
1414
},
1515
"scripts": {
1616
"build": "yarn clean && node scripts/build.js --verbose && tsc",

packages/react-native-codegen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
],
1919
"bugs": "https://github.com/facebook/react-native/issues",
2020
"engines": {
21-
"node": ">=16"
21+
"node": ">=18"
2222
},
2323
"scripts": {
2424
"build": "yarn clean && node scripts/build.js --verbose",

packages/react-native-gradle-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"keywords": ["gradle", "plugin", "react-native"],
1313
"bugs": "https://github.com/facebook/react-native/issues",
1414
"engines": {
15-
"node": ">=16"
15+
"node": ">=18"
1616
},
1717
"scripts": {
1818
"build": "./gradlew build",

packages/rn-tester/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"directory": "packages/rn-tester"
1111
},
1212
"engines": {
13-
"node": ">=16"
13+
"node": ">=18"
1414
},
1515
"scripts": {
1616
"start": "react-native start",

packages/virtualized-lists/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"keywords": ["lists", "virtualized-lists", "section-lists", "react-native"],
1313
"bugs": "https://github.com/facebook/react-native/issues",
1414
"engines": {
15-
"node": ">=16"
15+
"node": ">=18"
1616
},
1717
"dependencies": {
1818
"invariant": "^2.2.4",

0 commit comments

Comments
 (0)