|
|
|
|
|
by paskozdilar
1572 days ago
|
|
> So instead off focusing on those changes I have to first fix potential dozens of files for no reason at all. You don't have to, if you don't want to upgrade to a new major version. If you do want to upgrade to a major version, which means that there are breaking changes in a package's API or behavior - you sure as hell want to check the correctness of every single line of code written using that package.
Since every file that uses that package must contain an import statement, the import statements are an easily greppable indicator of which files you have to check and potentially fix. |
|
Yes, I do. Doing the monkey job of changing every import line (which will be done with a global search/replace) is definitely not that.
If you're relying on import statements to tell you which files to check, you're definitely doing something wrong