Releases: facebook/metro
Releases Β· facebook/metro
v0.76.0
- [Breaking]: Increase minimum Node version from 14 to 16. (e5950ae by @huntie)
- [Breaking]: Remove
isAssetFile
from custom resolver context, addassetExts
. (c6548f7 by @huntie) - [Feature]: Support
require.resolveWeak()
. (354d6e4 by @motiz88) - [Fix]: Don't over-invalidate on symlink changes if resolution through symlinks is not enabled. (2303c10 by @robhogan)
- [Fix]: Returning
false
fromcontext.redirectModulePath
will resolve to empty module in all cases. (0f1846a by @huntie) - [Fix]: Respect extensionless entries in
browser
,react-native
etc when resolving subpath package specifiers. (7e92227 by @huntie) - [Fix]: Remove undocumented Meta-only
__jsResource
and__conditionallySplitJsResource
functions from module API. (f1d905b and 69c8fc7 by @motiz88)
NOTE: Experimental features are not covered by semver and can change at any time.
v0.75.1
- [Feature]:
metro-inspector-proxy
: Add a human-readable reference to each inspector entries/pages.(#921 by @byCedric) - [Feature]:
metro-inspector-proxy
: Report errors in the console. (da8b41b by @mattbfb) - [Fix]: Race condition where a very recently modified file might have missing metadata.(baf28ab by @robhogan)
- [Fix]: Source maps may have invalid entries when using Terser minification. (#928 by @robhogan)
- [Fix]:
metro-inspector-proxy
: Fetch source maps from Metro. (6690b39 by @mattbfb) - [Fix]: Mitigate potential source map mismatches with concurrent transformations due to terser#1341. (#929 by @robhogan)
NOTE: Experimental features are not covered by semver and can change at any time.
- [Experimental]: Add initial_build annotation to Resolving and Transforming Dependencies (fc83b52 by @blakef)
- [Experimental]: Implement support for Package Exports (enabled via
resolver.unstable_enablePackageExports
) (4d7ab38, 38b96f8, 216d3e2, 6e6f36f by @huntie) - [Experimental]: Implement support for symlinks (enabled via
resolver.unstable_enableSymlinks
) (#925, #926, etc. by @robhogan)
Full Changelog: v0.75.0...v0.75.1
v0.73.8
This is a hotfix on the 0.73.x
branch.
- [Fix]: Source maps may have invalid entries when using Terser minification. (#928)
- [Fix]: Mitigate potential source map mismatches with concurrent transformations due to terser#1341. (#929)
Full Changelog: v0.73.7...v0.73.8
v0.75.0
- [Breaking]: Formalise minimum Node JS requirement at 14.17.0 via
package.json#engines
. (c3e453e) - [Breaking]: Filter untyped context properties passed to custom resolvers. (cb01ec0)
- [Breaking]: Change default
context.redirectModulePath
implementation to return absolute path in all cases. (acbfe63) - [Feature]: Add
mainFields
,getPackage
, andgetPackageForModule
to custom resolver context. (adfb593)
Full Changelog: v0.74.1...v0.75.0
v0.74.1
v0.74.0
- [Breaking] Remove @babel/plugin-transform-template-literals from metro-react-native-babel-preset (322dea8)
- [Breaking] Remove
postProcessBundleSourcemap
from config (339794e) - [Fix] Don't log ENOENT errors to console for expected URL stack frames (1031ae6)
- [Fix] Don't attempt to use the
find
crawler on Windows (735aa9f) - [Performance] Improve AST processing during transformation (#854 by @EvanBacon)
- [Performance] Improve Fast Refresh responsiveness when watching a large number of files (b942eca)
Full Changelog: v0.73.6...v0.74.0
v0.73.7
v0.73.6
- [Fix] Fix duplicate 'add' events, reduce dropped events on new subtrees in
NodeWatcher
(non-Watchman, non-macOS).(51fb7e3)
NOTE: Experimental features are not covered by semver and can change at any time.
- [Experimental]
experimentalImportBundleSupport
: Move bundle path hints into serialised dependency map(#901)
Full Changelog: v0.73.5...v0.73.6
v0.73.5
- [Fix]: Make all
getTransformOptions
result properties optional. (a07c823) - [Fix]: Bug that can lead to "unknown module" errors at runtime after an incremental build. (b1be263)
- [Fix]:
metro-runtime
: Re-throw cached module errors without wrapping. (032c4a1) - [Fix] Bump
babel/types
dependency to^7.20.0
for more consistent exposed AST Bumpbabel/types
dependency to^7.20.0
for more consistent exposed AST
Full Changelog: v0.73.4...v0.73.5
v0.73.4
- [Feature]: Expose
watch
option inRunServerOptions
(#889 by @EvanBacon) - [Feature]:
metro-runtime
: Emit additional context on WebSocket'close'
events (d54986c)
NOTE: Experimental features are not covered by semver and can change at any time.
- [Experimental]:
experimentalImportBundleSupport
: Retraverse parents of deleted async dependencies (cb806d1)
Full Changelog: v0.73.3...v0.73.4