Sourced from metro-runtime's releases.
Release v0.68.0
- [Breaking]
resolver.resolveRequestmoved to the front of the resolution algorithm and has a new API (d81d8877c05637eac2b4ea946a9fa1e8ae869b06)- [Feature]
metro-react-native-babel-preset: Support async iterators, "for await ... of" (https://github.com/facebook/flipper/issues/747 by@​newyankeecodeshop)Thanks to all of our contributors for helping improve Metro! 🚇
Release v0.67.0
- [Breaking] Use custom resolvers (
resolver.resolveRequest) before checking the Haste map. (96fb6e904e1660b37f4d1f5353ca1e5477c4afbf)- [Feature] Update React Native lazy imports list with the removal of
StatusBarIOS. (2a0f77925e3299e01c2bfe82d0356145a643adc0)- [Feature] Allow configuring the path of the canonical empty module, which now lives in
metro-runtimeby default. (bd5f9323337b03a77bc219636937bb75cd8c18ca, 6e3e789b685b95ea59a58364a751e8010d536e8b, 7723be545795c936cb81cad214ee202f72e169b3)- [Feature] Add
initialize_done,transformer_loading, andtransformer_loadedevents to theReporterinterface. (d19cf5d7e88207a8d46c17b570f14a239dae8926)- [Feature] Add
waitForBundleroption to therunServer()andrunMetro()APIs. (57d8a92583185a97dffcdc1c95fef7780be9104d)- [Feature] Add
resolver.disableHierarchicalLookupoption. (01416f1bc41a3d557b24e4b508fed5f158990108)- [Feature] Remove confusing troubleshooting steps from missing module errors. (1fa45c21f7508cc3a852071b775f592873700ad0)
- [Feature] Infer names for anonymous functions in optional calls. (4ced2a1be8a42a9c7df71b566918a457bad207c1)
- [Feature] Infer names for anonymous functions memoized with useCallback. (2611f618b245fd2bd2c3558d2536011269bb5a68)
- [Feature] Update terser to v5 in
metro-minify-terser. (facebook/metro#754 by@​rockwotj, facebook/metro#606 by@​janicduplessis)- [Fix] Fix a caching issue with custom resolvers. (793b1a03c1f0b5e63869b471adab3f1ad61b199b)
- [Fix] Specify UTF-8 encoding when serving bundles. (facebook/metro#695 by
@​zhiqingchen)- [Fix] Support package.json module replacements for requires with implicit extensions. (41522a25bec9325d1df5981b55d4672db7126895)
- [Fix] Resolve package.json module replacements when the replaced module isn't a physical file. (171393a6319e507935eeb3d40561e908c1a2abfe)
- [Fix] Fix stack trace symbolication when input files have non-Unix line endings. (facebook/metro#691 by
@​danielsmc)- [Fix] Decrease the precedence of
resolver.nodeModulesPathsto respect transitive dependencies. (facebook/metro#738 by@​sharmilajesupaul)- [Fix] Respect
mangle: false&sourceMap: falseinminifierConfig. (facebook/metro#749 by@​mfbx9da4)- [Fix] Update hash function from MD4 to MD5 for Node 17 compatibility. (facebook/metro#752 by
@​tobua)NOTE: Experimental features are not covered by semver and can change at any time.
- [Experimental] Add
server.unstable_serverRootoption to allow serving bundles from folders outside the project root. (026a66cf40df1bd05da2afc1660efa1d9605c55a, ca86682012eb836e2b6aeb001f2b3112129e38c3, e061cf342505f3d07fb21f85f22925e3d05557c9, 70e98882ad24d7c25c9b73eaf347e60f2a74c8ca, baacea28635dae7fea3bd30dd485252ae59a937e)- [Experimental] Update
metro-hermes-compiler. (e80434cf329619e1a0c6c56ae7be6c88cb350c99)- [Experimental] Provide safe access to assets outside the project root using
/assets?unstable_path=.... (f3d1157bacc341dff82efea2f70b634141105fc0)- [Experimental] Add
resolver.unstable_hasteMapModulePathoption. (e8c0de0411148bd31e3decb6a5c4c1dc1d645666)Thanks to all the contributors mentioned above for helping improve Metro! 🚇
c84b533 Publish 0.68.0fbe26fd fix(website): add Algolia search API key (https://github.com/facebook/flipper/issues/726)02baeb6 Change github actions trigger to use main branch (https://github.com/facebook/flipper/issues/769)bf73ed3 RN preset: support async iterators, for await of (https://github.com/facebook/flipper/issues/747)a40c474 Deploy 0.171.0 to xplatd81d887 Move resolveRequest to the front of the resolution algorithmccfec1e Release 0.67.0b31f5a4 Deploy v0.170.0 to xplat36e3ffe Bump node-fetch from 2.6.1 to 2.6.7 (https://github.com/facebook/flipper/issues/762)3fb4da8 Bump trim-off-newlines from 1.0.1 to 1.0.3 (https://github.com/facebook/flipper/issues/757)