diff --git a/.circleci/config.yml b/.circleci/config.yml index 6f37d323c9..2f098745e1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,8 +10,8 @@ references: # For stability, Node.js versions we run against in CI are defined explicitly # (the "lts" alias may bring in a future version before we support it) node_supported_lts_versions: &node_supported_lts_versions - - &node_min_supported_version "16.18" - - "18.12" + - &node_min_supported_version "18.12" + - "20.2" node_lts_image: &node_lts_image cimg/node:18.12 secure_unset_publish_token: &secure_unset_publish_token diff --git a/package.json b/package.json index 421a1f062b..fdc9e2e07a 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "@babel/plugin-syntax-class-properties": "^7.0.0", "@babel/plugin-transform-flow-strip-types": "^7.20.0", "@babel/plugin-transform-modules-commonjs": "^7.0.0", - "@tsconfig/node16": "1.0.1", + "@tsconfig/node18": "1.0.1", "@typescript-eslint/eslint-plugin": "^5.57.1", "@typescript-eslint/parser": "^5.57.1", "acorn": "^8.7.1", @@ -89,6 +89,6 @@ "license": "MIT", "dependencies": {}, "engines": { - "node": ">=16" + "node": ">=18" } } diff --git a/packages/buck-worker-tool/package.json b/packages/buck-worker-tool/package.json index 393a244056..84f9bc186d 100644 --- a/packages/buck-worker-tool/package.json +++ b/packages/buck-worker-tool/package.json @@ -19,6 +19,6 @@ "cleanup-release": "test ! -e build && mv src build && mv src.real src" }, "engines": { - "node": ">=16" + "node": ">=18" } } diff --git a/packages/metro-babel-register/package.json b/packages/metro-babel-register/package.json index 22ddeea122..6b8534ecc3 100644 --- a/packages/metro-babel-register/package.json +++ b/packages/metro-babel-register/package.json @@ -22,6 +22,6 @@ }, "license": "MIT", "engines": { - "node": ">=16" + "node": ">=18" } } diff --git a/packages/metro-babel-transformer/package.json b/packages/metro-babel-transformer/package.json index 3b3598193c..173dcbb66e 100644 --- a/packages/metro-babel-transformer/package.json +++ b/packages/metro-babel-transformer/package.json @@ -22,6 +22,6 @@ "nullthrows": "^1.1.1" }, "engines": { - "node": ">=16" + "node": ">=18" } } diff --git a/packages/metro-cache-key/package.json b/packages/metro-cache-key/package.json index c58781dd4d..89401d8f96 100644 --- a/packages/metro-cache-key/package.json +++ b/packages/metro-cache-key/package.json @@ -16,6 +16,6 @@ "metro-memory-fs": "0.76.6" }, "engines": { - "node": ">=16" + "node": ">=18" } } diff --git a/packages/metro-cache/package.json b/packages/metro-cache/package.json index 77020dddfe..aac96a75b1 100644 --- a/packages/metro-cache/package.json +++ b/packages/metro-cache/package.json @@ -20,6 +20,6 @@ }, "license": "MIT", "engines": { - "node": ">=16" + "node": ">=18" } } diff --git a/packages/metro-config/package.json b/packages/metro-config/package.json index 53f7c916d4..79170e2048 100644 --- a/packages/metro-config/package.json +++ b/packages/metro-config/package.json @@ -27,6 +27,6 @@ "strip-ansi": "^6.0.0" }, "engines": { - "node": ">=16" + "node": ">=18" } } diff --git a/packages/metro-core/package.json b/packages/metro-core/package.json index e6941bedfe..b3fd8cac38 100644 --- a/packages/metro-core/package.json +++ b/packages/metro-core/package.json @@ -17,6 +17,6 @@ }, "license": "MIT", "engines": { - "node": ">=16" + "node": ">=18" } } diff --git a/packages/metro-file-map/package.json b/packages/metro-file-map/package.json index 1889f6efe1..87d433e521 100644 --- a/packages/metro-file-map/package.json +++ b/packages/metro-file-map/package.json @@ -33,6 +33,6 @@ "fsevents": "^2.3.2" }, "engines": { - "node": ">=16" + "node": ">=18" } } diff --git a/packages/metro-inspector-proxy/package.json b/packages/metro-inspector-proxy/package.json index 0946546376..c7c2040b0a 100644 --- a/packages/metro-inspector-proxy/package.json +++ b/packages/metro-inspector-proxy/package.json @@ -24,6 +24,6 @@ "node-fetch": "^2.2.0" }, "engines": { - "node": ">=16" + "node": ">=18" } } diff --git a/packages/metro-memory-fs/package.json b/packages/metro-memory-fs/package.json index fa82a4c1f9..18049f5c17 100644 --- a/packages/metro-memory-fs/package.json +++ b/packages/metro-memory-fs/package.json @@ -13,6 +13,6 @@ }, "license": "MIT", "engines": { - "node": ">=16" + "node": ">=18" } } diff --git a/packages/metro-minify-terser/package.json b/packages/metro-minify-terser/package.json index 0d49437b0a..370881df18 100644 --- a/packages/metro-minify-terser/package.json +++ b/packages/metro-minify-terser/package.json @@ -16,6 +16,6 @@ "terser": "^5.15.0" }, "engines": { - "node": ">=16" + "node": ">=18" } } diff --git a/packages/metro-minify-uglify/package.json b/packages/metro-minify-uglify/package.json index 5da8e79990..331611e6f9 100644 --- a/packages/metro-minify-uglify/package.json +++ b/packages/metro-minify-uglify/package.json @@ -16,6 +16,6 @@ "uglify-es": "^3.1.9" }, "engines": { - "node": ">=16" + "node": ">=18" } } diff --git a/packages/metro-react-native-babel-preset/package.json b/packages/metro-react-native-babel-preset/package.json index 6edc5a6abb..d9763289eb 100644 --- a/packages/metro-react-native-babel-preset/package.json +++ b/packages/metro-react-native-babel-preset/package.json @@ -62,6 +62,6 @@ "@babel/core": "*" }, "engines": { - "node": ">=16" + "node": ">=18" } } diff --git a/packages/metro-react-native-babel-transformer/package.json b/packages/metro-react-native-babel-transformer/package.json index da8ebdac87..2a953fc89a 100644 --- a/packages/metro-react-native-babel-transformer/package.json +++ b/packages/metro-react-native-babel-transformer/package.json @@ -28,6 +28,6 @@ "@babel/core": "*" }, "engines": { - "node": ">=16" + "node": ">=18" } } diff --git a/packages/metro-react-native-interop-tools/package.json b/packages/metro-react-native-interop-tools/package.json index ceb8b95d0b..01496b072c 100644 --- a/packages/metro-react-native-interop-tools/package.json +++ b/packages/metro-react-native-interop-tools/package.json @@ -19,6 +19,6 @@ }, "license": "MIT", "engines": { - "node": ">=16" + "node": ">=18" } } diff --git a/packages/metro-resolver/package.json b/packages/metro-resolver/package.json index 76134be97c..c3c6c738a0 100644 --- a/packages/metro-resolver/package.json +++ b/packages/metro-resolver/package.json @@ -13,6 +13,6 @@ }, "license": "MIT", "engines": { - "node": ">=16" + "node": ">=18" } } diff --git a/packages/metro-runtime/package.json b/packages/metro-runtime/package.json index 8ae2333b18..e2a300cd79 100644 --- a/packages/metro-runtime/package.json +++ b/packages/metro-runtime/package.json @@ -22,6 +22,6 @@ "react-test-renderer": "^18.2.0" }, "engines": { - "node": ">=16" + "node": ">=18" } } diff --git a/packages/metro-source-map/package.json b/packages/metro-source-map/package.json index 406279f640..979444d4cf 100644 --- a/packages/metro-source-map/package.json +++ b/packages/metro-source-map/package.json @@ -28,6 +28,6 @@ "terser": "^5.15.0" }, "engines": { - "node": ">=16" + "node": ">=18" } } diff --git a/packages/metro-symbolicate/package.json b/packages/metro-symbolicate/package.json index 9c981e6b74..efe97eaac3 100644 --- a/packages/metro-symbolicate/package.json +++ b/packages/metro-symbolicate/package.json @@ -25,6 +25,6 @@ "vlq": "^1.0.0" }, "engines": { - "node": ">=16" + "node": ">=18" } } diff --git a/packages/metro-transform-plugins/package.json b/packages/metro-transform-plugins/package.json index c71553025f..4dd6712c1e 100644 --- a/packages/metro-transform-plugins/package.json +++ b/packages/metro-transform-plugins/package.json @@ -27,6 +27,6 @@ "metro": "0.76.6" }, "engines": { - "node": ">=16" + "node": ">=18" } } diff --git a/packages/metro-transform-worker/package.json b/packages/metro-transform-worker/package.json index d599f32a69..e8d3db32fa 100644 --- a/packages/metro-transform-worker/package.json +++ b/packages/metro-transform-worker/package.json @@ -32,6 +32,6 @@ "metro-react-native-babel-transformer": "0.76.6" }, "engines": { - "node": ">=16" + "node": ">=18" } } diff --git a/packages/metro/package.json b/packages/metro/package.json index 65309eb266..d73ca9f011 100644 --- a/packages/metro/package.json +++ b/packages/metro/package.json @@ -78,6 +78,6 @@ }, "license": "MIT", "engines": { - "node": ">=16" + "node": ">=18" } } diff --git a/packages/ob1/package.json b/packages/ob1/package.json index b52efda625..394d920200 100644 --- a/packages/ob1/package.json +++ b/packages/ob1/package.json @@ -17,6 +17,6 @@ "license": "MIT", "dependencies": {}, "engines": { - "node": ">=16" + "node": ">=18" } } diff --git a/tsconfig.json b/tsconfig.json index f5f62b4c9c..aa99487b73 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@tsconfig/node16/tsconfig.json", + "extends": "@tsconfig/node18/tsconfig.json", "include": ["./packages/*/types/**/*.d.ts"], "compilerOptions": { "noEmit": true, diff --git a/yarn.lock b/yarn.lock index 1917ead884..fbd541ab2b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1226,10 +1226,10 @@ dependencies: "@sinonjs/commons" "^1.7.0" -"@tsconfig/node16@1.0.1": +"@tsconfig/node18@1.0.1": version "1.0.1" - resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.1.tgz#a6ca6a9a0ff366af433f42f5f0e124794ff6b8f1" - integrity sha512-FTgBI767POY/lKNDNbIzgAX6miIDBs6NTCbdlDb8TrWovHsSvaVIZDlTqym29C6UqhzwcJx4CYr+AlrMywA0cA== + resolved "https://registry.yarnpkg.com/@tsconfig/node18/-/node18-1.0.1.tgz#ea5b375a9ead6b09ccbd70c3894ea069829ea1bb" + integrity sha512-sNFeK6X2ATlhlvzyH4kKYQlfHXE2f2/wxtB9ClvYXevWpmwkUT7VaSrjIN9E76Qebz8qP5JOJJ9jD3QoD/Z9TA== "@types/babel__core@^7.1.14": version "7.1.19"