Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The point of LTS versions is that they don't force me to make changes. This sounds like a bug more than a feature.


Not all breaking changes require consumers to make changes. For example, in react-router v6, the useSearchParams hook returns a setter which lacks referential stability (for no good reason). There is an open PR to fix this, but the maintainers haven't addressed it. My theory is that it would technically be a breaking change since it would cause fewer rerenders. Theoretically an app might rely on this, but in practice that would be an extremely brittle and unusual behavior to rely on, and the vast majority of users would prefer the reduced rerenders. Under pragmatic versioning they could bump v6.x, and note that the change should be tested but likely doesn't require any code changes. With SemVer they'd be forced to bump to 7.0.0, but this is not a marketable change for a major release.


If you follow SemVer strictly, the version bump is not necessary unless the number of rerenders is part of the documented API.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: