cli icon indicating copy to clipboard operation
cli copied to clipboard

Incorrect version comparison link in metro command output

Open ErickMaeda opened this issue 2 weeks ago • 1 comments

Hello!

When starting the Metro server with the react-native start --reset-cache command, it suggests updating the React Native version. However, the link provided for the upgrade comparison always compares the latest version with itself, instead of comparing the latest version with the current version being used in the project.

For example, in the output below, the current project is using version v0.73.8, and the latest available version is v0.74.2. The correct link should compare v0.73.8 with v0.74.2. Instead, the link compares v0.74.2 with itself.

react-native start --reset-cache

info Welcome to React Native v0.73
info Starting dev server on port 8081...

                        ▒▒▓▓▓▓▒▒
                     ▒▓▓▓▒▒░░▒▒▓▓▓▒
                  ▒▓▓▓▓░░░▒▒▒▒░░░▓▓▓▓▒
                 ▓▓▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▒▒▒▓▓
                 ▓▓░░░░░▒▓▓▓▓▓▓▒░░░░░▓▓
                 ▓▓░░▓▓▒░░░▒▒░░░▒▓▒░░▓▓
                 ▓▓░░▓▓▓▓▓▒▒▒▒▓▓▓▓▒░░▓▓
                 ▓▓░░▓▓▓▓▓▓▓▓▓▓▓▓▓▒░░▓▓
                 ▓▓▒░░▒▒▓▓▓▓▓▓▓▓▒░░░▒▓▓
                  ▒▓▓▓▒░░░▒▓▓▒░░░▒▓▓▓▒
                     ▒▓▓▓▒░░░░▒▓▓▓▒
                        ▒▒▓▓▓▓▒▒


warning: the transform cache was reset.
                Welcome to Metro v0.80.4
              Fast - Scalable - Integrated


info React Native v0.74.2 is now available (your project is running on v0.73.8).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.74.2
> info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.73.8
< info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.74.2
info For more info, check out "https://reactnative.dev/docs/upgrading?os=macos".
info Dev server ready

i - run on iOS
a - run on Android
d - open Dev Menu
r - reload app

ErickMaeda avatar Jun 20 '24 08:06 ErickMaeda