I'm sorry if you were unaware, but they absolutely do that, and were doing that long before go was.
If deps are immutable, then nothing anyone does in any other package (short of having the package repository take the code down) should be able to break your future builds.
If that were true, TFA would not be news.
They are. You're only affected if you don't use a package-lock.json or start a new project (which will pull the latest versions of the dependencies).