DEV Community

Discussion on: Package Version - Update or Not Update?

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.