Quick question about package managers. Does it make sense to use more than a few packages and always be keeping them up to date? Why not just add a package to your site and leave it? Wouldn’t updating multiple packages to a new version increase your risk of issues / bugs with each deployment?
There's always potential security issues and bugs in the versions you're already using, which means it's good for you to update. Furthermore, there's going to be new features that, if not you yourself, other packages you are or will be using might want to use. For example, if you're still on React 0.13, you won't be able to introduce react-redux to your project without also upgrading React, which makes the cost of introducing that a lot larger.
Sure, but do you need to always be current? Wouldn’t be better to update all your packages once per year. Then do a build with no other changes, QA that release and deploy? Seems like that would be much less risk, and a lot easier then always updating.
It's just that it can become harder to update the larger the gulf become between you and latest. And you need to update eventually, else you're on unsupported software. So regular updates just become a way to pay off technical debt.
es, QA that release and deploy? Seems like that would be much less risk, and a lot easier then always updating.
True. There probably is no correct path for every scenario. Some site probably put a premium on staying current while others put a premium on stability.
18
u/thilehoffer Mar 26 '18
Quick question about package managers. Does it make sense to use more than a few packages and always be keeping them up to date? Why not just add a package to your site and leave it? Wouldn’t updating multiple packages to a new version increase your risk of issues / bugs with each deployment?