I'd caution that a monorepo isn't a full fix to that. People often make multiple versions of libraries. You have separate 2.X and 3.X versions, with independent source code (or branches), and ask people to migrate to the new one.
There's not really a way around that when you need some behavioral change for the code using the library.
There's not really a way around that when you need some behavioral change for the code using the library.