Skip to content

Commit 7853b06

Browse files
robhoganfacebook-github-bot
authored andcommitted
Update Metro to ^0.80.0 - don't pin to exact version (facebook#41219)
Summary: Pull Request resolved: facebook#41219 Bump to the latest Metro release. This includes minor breaking changes to Metro subpackages that should *not* be visible to RN users. Metro release notes: https://github.com/facebook/metro/releases/tag/v0.80.0 ## Moving to unpinned versioning Metro is a multi-package project, and not pinning to an exact version means multiple versions of `metro*` packages may appear in an RN project. This isn't unusual in the NPM ecosystem and *shouldn't* be a problem, but historically has caused issues (eg facebook#34714, facebook/metro#1017). The root cause of all of these issues, as far as we know, was fixed in facebook/metro@6d46078, a bug where Node hierarchical resolution was effectively sidestepped via a relative worker path, resulting in a mismatch between transformer and host process. In addition, the fact that `react-refresh`, `metro-react-native-babel-transformer` and `metro-react-native-babel-preset` are now fully moved into the `react-native/` scope and versioned with React Native means there are no circular dependencies between React Native and Metro, explicit or implicit, and we're much more clearly decoupled. So, we're moving to caret versioning to allow React Native users to pick up Metro fixes and features without requiring React Native releases and user upgrades. Changelog: [General][Changed] - Update Metro to ^v0.80.0, stop pinning to an exact version Reviewed By: GijsWeterings Differential Revision: D50731999 fbshipit-source-id: 57b07bf73c0b31f392c4d36376ca48b48a8bd598
1 parent 7612e66 commit 7853b06

File tree

5 files changed

+120
-168
lines changed

5 files changed

+120
-168
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@
9191
"jest": "^29.6.3",
9292
"jest-junit": "^10.0.0",
9393
"jscodeshift": "^0.14.0",
94-
"metro-babel-register": "0.79.1",
95-
"metro-memory-fs": "0.79.1",
94+
"metro-babel-register": "^0.80.0",
95+
"metro-memory-fs": "^0.80.0",
9696
"micromatch": "^4.0.4",
9797
"mkdirp": "^0.5.1",
9898
"mock-fs": "^5.1.4",

packages/community-cli-plugin/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@
2828
"@react-native/metro-babel-transformer": "^0.74.0",
2929
"chalk": "^4.0.0",
3030
"execa": "^5.1.1",
31-
"metro": "0.79.1",
32-
"metro-config": "0.79.1",
33-
"metro-core": "0.79.1",
31+
"metro": "^0.80.0",
32+
"metro-config": "^0.80.0",
33+
"metro-core": "^0.80.0",
3434
"node-fetch": "^2.2.0",
3535
"readline": "^1.3.0"
3636
},
3737
"devDependencies": {
38-
"metro-resolver": "0.79.1"
38+
"metro-resolver": "^0.80.0"
3939
},
4040
"engines": {
4141
"node": ">=18"

packages/metro-config/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"dependencies": {
2323
"@react-native/metro-babel-transformer": "^0.74.0",
2424
"@react-native/js-polyfills": "^0.74.0",
25-
"metro-config": "0.79.1",
26-
"metro-runtime": "0.79.1"
25+
"metro-config": "^0.80.0",
26+
"metro-runtime": "^0.80.0"
2727
}
2828
}

packages/react-native/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@
114114
"jest-environment-node": "^29.6.3",
115115
"jsc-android": "^250231.0.0",
116116
"memoize-one": "^5.0.0",
117-
"metro-runtime": "0.79.1",
118-
"metro-source-map": "0.79.1",
117+
"metro-runtime": "^0.80.0",
118+
"metro-source-map": "^0.80.0",
119119
"mkdirp": "^0.5.1",
120120
"nullthrows": "^1.1.1",
121121
"pretty-format": "^26.5.2",

0 commit comments

Comments
 (0)