react-native-community / upgrade-helper

⚛️ A web tool to support React Native developers in upgrading their apps.
https://react-native-community.github.io/upgrade-helper
MIT License
3.67k stars 112 forks source link

Fix package name and app name replacement #376

Open M7mdisk opened 9 months ago

M7mdisk commented 9 months ago

Summary

the app name and package name were not being properly changed inside the diff files, only in the diff path, this is happening because the tokenizer is using the old hunks instead of updatedHunks. I also added getHunksWithAppName as a dependency to make sure the files are automatically updated when the app name or package name are changed. This isn't introducing any new features, simply fixing what appears to be a bug.

Test Plan

Before:

image

After:

image

What are the steps to reproduce?

Checklist