Repository navigation
- [Feature]: metro-cache:
HttpStoreacceptsmaxSockets, to change its connection limit, andgetParams, to add query parameters (such as a short-lived credential) to every request (#2246 by @GijsWeterings) - [Feature]:
Transforming fileend log entries report the worker's CPU time for the transform ascpu_time_us(#2282 by @vzaidman) - [Fix]: Keep function bindings that are reassigned when folding constants in production builds (#2197 by @Mwrnk)
- [Fix]: Keep side effects such as
i++in the leading operands of a sequence when folding constants in production builds (#2278 by @burrows99) - [Fix]: Keep a
vardeclared in a branch that's removed when folding constants in production builds, if code outside the branch uses it, instead of throwing aReferenceError(#2279 by @burrows99) - [Fix]: Don't replace
void 0withundefinedwhen folding constants in production builds, whereundefinedis shadowed (#2215 by @ZainnQureshii) - [Fix]: Memoized inline requires: A module first referenced in a skipped optional chain, logical assignment or default value is no longer
undefinedat later references (#2280 by @burrows99) - [Fix]:
experimentalImportSupport:export * froma module with an enumerable__esModuleno longer throws in strict mode (#2281 by @burrows99) - [Fix]: Define a
__proto__key in JSON modules as an own property, matchingJSON.parse(#2199 by @Mwrnk) - [Fix]:
FileStorewrites cache entries atomically, so concurrent reads no longer miss valid entries or see partial writes (#2040 by @frankleng) - [Fix]: Respect
excludeSourcein inline source maps, and pass it toserializer.customSerializer(#2256 by @robhogan) - [Fix]: Stop leaking a graph's
DeltaCalculatorand file change listener when its first build fails (#2283 by @sensei-woo) - [Fix]: Resolve a package subpath ending in
/., such aspkg/., instead of throwingUnexpectedly escaped traversal(#2213 by @kwy404) - [Fix]: Fix
resolver.blockList: []hiding every file (8f49d3681cfd) - [Fix]: Fix an out-of-memory crash on a symlink into itself (#2204 by @robhogan)
- [Fix]: Fix the path of a file added through a symlink to the project root (#2212 by @robhogan)
- [Fix]: Fix
Failed to collapseon a path through a symlink out of the project root, into a directory whose name ends in.(#2237 by @robhogan) - [Fix]:
require.contexton a directory above the project root follows symlinks inside the project root, and lists each level correctly from two or more levels up (#2229 by @robhogan) - [Fix]: Use a separate file map cache under Bun, which can't read Node's cache (#2209 by @robhogan)
- [Fix]: Include dependencies required by Metro's published TypeScript declarations (#2149 by @sorinc03)
- [Performance]: Dev server memory is ~95% lower per lazy-loaded route (
import()or async routes), and lazy bundle requests are ~2x faster (#2239 by @robhogan) - [Performance]: Without Watchman, the dev server is ready to bundle ~2.5-3x faster on Linux and Windows, and ~15% faster on macOS (#2104, #2105, #2106, #2107, #2108, #2219, #2220, #2221, #2240 by @robhogan)
- [Performance]: Without Watchman, CI builds start bundling ~25-35% sooner on Linux and Windows, and ~15% sooner on macOS (#2104, #2219, #2220, #2240 by @robhogan)
- [Performance]: At least 10x faster
composeSourceMapsfor large bundles (#2250 by @yhpark) - [Types]: Remove undeclared type-only imports between Metro packages.
bundle_optionsmoves frommetro-core'sLogEntrytoMetroLogEntry, exported bymetro- annotateLogger.onhandlers that read it as(entry: MetroLogEntry) => ...(#2257 by @robhogan)
NOTE: Experimental features are not covered by semver and can change at any time.
- [Experimental]: Share module outputs between graphs with equal transform options, on by default. Set
transformer.unstable_shareTransformResults: falseto opt out if a transform's output depends on inputs outside its cache key, or if a custom serializer writes to module outputs or dependencies (#2239, #2244 by @robhogan) - [Experimental]: Add
unstable_hedgeCacheReadsAfterMs, which transforms a module locally when its cache read is slow and takes whichever finishes first, andmaxInFlightReadsonHttpGetStore, which misses rather than queueing once that many reads are outstanding (#2249 by @GijsWeterings)
Full Changelog: v0.88.0...v0.88.1