Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: react/metro
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.81.3
Choose a base ref
...
head repository: react/metro
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.82.0
Choose a head ref
  • 9 commits
  • 37 files changed
  • 4 contributors

Commits on Mar 3, 2025

  1. Update actions/cache to v4 - fix deploy-website workflow

    Summary:
    `actions/cache` before 3.4 have been deprecated and cause actions to fail. This is currently breaking automated deployments.
    
    actions/cache#1510
    
    Changelog: Internal
    
    Reviewed By: huntie
    
    Differential Revision: D70486750
    
    fbshipit-source-id: e61d2805a0ac88db1651de600ceab8f1606bab59
    robhogan authored and facebook-github-bot committed Mar 3, 2025
    Configuration menu
    Copy the full SHA
    35a6b49 View commit details
    Browse the repository at this point in the history
  2. Remove CSSOM, IndexedDB, ServiceWorkers, Streams and WebAssembly from…

    … XPlat-React type definitions
    
    Summary: Adjusts the type definitions in Metro to avoid depending on Web-specific APIs that aren't defined in Node.js.
    
    Reviewed By: SamChou19815
    
    Differential Revision: D70316194
    
    fbshipit-source-id: 063bd0c8c33e6ac3a4100c0ae2d1aab5c437be06
    rubennorte authored and facebook-github-bot committed Mar 3, 2025
    Configuration menu
    Copy the full SHA
    199cc9d View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2025

  1. Breaking: Enable unstable_enablePackageExports by default (#1448)

    Summary:
    Pull Request resolved: #1448
    
    Metro 0.81.3 added support for `package.json#imports` and addressed the main outstanding issue with `package.json#exports` - correct assertion of the `import` or `require` condition.
    
    This flips `unstable_enablePackageExports` to `true` ahead of Metro 0.82.0 / RN 0.79-rc.0, which will allow some stabilisation time before this default reaches users.
    
    Since this potentially changes the way existing imports are resolved, I'm labelling it semver breaking out of an abundance of caution. I wouldn't expect this to be disruptive, especially because `unstable_enablePackageExports` is already widely enabled in practice.
    
    Leaving the flag in place so that anyone who runs into trouble has an escape hatch via `unstable_enablePackageExports: false`. This option will be removed in a later release.
    
    Changelog:
    ```
     - **[Breaking]**: Enable support for `package.json#exports` resolution by default.
    ```
    
    Reviewed By: huntie
    
    Differential Revision: D70463018
    
    fbshipit-source-id: f207b691b54ea8aaea3415002c20f79f54c5e6f7
    robhogan authored and facebook-github-bot committed Mar 4, 2025
    Configuration menu
    Copy the full SHA
    141946c View commit details
    Browse the repository at this point in the history
  2. Fix package-imports-test on Windows (#1450)

    Summary:
    Pull Request resolved: #1450
    
    Use the Metro `p` posix => system path convention to make `package-imports-test` platform agnostic and restore it on Windows.
    
    Changelog: Internal
    
    Reviewed By: vzaidman
    
    Differential Revision: D70544964
    
    fbshipit-source-id: 603f6a74b0a6619f181fd84f398df55ca2afbee1
    robhogan authored and facebook-github-bot committed Mar 4, 2025
    Configuration menu
    Copy the full SHA
    bcc2e28 View commit details
    Browse the repository at this point in the history
  3. fix type on the flow types for "chalk"

    Summary:
    X-link: react/react-native#49814
    
    `bgWhiteBrigh + t = bgWhiteBright`
    seems like no one was using `chalk.bgWhiteBright` before me :)
    
    Changelog:
    [General][Internal] fix type on the flow types for "chalk"
    
    Reviewed By: huntie, hoxyq
    
    Differential Revision: D70403987
    
    fbshipit-source-id: 34f65e57fbb2eeadd6030557e0499db0b2603b38
    vzaidman authored and facebook-github-bot committed Mar 4, 2025
    Configuration menu
    Copy the full SHA
    49fcf84 View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2025

  1. Deploy 0.263.0 to xplat

    Summary:
    X-link: react/react-native#49825
    
    Changelog: [Internal]
    
    Reviewed By: pieterv
    
    Differential Revision: D70595199
    
    fbshipit-source-id: a3be1b74cca99f0ff79aca4dd51059b3b09facb2
    SamChou19815 authored and facebook-github-bot committed Mar 5, 2025
    Configuration menu
    Copy the full SHA
    cf7fe9f View commit details
    Browse the repository at this point in the history
  2. Breaking: Enable lazy hashing by default, changes to Transformer and …

    …DependencyGraph APIs (#1451)
    
    Summary:
    Pull Request resolved: #1451
    
    Lazy hashing was released in Metro 0.81.2 as an opt-in. It significantly reduces the IO Metro needs to perform on startup and generally improves cold start speed >3x, while being fully compatible with cache lookups even on a cold start.
    
     {F1975587641}
    
    (We announced this in https://x.com/MetroBundler/status/1895102434889850960 )
    
    There's very little risk to this feature - the technically-breaking change required only affects integrators using an "internal" API - instantiating a `Transformer`.
    
    This flips it to default-on ahead of Metro 0.82.0
    
    Changelog:
    ```
     - **[Breaking]**: Integrators consuming `metro/src/DeltaBundler/Transformer` must now pass an options object with `getOrComputeSha1`
     - **[Breaking]**: `getSha1` removed from `metro/src/node-haste/DependencyGraph`, prefer `getOrComputeSha1`
     - **[Performance]**: Enable lazy file hashing by default (disable with `watcher.unstable_lazySha1: false`)
    ```
    
    Reviewed By: huntie
    
    Differential Revision: D70463022
    
    fbshipit-source-id: bf0fec70eaab4960142f260703a349d422cecf0a
    robhogan authored and facebook-github-bot committed Mar 5, 2025
    Configuration menu
    Copy the full SHA
    e667aa3 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2025

  1. update and dedupe the npm package "debug"

    Summary:
    X-link: react/react-native#49816
    
    Previously, we had different versions of "debug" installed in different packages, mostly because of messed up `yarn.lock` entries.
    
    Also, updated the package, receiving some performance improvements (no relevant breaking changes).
    
    Changelog:
    [General][Internal] update and dedupe the npm package "debug"
    
    Reviewed By: huntie
    
    Differential Revision: D70402368
    
    fbshipit-source-id: 5e21bc6d92e0cb45ac1d862f100ef6dc0f21dbc1
    vzaidman authored and facebook-github-bot committed Mar 6, 2025
    Configuration menu
    Copy the full SHA
    1579c3a View commit details
    Browse the repository at this point in the history
  2. Publish 0.82.0 (#1456)

    Summary:
    Pull Request resolved: #1456
    
    Publish Metro 0.82.0
    
    Reviewed By: huntie
    
    Differential Revision: D70473286
    
    fbshipit-source-id: ee289dfaf565ac476c1b36825a428e6381e2677f
    robhogan authored and facebook-github-bot committed Mar 6, 2025
    Configuration menu
    Copy the full SHA
    18db683 View commit details
    Browse the repository at this point in the history
Loading