Releases: facebook/metro
Releases Β· facebook/metro
Release v0.70.3
This is a hotfix on the 0.70.x
branch.
- [Fix] Add explicit dependency on
@babel/runtime
tometro-runtime
(#816)
Release v0.70.2
Maintenance release, containing purely internal changes such as dependency version updates.
Release v0.70.1
NOTE: Experimental features are not covered by semver and can change at any time.
- [Experimental] Respect unstable_serverRoot setting in experimentalImportBundleSupport mode (779e724)
- [Experimental]
metro-react-native-babel-preset
: Transform named capture groups in regex literals for Hermes (#791 by @danilobuerger)
Release v0.70.0
- [Breaking] Remove
@babel/plugin-transform-regenerator
fromreact-native-babel-preset
(#789 by @tido64) - [Breaking] Remove
@babel/plugin-transform-for-of
fromreact-native-babel-preset
(#792 by @newyankeecodeshop) - [Feature] Allow customizing the babel transform runtime version (#771 by @newyankeecodeshop)
- [Fix] Don't set a global
uncaughtException
listener onprocess
(4be4099)
Release v0.69.1
- [Fix] buck-worker-tool: Implement worker termination correctly. (22af874)
- [Fix] metro-resolver: Export the
CustomResolutionContext
Flow type for use in custom resolvers. (cde639c)
Release v0.69.0
- [Breaking] Move the SegmentedComponentIOS away from React Native Core (f9059c3)
- [Feature] Use Node DevTools URL (#761 by @janicduplessis)
- [Feature] Update hermes-parser to 0.6.0 (56a6b2a)
- [Feature] Use Object.assign instead of Babel _extends (#745 by @newyankeecodeshop)
- [Fix] Remove mkdirp@^0.5.1 due to CVE warnings, use native recursive
fs.mkdir
(#768 by @ericanderson)
Thanks to all of our contributors for helping improve Metro! π
Release v0.68.0
- [Breaking]
resolver.resolveRequest
moved to the front of the resolution algorithm and has a new API (d81d887) - [Feature]
metro-react-native-babel-preset
: Support async iterators, "for await ... of" (#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. (96fb6e9) - [Feature] Update React Native lazy imports list with the removal of
StatusBarIOS
. (2a0f779) - [Feature] Allow configuring the path of the canonical empty module, which now lives in
metro-runtime
by default. (bd5f932, 6e3e789, 7723be5) - [Feature] Add
initialize_done
,transformer_loading
, andtransformer_loaded
events to theReporter
interface. (d19cf5d) - [Feature] Add
waitForBundler
option to therunServer()
andrunMetro()
APIs. (57d8a92) - [Feature] Add
resolver.disableHierarchicalLookup
option. (01416f1) - [Feature] Remove confusing troubleshooting steps from missing module errors. (1fa45c2)
- [Feature] Infer names for anonymous functions in optional calls. (4ced2a1)
- [Feature] Infer names for anonymous functions memoized with useCallback. (2611f61)
- [Feature] Update terser to v5 in
metro-minify-terser
. (#754 by @rockwotj, #606 by @janicduplessis) - [Fix] Fix a caching issue with custom resolvers. (793b1a0)
- [Fix] Specify UTF-8 encoding when serving bundles. (#695 by @zhiqingchen)
- [Fix] Support package.json module replacements for requires with implicit extensions. (41522a2)
- [Fix] Resolve package.json module replacements when the replaced module isn't a physical file. (171393a)
- [Fix] Fix stack trace symbolication when input files have non-Unix line endings. (#691 by @danielsmc)
- [Fix] Decrease the precedence of
resolver.nodeModulesPaths
to respect transitive dependencies. (#738 by @sharmilajesupaul) - [Fix] Respect
mangle: false
&sourceMap: false
inminifierConfig
. (#749 by @mfbx9da4) - [Fix] Update hash function from MD4 to MD5 for Node 17 compatibility. (#752 by @tobua)
NOTE: Experimental features are not covered by semver and can change at any time.
- [Experimental] Add
server.unstable_serverRoot
option to allow serving bundles from folders outside the project root. (026a66c, ca86682, e061cf3, 70e9888, baacea2) - [Experimental] Update
metro-hermes-compiler
. (e80434c) - [Experimental] Provide safe access to assets outside the project root using
/assets?unstable_path=...
. (f3d1157) - [Experimental] Add
resolver.unstable_hasteMapModulePath
option. (e8c0de0)
Thanks to all the contributors mentioned above for helping improve Metro! π
Release v0.66.2
- [Fix] Fix crash in React Native 0.65.0-rc.2. (f7c6325)
Release v0.66.1
- [Feature] Add option to use the Hermes parser in the transformer. (6dae163)
- [Feature] Update the list of default React Native lazy imports to match the removal of Picker, which was already deprecated. (7dcb20d)
- [Feature] Make the input transform options (e.g.
platform
) available toexperimentalSerializerHook
andcustomSerializer
. (#679) - [Fix] Avoid triggering Babel scope caching bugs. (4fea2bd, 1370b7a)
- [Fix] Fix Hermes debugger proxy for IPv6. (#662)
- [Types] Remove documentation and types for the
postMinifyProcess
option which has been broken since Metro v0.33.0. (5d778de) - [Experimental] Various unstable additions to the transformer config. These are not covered by semver and can change at any time. (6482241, 3390274, 5b913fa, #677)