Releases: react/metro
Release list
v0.82.5
- [Feature]: Allow reuse of
ReactRefreshinstance across multiple module systems by prefixing more globals and IDs (#1513 by @jbroma) - [Feature]: Add
"type": "UnableToResolveError"to JSON server responses on resolution failures. (6f0093c by @robhogan) - [Feature]: Export
JsonReporterfrommetro's package root. (6f0093c by @robhogan) - [Performance]:
runBuildAPI /buildCLI - Avoid a second graph traversal when enumerating assets. (#1511 by @tido64) - [Fix]: Fix incorrect modules being loaded when optional dependencies are used. (#1522 by @robhogan)
- [Fix]: Don't overwrite
$RefreshReg$, e.g. when multiple module systems are overlayed. (#1510 by @jbroma)
NOTE: Experimental features are not covered by semver and can change at any time.
Full Changelog: v0.82.4...v0.82.5
v0.82.4
- [Feature]
runBuild: Add optionalbundleOutandsourceMapOutarguments to exactly specify output paths (a6f2bdc by @robhogan) - [Fix]: Don't constant-fold potentially side-effectful void expressions (#1506 by @robhogan)
Full Changelog: v0.82.3...v0.82.4
v0.82.3
- [Feature]: runBuild: add
assetsoption to return an asset listing (3b4f503 by @robhogan) - [Fix]: importLocationPlugin: Fix non-deterministic false identification of ESM imports (#1497 by @byCedric)
- [Fix]: collectDepedencies: Fix one-line
export fromfiles triggering_interopRequireDefault is not a function(#1498 by @byCedric)
Full Changelog: v0.82.2...v0.82.3
v0.81.5
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 (55ed2ee by @byCedric)
- [Experimental]: collectDepedencies: Fix one-line
export fromfiles triggering_interopRequireDefault is not a function(5f79ce8 by @byCedric)
Full Changelog: v0.81.4...v0.81.5
v0.82.2
- [Feature]: Support
proxyandsocketPathin remote cacheHttpStore(cc7316b by @robhogan) - [Feature] Fallback to showing first collapsed frame when all frames in a stack are collapsed (#1483 by @EvanBacon)
- [Fix] Support correct
application/jsonbody parsing in/symbolicate(#1475 by @huntie) - [Fix] Add missing
typefor missing import errors in HMR client (#1487 by @EvanBacon)
Full Changelog: v0.82.1...v0.82.2
v0.82.1
- [Fix]: Fix wildcard pattern precedence in package.json imports/exports resolution (#1458 by @robhogan)
- [Fix]: Fix edge-case overmatching of pattern keys in package.json exports/imports resolution (c4ba9fb by @robhogan)
- [Fix]: Fix handling of export map targets with zero or 2+ wildcard characters in package.json imports/exports resolution (acfc0d8 by @robhogan)
- [Fix]: Fix terminal statuses incorrectly persisting the wrong line (7156541 by @vzaidman)
Full Changelog: v0.82.0...v0.82.1
v0.81.4
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 (38ef15d by @robhogan)
- [Experimental]: Fix edge-case overmatching of pattern keys in package.json exports/imports resolution. (bd9d16c by @robhogan)
- [Experimental]: Fix handling of export map targets with zero or 2+ wildcard characters in package.json imports/exports resolution (72b703b by @robhogan)
- [Experimental]: Restore compat with configs that set
unstable_conditionNames: ['import'], fix_interopRequireDefaultis not a function (8277623 by @robhogan)
Full Changelog: v0.81.3...v0.81.4
v0.82.0
- [Breaking/Feature]: Enable support for
package.json#exportsresolution by default. (#1448 by @robhogan) - [Breaking]: Integrators consuming
metro/src/DeltaBundler/Transformermust now pass an options object withgetOrComputeSha1(#1451 by @robhogan) - [Breaking]:
metro/src/node-haste/DependencyGraph.getSha1has been removed, prefergetOrComputeSha1(#1451 by @robhogan) - [Performance]: Enable lazy file hashing by default, disable with
watcher.unstable_lazySha1: false(#1451 by @robhogan)
Full Changelog: v0.81.3...v0.82.0
v0.81.3
- [Feature]: Add support for
package.json#imports(#1302 by @jameslawson) - [Feature]: Add
isESMImporttoResolutionContextto distinguish resolution based on whether the dependency is arequire()or static/asyncimport(#1376 by @robhogan)
NOTE: Experimental features are not covered by semver and can change at any time.
- [Experimental]: With
unstable_enablePackageExports, assert exactly one of the conditionsimport/requireaccording to source syntax. (https://github.com/facebook/metro/pull/1477 by @robhogan) - [Experimental]: Fix global package resolution with
unstable_lazySha1(42ec821 by @robhogan)
Full Changelog: v0.81.2...v0.81.3
v0.81.2
- [Feature]: Expose modules and polyfills within
metro-runtimevia new publicpackage.json#exportspaths. (f390cdf by @robhogan) - [Fix]: Replace top-level
thiswithglobalThisin runtime prelude for service worker compatibility. (#1438 by @exzos28) - [Fix]:
get-dependenciescommand: gracefully shutdown on errors. (b8e9e64 by @yungsters) - [Performance]: Don't start an excessive number of workers for hashing files during startup. (15bc295 by @robhogan)
- [Deprecated]: Deprecate deep
srcimports e.g.metro/src/x.jsacross allmetro*packages, pending removal from the stable API. (#1441 by @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. (#1434 by @robhogan) - [Experimental]: Add
watcher.unstable_lazySha1to defer SHA1 calculation until files are needed by the transformer. (#1435 by @robhogan) - [Experimental]: Expose deep imports of Metro packages (
metro/src/x.jsasmetro/private/x) as explicitly private (non-semver). (#1441 by @robhogan)
Full Changelog: v0.81.1...v0.81.2