Skip to content

v0.78.0

Compare
Choose a tag to compare
@motiz88 motiz88 released this 07 Aug 16:30
  • [Breaking] Update default server port to 8081. (891fe96 by @huntie)
  • [Breaking] Remove metro-react-native-babel-transformer and metro-react-native-babel-preset, which will be published as @react-native/metro-babel-transformer and @react-native/babel-preset going forward. (799aa0a by @dmytrorykun)
  • [Breaking] Remove runInspectorProxy option 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 InspectorProxy instance externally, and provide the relevant handlers to Metro.runServer(). For reference:
      • inspectorProxy.processRequest to ServerOptions.unstable_extraMiddleware.
      • inspectorProxy.createWebSocketListeners to ServerOptions.websocketEndpoints.
    • Recommended: In the very near future, we will be encapsulating this functionality in the @react-native/dev-middleware package, 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.resolveDependency now takes a dependency object instead of a string. (fbdd295 by @motiz88)
  • [Breaking]: Stop passing inlineRequires and nonInlinedRequires to 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-states is not iterable when using older Watchman versions. (3ef5fc8 by @robhogan)
  • [Fix]: Avoid resolving .native as 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)