Skip to content

Commit

Permalink
Upgrade Metro to 0.79.1 in RN (#39273)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #39273

Upgrade Metro dependencies to 0.79.1 in `react-native`

This includes Metro breaking changes for disabling global package resolution by default and adds features like: Haste packages, enable resolution through symlinks and passing custom customTransformOptions and customResolverOptions to bundle_build_started log event so as to refine the bundling message. It also fixes arbitrary transformation of Babel plugins during registration in `metro-babel-register` and fixes "unexpected null" crash when handling a batch of file changes and symlinks with indirections.

**Full Metro Changelog:** https://github.com/facebook/metro/releases/tag/v0.79.1
https://github.com/facebook/metro/releases/tag/v0.79.0

Changelog:
[General][Changed] Upgraded Metro to 0.79.1

Reviewed By: motiz88, mdvacca

Differential Revision: D48922815

fbshipit-source-id: 37aea6194fe587e0d094c96ceec1122c588f0fbb
  • Loading branch information
arushikesarwani94 authored and facebook-github-bot committed Sep 20, 2023
1 parent ebcd1ab commit 982f6f9
Show file tree
Hide file tree
Showing 5 changed files with 186 additions and 208 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@
"jest": "^29.6.3",
"jest-junit": "^10.0.0",
"jscodeshift": "^0.14.0",
"metro-babel-register": "0.78.0",
"metro-memory-fs": "0.78.0",
"metro-babel-register": "0.79.1",
"metro-memory-fs": "0.79.1",
"micromatch": "^4.0.4",
"mkdirp": "^0.5.1",
"mock-fs": "^5.1.4",
Expand Down
12 changes: 6 additions & 6 deletions packages/community-cli-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@
],
"dependencies": {
"@react-native/dev-middleware": "^0.73.0",
"@react-native-community/cli-server-api": "12.0.0-alpha.11",
"@react-native-community/cli-tools": "12.0.0-alpha.11",
"@react-native-community/cli-server-api": "12.0.0-alpha.12",
"@react-native-community/cli-tools": "12.0.0-alpha.12",
"@react-native/metro-babel-transformer": "^0.73.11",
"chalk": "^4.0.0",
"execa": "^5.1.1",
"metro": "0.78.0",
"metro-config": "0.78.0",
"metro-core": "0.78.0",
"metro": "0.79.1",
"metro-config": "0.79.1",
"metro-core": "0.79.1",
"node-fetch": "^2.2.0",
"readline": "^1.3.0"
},
"devDependencies": {
"metro-resolver": "0.78.0"
"metro-resolver": "0.79.1"
},
"engines": {
"node": ">=18"
Expand Down
4 changes: 2 additions & 2 deletions packages/metro-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"dependencies": {
"@react-native/metro-babel-transformer": "^0.73.11",
"@react-native/js-polyfills": "^0.73.0",
"metro-config": "0.78.0",
"metro-runtime": "0.78.0"
"metro-config": "0.79.1",
"metro-runtime": "0.79.1"
}
}
10 changes: 5 additions & 5 deletions packages/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@
},
"dependencies": {
"@jest/create-cache-key-function": "^29.6.3",
"@react-native-community/cli": "12.0.0-alpha.11",
"@react-native-community/cli-platform-android": "12.0.0-alpha.11",
"@react-native-community/cli-platform-ios": "12.0.0-alpha.11",
"@react-native-community/cli": "12.0.0-alpha.12",
"@react-native-community/cli-platform-android": "12.0.0-alpha.12",
"@react-native-community/cli-platform-ios": "12.0.0-alpha.12",
"@react-native/assets-registry": "^0.73.0",
"@react-native/community-cli-plugin": "^0.73.0",
"@react-native/codegen": "^0.73.0",
Expand All @@ -113,8 +113,8 @@
"jest-environment-node": "^29.6.3",
"jsc-android": "^250231.0.0",
"memoize-one": "^5.0.0",
"metro-runtime": "0.78.0",
"metro-source-map": "0.78.0",
"metro-runtime": "0.79.1",
"metro-source-map": "0.79.1",
"mkdirp": "^0.5.1",
"nullthrows": "^1.1.1",
"pretty-format": "^26.5.2",
Expand Down

0 comments on commit 982f6f9

Please sign in to comment.