DEV Community

Discussion on: How consistently does your organization update dependencies?

Collapse
vlasterx profile image
Vladimir Jovanović • Edited on

For the part of the project that I'm working on - every day. I've made it my morning routine: I make coffee, sit at the computer and then check for updates for 97 NPM packages in our package.json.

  • Patch versions are updated without additional checks
  • Minor versions are run through the testing framework and build process
  • For major versions, I always check the changelog and breaking changes on Github. These are not resolved routinely, so I create an issue and resolve it as soon as time permits.

I check and update package.json with a very convenient script npm-check-updates.
So far, this approach worked great, since we never had to worry about out of date dependencies.

When you do this regularly, there is no headache afterwards ;)