- [Breaking] Update default server port to 8081. (891fe96 by @huntie)
- [Breaking] Remove
metro-react-native-babel-transformerandmetro-react-native-babel-preset, which will be published as@react-native/metro-babel-transformerand@react-native/babel-presetgoing forward. (799aa0a by @dmytrorykun) - [Breaking] Remove
runInspectorProxyoption from server. (2b0b15d by @huntie)- This is a significant breaking change — Metro will no longer start a built-in Inspector Proxy.
- To migrate today, integrators should create an
InspectorProxyinstance externally, and provide the relevant handlers toMetro.runServer(). For reference:inspectorProxy.processRequesttoServerOptions.unstable_extraMiddleware.inspectorProxy.createWebSocketListenerstoServerOptions.websocketEndpoints.
- Recommended: In the very near future, we will be encapsulating this functionality in the
@react-native/dev-middlewarepackage, which will provide a batteries-included integration point for the above. - Please reach out to @huntie if you need support with this feature.
- [Breaking]:
DependencyGraph.resolveDependencynow takes a dependency object instead of a string. (fbdd295 by @motiz88) - [Breaking]: Stop passing
inlineRequiresandnonInlinedRequiresto Babel transformers. (e339c8f by @motiz88) - [Feature] Widen config search paths to include
metro.config.cjs. (6922933 by @huntie) - [Feature]: Custom resolvers may access the original dependency descriptor for diagnostic purposes. (fbdd295 by @motiz88)
- [Fix]:
asserted-statesis not iterable when using older Watchman versions. (3ef5fc8 by @robhogan) - [Fix]: Avoid resolving
.nativeas a standalone file extension. (#1045 by @EvanBacon) - [Fix]: Resolution errors now show accurate source locations. (a398f34 by @motiz88)
- [Performance]: Parallelise Haste construction to improve startup on large Haste systems. (2e0f69a by @robhogan)