Releases: facebook/metro
v0.77.0
- [Breaking]: Increase minimum Node version from 16 to 18. (ebaf27a by @arushikesarwani94)
- [Breaking]: Use Terser's default for comments. (#972 by @tido64)
- [Breaking]: Remove
metro-minify-uglify
frommetro
dependencies. (7a8fcd5 by @robhogan) - [Fix]: Fixed a bug in the handling of path separators in
blockList
on Windows. (2eecfc7 by @motiz88) - [Fix]: Protect against unsafe merging of
blockList
patterns with inconsistent regex flags. (c80904b by @motiz88) - [Fix]: Incorrect worker resolution when multiple
metro
versions are installed. (6d46078 by @robhogan) - [Performance]: Improve resolution performance for files outside the project root. (dc3cddf by @robhogan)
- [Performance]: Improved startup speed via a new file map cache format. (166477e by @robhogan)
NOTE: Experimental features are not covered by semver and can change at any time.
- [Experimental]:
metro-file-map
: Normalize root-relative paths for cross-platform cache compatibility. (d282a08 by @motiz88) - [Experimental]: Fix crash when
require.context
is used on a directory with infinite path expansions. (14d652f by @robhogan)
Full Changelog: v0.76.7...v0.77.0
v0.76.7
- [Feature]:
metro-babel-transformer
andmetro-react-native-babel-transformer
will returnmetadata
from Babel transform results. (42fdbc2 by @robhogan) - [Feature]: Expose
TerminalReporter
for Reporter implementations. (417e6f2 by @colinta) - [Feature]: Allow client-side device identifiers in inspector proxy. (c6a94bc by @byCedric)
- [Fix]: EPERM file watching errors on Windows. (4b22efb by @robhogan)
Full Changelog: v0.76.6...v0.76.7
v0.76.6
- [Types] Update config and
Server
types to use broader types fromconnect
package (d20d7c8 by @huntie) - [Types] Fix TypeScript name for
createConnectMiddleware
export (06682f8 by @huntie) - [Deprecation] Deprecate
server.enhanceMiddleware
option (22e85fd by @huntie)
NOTE: Experimental features are not covered by semver and can change at any time.
Full Changelog: v0.76.5...v0.76.6
v0.73.10
This is a hotfix on the 0.73.x
branch.
- [Feature] Support URLs for both bundling and symbolication requests using
//&
instead of?
as a query string delimiter (#994 by @robhogan) - [Fix] Emit source URLs in a format that will not be stripped by JavaScriptCore (#994 by @robhogan)
Full Changelog: v0.73.9...v0.73.10
v0.72.4
This is a hotfix on the 0.72.x
branch.
- [Feature] Support URLs for both bundling and symbolication requests using
//&
instead of?
as a query string delimiter (#993 by @robhogan) - [Fix] Emit source URLs in a format that will not be stripped by JavaScriptCore (#993 by @robhogan)
Full Changelog: v0.72.3...v0.72.4
v0.70.4
This is a hotfix on the 0.70.x
branch.
- [Feature] Support URLs for both bundling and symbolication requests using
//&
instead of?
as a query string delimiter. (#996 by @robhogan) - [Fix] Emit source URLs in a format that will not be stripped by JavaScriptCore. (#996 by @robhogan)
Full Changelog: v0.70.3...v0.70.4
v0.76.5
- [Feature] Support URLs for both bundling and symbolication requests using
//&
instead of?
as a query string delimiter (bd357c8 by @robhogan) - [Fix] Fix crash on a module added+modified+removed between updates (5d7305e by @robhogan)
- [Fix] Fix missed modification on module removed+modified+added between updates (5d7305e by @robhogan)
- [Fix] Emit source URLs in a format that will not be stripped by JavaScriptCore (bce6b27 by @robhogan)
- [Performance] Prune unmodified modules from delta updates before sending them to the client (e24c6ae by @robhogan)
NOTE: Experimental features are not covered by semver and can change at any time.
Full Changelog: v0.76.4...v0.76.5
v0.76.4
- [Feature]: Support the
x_google_ignoreList
source map extension. (#973, 82bd64a by @motiz88) - [Feature]: Support bundling KTX files as image assets. (#975 by @rshest)
- [Fix]: Fix crash on a module added+modified+removed between updates. (5d7305e by @robhogan)
- [Fix]: Fix missed modification on module removed+modified+added between updates. (5d7305e by @robhogan)
Full Changelog: v0.76.3...v0.76.4
v0.76.3
- [Feature]: Support custom
__loadBundleAsync
implementations in the defaultasyncRequire
function. See the lazy bundling RFC for more details. (ac3adce, f07ce5c by @motiz88) - [Feature]: Support
lazy
parameter in bundle requests. See the lazy bundling RFC for more details. (4ef14f9 by @motiz88) - [Feature]: Preserve comments in unminified builds, while continuing to strip all comments from minified builds. (#967 by @tido64)
- [Deprecated]: The
transformer.asyncRequireModulePath
config option is deprecated. Use__loadBundleAsync
instead.(c7b684f by @motiz88)
NOTE: Experimental features are not covered by semver and can change at any time.
- [Experimental] Package Exports unstable_conditionNames now defaults to ['require', 'import'] (e70ceef by @huntie)
- [Experimental] Removed
server.experimentalImportBundleSupport
config option. (4ef14f9 by @motiz88)
Full Changelog: v0.76.2...v0.76.3
v0.76.2
- [Feature]: Added customizeStack hook to Metro's
/symbolicate
endpoint to allow custom frame skipping logic on a stack level. (ce266dd by @GijsWeterings) - [Feature]: Re-export
metro-core
'sTerminal
frommetro
. (86e3f93 by @robhogan) - [Feature]: Re-export
metro-config
'sresolveConfig
frommetro
. (cc16664 by @robhogan) - [Types]: Remove dependency on
@types/babel__code-frame
. (41cdc03 by @robhogan) - [Types]: Remove dependency on
@types/ws
. (7deb525 by @robhogan) - [Types]: Fix TypeScript types entry point for metro-source-map. (3238bbc by @huntie)
- [Deprecated]: Deprecate
ResolutionContext.getPackageForModule
. (2d0a01c by @huntie)
NOTE: Experimental features are not covered by semver and can change at any time.
- [Experimental]: Pass full path and query params to
asyncRequire
for lazy bundles. (61a30b7 by @motiz88) - [Experimental]: Fix bug where Package Exports warnings may have been logged for nested
node_modules
path candidates. (29c77bf by @huntie) - [Experimental]: Fix
package.json
discovery against root package specifiers for Package Exports. (b995303 by @huntie, fixes #965 reported by @shamilovtim)
Full Changelog: v0.76.1...v0.76.2