v0.85.0
- [Breaking]: Raise minimum supported Node.js version to 22 (https://github.com/react/metro/pull/1715 by @huntie)
- [Feature]: Implement
PACKAGE_SELF_RESOLVEfor self-referencing imports in the resolver (https://github.com/react/metro/pull/1721 by @robhogan) - [Fix]: Add ESM unwrapping to all CommonJS
requirecalls (https://github.com/react/metro/pull/1675 by @kitten) - [Fix]: Fix Windows cross-drive path resolution in
metro-file-map(https://github.com/react/metro/pull/1711 by @kitten) - [Fix]: Fix
"browser"-spec bare-specifier → relative path redirects for nested and first-partypackage.jsons (https://github.com/react/metro/pull/1720 by @robhogan) - [Fix]: Gracefully reject illegal
"browser"-spec redirects of a bare specifier to an absolute path (https://github.com/react/metro/commit/e1f4d61842a99cd3f8cde0e8cfd135210d6fec3d by @robhogan) - [Performance]: Avoid intermediate allocations in
matchSubpathFromMainFields, improving overall resolver performance ~5% (https://github.com/react/metro/commit/9341463424ef7753d2d17ef0d6943f3610a4e23a by @robhogan)
Full Changelog: https://github.com/react/metro/compare/v0.84.4...v0.85.0