Skip to content

Commit

Permalink
Update Node.js to v18 in all RN packages (facebook#37791)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#37791

## Bump minimum Node JS version to 18 via `react-native/package.json#engines`

In facebook#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: NickGerleman

Differential Revision: D46583997

fbshipit-source-id: 137066bf6d593cea4b8540051525f21406ea81cb
  • Loading branch information
arushikesarwani94 authored and facebook-github-bot committed Jun 9, 2023
1 parent adae6dd commit 2db2f23
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion packages/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"keywords": ["assets", "registry", "react-native", "support"],
"bugs": "https://github.com/facebook/react-native/issues",
"engines": {
"node": ">=16"
"node": ">=18"
}
}
2 changes: 1 addition & 1 deletion packages/babel-plugin-codegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
],
"bugs": "https://github.com/facebook/react-native/issues",
"engines": {
"node": ">=16"
"node": ">=18"
},
"main": "index.js",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
2 changes: 1 addition & 1 deletion packages/eslint-plugin-specs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/hermes-inspector-msggen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"msggen": "./bin/index.js"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"scripts": {
"flow": "flow",
Expand Down
2 changes: 1 addition & 1 deletion packages/metro-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/normalize-color/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"keywords": ["color", "normalization", "normalize-colors", "react-native"],
"bugs": "https://github.com/facebook/react-native/issues",
"engines": {
"node": ">=16"
"node": ">=18"
}
}
2 changes: 1 addition & 1 deletion packages/polyfills/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion packages/react-native-bots/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-codegen-typescript-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-codegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-gradle-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/rn-tester/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"directory": "packages/rn-tester"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"scripts": {
"start": "react-native start",
Expand Down
2 changes: 1 addition & 1 deletion packages/virtualized-lists/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2db2f23

Please sign in to comment.