DEV Community

Package Version - Update or Not Update?

Yuan-Hsi Lee on February 06, 2021

Packages are helpful and sometimes critical for projects. However, packages have new release all the time, so as their dependency packages. A devel...
Collapse
 
yoursunny profile image
Junxiao Shi

I upgrade aggressively but manually. I don't commit the package-lock.json file so that upgrades within a major version occur automatically. If something breaks, I rollback to the last working version.

For upgrades between major versions, I would at least read the change log or recent commits. Then I have to carefully test affected modules.
Sometimes the upgrades have to be deferred. When webpack 5.x was released, I attempted to upgrade NDNts browser tests right away but there were a lot of errors. I waited two months and tried again, and everything worked fine.