News for hackers. Stuff that matters.
Re:The semver trick (2019) by josephcsible on Saturday August 01, 2020 @01:54PM (#24022491)
The issue with leftpad wasn't that it was small. The issue was that so much production code relied on it not going away, despite npm letting the author make it go away.
Re:The semver trick (2019) by tsimionescu on Saturday August 01, 2020 @02:09PM (#24022610)
Yes, the problem that broke everything was what you mentioned. But what struck everyone more was that this all happened because of a few line function that should have obviously never been a dependency in any sane project.
Re:The semver trick (2019) by nimih on Saturday August 01, 2020 @04:09PM (#24023496)
The security/operational issue may have been that the author was able to break production code, but the simplicity of the function is what made it extremely funny.