Generate an error and click the button to fix this in the editor. It will only share the first part of the error. And if you ask it what it can see it says it can only see that. It can't see secondary errors or doc links.
It looks to me wagmi is handling this by appending all error info and putting it into the primary error, which sounds fast and effective to me.
In other words, it can only see
Pub is no longer a valid keyword
It can't see
This is pre 1.0 cadence
And it can't see the doc link to the migration notes either