Skip to content

v0.88.1

Latest

Choose a tag to compare

@robhogan robhogan released this 26 Nov 15:23
e4ac772
  • [Feature]: metro-cache: HttpStore accepts maxSockets, to change its connection limit, and getParams, to add query parameters (such as a short-lived credential) to every request (#2246 by @GijsWeterings)
  • [Feature]: Transforming file end log entries report the worker's CPU time for the transform as cpu_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 var declared in a branch that's removed when folding constants in production builds, if code outside the branch uses it, instead of throwing a ReferenceError (#2279 by @burrows99)
  • [Fix]: Don't replace void 0 with undefined when folding constants in production builds, where undefined is 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 undefined at later references (#2280 by @burrows99)
  • [Fix]: experimentalImportSupport: export * from a module with an enumerable __esModule no longer throws in strict mode (#2281 by @burrows99)
  • [Fix]: Define a __proto__ key in JSON modules as an own property, matching JSON.parse (#2199 by @Mwrnk)
  • [Fix]: FileStore writes cache entries atomically, so concurrent reads no longer miss valid entries or see partial writes (#2040 by @frankleng)
  • [Fix]: Respect excludeSource in inline source maps, and pass it to serializer.customSerializer (#2256 by @robhogan)
  • [Fix]: Stop leaking a graph's DeltaCalculator and file change listener when its first build fails (#2283 by @sensei-woo)
  • [Fix]: Resolve a package subpath ending in /., such as pkg/., instead of throwing Unexpectedly 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 collapse on a path through a symlink out of the project root, into a directory whose name ends in . (#2237 by @robhogan)
  • [Fix]: require.context on 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 composeSourceMaps for large bundles (#2250 by @yhpark)
  • [Types]: Remove undeclared type-only imports between Metro packages. bundle_options moves from metro-core's LogEntry to MetroLogEntry, exported by metro - annotate Logger.on handlers 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: false to 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, and maxInFlightReads on HttpGetStore, which misses rather than queueing once that many reads are outstanding (#2249 by @GijsWeterings)

Full Changelog: v0.88.0...v0.88.1