News for hackers. Stuff that matters.
Re:Webpack 5 by amelius on Saturday October 10, 2020 @08:17PM (#24742910)
> Me too! I dread package upgrades because it can instantly turn into an all-hands-on-deck emergency, and these are just the stand-alone packages, not all the ones I mentioned above.

To all package manager developers: make sure you have a rollback function, and make sure it is flawless.

Re:Webpack 5 by fiddlerwoaroof on Saturday October 10, 2020 @10:00PM (#24743292)
Committing the package-lock.json file should do this for you: I always upgrade one dependency per commit and I put code changes in separate changes from upgrades. Also, you just have to learn which packages to avoid: react-router, for example, likes incompatible major version updates. Something simple like routedux that’s stable is almost always a better choice.
Re:Webpack 5 by amelius on Sunday October 11, 2020 @07:40AM (#24745112)
With all the different package managers out there, it's just not much fun to keep track of all the rules and special cases for each tool. Better to just have a "--rollback" option.
Re:Webpack 5 by fiddlerwoaroof on Sunday October 11, 2020 @11:23AM (#24746393)
Isn’t this solved more generically by version control? As long as your package manager uses files to control the packages searched for, them you commit those files between upgrades and revert them to rollback. nix handles this at the system-level by making your system configuration match a declarative specification.
Re:Webpack 5 by harrygeez on Sunday October 11, 2020 @12:36AM (#24743756)
or... you can rollback to an older version yourself