Publish 0.87.1 (#1926)
Summary: Publish Metro 0.87.1 from
main.Changelog: [Internal]
Pull Request resolved: https://github.com/react/metro/pull/1926
Test Plan:
node scripts/updateVersion.js 0.87.1 sl diff --statOnly the 17
packages/*/package.jsonmanifests change, and every0.87.0reference is replaced.Draft release notes (from the 91 commits in https://github.com/react/metro/compare/v0.87.0...main - reverted and internal-only changes omitted):
- **[Feature]**: Add `resolver.schemeResolvers` to resolve URI-scheme-prefixed specifiers (eg `foo:bar`) with custom resolvers (https://github.com/react/metro/pull/1804 by robhogan) - **[Feature]**: Resolve `metro:babel-runtime/<path>` imports to Metro's own `babel/runtime` dependency (https://github.com/react/metro/commit/8388f719f9c8d19c7417cc59e592690fa20f5f98 by robhogan) - **[Feature]**: `metro-file-map`: Add `crawlerFactory` to optionally replace the built-in Watchman / Node crawlers (https://github.com/react/metro/commit/68022f046321b84758b7073c13c2db1072a14b27 by vzaidman) - **[Feature]**: `metro-babel-transformer`: Pass `inlinePlatform` to Babel presets via `caller` (https://github.com/react/metro/commit/6bbe095c127803c62402c2a21d7b2bb819f1b11e by robhogan) - **[Fix]**: Replace `image-size` dependency with vendored parsers, fix CVE alerts (https://github.com/react/metro/pull/1860 by robhogan) - **[Fix]**: Include `charset=utf-8` in the `Content-Type` of text assets and source files served by the dev server (https://github.com/react/metro/pull/1888 by robhogan) - **[Fix]**: Preserve `Platform.OS` write targets during constant inlining (https://github.com/react/metro/pull/1890 by OskarEichler) - **[Fix]**: Inline the last duplicate key from static `Platform.select` object literals (https://github.com/react/metro/pull/1889 by OskarEichler) - **[Fix]**: `FallbackWatcher` no longer misses files written to a directory while it is being crawled (https://github.com/react/metro/pull/1907 by robhogan) - **[Fix]**: `HttpStore`: Handle socket errors during writes, so they're retried rather than crashing the process (https://github.com/react/metro/commit/fad3b88742034a8c1cbb9cc098fd35128b597870) - **[Fix]**: Treat `CI=false` and `CI=0` as not-CI when defaulting `watch`. CI is now detected from `process.env.CI` only, dropping the `ci-info` dependency (https://github.com/react/metro/commit/61e4592f92f028d3c5f33af101d41654e88fe151 by robhogan) - **[Fix]**: Fix Fast Refresh hitting undefined modules when using lazy (segmented) bundles in dev (https://github.com/react/metro/commit/c70d0ae66cf381d50e1fc59c4c4aa806d050e9dd by robhogan) - **[Performance]**: `FallbackWatcher`: Drop `walker` dependency, reduce crawl RSS by ~34% and peak heap by ~41% (https://github.com/react/metro/pull/1906 by robhogan) - **[Performance]**: Don't emit redundant empty dependency map arrays for modules with no dependencies (https://github.com/react/metro/pull/1858 by robhogan) - **[Types]**: Restore publishing of private (underscore-prefixed) fields in TypeScript declarations (https://github.com/react/metro/pull/1876 by robhogan) - **[Types]**: Fix async functions being inferred as returning `void` (not `Promise<void>`), eg `MetroServer#end` (https://github.com/react/metro/pull/1909 by robhogan) - **[Types]**: Tidy up generated types, allow nullable props to be omitted in more places (https://github.com/react/metro/pull/1885 by robhogan) > NOTE: Experimental features are not covered by semver and can change at any time. - **[Experimental]**: Add `serializer.unstable_inlineDependencyMap` to inline module IDs at serialisation time (https://github.com/react/metro/pull/1786 by robhogan) - **[Experimental]**: Add `serializer.unstable_getAsyncDependencyPath` to supply custom `paths` to framework-defined `__loadBundleAsync` (https://github.com/react/metro/pull/1855 by robhogan) - **[Experimental]**: Remove `transformer.unstable_renameRequire` - `require` is never renamed (https://github.com/react/metro/commit/42577f778195d40a0fe31af5c34ec679d00bc9b2 by robhogan) - **[Experimental]**: `experimentalImportSupport`: Fix `export * from` re-exporting the source module's default export (https://github.com/react/metro/pull/1777 by robhogan) **Full Changelog**: https://github.com/react/metro/compare/v0.87.0...v0.87.1Reviewed By: zeyap
Differential Revision: D119675927
Pulled By: GijsWeterings
fbshipit-source-id: daf17f3501b4725c21c39b4dfd5c82b95e01dca5
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
Metro
🚇 The JavaScript bundler for React Native.
Installation
Metro is included with React Native — see the React Native docs to quickly get started ⏱️.
To add Metro to an existing project, see our Getting Started guide.
Documentation
All available documentation, including on configuring Metro, can be found on the Metro website.
Source code for documentation is located in this repository under
docs/.Contributing
Metro was previously part of the react-native repository. In this standalone repository it is easier for the team working on Metro to respond to issues and pull requests. See react-native#13976 for the initial announcement.
Code of Conduct
Meta has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.
Contributing guide
Read our contributing guide to learn about our development process, how to propose bug fixes and improvements, and how to build and test your changes to Metro.
Discussions
Larger discussions and proposals concerning React Native and Metro are discussed in @react-native-community/discussions-and-proposals.
License
Metro is MIT licensed, as found in the LICENSE file.