Releases: react/metro
Releases Β· react/metro
v0.79.0
- [Breaking]: Disable global package resolution (
resolver.enableGlobalPackages) by default (0df1541 by @robhogan) - [Feature]: Add option to configure Metro's support for global package resolution (aka "Haste packages") (8b80efb by @motiz88)
- [Feature]: Enable resolution through symlinks (previously experimental
unstable_enableSymlinks) (9e7cec1 by @robhogan) - [Feature]: Passing custom
customTransformOptionsandcustomResolverOptionstobundle_build_started log eventso as to refine the bundling message (#1061 by @EvanBacon)
v0.78.1
- [Feature]: Return promise from
metro-cache'sCache.setto allow handling underlying async store errors (2845160 by @robhogan) - [Feature] Add base URL string overload to
InspectorProxy.createWebSocketListeners(8522db1 by @huntie)
Note
v0.78.1 will be the final release of metro-inspector-proxy, which is being relocated into the React Native repo. In Metro v0.78.0, we removed builtin Inspector Proxy creation as a breaking change.
- For React Native integrators: The
@react-native/dev-middlewarepackage will provide a batteries-included integration point replacingmetro-inspector-proxy. We're working closely with Expo on the API for this which should be ready within the next two weeks βΒ usage will be documented in the package README. - Please reach out to @huntie (https://twitter.com/alxhnt) if you need support around this change.
v0.78.0
- [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)
v0.76.8
v0.77.0
- [Breaking]: Increase minimum Node version from 16 to 18. (ebaf27a by @arushikesarwani94)
- [Breaking]: Use Terser's default for comments. (#972 by @tido64)
- [Breaking]: Remove
metro-minify-uglifyfrommetrodependencies. (7a8fcd5 by @robhogan) - [Fix]: Fixed a bug in the handling of path separators in
blockListon Windows. (2eecfc7 by @motiz88) - [Fix]: Protect against unsafe merging of
blockListpatterns with inconsistent regex flags. (c80904b by @motiz88) - [Fix]: Incorrect worker resolution when multiple
metroversions are installed. (6d46078 by @robhogan) - [Performance]: Improve resolution performance for files outside the project root. (dc3cddf by @robhogan)
- [Performance]: Improved startup speed via a new file map cache format. (166477e by @robhogan)
NOTE: Experimental features are not covered by semver and can change at any time.
- [Experimental]:
metro-file-map: Normalize root-relative paths for cross-platform cache compatibility. (d282a08 by @motiz88) - [Experimental]: Fix crash when
require.contextis used on a directory with infinite path expansions. (14d652f by @robhogan)
Full Changelog: v0.76.7...v0.77.0
v0.76.7
- [Feature]:
metro-babel-transformerandmetro-react-native-babel-transformerwill returnmetadatafrom Babel transform results. (42fdbc2 by @robhogan) - [Feature]: Expose
TerminalReporterfor Reporter implementations. (417e6f2 by @colinta) - [Feature]: Allow client-side device identifiers in inspector proxy. (c6a94bc by @byCedric)
- [Fix]: EPERM file watching errors on Windows. (4b22efb by @robhogan)
Full Changelog: v0.76.6...v0.76.7
v0.76.6
- [Types] Update config and
Servertypes to use broader types fromconnectpackage (d20d7c8 by @huntie) - [Types] Fix TypeScript name for
createConnectMiddlewareexport (06682f8 by @huntie) - [Deprecation] Deprecate
server.enhanceMiddlewareoption (22e85fd by @huntie)
NOTE: Experimental features are not covered by semver and can change at any time.
Full Changelog: v0.76.5...v0.76.6
v0.73.10
This is a hotfix on the 0.73.x branch.
- [Feature] Support URLs for both bundling and symbolication requests using
//&instead of?as a query string delimiter (#994 by @robhogan) - [Fix] Emit source URLs in a format that will not be stripped by JavaScriptCore (#994 by @robhogan)
Full Changelog: v0.73.9...v0.73.10
v0.72.4
This is a hotfix on the 0.72.x branch.
- [Feature] Support URLs for both bundling and symbolication requests using
//&instead of?as a query string delimiter (#993 by @robhogan) - [Fix] Emit source URLs in a format that will not be stripped by JavaScriptCore (#993 by @robhogan)
Full Changelog: v0.72.3...v0.72.4
v0.70.4
This is a hotfix on the 0.70.x branch.
- [Feature] Support URLs for both bundling and symbolication requests using
//&instead of?as a query string delimiter. (#996 by @robhogan) - [Fix] Emit source URLs in a format that will not be stripped by JavaScriptCore. (#996 by @robhogan)
Full Changelog: v0.70.3...v0.70.4