You should take a look at what the Angular Team are doing with their CLI tool and how they're writing migrations to automatically fix any breaking changes within your codebase as they progress from version to version by simply running ng update.
And they do it using an AST rather than a RegEx to maintain the correctness of your program.
Yeah they maybe do it now
and these code mods have their limitations.
the react team has them too.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.