Update dependency metro to ^0.88.0 #10

Open
renovate-bot wants to merge 1 commit from renovate/metro-0.x into master
Collaborator

This PR contains the following updates:

Package Type Update Change
metro (source) devDependencies minor ^0.81.1 → ^0.88.0

Release Notes

react/metro (metro)

v0.88.0

Compare Source

  • [Breaking]: Resolver: Read "exports" from the package root, and apply "browser" redirections after it, by default. Set resolver.unstable_resolveExportsFromPackageRoot and resolver.unstable_applyBrowserSpecAfterExports to false to opt out (#​2174 by @​robhogan)
  • [Breaking]: Default transformer.asyncRequireModulePath and resolver.emptyModulePath to metro:runtime/..., which aren't file paths. Custom resolvers must delegate unhandled metro: specifiers to context.resolveRequest (#​2180 by @​robhogan)
  • [Breaking]: Resolve the module system via metro:runtime/polyfills/require. A custom resolver.resolveRequest must delegate metro: specifiers it doesn't handle to context.resolveRequest (#​2184 by @​robhogan)
  • [Breaking]: transformer.globalPrefix now also prefixes __r, __c, __registerSegment and __accept, and the default run statement. Code that calls these by name must apply the prefix (#​2186 by @​robhogan)
  • [Breaking]: Remove the deprecated redirectModulePath from ResolutionContext. A custom resolver should drop any call to it and delegate to context.resolveRequest or resolve, which already apply "browser" redirections and return {type: 'empty'} for false (#​2181 by @​robhogan)
  • [Breaking]: Remove the deprecated doesFileExist from ResolutionContext, and the DoesFileExist type from metro-resolver (use fileSystemLookup) (#​2181 by @​robhogan)
  • [Breaking]: ResolutionContext.isESMImport is required (#​2182 by @​robhogan)
  • [Breaking]: Async bundle and HMR module URLs keep the file extension (foo.js.bundle), fixing lazy loading of .cjs and .mjs files, and of files that share a name with a sibling (#​1990 by @​dasjideepak)
  • [Breaking]: Babel transformers can no longer return a functionMap. Apply the plugins passed by Metro and return the resulting Babel metadata to keep function names in stack traces (#​2157 by @​robhogan)
  • [Breaking]: /symbolicate no longer reads req.rawBody, and fails if a middleware has already read the request body (#​2158 by @​robhogan)
  • [Breaking]: Remove the bundle_transform_progressed_throttled event from TerminalReportableEvent. TerminalReporter subclasses should handle bundle_transform_progressed, which their _log now receives for every progress update (#​2170 by @​vzaidman)
  • [Breaking]: Source and JSON files containing the reserved string _$$_METRO_, including in comments and string literals, now fail to transform (#​2155 by @​robhogan)
  • [Breaking]: Remove the deprecated, always-true hot option from getTransformOptions (#​2159 by @​robhogan)
  • [Feature]: Custom serializers receive the reserved string as options.reservedString (#​2155 by @​robhogan)
  • [Fix]: Don't print the terminal status in the middle of bursts of output written outside of it, and don't wait for a pending status update before exiting (#​2170 by @​vzaidman)
  • [Fix]: Fall back to file-based resolution, instead of throwing a TypeError, when a package's "exports" field is not a string, array or object (#​2187 by @​kwy404)
  • [Fix]: Fix relative symlinks on a different Windows drive than the project root (#​2161 by @​ramya-2196)
  • [Performance]: ~5-10% faster resolution (#​2181 by @​robhogan)

NOTE: Experimental features are not covered by semver and can change at any time.

  • [Experimental]: Remove unstable_incrementalResolution from ResolutionContext, and metro-resolver/private/createDefaultContext (#​2181 by @​robhogan)

Full Changelog: https://github.com/react/metro/compare/v0.87.3...v0.88.0

v0.87.3

Compare Source

NOTE: Experimental features are not covered by semver and can change at any time.

  • [Experimental]: Add resolver.unstable_allowVirtualModules, allowing custom resolvers to return virtual modules (#​2056, #​2036 by @​robhogan)
  • [Experimental]: Add metro:inline;base64,<source> specifiers, resolving to a virtual module owned by the importer (#​2037 by @​robhogan)
  • [Experimental]: Add resolver.unstable_applyBrowserSpecAfterExports to apply "browser" redirections after "exports" (#​2134 by @​mozzius)
  • [Experimental]: Add resolver.unstable_resolveExportsFromPackageRoot to read "exports" from the package root (#​2160 by @​robhogan)
  • [Experimental]: Fix transformer.unstable_workerThreads exposing JEST_WORKER_ID to transformers (#​2152 by @​robhogan)

Full Changelog: https://github.com/react/metro/compare/v0.87.2...v0.87.3

v0.87.2

Compare Source

  • [Security]: Fix CVE on micromatch/braces by removing the dependency (#​2000 by @​robhogan)
  • [Feature]: Add a built-in metro:runtime/* specifier, resolvable from any importer (#​2083 by @​robhogan)
  • [Feature]: Pass Metro's own @babel/runtime and its version to Babel presets when transformer.enableBabelRuntime is true (#​1957 by @​robhogan)
  • [Fix]: Resolver: Fix stale resolutions after adding a nearer package.json or retargeting a symlinked directory (#​1948 by @​robhogan)
  • [Fix]: Resolver: Resolve packages and directories named with an asset extension (eg lodash.zip) as modules (#​2055 by @​robhogan)
  • [Fix]: Resolver: Fall through to parent conditions when a nested "exports" or "imports" condition has no match (#​2074 by @​maximilliangrand)
  • [Fix]: Resolver: Don't resolve an exact "exports" or "imports" subpath with a null target through a pattern (#​1987 by @​kwy404)
  • [Fix]: Resolve Metro's own runtime and @babel/runtime even when they're outside projectRoot and watchFolders (#​2065, #​2083 by @​robhogan)
  • [Fix]: Ambiguous module resolution errors list the conflicting files instead of an empty list, in the terminal and in the app (#​2102 by @​kwy404)
  • [Fix]: Use [metro-watchFolders]/N/ URLs for assets outside projectRoot, which also moves them in release builds (#​1892 by @​robhogan)
  • [Fix]: Fix [metro-project] and [metro-watchFolders] bundle serving on Windows (#​2015 by @​motiz88)
  • [Fix]: Fix an HMR crash on [metro-project] and [metro-watchFolders] URLs (#​2017 by @​motiz88)
  • [Fix]: Don't resolve [metro-project] and [metro-watchFolders] prefixes in API and CLI entry points (#​2030 by @​motiz88)
  • [Fix]: Fix backslashes in async bundle paths on Windows (#​1938 by @​robhogan)
  • [Fix]: Fix stale modules when files change during an in-flight or failed build (#​2007 by @​YevheniiKotyrlo)
  • [Fix]: Fix files changed during startup being missed until restart (#​2054 by @​cpruijsen)
  • [Fix]: Fix changes made immediately after startup sometimes being missed on macOS (#​2003 by @​robhogan)
  • [Fix]: Fix watch mode losing files when a directory replaces a file or symlink, eg unlinking a package (#​2009 by @​robhogan)
  • [Fix]: FallbackWatcher: Fix a hang on stop, and missed changes after a watch error or on Windows (#​1967 by @​robhogan)
  • [Fix]: FallbackWatcher: Close watch handles under a deleted directory (#​2004 by @​YevheniiKotyrlo)
  • [Fix]: metro-file-map: Don't change the active mock when a duplicate is removed (#​1756 by @​durvesh1992)
  • [Fix]: Create fileMapCacheDirectory if it doesn't exist, rather than failing to persist the file map cache (#​2096 by @​shubh73)
  • [Fix]: Include Metro's dependency collection modules in the transform cache key (#​1749 by @​fallintoplace)
  • [Fix]: Inline requires: Don't partially inline requires referenced in type annotations or export {...} specifiers (#​2092 by @​robhogan)
  • [Fix]: Propagate transformer initialisation errors from Bundler (#​1854 by @​Boulea7)
  • [Fix]: Release workers and watchers when Metro fails to initialise (#​1963 by @​robhogan)
  • [Fix]: Ignore attributes like stroke-width when reading SVG dimensions (#​1972 by @​GabrielDumbrava)
  • [Fix]: Fix generated positions in indexed source maps (#​1976 by @​kwy404)
  • [Fix]: Fix source maps losing lines after very large unmapped gaps (#​1983 by @​robhogan)
  • [Fix]: metro-symbolicate: Don't fail on frames with no source position, eg [native code] (#​1891 by @​robhogan)
  • [Fix]: metro-symbolicate: Parse frames with Windows absolute paths (#​1939 by @​robhogan)
  • [Performance]: Inline destructured CommonJS requires (const {foo} = require('foo')) under inlineRequires (#​2087 by @​robhogan)
  • [Performance]: ~3x faster composeSourceMaps, with ~15% less memory (#​1978, #​1979, #​1980, #​1983 by @​robhogan)
  • [Performance]: ~35% faster first-pass resolution (#​1945, #​1946, #​1948 by @​robhogan)
  • [Performance]: ~33% faster non-Watchman crawl on startup (#​1677 by @​kitten)
  • [Deprecated]: String values of transformer.enableBabelRuntime - use true (#​1957 by @​robhogan)
  • [Types]: Add TypeScript definitions for metro-runtime (#​1996 by @​robhogan)
  • [Types]: Declarations use IteratorObject, which needs TypeScript 5.6+ unless skipLibCheck is set (df2e758)

NOTE: Experimental features are not covered by semver and can change at any time.

  • [Experimental]: Add server.unstable_middleware and server.unstable_priorityMiddleware, to add middleware after or before Metro's own (#​2031 by @​vzaidman)
  • [Experimental]: Add server.unstable_onServerCreated, called with Metro's server before it listens (#​2031 by @​vzaidman)
  • [Experimental]: runServer's unstable_extraMiddleware is deprecated - use unstable_priorityMiddleware (#​2031 by @​vzaidman)
  • [Experimental]: Fix mismatched asset paths in builds under unstable_serverRoot (#​1917 by @​robhogan)
  • [Experimental]: metro-file-map: Changes to the plugin and FileSystem APIs (#​1944, #​1951, #​2071 by @​robhogan), and crawlerFactory crawlers must report symlink targets as 1 or a pre-resolved path (#​1687 by @​kitten)

Full Changelog: https://github.com/react/metro/compare/v0.87.1...v0.87.2

v0.87.1

Compare Source

  • [Feature]: Add resolver.schemeResolvers to resolve URI-scheme-prefixed specifiers (eg foo:bar) with custom resolvers (#​1804 by @​robhogan)
  • [Feature]: Resolve metro:babel-runtime/<path> imports to Metro's own @babel/runtime dependency (8388f71 by @​robhogan)
  • [Feature]: metro-babel-transformer: Pass inlinePlatform to Babel presets via caller (6bbe095 by @​robhogan)
  • [Fix]: Replace image-size dependency with vendored parsers, fix CVE alerts (#​1860 by @​robhogan)
  • [Fix]: Include charset=utf-8 in the Content-Type of text assets and source files served by the dev server (#​1888 by @​robhogan)
  • [Fix]: Preserve Platform.OS write targets during constant inlining (#​1890 by @​OskarEichler)
  • [Fix]: Inline the last duplicate key from static Platform.select object literals (#​1889 by @​OskarEichler)
  • [Fix]: FallbackWatcher no longer misses files written to a directory while it is being crawled (#​1907 by @​robhogan)
  • [Fix]: HttpStore: Handle socket errors during writes, so they're retried rather than crashing the process (fad3b88)
  • [Fix]: Treat CI=false and CI=0 as not-CI when defaulting watch. CI is now detected from process.env.CI only, dropping the ci-info dependency (61e4592 by @​robhogan)
  • [Fix]: Fix Fast Refresh hitting undefined modules when using lazy (segmented) bundles in dev (c70d0ae by @​robhogan)
  • [Performance]: FallbackWatcher: Drop walker dependency, reduce crawl RSS by ~34% and peak heap by ~41% (#​1906 by @​robhogan)
  • [Performance]: Don't emit redundant empty dependency map arrays for modules with no dependencies (#​1858 by @​robhogan)
  • [Types]: Restore publishing of private (underscore-prefixed) fields in TypeScript declarations (#​1876 by @​robhogan)
  • [Types]: Fix async functions being inferred as returning void (not Promise<void>), eg MetroServer#end (#​1909 by @​robhogan)
  • [Types]: Tidy up generated types, allow nullable props to be omitted in more places (#​1885 by @​robhogan)

NOTE: Experimental features are not covered by semver and can change at any time.

  • [Experimental]: metro-file-map: Add crawlerFactory to optionally replace the built-in Watchman / Node crawlers (68022f0 by @​vzaidman)
  • [Experimental]: Add serializer.unstable_inlineDependencyMap to inline module IDs at serialisation time (#​1786 by @​robhogan)
  • [Experimental]: Add serializer.unstable_getAsyncDependencyPath to supply custom paths to framework-defined __loadBundleAsync (#​1855 by @​robhogan)
  • [Experimental]: Remove transformer.unstable_renameRequire - require is never renamed (42577f7 by @​robhogan)
  • [Experimental]: experimentalImportSupport: Fix export * from re-exporting the source module's default export (#​1777 by @​robhogan)

Full Changelog: https://github.com/react/metro/compare/v0.87.0...v0.87.1

v0.87.0

Compare Source

  • [Breaking]: Widen Resolution union returned by resolvers to allow type: 'virtualModule', pending implementation. (8336654 by @​robhogan)
  • [Feature]: allowOptionalDependencies defaults to true to align with RN and Expo (#​1775 by @​robhogan)
  • [Fix]: Preserve accumulated and trailing config state when mergeConfig encounters an async config in a config chain (#​1754 by @​durvesh1992)
  • [Performance] Don't rename require in bundle output, improve cold build time ~5%`(TBD by @​robhogan)

NOTE: Experimental features are not covered by semver and can change at any time.

  • [Experimental]: experimentalImportSupport: Support namespace re-exports, such as export * as Name from "module" (#​1768 by @​robhogan and @​krystofwoldrich)
  • [Experimental]: experimentalImportSupport: Fix exports renamed by destructuring, and support exports of rest spreads (#​1772 by @​robhogan)
  • [Experimental]: experimentalImportSupport: Fix precedence so explicit export default and named exports win over export * from (#​1773 by @​robhogan)
  • [Experimental]: experimentalImportSupport: Evaluate export from dependencies in the module prelude instead of within or after the module body (#​1774 by @​robhogan)

Full Changelog: https://github.com/react/metro/compare/v0.86.0...v0.87.0

v0.86.0

Compare Source

Full Changelog: https://github.com/react/metro/compare/v0.85.0...v0.86.0

v0.85.0

Compare Source

  • [Breaking]: Raise minimum supported Node.js version to 22 (#​1715 by @​huntie)
  • [Feature]: Implement PACKAGE_SELF_RESOLVE for self-referencing imports in the resolver (#​1721 by @​robhogan)
  • [Fix]: Add ESM unwrapping to all CommonJS require calls (#​1675 by @​kitten)
  • [Fix]: Fix Windows cross-drive path resolution in metro-file-map (#​1711 by @​kitten)
  • [Fix]: Fix "browser"-spec bare-specifier → relative path redirects for nested and first-party package.jsons (#​1720 by @​robhogan)
  • [Fix]: Gracefully reject illegal "browser"-spec redirects of a bare specifier to an absolute path (e1f4d61 by @​robhogan)
  • [Performance]: Avoid intermediate allocations in matchSubpathFromMainFields, improving overall resolver performance ~5% (9341463 by @​robhogan)

Full Changelog: https://github.com/react/metro/compare/v0.84.4...v0.85.0

v0.84.6

Compare Source

This release is on the 0.84.x branch

  • [Types]: Fix async functions being inferrerd as returning void (not Promise<void>). (#​1887 by @​robhogan)
  • [Types]: Tidy up generated types, allow nullable props to be omitted in more places. (#​1897 by @​robhogan)

Full Changelog: https://github.com/facebook/metro/compare/v0.84.5...v0.84.6

v0.84.5

Compare Source

This release is on the 0.84.x branch

Full Changelog: https://github.com/facebook/metro/compare/v0.84.4...v0.84.5

v0.84.4

Compare Source

  • [Feature]: Support /[metro-watchFolders]/n/ paths for .bundle and .map requests (facebook#1695 by @​huntie)
  • [Fix]: Fix regression to allow scale assets to be resolved again for single asset requests (facebook#1694 by @​kitten)
  • [Fix]: Treat import().catch(), etc. as optional under transformer.allowOptionalDependencies (facebook#1697 by @​robhogan)
  • [Performance]: Interleave resolution attempts with building node_modules candidate paths (facebook#1680 by @​kitten)

Full Changelog: https://github.com/facebook/metro/compare/v0.84.3...v0.84.4

v0.84.3

Compare Source

NOTE: Experimental features are not covered by semver and can change at any time.

Full Changelog: https://github.com/facebook/metro/compare/v0.84.2...v0.84.3

v0.84.2

Compare Source

Full changelog: https://github.com/facebook/metro/compare/v0.84.1...v0.84.2

v0.84.1

Compare Source

  • [Fix] sync bundling progress between Metro cli and app hints (34ca6a6 by @​vzaidman)
  • [Feature] config.server.tls now sets Metro to be exposed as an https server (35ff94b by @​vzaidman)

Full Changelog: https://github.com/facebook/metro/compare/v0.84.0...v0.84.1

v0.84.0

Compare Source

Full Changelog: https://github.com/facebook/metro/compare/v0.83.4...v0.84.0

v0.83.8

Compare Source

This release is on the 0.83.x branch

Full Changelog: https://github.com/facebook/metro/compare/v0.83.7...v0.83.8

v0.83.7

Compare Source

This release is on the 0.83.x branch

  • [Feature]: Support /[metro-watchFolders]/n/ paths for .bundle and .map requests (facebook#1695 by @​huntie)
  • [Fix]: Fix regression to allow scale assets to be resolved again for single asset requests (facebook#1694 by @​kitten)
  • [Fix]: Treat import().catch(), etc. as optional under transformer.allowOptionalDependencies (facebook#1697 by @​robhogan)
  • [Performance]: Interleave resolution attempts with building node_modules candidate paths (facebook#1680 by @​kitten)

Full Changelog: https://github.com/facebook/metro/compare/v0.83.6...v0.83.7

v0.83.6

Compare Source

This release is on the 0.83.x branch

NOTE: Experimental features are not covered by semver and can change at any time.

v0.83.5

Compare Source

This is a hotfix on the 0.83.x branch.

Full Changelog: https://github.com/facebook/metro/compare/v0.83.4...v0.83.5

v0.83.4

Compare Source

Full Changelog: https://github.com/facebook/metro/compare/v0.83.3...v0.83.4

v0.83.3

Compare Source

Full Changelog: https://github.com/facebook/metro/compare/v0.83.2...v0.83.3

v0.83.2

Compare Source

Full Changelog: https://github.com/facebook/metro/compare/v0.83.1...v0.83.2

v0.83.1

Compare Source

v0.83.0

Compare Source

Full Changelog: https://github.com/facebook/metro/compare/v0.82.5...v0.83.0

v0.82.5

Compare Source

NOTE: Experimental features are not covered by semver and can change at any time.

Full Changelog: https://github.com/facebook/metro/compare/v0.82.4...v0.82.5

v0.82.4

Compare Source

Full Changelog: https://github.com/facebook/metro/compare/v0.82.3...v0.82.4

v0.82.3

Compare Source

Full Changelog: https://github.com/facebook/metro/compare/v0.82.2...v0.82.3

v0.82.2

Compare Source

Full Changelog: https://github.com/facebook/metro/compare/v0.82.1...v0.82.2

v0.82.1

Compare Source

Full Changelog: https://github.com/facebook/metro/compare/v0.82.0...v0.82.1

v0.82.0

Compare Source

  • [Breaking/Feature]: Enable support for package.json#exports resolution by default. (facebook#1448 by @​robhogan)
  • [Breaking]: Integrators consuming metro/src/DeltaBundler/Transformer must now pass an options object with getOrComputeSha1 (facebook#1451 by @​robhogan)
  • [Breaking]: metro/src/node-haste/DependencyGraph.getSha1 has been removed, prefer getOrComputeSha1 (facebook#1451 by @​robhogan)
  • [Performance]: Enable lazy file hashing by default, disable with watcher.unstable_lazySha1: false (facebook#1451 by @​robhogan)

Full Changelog: https://github.com/facebook/metro/compare/v0.81.3...v0.82.0

v0.81.5

Compare Source

This is a hotfix on the 0.81.x branch.

This release fixes two issues with unstable_enablePackageExports, which is experimental and opt-in in Metro 0.81.

NOTE: Experimental features are not covered by semver and can change at any time.

  • [Experimental]: importLocationPlugin: Fix non-deterministic false identification of ESM imports (facebook@55ed2ee by @​byCedric)
  • [Experimental]: collectDepedencies: Fix one-line export from files triggering _interopRequireDefault is not a function (facebook@5f79ce8 by @​byCedric)

Full Changelog: https://github.com/facebook/metro/compare/v0.81.4...v0.81.5

v0.81.4

Compare Source

This is a hotfix on the 0.81.x branch.

This release fixes a number of issues with unstable_enablePackageExports.

NOTE: Experimental features are not covered by semver and can change at any time.

  • [Experimental]: Fix wildcard pattern precedence in package.json imports/exports resolution (facebook@38ef15d by @​robhogan)
  • [Experimental]: Fix edge-case overmatching of pattern keys in package.json exports/imports resolution. (facebook@bd9d16c by @​robhogan)
  • [Experimental]: Fix handling of export map targets with zero or 2+ wildcard characters in package.json imports/exports resolution (facebook@72b703b by @​robhogan)
  • [Experimental]: Restore compat with configs that set unstable_conditionNames: ['import'], fix _interopRequireDefault is not a function (facebook@8277623 by @​robhogan)

Full Changelog: https://github.com/facebook/metro/compare/v0.81.3...v0.81.4

v0.81.3

Compare Source

NOTE: Experimental features are not covered by semver and can change at any time.

  • [Experimental]: With unstable_enablePackageExports, assert exactly one of the conditions import/require according to source syntax. (facebook#1477 by @​robhogan)
  • [Experimental]: Fix global package resolution with unstable_lazySha1 (facebook@42ec821 by @​robhogan)

Full Changelog: https://github.com/facebook/metro/compare/v0.81.2...v0.81.3

v0.81.2

Compare Source

NOTE: Experimental features are not covered by semver and can change at any time.

  • [Experimental]: Auto-save file cache via config.watcher.unstable_autoSaveCache. (facebook#1434 by @​robhogan)
  • [Experimental]: Add watcher.unstable_lazySha1 to defer SHA1 calculation until files are needed by the transformer. (facebook#1435 by @​robhogan)
  • [Experimental]: Expose deep imports of Metro packages (metro/src/x.js as metro/private/x) as explicitly private (non-semver). (facebook#1441 by @​robhogan)

Full Changelog: https://github.com/facebook/metro/compare/v0.81.1...v0.81.2


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [metro](https://github.com/react/metro) ([source](https://github.com/react/metro/tree/HEAD/packages/metro)) | devDependencies | minor | [`^0.81.1` → `^0.88.0`](https://renovatebot.com/diffs/npm/metro/0.81.1/0.88.0) | --- ### Release Notes <details> <summary>react/metro (metro)</summary> ### [`v0.88.0`](https://github.com/react/metro/releases/tag/v0.88.0) [Compare Source](https://github.com/react/metro/compare/v0.87.3...v0.88.0) - **\[Breaking]**: Resolver: Read `"exports"` from the package root, and apply `"browser"` redirections after it, by default. Set `resolver.unstable_resolveExportsFromPackageRoot` and `resolver.unstable_applyBrowserSpecAfterExports` to `false` to opt out ([#&#8203;2174](https://github.com/react/metro/pull/2174) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Breaking]**: Default `transformer.asyncRequireModulePath` and `resolver.emptyModulePath` to `metro:runtime/...`, which aren't file paths. Custom resolvers must delegate unhandled `metro:` specifiers to `context.resolveRequest` ([#&#8203;2180](https://github.com/react/metro/pull/2180) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Breaking]**: Resolve the module system via `metro:runtime/polyfills/require`. A custom `resolver.resolveRequest` must delegate `metro:` specifiers it doesn't handle to `context.resolveRequest` ([#&#8203;2184](https://github.com/react/metro/pull/2184) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Breaking]**: `transformer.globalPrefix` now also prefixes `__r`, `__c`, `__registerSegment` and `__accept`, and the default run statement. Code that calls these by name must apply the prefix ([#&#8203;2186](https://github.com/react/metro/pull/2186) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Breaking]**: Remove the deprecated `redirectModulePath` from `ResolutionContext`. A custom resolver should drop any call to it and delegate to `context.resolveRequest` or `resolve`, which already apply `"browser"` redirections and return `{type: 'empty'}` for `false` ([#&#8203;2181](https://github.com/react/metro/pull/2181) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Breaking]**: Remove the deprecated `doesFileExist` from `ResolutionContext`, and the `DoesFileExist` type from `metro-resolver` (use `fileSystemLookup`) ([#&#8203;2181](https://github.com/react/metro/pull/2181) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Breaking]**: `ResolutionContext.isESMImport` is required ([#&#8203;2182](https://github.com/react/metro/pull/2182) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Breaking]**: Async bundle and HMR module URLs keep the file extension (`foo.js.bundle`), fixing lazy loading of `.cjs` and `.mjs` files, and of files that share a name with a sibling ([#&#8203;1990](https://github.com/react/metro/pull/1990) by [@&#8203;dasjideepak](https://github.com/dasjideepak)) - **\[Breaking]**: Babel transformers can no longer return a `functionMap`. Apply the `plugins` passed by Metro and return the resulting Babel `metadata` to keep function names in stack traces ([#&#8203;2157](https://github.com/react/metro/pull/2157) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Breaking]**: `/symbolicate` no longer reads `req.rawBody`, and fails if a middleware has already read the request body ([#&#8203;2158](https://github.com/react/metro/pull/2158) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Breaking]**: Remove the `bundle_transform_progressed_throttled` event from `TerminalReportableEvent`. `TerminalReporter` subclasses should handle `bundle_transform_progressed`, which their `_log` now receives for every progress update ([#&#8203;2170](https://github.com/react/metro/pull/2170) by [@&#8203;vzaidman](https://github.com/vzaidman)) - **\[Breaking]**: Source and JSON files containing the reserved string `_$$_METRO_`, including in comments and string literals, now fail to transform ([#&#8203;2155](https://github.com/react/metro/pull/2155) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Breaking]**: Remove the deprecated, always-`true` `hot` option from `getTransformOptions` ([#&#8203;2159](https://github.com/react/metro/pull/2159) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Feature]**: Custom serializers receive the reserved string as `options.reservedString` ([#&#8203;2155](https://github.com/react/metro/pull/2155) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Don't print the terminal status in the middle of bursts of output written outside of it, and don't wait for a pending status update before exiting ([#&#8203;2170](https://github.com/react/metro/pull/2170) by [@&#8203;vzaidman](https://github.com/vzaidman)) - **\[Fix]**: Fall back to file-based resolution, instead of throwing a `TypeError`, when a package's `"exports"` field is not a string, array or object ([#&#8203;2187](https://github.com/react/metro/pull/2187) by [@&#8203;kwy404](https://github.com/kwy404)) - **\[Fix]**: Fix relative symlinks on a different Windows drive than the project root ([#&#8203;2161](https://github.com/react/metro/pull/2161) by [@&#8203;ramya-2196](https://github.com/ramya-2196)) - **\[Performance]**: \~5-10% faster resolution ([#&#8203;2181](https://github.com/react/metro/pull/2181) by [@&#8203;robhogan](https://github.com/robhogan)) > NOTE: Experimental features are not covered by semver and can change at any time. - **\[Experimental]**: Remove `unstable_incrementalResolution` from `ResolutionContext`, and `metro-resolver/private/createDefaultContext` ([#&#8203;2181](https://github.com/react/metro/pull/2181) by [@&#8203;robhogan](https://github.com/robhogan)) **Full Changelog**: <https://github.com/react/metro/compare/v0.87.3...v0.88.0> ### [`v0.87.3`](https://github.com/react/metro/releases/tag/v0.87.3) [Compare Source](https://github.com/react/metro/compare/v0.87.2...v0.87.3) - **\[Fix]**: Resolver: Resolve conditional and nested array fallbacks in `"exports"` and `"imports"` ([#&#8203;2089](https://github.com/react/metro/pull/2089) by [@&#8203;maximilliangrand](https://github.com/maximilliangrand)) - **\[Fix]**: Apply `serializer.processModuleFilter` to inline source maps ([#&#8203;2124](https://github.com/react/metro/pull/2124) by [@&#8203;kwy404](https://github.com/kwy404)) - **\[Fix]**: `metro-file-map`: Keep files under other watch roots when the project root is recrawled ([#&#8203;2123](https://github.com/react/metro/pull/2123) by [@&#8203;YevheniiKotyrlo](https://github.com/YevheniiKotyrlo)) - **\[Fix]**: Treat zero-filled `FileStore` cache files as misses ([#&#8203;2122](https://github.com/react/metro/pull/2122) by [@&#8203;maximilliangrand](https://github.com/maximilliangrand)) - **\[Fix]**: `Terminal`: Don't erase output printed outside of `Terminal` ([#&#8203;2130](https://github.com/react/metro/pull/2130) by [@&#8203;vzaidman](https://github.com/vzaidman)) - **\[Fix]**: `Terminal`: Keep `Terminal.log()` in order with other output ([#&#8203;2162](https://github.com/react/metro/pull/2162) by [@&#8203;vzaidman](https://github.com/vzaidman)) - **\[Performance]**: \~4-7% faster cold builds, with \~6-8% less CPU, by skipping input AST cloning in the transform worker ([#&#8203;2033](https://github.com/react/metro/pull/2033), [#&#8203;2132](https://github.com/react/metro/pull/2132) by [@&#8203;vzaidman](https://github.com/vzaidman)) - **\[Performance]**: \~2% less CPU on cold minified builds, with faster source map handling when minifying ([#&#8203;1984](https://github.com/react/metro/pull/1984) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Deprecated]**: `MinifierResult.map` - custom minifiers should return `decodedMap` ([#&#8203;1984](https://github.com/react/metro/pull/1984) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Deprecated]**: `metro-source-map`: `toBabelSegments`, `toSegmentTuple` and `tuplesFromBabelDecodedMap` ([#&#8203;1984](https://github.com/react/metro/pull/1984) by [@&#8203;robhogan](https://github.com/robhogan)) > NOTE: Experimental features are not covered by semver and can change at any time. - **\[Experimental]**: Add `resolver.unstable_allowVirtualModules`, allowing custom resolvers to return virtual modules ([#&#8203;2056](https://github.com/react/metro/pull/2056), [#&#8203;2036](https://github.com/react/metro/pull/2036) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Experimental]**: Add `metro:inline;base64,<source>` specifiers, resolving to a virtual module owned by the importer ([#&#8203;2037](https://github.com/react/metro/pull/2037) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Experimental]**: Add `resolver.unstable_applyBrowserSpecAfterExports` to apply `"browser"` redirections after `"exports"` ([#&#8203;2134](https://github.com/react/metro/pull/2134) by [@&#8203;mozzius](https://github.com/mozzius)) - **\[Experimental]**: Add `resolver.unstable_resolveExportsFromPackageRoot` to read `"exports"` from the package root ([#&#8203;2160](https://github.com/react/metro/pull/2160) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Experimental]**: Fix `transformer.unstable_workerThreads` exposing `JEST_WORKER_ID` to transformers ([#&#8203;2152](https://github.com/react/metro/pull/2152) by [@&#8203;robhogan](https://github.com/robhogan)) **Full Changelog**: <https://github.com/react/metro/compare/v0.87.2...v0.87.3> ### [`v0.87.2`](https://github.com/react/metro/releases/tag/v0.87.2) [Compare Source](https://github.com/react/metro/compare/v0.87.1...v0.87.2) - **\[Security]**: Fix CVE on micromatch/braces by removing the dependency ([#&#8203;2000](https://github.com/react/metro/pull/2000) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Feature]**: Add a built-in `metro:runtime/*` specifier, resolvable from any importer ([#&#8203;2083](https://github.com/react/metro/pull/2083) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Feature]**: Pass Metro's own `@babel/runtime` and its version to Babel presets when `transformer.enableBabelRuntime` is `true` ([#&#8203;1957](https://github.com/react/metro/pull/1957) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Resolver: Fix stale resolutions after adding a nearer `package.json` or retargeting a symlinked directory ([#&#8203;1948](https://github.com/react/metro/pull/1948) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Resolver: Resolve packages and directories named with an asset extension (eg `lodash.zip`) as modules ([#&#8203;2055](https://github.com/react/metro/pull/2055) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Resolver: Fall through to parent conditions when a nested `"exports"` or `"imports"` condition has no match ([#&#8203;2074](https://github.com/react/metro/pull/2074) by [@&#8203;maximilliangrand](https://github.com/maximilliangrand)) - **\[Fix]**: Resolver: Don't resolve an exact `"exports"` or `"imports"` subpath with a `null` target through a pattern ([#&#8203;1987](https://github.com/react/metro/pull/1987) by [@&#8203;kwy404](https://github.com/kwy404)) - **\[Fix]**: Resolve Metro's own runtime and `@babel/runtime` even when they're outside `projectRoot` and `watchFolders` ([#&#8203;2065](https://github.com/react/metro/pull/2065), [#&#8203;2083](https://github.com/react/metro/pull/2083) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Ambiguous module resolution errors list the conflicting files instead of an empty list, in the terminal and in the app ([#&#8203;2102](https://github.com/react/metro/pull/2102) by [@&#8203;kwy404](https://github.com/kwy404)) - **\[Fix]**: Use `[metro-watchFolders]/N/` URLs for assets outside `projectRoot`, which also moves them in release builds ([#&#8203;1892](https://github.com/react/metro/pull/1892) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Fix `[metro-project]` and `[metro-watchFolders]` bundle serving on Windows ([#&#8203;2015](https://github.com/react/metro/pull/2015) by [@&#8203;motiz88](https://github.com/motiz88)) - **\[Fix]**: Fix an HMR crash on `[metro-project]` and `[metro-watchFolders]` URLs ([#&#8203;2017](https://github.com/react/metro/pull/2017) by [@&#8203;motiz88](https://github.com/motiz88)) - **\[Fix]**: Don't resolve `[metro-project]` and `[metro-watchFolders]` prefixes in API and CLI entry points ([#&#8203;2030](https://github.com/react/metro/pull/2030) by [@&#8203;motiz88](https://github.com/motiz88)) - **\[Fix]**: Fix backslashes in async bundle paths on Windows ([#&#8203;1938](https://github.com/react/metro/pull/1938) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Fix stale modules when files change during an in-flight or failed build ([#&#8203;2007](https://github.com/react/metro/pull/2007) by [@&#8203;YevheniiKotyrlo](https://github.com/YevheniiKotyrlo)) - **\[Fix]**: Fix files changed during startup being missed until restart ([#&#8203;2054](https://github.com/react/metro/pull/2054) by [@&#8203;cpruijsen](https://github.com/cpruijsen)) - **\[Fix]**: Fix changes made immediately after startup sometimes being missed on macOS ([#&#8203;2003](https://github.com/react/metro/pull/2003) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Fix watch mode losing files when a directory replaces a file or symlink, eg unlinking a package ([#&#8203;2009](https://github.com/react/metro/pull/2009) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: `FallbackWatcher`: Fix a hang on stop, and missed changes after a watch error or on Windows ([#&#8203;1967](https://github.com/react/metro/pull/1967) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: `FallbackWatcher`: Close watch handles under a deleted directory ([#&#8203;2004](https://github.com/react/metro/pull/2004) by [@&#8203;YevheniiKotyrlo](https://github.com/YevheniiKotyrlo)) - **\[Fix]**: `metro-file-map`: Don't change the active mock when a duplicate is removed ([#&#8203;1756](https://github.com/react/metro/pull/1756) by [@&#8203;durvesh1992](https://github.com/durvesh1992)) - **\[Fix]**: Create `fileMapCacheDirectory` if it doesn't exist, rather than failing to persist the file map cache ([#&#8203;2096](https://github.com/react/metro/pull/2096) by [@&#8203;shubh73](https://github.com/shubh73)) - **\[Fix]**: Include Metro's dependency collection modules in the transform cache key ([#&#8203;1749](https://github.com/react/metro/pull/1749) by [@&#8203;fallintoplace](https://github.com/fallintoplace)) - **\[Fix]**: Inline requires: Don't partially inline requires referenced in type annotations or `export {...}` specifiers ([#&#8203;2092](https://github.com/react/metro/pull/2092) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Propagate transformer initialisation errors from `Bundler` ([#&#8203;1854](https://github.com/react/metro/pull/1854) by [@&#8203;Boulea7](https://github.com/Boulea7)) - **\[Fix]**: Release workers and watchers when Metro fails to initialise ([#&#8203;1963](https://github.com/react/metro/pull/1963) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Ignore attributes like `stroke-width` when reading SVG dimensions ([#&#8203;1972](https://github.com/react/metro/pull/1972) by [@&#8203;GabrielDumbrava](https://github.com/GabrielDumbrava)) - **\[Fix]**: Fix generated positions in indexed source maps ([#&#8203;1976](https://github.com/react/metro/pull/1976) by [@&#8203;kwy404](https://github.com/kwy404)) - **\[Fix]**: Fix source maps losing lines after very large unmapped gaps ([#&#8203;1983](https://github.com/react/metro/pull/1983) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: `metro-symbolicate`: Don't fail on frames with no source position, eg `[native code]` ([#&#8203;1891](https://github.com/react/metro/pull/1891) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: `metro-symbolicate`: Parse frames with Windows absolute paths ([#&#8203;1939](https://github.com/react/metro/pull/1939) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Performance]**: Inline destructured CommonJS requires (`const {foo} = require('foo')`) under `inlineRequires` ([#&#8203;2087](https://github.com/react/metro/pull/2087) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Performance]**: \~3x faster `composeSourceMaps`, with \~15% less memory ([#&#8203;1978](https://github.com/react/metro/pull/1978), [#&#8203;1979](https://github.com/react/metro/pull/1979), [#&#8203;1980](https://github.com/react/metro/pull/1980), [#&#8203;1983](https://github.com/react/metro/pull/1983) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Performance]**: \~35% faster first-pass resolution ([#&#8203;1945](https://github.com/react/metro/pull/1945), [#&#8203;1946](https://github.com/react/metro/pull/1946), [#&#8203;1948](https://github.com/react/metro/pull/1948) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Performance]**: \~33% faster non-Watchman crawl on startup ([#&#8203;1677](https://github.com/react/metro/pull/1677) by [@&#8203;kitten](https://github.com/kitten)) - **\[Deprecated]**: String values of `transformer.enableBabelRuntime` - use `true` ([#&#8203;1957](https://github.com/react/metro/pull/1957) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Types]**: Add TypeScript definitions for `metro-runtime` ([#&#8203;1996](https://github.com/react/metro/pull/1996) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Types]**: Declarations use `IteratorObject`, which needs TypeScript 5.6+ unless `skipLibCheck` is set ([`df2e758`](https://github.com/react/metro/commit/df2e7581bcf4)) > NOTE: Experimental features are not covered by semver and can change at any time. - **\[Experimental]**: Add `server.unstable_middleware` and `server.unstable_priorityMiddleware`, to add middleware after or before Metro's own ([#&#8203;2031](https://github.com/react/metro/pull/2031) by [@&#8203;vzaidman](https://github.com/vzaidman)) - **\[Experimental]**: Add `server.unstable_onServerCreated`, called with Metro's server before it listens ([#&#8203;2031](https://github.com/react/metro/pull/2031) by [@&#8203;vzaidman](https://github.com/vzaidman)) - **\[Experimental]**: `runServer`'s `unstable_extraMiddleware` is deprecated - use `unstable_priorityMiddleware` ([#&#8203;2031](https://github.com/react/metro/pull/2031) by [@&#8203;vzaidman](https://github.com/vzaidman)) - **\[Experimental]**: Fix mismatched asset paths in builds under `unstable_serverRoot` ([#&#8203;1917](https://github.com/react/metro/pull/1917) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Experimental]**: `metro-file-map`: Changes to the plugin and `FileSystem` APIs ([#&#8203;1944](https://github.com/react/metro/pull/1944), [#&#8203;1951](https://github.com/react/metro/pull/1951), [#&#8203;2071](https://github.com/react/metro/pull/2071) by [@&#8203;robhogan](https://github.com/robhogan)), and `crawlerFactory` crawlers must report symlink targets as `1` or a pre-resolved path ([#&#8203;1687](https://github.com/react/metro/pull/1687) by [@&#8203;kitten](https://github.com/kitten)) **Full Changelog**: <https://github.com/react/metro/compare/v0.87.1...v0.87.2> ### [`v0.87.1`](https://github.com/react/metro/releases/tag/v0.87.1) [Compare Source](https://github.com/react/metro/compare/v0.87.0...v0.87.1) - **\[Feature]**: Add `resolver.schemeResolvers` to resolve URI-scheme-prefixed specifiers (eg `foo:bar`) with custom resolvers ([#&#8203;1804](https://github.com/react/metro/pull/1804) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Feature]**: Resolve `metro:babel-runtime/<path>` imports to Metro's own `@babel/runtime` dependency ([`8388f71`](https://github.com/react/metro/commit/8388f719f9c8d19c7417cc59e592690fa20f5f98) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Feature]**: `metro-babel-transformer`: Pass `inlinePlatform` to Babel presets via `caller` ([`6bbe095`](https://github.com/react/metro/commit/6bbe095c127803c62402c2a21d7b2bb819f1b11e) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Replace `image-size` dependency with vendored parsers, fix CVE alerts ([#&#8203;1860](https://github.com/react/metro/pull/1860) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Include `charset=utf-8` in the `Content-Type` of text assets and source files served by the dev server ([#&#8203;1888](https://github.com/react/metro/pull/1888) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Preserve `Platform.OS` write targets during constant inlining ([#&#8203;1890](https://github.com/react/metro/pull/1890) by [@&#8203;OskarEichler](https://github.com/OskarEichler)) - **\[Fix]**: Inline the last duplicate key from static `Platform.select` object literals ([#&#8203;1889](https://github.com/react/metro/pull/1889) by [@&#8203;OskarEichler](https://github.com/OskarEichler)) - **\[Fix]**: `FallbackWatcher` no longer misses files written to a directory while it is being crawled ([#&#8203;1907](https://github.com/react/metro/pull/1907) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: `HttpStore`: Handle socket errors during writes, so they're retried rather than crashing the process ([`fad3b88`](https://github.com/react/metro/commit/fad3b88742034a8c1cbb9cc098fd35128b597870)) - **\[Fix]**: Treat `CI=false` and `CI=0` as not-CI when defaulting `watch`. CI is now detected from `process.env.CI` only, dropping the `ci-info` dependency ([`61e4592`](https://github.com/react/metro/commit/61e4592f92f028d3c5f33af101d41654e88fe151) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Fix Fast Refresh hitting undefined modules when using lazy (segmented) bundles in dev ([`c70d0ae`](https://github.com/react/metro/commit/c70d0ae66cf381d50e1fc59c4c4aa806d050e9dd) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Performance]**: `FallbackWatcher`: Drop `walker` dependency, reduce crawl RSS by \~34% and peak heap by \~41% ([#&#8203;1906](https://github.com/react/metro/pull/1906) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Performance]**: Don't emit redundant empty dependency map arrays for modules with no dependencies ([#&#8203;1858](https://github.com/react/metro/pull/1858) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Types]**: Restore publishing of private (underscore-prefixed) fields in TypeScript declarations ([#&#8203;1876](https://github.com/react/metro/pull/1876) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Types]**: Fix async functions being inferred as returning `void` (not `Promise<void>`), eg `MetroServer#end` ([#&#8203;1909](https://github.com/react/metro/pull/1909) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Types]**: Tidy up generated types, allow nullable props to be omitted in more places ([#&#8203;1885](https://github.com/react/metro/pull/1885) by [@&#8203;robhogan](https://github.com/robhogan)) > NOTE: Experimental features are not covered by semver and can change at any time. - **\[Experimental]**: `metro-file-map`: Add `crawlerFactory` to optionally replace the built-in Watchman / Node crawlers ([`68022f0`](https://github.com/react/metro/commit/68022f046321b84758b7073c13c2db1072a14b27) by [@&#8203;vzaidman](https://github.com/vzaidman)) - **\[Experimental]**: Add `serializer.unstable_inlineDependencyMap` to inline module IDs at serialisation time ([#&#8203;1786](https://github.com/react/metro/pull/1786) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Experimental]**: Add `serializer.unstable_getAsyncDependencyPath` to supply custom `paths` to framework-defined `__loadBundleAsync` ([#&#8203;1855](https://github.com/react/metro/pull/1855) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Experimental]**: Remove `transformer.unstable_renameRequire` - `require` is never renamed ([`42577f7`](https://github.com/react/metro/commit/42577f778195d40a0fe31af5c34ec679d00bc9b2) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Experimental]**: `experimentalImportSupport`: Fix `export * from` re-exporting the source module's default export ([#&#8203;1777](https://github.com/react/metro/pull/1777) by [@&#8203;robhogan](https://github.com/robhogan)) **Full Changelog**: <https://github.com/react/metro/compare/v0.87.0...v0.87.1> ### [`v0.87.0`](https://github.com/react/metro/releases/tag/v0.87.0) [Compare Source](https://github.com/react/metro/compare/v0.86.0...v0.87.0) - **\[Breaking]**: Widen `Resolution` union returned by resolvers to allow `type: 'virtualModule'`, pending implementation. ([`8336654`](https://github.com/react/metro/commit/8336654cd1416a80898b220102dae89ceef892fe) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Feature]**: `allowOptionalDependencies` defaults to `true` to align with RN and Expo ([#&#8203;1775](https://github.com/react/metro/pull/1775) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Preserve accumulated and trailing config state when `mergeConfig` encounters an async config in a config chain ([#&#8203;1754](https://github.com/react/metro/pull/1754) by [@&#8203;durvesh1992](https://github.com/durvesh1992)) - **\[Performance]** Don't rename `require` in bundle output, improve cold build time \~5%\`(TBD by [@&#8203;robhogan](https://github.com/robhogan)) > NOTE: Experimental features are not covered by semver and can change at any time. - **\[Experimental]**: `experimentalImportSupport`: Support namespace re-exports, such as `export * as Name from "module"` ([#&#8203;1768](https://github.com/react/metro/pull/1768) by [@&#8203;robhogan](https://github.com/robhogan) and [@&#8203;krystofwoldrich](https://github.com/krystofwoldrich)) - **\[Experimental]**: `experimentalImportSupport`: Fix exports renamed by destructuring, and support exports of rest spreads ([#&#8203;1772](https://github.com/react/metro/pull/1772) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Experimental]**: `experimentalImportSupport`: Fix precedence so explicit `export default` and named exports win over `export * from` ([#&#8203;1773](https://github.com/react/metro/pull/1773) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Experimental]**: `experimentalImportSupport`: Evaluate `export from` dependencies in the module prelude instead of within or after the module body ([#&#8203;1774](https://github.com/react/metro/pull/1774) by [@&#8203;robhogan](https://github.com/robhogan)) **Full Changelog**: <https://github.com/react/metro/compare/v0.86.0...v0.87.0> ### [`v0.86.0`](https://github.com/react/metro/releases/tag/v0.86.0) [Compare Source](https://github.com/react/metro/compare/v0.85.0...v0.86.0) - **\[Breaking]**: Metro now always emits whole-bundle source maps as [index maps](https://tc39.es/ecma426/#sec-index-source-map), and stores each module's map internally as a `VlqMap` ([#&#8203;1764](https://github.com/react/metro/pull/1764), [#&#8203;1765](https://github.com/react/metro/pull/1765) by [@&#8203;robhogan](https://github.com/robhogan)). Custom serialisers/transformers must consume/provide [`VlqMap`](https://github.com/react/metro/blob/v0.86.0/packages/metro-source-map/types/source-map.d.ts#L46-L49) mappings, not tuples. - **\[Breaking]**: Remove deprecated default exports from public entry points ([#&#8203;1759](https://github.com/react/metro/pull/1759) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Breaking]**: Remove support for deprecated YAML and `.es6` config files ([#&#8203;1752](https://github.com/react/metro/pull/1752) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Breaking]**: Remove long-deprecated `resolver.blacklistRE` config in favour of `blockList` ([#&#8203;1758](https://github.com/react/metro/pull/1758) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Fix `HttpStore` write retries incorrectly using the read endpoint's config ([#&#8203;1751](https://github.com/react/metro/pull/1751) by [@&#8203;durvesh1992](https://github.com/durvesh1992)) - **\[Performance]**: Source maps work makes Metro use **50% less memory** and serve source maps 2x faster, for faster RNDT loads ([#&#8203;1741](https://github.com/react/metro/pull/1741), [#&#8203;1742](https://github.com/react/metro/pull/1742), [#&#8203;1743](https://github.com/react/metro/pull/1743), [#&#8203;1760](https://github.com/react/metro/pull/1760), [#&#8203;1763](https://github.com/react/metro/pull/1763), [#&#8203;1764](https://github.com/react/metro/pull/1764), [#&#8203;1765](https://github.com/react/metro/pull/1765) by [@&#8203;robhogan](https://github.com/robhogan)) **Full Changelog**: <https://github.com/react/metro/compare/v0.85.0...v0.86.0> ### [`v0.85.0`](https://github.com/react/metro/releases/tag/v0.85.0) [Compare Source](https://github.com/react/metro/compare/v0.84.6...v0.85.0) - **\[Breaking]**: Raise minimum supported Node.js version to 22 ([#&#8203;1715](https://github.com/react/metro/pull/1715) by [@&#8203;huntie](https://github.com/huntie)) - **\[Feature]**: Implement `PACKAGE_SELF_RESOLVE` for self-referencing imports in the resolver ([#&#8203;1721](https://github.com/react/metro/pull/1721) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Add ESM unwrapping to all CommonJS `require` calls ([#&#8203;1675](https://github.com/react/metro/pull/1675) by [@&#8203;kitten](https://github.com/kitten)) - **\[Fix]**: Fix Windows cross-drive path resolution in `metro-file-map` ([#&#8203;1711](https://github.com/react/metro/pull/1711) by [@&#8203;kitten](https://github.com/kitten)) - **\[Fix]**: Fix `"browser"`-spec bare-specifier → relative path redirects for nested and first-party `package.json`s ([#&#8203;1720](https://github.com/react/metro/pull/1720) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Gracefully reject illegal `"browser"`-spec redirects of a bare specifier to an absolute path ([`e1f4d61`](https://github.com/react/metro/commit/e1f4d61842a99cd3f8cde0e8cfd135210d6fec3d) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Performance]**: Avoid intermediate allocations in `matchSubpathFromMainFields`, improving overall resolver performance \~5% ([`9341463`](https://github.com/react/metro/commit/9341463424ef7753d2d17ef0d6943f3610a4e23a) by [@&#8203;robhogan](https://github.com/robhogan)) **Full Changelog**: <https://github.com/react/metro/compare/v0.84.4...v0.85.0> ### [`v0.84.6`](https://github.com/react/metro/releases/tag/v0.84.6) [Compare Source](https://github.com/react/metro/compare/v0.84.5...v0.84.6) *This release is on the [`0.84.x`](https://github.com/facebook/metro/tree/0.84.x) branch* - **\[Types]**: Fix async functions being inferrerd as returning `void` (not `Promise<void>`). ([#&#8203;1887](https://github.com/react/metro/pull/1887) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Types]**: Tidy up generated types, allow nullable props to be omitted in more places. ([#&#8203;1897](https://github.com/react/metro/pull/1897) by [@&#8203;robhogan](https://github.com/robhogan)) **Full Changelog**: <https://github.com/facebook/metro/compare/v0.84.5...v0.84.6> ### [`v0.84.5`](https://github.com/react/metro/releases/tag/v0.84.5) [Compare Source](https://github.com/react/metro/compare/v0.84.4...v0.84.5) *This release is on the [`0.84.x`](https://github.com/facebook/metro/tree/0.84.x) branch* - **\[Fix]**: Replace `image-size` dependency with vendored parsers, fix CVE alerts ([facebook#1860](https://github.com/facebook/metro/pull/1860) by [@&#8203;robhogan](https://github.com/robhogan)) **Full Changelog**: <https://github.com/facebook/metro/compare/v0.84.4...v0.84.5> ### [`v0.84.4`](https://github.com/react/metro/releases/tag/v0.84.4) [Compare Source](https://github.com/react/metro/compare/v0.84.3...v0.84.4) - **\[Feature]**: Support `/[metro-watchFolders]/n/` paths for `.bundle` and `.map` requests ([facebook#1695](https://github.com/facebook/metro/pull/1695) by [@&#8203;huntie](https://github.com/huntie)) - **\[Fix]**: Fix regression to allow scale assets to be resolved again for single asset requests ([facebook#1694](https://github.com/facebook/metro/pull/1694) by [@&#8203;kitten](https://github.com/kitten)) - **\[Fix]**: Treat `import().catch()`, etc. as optional under `transformer.allowOptionalDependencies` ([facebook#1697](https://github.com/facebook/metro/pull/1697) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Performance]**: Interleave resolution attempts with building node_modules candidate paths ([facebook#1680](https://github.com/facebook/metro/pull/1680) by [@&#8203;kitten](https://github.com/kitten)) **Full Changelog**: <https://github.com/facebook/metro/compare/v0.84.3...v0.84.4> ### [`v0.84.3`](https://github.com/react/metro/releases/tag/v0.84.3) [Compare Source](https://github.com/react/metro/compare/v0.84.2...v0.84.3) - **\[Feature]**: Add keepalive "heartbeat" message to Fast Refresh connections ([facebook#1685](https://github.com/facebook/metro/pull/1685) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Feature]**: Add `changeId` metadata on HMRClient `update-done` messages ([facebook@`1585e44`](https://github.com/facebook/metro/commit/1585e444284f) by [@&#8203;huntie](https://github.com/huntie)) - **\[Feature]:** `config.server.tls` now sets Metro to be exposed as an https server ([#&#8203;1657](https://github.com/react/metro/issues/1657) by [@&#8203;vzaidman](https://github.com/vzaidman)) - **\[Fix]:** sync bundling progress between Metro cli and app hints ([`34ca6a6`](https://github.com/react/metro/commit/34ca6a6f621521a0780a54eeb32384b4f9c2f8ff) by [@&#8203;vzaidman](https://github.com/vzaidman)) - **\[Fix]**: Include user-defined Babel config in transformer cache key to ensure correctness ([facebook#1638](https://github.com/facebook/metro/pull/1638) by [@&#8203;evanbacon](https://github.com/evanbacon)) - **\[Fix]**: Detection of contents of directories moved or cloned into a watched location ([facebook#1660](https://github.com/facebook/metro/pull/1660) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Correctly detect contents as removed when a watched directory is moved, on macOS without Watchman ([facebook@`c9e9fe6`](https://github.com/facebook/metro/commit/c9e9fe64a77c) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Performance]**: Optimize `PackageCache`: use `Map`/`Set`, cache null results, eliminate per-hit allocations ([facebook@`877b64e`](https://github.com/facebook/metro/commit/877b64ea5967) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Types]**: Restore type exports from `metro` that were previously TypeScript-specific ([facebook#1672](https://github.com/facebook/metro/pull/1672) by [@&#8203;robhogan](https://github.com/robhogan)) > NOTE: Experimental features are not covered by semver and can change at any time. - **\[Experimental]**: Add `config.unstable_fileMapPlugins` ([facebook@`567aa8b`](https://github.com/facebook/metro/commit/567aa8b62b95) by [@&#8203;robhogan](https://github.com/robhogan)) **Full Changelog**: <https://github.com/facebook/metro/compare/v0.84.2...v0.84.3> ### [`v0.84.2`](https://github.com/react/metro/releases/tag/v0.84.2) [Compare Source](https://github.com/react/metro/compare/v0.84.1...v0.84.2) - **\[Types]**: Restore publishing of TypeScript types to npm ([facebook#1662](https://github.com/facebook/metro/pull/1662) by [@&#8203;robhogan](https://github.com/robhogan)) Full changelog: <https://github.com/facebook/metro/compare/v0.84.1...v0.84.2> ### [`v0.84.1`](https://github.com/react/metro/releases/tag/v0.84.1) [Compare Source](https://github.com/react/metro/compare/v0.84.0...v0.84.1) - **\[Fix]** sync bundling progress between Metro cli and app hints ([`34ca6a6`](https://github.com/react/metro/commit/34ca6a6f621521a0780a54eeb32384b4f9c2f8ff) by [@&#8203;vzaidman](https://github.com/vzaidman)) - **\[Feature]** `config.server.tls` now sets Metro to be exposed as an https server ([`35ff94b`](https://github.com/react/metro/commit/35ff94bec847b3ef6ea5f9d81a368cff4df64926) by [@&#8203;vzaidman](https://github.com/vzaidman)) **Full Changelog**: <https://github.com/facebook/metro/compare/v0.84.0...v0.84.1> ### [`v0.84.0`](https://github.com/react/metro/releases/tag/v0.84.0) [Compare Source](https://github.com/react/metro/compare/v0.83.8...v0.84.0) - **\[Breaking]:** Drop support for Node v21, v23, and LTS minors released before v20.19 ([facebook@`b85f7fe`](https://github.com/facebook/metro/commit/b85f7feaba4160000c00e83e6949ad0343b8248a) by [@&#8203;robhogan](https://github.com/robhogan)) **Full Changelog**: <https://github.com/facebook/metro/compare/v0.83.4...v0.84.0> ### [`v0.83.8`](https://github.com/react/metro/releases/tag/v0.83.8) [Compare Source](https://github.com/react/metro/compare/v0.83.7...v0.83.8) *This release is on the [`0.83.x`](https://github.com/facebook/metro/tree/0.83.x) branch* - **\[Fix]**: Replace `image-size` dependency with vendored parsers, fix CVE alerts ([facebook#1860](https://github.com/facebook/metro/pull/1860) by [@&#8203;robhogan](https://github.com/robhogan)) **Full Changelog**: <https://github.com/facebook/metro/compare/v0.83.7...v0.83.8> ### [`v0.83.7`](https://github.com/react/metro/releases/tag/v0.83.7) [Compare Source](https://github.com/react/metro/compare/v0.83.6...v0.83.7) *This release is on the [`0.83.x`](https://github.com/facebook/metro/tree/0.83.x) branch* - **\[Feature]**: Support `/[metro-watchFolders]/n/` paths for `.bundle` and `.map` requests ([facebook#1695](https://github.com/facebook/metro/pull/1695) by [@&#8203;huntie](https://github.com/huntie)) - **\[Fix]**: Fix regression to allow scale assets to be resolved again for single asset requests ([facebook#1694](https://github.com/facebook/metro/pull/1694) by [@&#8203;kitten](https://github.com/kitten)) - **\[Fix]**: Treat `import().catch()`, etc. as optional under `transformer.allowOptionalDependencies` ([facebook#1697](https://github.com/facebook/metro/pull/1697) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Performance]**: Interleave resolution attempts with building node_modules candidate paths ([facebook#1680](https://github.com/facebook/metro/pull/1680) by [@&#8203;kitten](https://github.com/kitten)) **Full Changelog**: <https://github.com/facebook/metro/compare/v0.83.6...v0.83.7> ### [`v0.83.6`](https://github.com/react/metro/releases/tag/v0.83.6) [Compare Source](https://github.com/react/metro/compare/v0.83.5...v0.83.6) *This release is on the [`0.83.x`](https://github.com/facebook/metro/tree/0.83.x) branch* - **\[Feature]**: Add keepalive "heartbeat" message to Fast Refresh connections ([facebook#1685](https://github.com/facebook/metro/pull/1685) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Feature]**: Add `changeId` metadata on HMRClient `update-done` messages ([facebook@`1585e44`](https://github.com/facebook/metro/commit/1585e444284f) by [@&#8203;huntie](https://github.com/huntie)) - **\[Fix]**: Include user-defined Babel config in transformer cache key to ensure correctness ([facebook#1638](https://github.com/facebook/metro/pull/1638) by [@&#8203;evanbacon](https://github.com/evanbacon)) - **\[Fix]**: Detection of contents of directories moved or cloned into a watched location ([facebook#1660](https://github.com/facebook/metro/pull/1660) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Correctly detect contents as removed when a watched directory is moved, on macOS without Watchman ([facebook@`c9e9fe6`](https://github.com/facebook/metro/commit/c9e9fe64a77c) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Performance]**: Optimize `PackageCache`: use `Map`/`Set`, cache null results, eliminate per-hit allocations ([facebook@`877b64e`](https://github.com/facebook/metro/commit/877b64ea5967) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Types]**: Restore type exports from `metro` that were previously TypeScript-specific ([facebook#1672](https://github.com/facebook/metro/pull/1672) by [@&#8203;robhogan](https://github.com/robhogan)) > NOTE: Experimental features are not covered by semver and can change at any time. - **\[Experimental]**: Add `config.unstable_fileMapPlugins` ([facebook@`567aa8b`](https://github.com/facebook/metro/commit/567aa8b62b95) by [@&#8203;robhogan](https://github.com/robhogan)) ### [`v0.83.5`](https://github.com/react/metro/releases/tag/v0.83.5) [Compare Source](https://github.com/react/metro/compare/v0.83.4...v0.83.5) *This is a hotfix on the [`0.83.x`](https://github.com/facebook/metro/tree/0.83.x) branch.* - **\[Feature]:** `config.server.tls` now sets Metro to be exposed as an https server ([#&#8203;1657](https://github.com/react/metro/issues/1657) by [@&#8203;vzaidman](https://github.com/vzaidman)) - **\[Fix]:** sync bundling progress between Metro cli and app hints ([`34ca6a6`](https://github.com/react/metro/commit/34ca6a6f621521a0780a54eeb32384b4f9c2f8ff) by [@&#8203;vzaidman](https://github.com/vzaidman)) - **\[Types]**: Restore accidentally removed publication of TypeScript types ([#&#8203;1662](https://github.com/react/metro/issues/1662) by [@&#8203;robhogan](https://github.com/robhogan)) **Full Changelog**: <https://github.com/facebook/metro/compare/v0.83.4...v0.83.5> ### [`v0.83.4`](https://github.com/react/metro/releases/tag/v0.83.4) [Compare Source](https://github.com/react/metro/compare/v0.83.3...v0.83.4) - **\[Feature]:** Inline `Platform.OS`/`Platform.select` for variables bound to `require('react-native')`. ([facebook#1641](https://github.com/facebook/metro/pull/1641) by [@&#8203;thymikee](https://github.com/thymikee)) - **\[Feature]:** Add a keepalive mechanism to Fast Refresh connections to improve stability in some proxied setups ([facebook@`f7ab6f9`](https://github.com/facebook/metro/commit/f7ab6f9d577fa10c21a6bbee6c52fae21ad562d3) by [@&#8203;vzaidman](https://github.com/vzaidman)) - **\[Fix]:** Undo accidentally increased strictness of `content-type` for `/symbolicate` ([facebook#1630](https://github.com/facebook/metro/pull/1630) by [@&#8203;MorvanL](https://github.com/MorvanL)) - **\[Fix]:** metro-babel-transformer: Don't set BABEL_ENV as a side-effect ([facebook@`de59fcc`](https://github.com/facebook/metro/commit/de59fcc3bb3e10ae433237cf4f017dbaaf89d338) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]:** metro-config: Fix absolute path error on Windows masking actionable config loading errors ([facebook#1620](https://github.com/facebook/metro/pull/1620) by [@&#8203;kitten](https://github.com/kitten)) - **\[Fix]:** Only return a symbolicated code frame for files that are in the project ([facebook@`e31e11c`](https://github.com/facebook/metro/commit/e31e11c92540f8179ee4eaa55266ff20fe7db5c6) by [@&#8203;motiz88](https://github.com/motiz88)) - **\[Fix]:** Only serve assets that are in the project ([facebook#1643](https://github.com/facebook/metro/pull/1643) by [@&#8203;fabriziocucci](https://github.com/fabriziocucci)) - **\[Performance]:** Use worker threads for processing file changes on startup, significantly faster on Windows. ([facebook#1639](https://github.com/facebook/metro/pull/1639) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Types]:** Automatic, comprehensive TypeScript types for all packages. ([facebook#1611](https://github.com/facebook/metro/pull/1611), [facebook#1648](https://github.com/facebook/metro/pull/1648), [facebook#1621](https://github.com/facebook/metro/pull/1621), etc by [@&#8203;nickhudkins](https://github.com/nickhudkins), [@&#8203;pafry7](https://github.com/pafry7) and [@&#8203;robhogan](https://github.com/robhogan)) **Full Changelog**: <https://github.com/facebook/metro/compare/v0.83.3...v0.83.4> ### [`v0.83.3`](https://github.com/react/metro/releases/tag/v0.83.3) [Compare Source](https://github.com/react/metro/compare/v0.83.2...v0.83.3) - **\[Feature]**: Accept functions as arguments to `mergeConfig`. ([facebook#1580](https://github.com/facebook/metro/pull/1580) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Fix regression loading config files that export a promise. ([facebook#1586](https://github.com/facebook/metro/pull/1586) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Don't obscure errors parsing/evaluating metro.config.js. ([facebook@`af3bcca`](https://github.com/facebook/metro/commit/af3bccabf0c67e93f1090fdc2b7c653d9e707495) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Fix `mergeConfig` handling of 2+ partial configs. ([facebook@`a99067f`](https://github.com/facebook/metro/commit/a99067f6918831411bb8a721f65ca9c1cae8d355) by [@&#8203;robhogan](https://github.com/robhogan)) **Full Changelog**: <https://github.com/facebook/metro/compare/v0.83.2...v0.83.3> ### [`v0.83.2`](https://github.com/react/metro/releases/tag/v0.83.2) [Compare Source](https://github.com/react/metro/compare/v0.83.1...v0.83.2) - **\[Feature]** Support ESM `metro.config.js` / `metro.config.mjs` ([facebook#1557](https://github.com/facebook/metro/pull/1557) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Feature]** Support Metro config at `.config/metro.js` (etc.), as well as `metro.config.js` ([facebook#1558](https://github.com/facebook/metro/pull/1558) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Feature]** Support loading TypeScript `metro.config.ts` files when using Node.js/Bun versions that natively support it ([facebook#1560](https://github.com/facebook/metro/pull/1560) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Feature]** Expose `globalPrefix` to `getRunModuleStatement` ([facebook#1566](https://github.com/facebook/metro/pull/1566) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Feature]** Set a definite bundle sourcemap's url protocol instead of using relative protocols ([facebook@`d0c89e5`](https://github.com/facebook/metro/commit/d0c89e5e09679a7135a71bb614a19e0e9e81ddf1) by [@&#8203;vzaidman](https://github.com/vzaidman)) - **\[Feature]** Respect "x-forwarded-host" and "x-forwarded-proto" when calculating asset url for asset requests ([facebook@`d0c89e5`](https://github.com/facebook/metro/commit/d0c89e5e09679a7135a71bb614a19e0e9e81ddf1) by [@&#8203;vzaidman](https://github.com/vzaidman)) - **\[Fix]** `module.verboseName` (dev builds only) now uses posix separators regardless of the OS the bundle is built on ([facebook#1568](https://github.com/facebook/metro/pull/1568) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]** Fix build/serve cache incompatibility by removing unused `hot` param ([facebook#1567](https://github.com/facebook/metro/pull/1567) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]** Replaced the deprecated `url.parse` with `URL` and correctly encode and decode source urls and source map urls ([facebook#1548](https://github.com/facebook/metro/pull/1548) by [@&#8203;vzaidman](https://github.com/vzaidman)) - **\[Fix]** Support non-ASCII filesystem bundle paths ([facebook#1538](https://github.com/facebook/metro/pull/1538) by [@&#8203;bradleyayers](https://github.com/bradleyayers)) - **\[Fix]** Only print symbolication errors in debug ([facebook#1573](https://github.com/facebook/metro/pull/1573) by [@&#8203;krystofwoldrich](https://github.com/krystofwoldrich)) - **\[Fix]** Fix metro-runtime's fast refresh checks to not skip over getters for ES modules ([facebook#1575](https://github.com/facebook/metro/pull/1575) by [@&#8203;kitten](https://github.com/kitten)) - **\[Deprecated]**: metro-cache: Deprecate AutoCleanFileStore ([facebook#1570](https://github.com/facebook/metro/pull/1570) by [@&#8203;robhogan](https://github.com/robhogan)) **Full Changelog**: <https://github.com/facebook/metro/compare/v0.83.1...v0.83.2> ### [`v0.83.1`](https://github.com/react/metro/releases/tag/v0.83.1) [Compare Source](https://github.com/react/metro/compare/v0.83.0...v0.83.1) - **\[Feature]** Restore support for Node.js >= 20.19.4 ([facebook#1537](https://github.com/facebook/metro/pull/1537) by [@&#8203;robhogan](https://github.com/robhogan)) **Full Changelog**: <https://github.com/facebook/metro/compare/v0.83.0...v0.83.1> ### [`v0.83.0`](https://github.com/react/metro/releases/tag/v0.83.0) [Compare Source](https://github.com/react/metro/compare/v0.82.5...v0.83.0) - **\[Breaking]**: Require Node.js >= 22.14.0. ([facebook#1531](https://github.com/facebook/metro/pull/1531) by [@&#8203;robhogan](https://github.com/robhogan)) *(NOTE: Lowered to 20.19.4 in Metro 0.83.1)* - **\[Breaking]**: Remove undocumented `transformer.workerPath` config. ([facebook@`49f7aac`](https://github.com/facebook/metro/commit/49f7aac38c63e44f7238fa6cb95410e4938fb08d) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Breaking]**: Prevent importing from `/src/`, make all non-root exports semver-private, except `metro-runtime`. ([facebook@`ae6f423`](https://github.com/facebook/metro/commit/ae6f42372ed361611b5672705f22081c2022cf28) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Breaking]**: `Metro.runServer` - return an object containing `httpServer` rather than the server instance directly. ([facebook@`95867ce`](https://github.com/facebook/metro/commit/95867cedbf65acbd434f09494b9f01d2df354dd9) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Breaking]**: `metro-babel-register`, `buck-worker-tool`, `metro-cache-key`: Used named exports instead of exporting a default function. ([facebook@`f225bf1`](https://github.com/facebook/metro/commit/f225bf1f6cf2033daf5c24acb6e719d5c3d3e1b8), [facebook@`69bde93`](https://github.com/facebook/metro/commit/69bde938d50f495a073c9d7d892565ecc825f53e), [facebook@`3430036`](https://github.com/facebook/metro/commit/343003684b8303258793767ca745f30e2eb92a6f) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Removed]**: `metro-memory-fs` will no longer be published. ([facebook@`02104f8`](https://github.com/facebook/metro/commit/02104f833a03462468f9b2c07c12b4f16c2806df) by [@&#8203;robhogan](https://github.com/robhogan)) **Full Changelog**: <https://github.com/facebook/metro/compare/v0.82.5...v0.83.0> ### [`v0.82.5`](https://github.com/react/metro/releases/tag/v0.82.5) [Compare Source](https://github.com/react/metro/compare/v0.82.4...v0.82.5) - **\[Feature]**: Allow reuse of `ReactRefresh` instance across multiple module systems by prefixing more globals and IDs ([facebook#1513](https://github.com/facebook/metro/pull/1513) by [@&#8203;jbroma](https://github.com/jbroma)) - **\[Feature]**: Add `"type": "UnableToResolveError"` to JSON server responses on resolution failures. ([facebook@`6f0093c`](https://github.com/facebook/metro/commit/6f0093c4cdc597dbbde8b22b159b9cb0b7912865) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Feature]**: Export `JsonReporter` from `metro`'s package root. ([facebook@`6f0093c`](https://github.com/facebook/metro/commit/6f0093c4cdc597dbbde8b22b159b9cb0b7912865) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Performance]**: `runBuild` API / `build` CLI - Avoid a second graph traversal when enumerating assets. ([facebook#1511](https://github.com/facebook/metro/pull/1511) by [@&#8203;tido64](https://github.com/tido64)) - **\[Fix]**: Fix incorrect modules being loaded when optional dependencies are used. ([facebook#1522](https://github.com/facebook/metro/pull/1522) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Don't overwrite `$RefreshReg$`, e.g. when multiple module systems are overlayed. ([facebook#1510](https://github.com/facebook/metro/pull/1510) by [@&#8203;jbroma](https://github.com/jbroma)) > NOTE: Experimental features are not covered by semver and can change at any time. - **\[Experimental]**: Opt-in module factory optimisation for Static Hermes. ([facebook@`c37509b`](https://github.com/facebook/metro/commit/c37509b77d9f50346db5f3105805d10d34bfcb1b) by [@&#8203;robhogan](https://github.com/robhogan)) **Full Changelog**: <https://github.com/facebook/metro/compare/v0.82.4...v0.82.5> ### [`v0.82.4`](https://github.com/react/metro/releases/tag/v0.82.4) [Compare Source](https://github.com/react/metro/compare/v0.82.3...v0.82.4) - **\[Feature]** `runBuild`: Add optional `bundleOut` and `sourceMapOut` arguments to exactly specify output paths ([facebook@`a6f2bdc`](https://github.com/facebook/metro/commit/a6f2bdc6143e0963cfecc943d0c3396b6a6ce78b) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Don't constant-fold potentially side-effectful void expressions ([facebook#1506](https://github.com/facebook/metro/pull/1506) by [@&#8203;robhogan](https://github.com/robhogan)) **Full Changelog**: <https://github.com/facebook/metro/compare/v0.82.3...v0.82.4> ### [`v0.82.3`](https://github.com/react/metro/releases/tag/v0.82.3) [Compare Source](https://github.com/react/metro/compare/v0.82.2...v0.82.3) - **\[Feature]**: runBuild: add `assets` option to return an asset listing ([facebook@`3b4f503`](https://github.com/facebook/metro/commit/3b4f50333ba0931f6740f2cde30fc5129edb22ab) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: importLocationPlugin: Fix non-deterministic false identification of ESM imports ([facebook#1497](https://github.com/facebook/metro/pull/1497) by [@&#8203;byCedric](https://github.com/byCedric)) - **\[Fix]**: collectDepedencies: Fix one-line `export from` files triggering `_interopRequireDefault is not a function` ([facebook#1498](https://github.com/facebook/metro/pull/1498) by [@&#8203;byCedric](https://github.com/byCedric)) **Full Changelog**: <https://github.com/facebook/metro/compare/v0.82.2...v0.82.3> ### [`v0.82.2`](https://github.com/react/metro/releases/tag/v0.82.2) [Compare Source](https://github.com/react/metro/compare/v0.82.1...v0.82.2) - **\[Feature]**: Support `proxy` and `socketPath` in remote cache `HttpStore` ([facebook@`cc7316b`](https://github.com/facebook/metro/commit/cc7316b1f40ed5e4202a997673b26d55ff1b4ca5) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Feature]** Fallback to showing first collapsed frame when all frames in a stack are collapsed ([facebook#1483](https://github.com/facebook/metro/pull/1483) by [@&#8203;EvanBacon](https://github.com/EvanBacon)) - **\[Fix]** Support correct `application/json` body parsing in `/symbolicate` ([facebook#1475](https://github.com/facebook/metro/pull/1475) by [@&#8203;huntie](https://github.com/huntie)) - **\[Fix]** Add missing `type` for missing import errors in HMR client ([facebook#1487](https://github.com/facebook/metro/pull/1487) by [@&#8203;EvanBacon](https://github.com/EvanBacon)) **Full Changelog**: <https://github.com/facebook/metro/compare/v0.82.1...v0.82.2> ### [`v0.82.1`](https://github.com/react/metro/releases/tag/v0.82.1) [Compare Source](https://github.com/react/metro/compare/v0.82.0...v0.82.1) - **\[Fix]**: Fix wildcard pattern precedence in package.json imports/exports resolution ([facebook#1458](https://github.com/facebook/metro/pull/1458) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Fix edge-case overmatching of pattern keys in package.json exports/imports resolution ([facebook@`c4ba9fb`](https://github.com/facebook/metro/commit/c4ba9fb1fe9f2945ecfd0160cdfa7d536a8f08ac) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Fix handling of export map targets with zero or 2+ wildcard characters in package.json imports/exports resolution ([facebook@`acfc0d8`](https://github.com/facebook/metro/commit/acfc0d8e57ebe2b24ab256b44c99151b76e2c9d2) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Fix terminal statuses incorrectly persisting the wrong line ([facebook@`7156541`](https://github.com/facebook/metro/commit/71565413f12addcf7130e6e0f8310d2a8c423e58) by [@&#8203;vzaidman](https://github.com/vzaidman)) **Full Changelog**: <https://github.com/facebook/metro/compare/v0.82.0...v0.82.1> ### [`v0.82.0`](https://github.com/react/metro/releases/tag/v0.82.0) [Compare Source](https://github.com/react/metro/compare/v0.81.5...v0.82.0) - **\[Breaking/Feature]**: Enable support for `package.json#exports` resolution by default. ([facebook#1448](https://github.com/facebook/metro/pull/1448) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Breaking]**: Integrators consuming `metro/src/DeltaBundler/Transformer` must now pass an options object with `getOrComputeSha1` ([facebook#1451](https://github.com/facebook/metro/pull/1451) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Breaking]**: `metro/src/node-haste/DependencyGraph.getSha1` has been removed, prefer `getOrComputeSha1` ([facebook#1451](https://github.com/facebook/metro/pull/1451) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Performance]**: Enable lazy file hashing by default, disable with `watcher.unstable_lazySha1: false` ([facebook#1451](https://github.com/facebook/metro/pull/1451) by [@&#8203;robhogan](https://github.com/robhogan)) **Full Changelog**: <https://github.com/facebook/metro/compare/v0.81.3...v0.82.0> ### [`v0.81.5`](https://github.com/react/metro/releases/tag/v0.81.5) [Compare Source](https://github.com/react/metro/compare/v0.81.4...v0.81.5) *This is a hotfix on the [`0.81.x`](https://github.com/facebook/metro/tree/0.81.x) branch.* This release fixes two issues with `unstable_enablePackageExports`, which is experimental and opt-in in Metro 0.81. > NOTE: Experimental features are not covered by semver and can change at any time. - **\[Experimental]**: importLocationPlugin: Fix non-deterministic false identification of ESM imports ([facebook@`55ed2ee`](https://github.com/facebook/metro/commit/55ed2ee83852c6c6132cff5a540c9a5ac6a5d7fe) by [@&#8203;byCedric](https://github.com/byCedric)) - **\[Experimental]**: collectDepedencies: Fix one-line `export from` files triggering `_interopRequireDefault is not a function` ([facebook@`5f79ce8`](https://github.com/facebook/metro/commit/5f79ce82ed5be99aaf691d555b83f8b26bc2a8c1) by [@&#8203;byCedric](https://github.com/byCedric)) **Full Changelog**: <https://github.com/facebook/metro/compare/v0.81.4...v0.81.5> ### [`v0.81.4`](https://github.com/react/metro/releases/tag/v0.81.4) [Compare Source](https://github.com/react/metro/compare/v0.81.3...v0.81.4) *This is a hotfix on the [`0.81.x`](https://github.com/facebook/metro/tree/0.81.x) branch.* This release fixes a number of issues with `unstable_enablePackageExports`. > NOTE: Experimental features are not covered by semver and can change at any time. - **\[Experimental]**: Fix wildcard pattern precedence in package.json imports/exports resolution ([facebook@`38ef15d`](https://github.com/facebook/metro/commit/38ef15d2aeb2d119014631bd503c0c888dfed722) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Experimental]**: Fix edge-case overmatching of pattern keys in package.json exports/imports resolution. ([facebook@`bd9d16c`](https://github.com/facebook/metro/commit/bd9d16c4e976d1ddb459e8d8d8e2176ac55d82aa) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Experimental]**: Fix handling of export map targets with zero or 2+ wildcard characters in package.json imports/exports resolution ([facebook@`72b703b`](https://github.com/facebook/metro/commit/72b703ba27e28858916dd6b86fe718513b624997) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Experimental]**: Restore compat with configs that set `unstable_conditionNames: ['import']`, fix `_interopRequireDefault` is not a function ([facebook@`8277623`](https://github.com/facebook/metro/commit/8277623d56974c2a05096fefef532361c80bbad8) by [@&#8203;robhogan](https://github.com/robhogan)) **Full Changelog**: <https://github.com/facebook/metro/compare/v0.81.3...v0.81.4> ### [`v0.81.3`](https://github.com/react/metro/releases/tag/v0.81.3) [Compare Source](https://github.com/react/metro/compare/v0.81.2...v0.81.3) - **\[Feature]**: Add support for `package.json#imports` ([facebook#1302](https://github.com/facebook/metro/pull/1302) by [@&#8203;jameslawson](https://github.com/jameslawson)) - **\[Feature]**: Add `isESMImport` to `ResolutionContext` to distinguish resolution based on whether the dependency is a `require()` or static/async `import` ([facebook#1376](https://github.com/facebook/metro/pull/1376) by [@&#8203;robhogan](https://github.com/robhogan)) > NOTE: Experimental features are not covered by semver and can change at any time. - **\[Experimental]**: With `unstable_enablePackageExports`, assert exactly one of the conditions `import`/`require` according to source syntax. ([facebook#1477](https://github.com/facebook/metro/pull/1477) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Experimental]**: Fix global package resolution with `unstable_lazySha1` ([facebook@`42ec821`](https://github.com/facebook/metro/commit/42ec821da720073a717d95afbe24eedbfa9e148d) by [@&#8203;robhogan](https://github.com/robhogan)) **Full Changelog**: <https://github.com/facebook/metro/compare/v0.81.2...v0.81.3> ### [`v0.81.2`](https://github.com/react/metro/releases/tag/v0.81.2) [Compare Source](https://github.com/react/metro/compare/v0.81.1...v0.81.2) - **\[Feature]:** Expose modules and polyfills within `metro-runtime` via new public `package.json#exports` paths. ([facebook@`f390cdf`](https://github.com/facebook/metro/commit/f390cdf4c703fe615a5e6e131c0fa3d69e450585) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Fix]**: Replace top-level `this` with `globalThis` in runtime prelude for service worker compatibility. ([facebook#1438](https://github.com/facebook/metro/pull/1438) by [@&#8203;exzos28](https://github.com/exzos28)) - **\[Fix]**: `get-dependencies` command: gracefully shutdown on errors. ([facebook@`b8e9e64`](https://github.com/facebook/metro/commit/b8e9e64f1de97a67234e223f5ee21524b160e8a5) by [@&#8203;yungsters](https://github.com/yungsters)) - **\[Performance]**: Don't start an excessive number of workers for hashing files during startup. ([facebook@`15bc295`](https://github.com/facebook/metro/commit/15bc295808e53da27c140e248184e1bf0fd041c6) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Deprecated]**: Deprecate deep `src` imports e.g. `metro/src/x.js` across all `metro*` packages, pending removal from the stable API. ([facebook#1441](https://github.com/facebook/metro/pull/1441) by [@&#8203;robhogan](https://github.com/robhogan)) > NOTE: Experimental features are not covered by semver and can change at any time. - **\[Experimental]**: Auto-save file cache via `config.watcher.unstable_autoSaveCache`. ([facebook#1434](https://github.com/facebook/metro/pull/1434) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Experimental]**: Add `watcher.unstable_lazySha1` to defer SHA1 calculation until files are needed by the transformer. ([facebook#1435](https://github.com/facebook/metro/pull/1435) by [@&#8203;robhogan](https://github.com/robhogan)) - **\[Experimental]**: Expose deep imports of Metro packages (`metro/src/x.js` as `metro/private/x`) as explicitly private (non-semver). ([facebook#1441](https://github.com/facebook/metro/pull/1441) by [@&#8203;robhogan](https://github.com/robhogan)) **Full Changelog**: <https://github.com/facebook/metro/compare/v0.81.1...v0.81.2> </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNjAuMiIsInVwZGF0ZWRJblZlciI6IjQ0LjI0Mi4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->
Update dependency metro to ^0.84.0
Some checks failed
renovate/artifacts Artifact file update failure
711e195502
john4064 changed title from Update dependency metro to ^0.84.0 to rebase! Update dependency metro to ^0.84.0 2026-05-01 21:19:39 +00:00
renovate-bot force-pushed renovate/metro-0.x from 22749920b4 to c51e21669c
Some checks failed
renovate/artifacts Artifact file update failure
2026-05-01 22:01:26 +00:00
Compare
renovate-bot changed title from rebase! Update dependency metro to ^0.84.0 to Update dependency metro to ^0.84.0 2026-05-01 22:01:26 +00:00
renovate-bot force-pushed renovate/metro-0.x from c51e21669c
Some checks failed
renovate/artifacts Artifact file update failure
to f25857b25f 2026-05-02 16:03:32 +00:00
Compare
renovate-bot force-pushed renovate/metro-0.x from f25857b25f to 6efaaec055 2026-05-05 10:04:15 +00:00 Compare
renovate-bot force-pushed renovate/metro-0.x from 6efaaec055 to 5c3e752cff 2026-06-28 00:03:08 +00:00 Compare
renovate-bot changed title from Update dependency metro to ^0.84.0 to Update dependency metro to ^0.85.0 2026-06-28 00:03:11 +00:00
renovate-bot force-pushed renovate/metro-0.x from 5c3e752cff to 09a581a488 2026-07-12 00:02:44 +00:00 Compare
renovate-bot changed title from Update dependency metro to ^0.85.0 to Update dependency metro to ^0.86.0 2026-07-12 00:02:45 +00:00
renovate-bot force-pushed renovate/metro-0.x from 09a581a488 to 482582fac4 2026-07-19 00:03:25 +00:00 Compare
renovate-bot changed title from Update dependency metro to ^0.86.0 to Update dependency metro to ^0.87.0 2026-07-19 00:03:26 +00:00
renovate-bot force-pushed renovate/metro-0.x from 482582fac4 to 0de83041fb 2026-11-07 00:10:14 +00:00 Compare
renovate-bot changed title from Update dependency metro to ^0.87.0 to Update dependency metro to ^0.88.0 2026-11-07 00:10:16 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/metro-0.x:renovate/metro-0.x
git switch renovate/metro-0.x

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch master
git merge --no-ff renovate/metro-0.x
git switch renovate/metro-0.x
git rebase master
git switch master
git merge --ff-only renovate/metro-0.x
git switch renovate/metro-0.x
git rebase master
git switch master
git merge --no-ff renovate/metro-0.x
git switch master
git merge --squash renovate/metro-0.x
git switch master
git merge --ff-only renovate/metro-0.x
git switch master
git merge renovate/metro-0.x
git push origin master
Sign in to join this conversation.
No description provided.