Releases: facebook/metro
Releases Β· facebook/metro
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)
Release v0.66.0
- [Breaking] metro-symbolicate: Optionally accept a SourceURL parameter for debug builds (7ad7560)
- [Feature] Move generator to Hermes stable (b280477)
- [Feature] Move for-of and ?? to hermes stable (31375f7)
- [Feature] Set app name for React Native Experimental Debug Connection (3aca116)
- [Feature] Infer the name "default" for anonymous exports (af23a1b)
- [Fix] Disable fileName moduleId parsing for non-legacy source maps (e473e93)
- [Fix] Format log messages using printf format (f2b3485)
- [Fix] Fix scope of function declaration binding in constant folding (150d13e)
Release v0.65.2
- [Fix] Fix
_interopRequireDefault
not defined error when using ES Modules (63f3d1e)
Release v0.65.1
- [Feature] Add API to append/insert records in ChromeHeapSnapshotProcessor (9dc1266)
- [Feature] Add --hermes-coverage option to metro-symbolicate (fc3b6b3)
- [Fix] Consistently return mutable position objects from source map consumer (fab9af9)
- [Fix] Fix column offset calculation in sectioned source maps (2cc5aa8)
Release v0.65.0
- [Breaking]: Remove JSON from default asset types (#593)
- [Breaking]: Removes support for Node 10 (bc8a3f0)
- [Feature]:
metro-symbolicate
: Support for symbolicating Chrome heap timelines (cb542c0, 6b0a0cb) - [Feature]: Update the default list of lazy imports to match RN 0.63 (#602)
- [Performance]: Several changes that improve Metro's startup and bundling performance (807bea7, bc8a3f0,
aceafc5, 279b295, 745e2d8, a942002, d6eefe4) - [Fix]: Optimize
Platform.select()
calls correctly when the argument includes methods (4d9908b) - [Fix]: Handle EISDIR errors in
buildCodeFrameMessage
(#567)
Release v0.64.0
- [Feature]: Add
mkdtemp
andmkdtempSync
implementations tometro-memory-fs
(1ed7849) - [Feature]: Add
chmod
,lchmod
, andfchmod
implementations tometro-memory-fs
(d99b55b) - [Feature]: Support function-name inference for flow typecast-expressions to source-maps (d48277f)
- [Feature]: Support
SegmentID
field in Hermes mini-dump stack traces (d0634a8) - [Feature]: Support node modules algorithm for resolving configuration path (dea7e05)
- [Feature]: Remove template literal and shorthand prop transformation from hermes-stable preset (1367b71)
- [Feature]: Add
nodeModulesPath
option to resolver (b2528d4) - [Feature]: Remove computed properties, spread, and spread rest transform plugins from
Hermes-canary
preset (82818e7) - [Breaking]: Renames the Metro
transform.inlineRequires.blacklist
option toblockList
. (b25fe89) - [Fix]: Prevent inlining of
__DEV__
in object property-keys (42942ca) - [Fix]: Include
/node_modules
in resolver search path (04a2a46) - [Fix]: Correctly escape the path separator in blocklist regular expressions on Windows (881d9f6)
- [Experimental]: Support absolute file paths when symbolicating stack traces (7be2284)